Skip to content
Entangle UI v0.13.0

MinimapContextValue

Defined in: src/components/editor/Minimap/Minimap.types.ts:292

Live state available to children of a <Minimap> via useMinimapContext().

For perf-conscious consumers, prefer the per-slice hooks (useMinimapHover, useMinimapGeometry, useMinimapDragState) — each subscribes to a single slice and re-renders only when that slice changes. useMinimapContext() re-renders on every store mutation.

hoveredItemId: string | null

Defined in: src/components/editor/Minimap/Minimap.types.ts:300

Id of the item currently under the pointer (hit-test), or null.


hoverWorldPoint: Point2D | null

Defined in: src/components/editor/Minimap/Minimap.types.ts:298

Current pointer position in world coordinates, or null when not hovering.


isDragging: boolean

Defined in: src/components/editor/Minimap/Minimap.types.ts:302

True during an active drag (rect or pan).


minimapSize: ViewportSize

Defined in: src/components/editor/Minimap/Minimap.types.ts:294


minimapToWorld: (point) => Point2D

Defined in: src/components/editor/Minimap/Minimap.types.ts:309

Point2D

Point2D


offset: Point2D

Defined in: src/components/editor/Minimap/Minimap.types.ts:306

Letterbox offset.


scale: number

Defined in: src/components/editor/Minimap/Minimap.types.ts:304

Uniform world → minimap scale.


transform: ViewportTransform

Defined in: src/components/editor/Minimap/Minimap.types.ts:295


viewportSize: ViewportSize

Defined in: src/components/editor/Minimap/Minimap.types.ts:296


worldBounds: WorldRect

Defined in: src/components/editor/Minimap/Minimap.types.ts:293


worldToMinimap: (point) => Point2D

Defined in: src/components/editor/Minimap/Minimap.types.ts:308

Same helpers exposed in MinimapDrawInfo, for symmetry.

Point2D

Point2D