Skip to content

ViewportMinimap

ViewportMinimap(__namedParameters): ReactElement

Defined in: src/components/editor/Minimap/ViewportMinimap.tsx:86

Auto-bound minimap for use inside a <Viewport>. Reads live transform and size from useViewportContext(), positions itself in a corner (or custom anchor), and wires onNavigate to the viewport handle’s centerOn. Falls back to the manual <Minimap> if you need the minimap outside the Viewport tree.

Recognized by <Viewport> as an overlay child — drop it among layers and world/overlay siblings without an explicit <ViewportOverlay> wrapper.

Parameters

__namedParameters

ViewportMinimapProps

Returns

ReactElement