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
Section titled “Properties”minimapSize
Section titled “minimapSize”minimapSize:
ViewportSize
Defined in: src/components/editor/Minimap/Minimap.types.ts:20
Minimap size in CSS pixels (canvas already DPR-scaled).
minimapToWorld
Section titled “minimapToWorld”minimapToWorld: (
point) =>Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:34
Inverse of worldToMinimap.
Parameters
Section titled “Parameters”Point2D
Returns
Section titled “Returns”Point2D
offset
Section titled “offset”offset:
Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:30
Letterbox offset applied when minimap aspect ≠ worldBounds aspect.
scale:
number
Defined in: src/components/editor/Minimap/Minimap.types.ts:28
Uniform world → minimap scale (px per world unit).
transform
Section titled “transform”transform:
ViewportTransform
Defined in: src/components/editor/Minimap/Minimap.types.ts:24
Current main-viewport transform (mirrored).
viewportSize
Section titled “viewportSize”viewportSize:
ViewportSize
Defined in: src/components/editor/Minimap/Minimap.types.ts:26
Current main-viewport size in CSS pixels (mirrored).
worldBounds
Section titled “worldBounds”worldBounds:
WorldRect
Defined in: src/components/editor/Minimap/Minimap.types.ts:22
World rectangle this minimap maps from.
worldToMinimap
Section titled “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
Section titled “Parameters”Point2D
Returns
Section titled “Returns”Point2D