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.
Properties
hoveredItemId
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
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
isDragging:
boolean
Defined in: src/components/editor/Minimap/Minimap.types.ts:302
True during an active drag (rect or pan).
minimapSize
minimapSize:
ViewportSize
Defined in: src/components/editor/Minimap/Minimap.types.ts:294
minimapToWorld()
minimapToWorld: (
point) =>Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:309
Parameters
point
Point2D
Returns
Point2D
offset
offset:
Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:306
Letterbox offset.
scale
scale:
number
Defined in: src/components/editor/Minimap/Minimap.types.ts:304
Uniform world → minimap scale.
transform
transform:
ViewportTransform
Defined in: src/components/editor/Minimap/Minimap.types.ts:295
viewportSize
viewportSize:
ViewportSize
Defined in: src/components/editor/Minimap/Minimap.types.ts:296
worldBounds
worldBounds:
WorldRect
Defined in: src/components/editor/Minimap/Minimap.types.ts:293
worldToMinimap()
worldToMinimap: (
point) =>Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:308
Same helpers exposed in MinimapDrawInfo, for symmetry.
Parameters
point
Point2D
Returns
Point2D