libavoid-js
    Preparing search index...

    Interface ShapePinOptions

    Options of ShapeRef.addPin.

    libavoid: the arguments of the 7-argument ShapeConnectionPin constructor.

    interface ShapePinOptions {
        classId: number;
        x: number;
        y: number;
        proportional?: boolean;
        insideOffset?: number;
        directions?: number;
    }
    Index
    classId: number

    Pin class id (≥ 1). Connectors attach to a class with {shape, pin: classId}. If several pins of the shape share the class, the router picks the best one for each connector.

    x: number

    Offset from the left side: a fraction of the width if proportional.

    y: number

    Offset from the top side: a fraction of the height if proportional.

    proportional?: boolean

    Default true. If false, x/y are absolute offsets.

    insideOffset?: number

    Distance to move the pin inside the shape. Default 0.

    directions?: number

    Directions connectors may leave in. Default ConnDirAll.