MinimapNodeStyleFn
since v1.0.0MinimapNodeStyleFn = (
node) =>MinimapNodeStyle|null|undefined
Function signature for the nodeStyle callback. Return style properties to override defaults, or null/undefined to use defaults.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”MinimapNodeStyle | null | undefined
Example
Section titled “Example”const nodeStyle: MinimapNodeStyleFn = (node) => ({ fill: node.type === 'database' ? '#4CAF50' : '#9E9E9E', opacity: node.selected ? 1 : 0.6,});