@tawaship/pixim-animate-runtime - v0.1.0
    Preparing search index...

    Class CjsTransform

    A Pixi Transform whose rotation and skew follow createjs.

    • The createjs values (degrees) are kept as written, so that reading them back gives exactly what was written (a degrees -> radians -> degrees round trip does not)
    • Pixi's own fields carry the same values in Pixi's terms (rotation in radians, skew.x = -skewX, skew.y = skewY, all in radians), so code that uses the Pixi node sees consistent values. A write made through Pixi (node.rotation, node.skew) is taken over as the new createjs value
    • The local matrix is built the createjs way: skew x (rotation x scale), i.e. the object is rotated first and then skewed. Pixi composes rotation and skew the other way round (skewed, then rotated as a whole); the two agree only while the rotation is 0 or skewX equals skewY. Published content is the reference, so createjs's composition is used

    Hierarchy

    Index
    _currentLocalID: number

    The locally unique ID of the local transform used to calculate the current local transformation matrix.

    PIXI.Transform#_currentLocalID

    _cx: number

    The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.

    PIXI.Transform#_cx

    _cy: number

    The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.

    PIXI.Transform#_cy

    _localID: number

    The locally unique ID of the local transform.

    PIXI.Transform#_localID

    _parentID: number

    The locally unique ID of the parent's world transform used to calculate the current world transformation matrix.

    PIXI.Transform#_parentID

    _rotation: number

    The rotation amount.

    PIXI.Transform#_rotation

    _sx: number

    The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.

    PIXI.Transform#_sx

    _sy: number

    The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.

    PIXI.Transform#_sy

    _worldID: number

    The locally unique ID of the world transform.

    PIXI.Transform#_worldID

    degRotation: number

    createjs rotation, in degrees

    degSkewX: number

    createjs skewX / skewY, in degrees

    degSkewY: number
    localTransform: Matrix

    The local transformation matrix.

    PIXI.Transform#localTransform

    The pivot point of the displayObject that it rotates around.

    PIXI.Transform#pivot

    position: ObservablePoint

    The coordinate of the object relative to the local coordinates of the parent.

    PIXI.Transform#position

    rotation: number

    The rotation of the object in radians.

    The scale factor of the object.

    PIXI.Transform#scale

    The skew amount, on the x and y axis.

    PIXI.Transform#skew

    worldTransform: Matrix

    The world transformation matrix.

    PIXI.Transform#worldTransform

    IDENTITY: Transform

    A default (identity) transform

    • Protected

      Called when a value changes.

      Returns void

    • Decomposes a matrix and sets the transforms properties based on it.

      Parameters

      • matrix: Matrix

        The matrix to decompose

      Returns void

    • Parameters

      • degrees: number

      Returns void

    • Parameters

      • degrees: number

      Returns void

    • Parameters

      • degrees: number

      Returns void

    • Updates the local transformation matrix.

      Returns void

    • Protected

      Called when the skew or the rotation changes.

      Returns void

    • Updates the local and the world transformation matrices.

      Parameters

      • parentTransform: Transform

        The parent transform

      Returns void