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
Section titled “Extends”MinimapItemBase
Properties
Section titled “Properties”bounds
Section titled “bounds”bounds:
WorldRect
Defined in: src/components/editor/Minimap/Minimap.types.ts:85
color?
Section titled “color?”
optionalcolor?:string
Defined in: src/components/editor/Minimap/Minimap.types.ts:43
Override draw color for this item. Falls back to defaultItemColor.
Inherited from
Section titled “Inherited from”MinimapItemBase.color
draw: (
ctx,info) =>void
Defined in: src/components/editor/Minimap/Minimap.types.ts:86
Parameters
Section titled “Parameters”CanvasRenderingContext2D
Returns
Section titled “Returns”void
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
Section titled “Inherited from”MinimapItemBase.id
type:
"custom"
Defined in: src/components/editor/Minimap/Minimap.types.ts:84