pivotick - v0.0.1
    Preparing search index...

    Interface NodeStyle

    interface NodeStyle {
        color: string | ((node: Node) => string);
        fontFamily: string;
        iconClass?: string;
        iconUnicode?: string;
        imagePath?: string;
        shape: ((node: Node) => NodeShape) | NodeShape;
        size: number | ((node: Node) => number);
        strokeColor: string | ((node: Node) => string);
        strokeWidth: string | number;
        styleCb?: (node: Node) => Partial<NodeStyle>;
        svgIcon?: string;
        text?: string | ((node: Node) => string);
        textColor: string | ((node: Node) => string);
    }
    Index

    Properties

    color: string | ((node: Node) => string)

    The main color of the node

    'var(--pvt-node-color, #007acc)'
    
    fontFamily: string
    'var(--pvt-label-font, system-ui, sans-serif)'
    
    iconClass?: string
    iconUnicode?: string
    imagePath?: string
    shape: ((node: Node) => NodeShape) | NodeShape

    The shape of the node, either a standard shape or a custom SVG path

    circle
    
    size: number | ((node: Node) => number)
    10
    
    strokeColor: string | ((node: Node) => string)
    'var(--pvt-node-stroke, #fff)'
    
    strokeWidth: string | number
    'var(--pvt-node-stroke-width, 2)'
    
    styleCb?: (node: Node) => Partial<NodeStyle>

    Callback to dynamically override style properties based on the node.

    svgIcon?: string
    text?: string | ((node: Node) => string)

    The text to be used inside the node as an SVGText element

    textColor: string | ((node: Node) => string)
    'var(--pvt-node-text-color, #fff)'