MinimapHandle
Defined in: src/components/editor/Minimap/Minimap.types.ts:152
Imperative handle exposed via ref on <Minimap> and <ViewportMinimap>.
Stable for the lifetime of the component.
Methods
Section titled “Methods”focus()
Section titled “focus()”focus():
void
Defined in: src/components/editor/Minimap/Minimap.types.ts:154
Focus the minimap body so arrow keys start working.
Returns
Section titled “Returns”void
getElement()
Section titled “getElement()”getElement():
HTMLDivElement|null
Defined in: src/components/editor/Minimap/Minimap.types.ts:156
Access the underlying body DOM element (the role="region" div).
Returns
Section titled “Returns”HTMLDivElement | null
minimapToWorld()
Section titled “minimapToWorld()”minimapToWorld(
point):Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:160
Inverse of worldToMinimap.
Parameters
Section titled “Parameters”Point2D
Returns
Section titled “Returns”Point2D
worldToMinimap()
Section titled “worldToMinimap()”worldToMinimap(
point):Point2D
Defined in: src/components/editor/Minimap/Minimap.types.ts:158
Convert a world-space point to minimap CSS-pixel coordinates.
Parameters
Section titled “Parameters”Point2D
Returns
Section titled “Returns”Point2D