Skip to content
Entangle UI v0.13.0

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.

focus(): void

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

Focus the minimap body so arrow keys start working.

void


getElement(): HTMLDivElement | null

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

Access the underlying body DOM element (the role="region" div).

HTMLDivElement | null


minimapToWorld(point): Point2D

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

Inverse of worldToMinimap.

Point2D

Point2D


worldToMinimap(point): Point2D

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

Convert a world-space point to minimap CSS-pixel coordinates.

Point2D

Point2D