Skip to content
Entangle UI v0.13.0

MinimapCustomItem

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

Caller-defined item. draw is invoked with the minimap canvas context and a MinimapDrawInfo object containing world ↔ minimap helpers. bounds (world coords) is used for hover hit-testing.

  • MinimapItemBase

bounds: WorldRect

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


optional color?: string

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

Override draw color for this item. Falls back to defaultItemColor.

MinimapItemBase.color


draw: (ctx, info) => void

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

CanvasRenderingContext2D

MinimapDrawInfo

void


id: string

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

Stable identity. Used for hover hit-testing and future selection support.

MinimapItemBase.id


type: "custom"

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