Skip to content

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.

Extends

  • MinimapItemBase

Properties

bounds

bounds: WorldRect

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


color?

optional color: string

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

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

Inherited from

MinimapItemBase.color


draw()

draw: (ctx, info) => void

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

Parameters

ctx

CanvasRenderingContext2D

info

MinimapDrawInfo

Returns

void


id

id: string

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

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

Inherited from

MinimapItemBase.id


type

type: "custom"

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