MinimapDrawInfo
Defined in: src/components/editor/Minimap/Minimap.types.ts:18
Helpers and current state passed to renderOverlay and to custom item
draw callbacks. Exposes the same world ↔ minimap math the built-in
shapes use, so consumer drawing stays aligned with everything else.
Properties
minimapSize
minimapSize:
ViewportSize
Defined in: src/components/editor/Minimap/Minimap.types.ts:20
Minimap size in CSS pixels (canvas already DPR-scaled).
minimapToWorld()
minimapToWorld: (
point) =>Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:34
Inverse of worldToMinimap.
Parameters
point
Point2D
Returns
Point2D
offset
offset:
Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:30
Letterbox offset applied when minimap aspect ≠ worldBounds aspect.
scale
scale:
number
Defined in: src/components/editor/Minimap/Minimap.types.ts:28
Uniform world → minimap scale (px per world unit).
transform
transform:
ViewportTransform
Defined in: src/components/editor/Minimap/Minimap.types.ts:24
Current main-viewport transform (mirrored).
viewportSize
viewportSize:
ViewportSize
Defined in: src/components/editor/Minimap/Minimap.types.ts:26
Current main-viewport size in CSS pixels (mirrored).
worldBounds
worldBounds:
WorldRect
Defined in: src/components/editor/Minimap/Minimap.types.ts:22
World rectangle this minimap maps from.
worldToMinimap()
worldToMinimap: (
point) =>Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:32
Map a world point to a minimap CSS-pixel point.
Parameters
point
Point2D
Returns
Point2D