g3-toolkit API Reference
    Preparing search index...

    Interface StructuralPort

    A boundary port on a container or plain node.

    interface StructuralPort {
        id: string;
        side?: PortSide;
        size?: number;
    }
    Index

    Properties

    Properties

    id: string
    side?: PortSide

    Side to fix the port to. Optional: when omitted it defaults to the flow axis (e.g. EAST/WEST for a RIGHT/LEFT layout), so data-flow ports sit on the left/right of a container by default. A port used as an edge's sourcePort defaults to the flow-forward side, as a targetPort to the flow-backward side.

    size?: number

    Square size in px (default 12; sized to carry a direction glyph when ports learn flow direction).