meo-canvas
    Preparing search index...

    Interface Transform

    Moving, turning and scaling a node after layout.

    v1's field names, which are CSS's split apart: translateX rather than a translate(…) string, because a caller composing one from data should not have to build a string for a renderer to parse back.

    interface Transform {
        originX?: Length;
        originY?: Length;
        rotate?: number;
        scale?: number;
        scaleX?: number;
        scaleY?: number;
        translateX?: Length;
        translateY?: Length;
    }
    Index
    originX?: Length

    The point it turns and scales about, from the left edge. Defaults to the middle.

    originY?: Length

    The point it turns and scales about, from the top edge. Defaults to the middle.

    rotate?: number

    Rotation in degrees, clockwise.

    scale?: number

    Both scale factors at once.

    A convenience v1 has: scaleX or scaleY beside it wins on that axis.

    scaleX?: number

    Horizontal scale factor.

    scaleY?: number

    Vertical scale factor.

    translateX?: Length

    Horizontal movement.

    translateY?: Length

    Vertical movement.