ts-visio - v1.16.27
    Preparing search index...

    Interface ConnectionPointDef

    Definition of a single connection point on a shape. Positions are expressed as fractions of the shape's width/height (0.0 = left/bottom, 1.0 = right/top in Visio's coordinate system).

    interface ConnectionPointDef {
        direction?: { x: number; y: number };
        name?: string;
        prompt?: string;
        type?: ConnectionPointType;
        xFraction: number;
        yFraction: number;
    }
    Index

    Properties

    direction?: { x: number; y: number }

    Glue direction vector. Defaults to { x: 0, y: 0 } (no preferred direction).

    name?: string

    Optional display name (e.g. 'Top', 'Right'). Referenced when connecting by name.

    prompt?: string

    Optional tooltip shown in the Visio UI.

    Connection point type. Defaults to 'inward'.

    xFraction: number

    Horizontal position as a fraction of shape width. 0 = left edge, 1 = right edge.

    yFraction: number

    Vertical position as a fraction of shape height. 0 = bottom edge, 1 = top edge.