SVGnet API Documentation - v0.4.1
    Preparing search index...

    Interface NodeData

    Base node data structure that all nodes must implement

    interface NodeData {
        id: string;
        name: string;
        type?: string;
        shape?: string;
        size?: number;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

      Allow additional custom properties

    Index

    Properties

    Properties

    id: string

    Unique identifier for the node

    name: string

    Display name for the node

    type?: string

    Node type for styling and grouping

    shape?: string

    Visual shape of the node (built-in: 'circle', 'rectangle', 'square', 'triangle'; custom shapes via registerShape())

    size?: number

    Size of the node in pixels