SVG Graph Network API Documentation - v0.2.0
    Preparing search index...

    Interface StyleObject

    Generic style object that can be applied to any element

    interface StyleObject {
        fill?: string;
        stroke?: string;
        strokeWidth?: number;
        opacity?: number;
        size?: number;
        shape?: "circle" | "rectangle" | "square" | "triangle";
        className?: string;
        filter?: string;
        strokeDasharray?: string;
        markerEnd?: string;
        [cssProperty: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [cssProperty: string]: any

      Any additional CSS properties

    Index

    Properties

    fill?: string

    Fill color

    stroke?: string

    Stroke color

    strokeWidth?: number

    Stroke width in pixels

    opacity?: number

    Element opacity (0-1)

    size?: number

    Node size in pixels

    shape?: "circle" | "rectangle" | "square" | "triangle"

    Node shape

    className?: string

    Additional CSS class names

    filter?: string

    CSS filter effects

    strokeDasharray?: string

    Stroke dash pattern

    markerEnd?: string

    Arrow marker for edge end