Skip to content

NodeGraphMinimapSlotProps

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:580

Properties

className?

optional className: string

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:606

Optional className applied to the minimap wrapper.


margin?

optional margin: number

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:600

Distance from the edge for preset placements (CSS px).

Default

12

nodeStyle()?

optional nodeStyle: (node) => NodeGraphMinimapNodeStyle | undefined

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:618

Per-node colouring. Return { color } to tint the rect, or { color, headerColor } to draw a two-tone header/body mini-node that mirrors the real node. When omitted, every node uses the default colour (or selectedColor while selected).

Parameters

node

NodeGraphNode

Returns

NodeGraphMinimapNodeStyle | undefined


placement?

optional placement: "top-right" | "top-left" | "bottom-right" | "bottom-left" | { bottom?: string | number; height?: string | number; left?: string | number; right?: string | number; top?: string | number; width?: string | number; }

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:586

Anchored position inside the graph. Matches ViewportMinimap’s placement (string preset or custom anchor object).

Default

'bottom-right'

selectedColor?

optional selectedColor: string

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:611

CSS colour used to highlight selected nodes inside the minimap. When omitted, selected nodes use the same colour as unselected ones.


title?

optional title: ReactNode

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:604

Optional title (rendered as <Minimap.Title>).


width?

optional width: number

Defined in: src/components/editor/NodeGraph/NodeGraph.types.ts:602

Minimap width in CSS pixels.

Default

200