@tawaship/pixi-animate-container - v3.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 the matrix is built from exactly them (a degrees -> radians -> degrees round trip would not give them back)
    • 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 the values it always saw. A write made through Pixi (node.rotation, node.skew) is converted to degrees and used
    • The local matrix is built the createjs way (Matrix2D.appendTransform): skew x (rotation x scale), i.e. the object is rotated first and then skewed. Pixi composes them the other way round (skewed, then rotated as a whole); the two agree only while the rotation is 0 or skewX equals skewY. A rotation that is a multiple of 360 is taken as exactly none, as createjs does

    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 = 0

    createjs rotation, in degrees

    degSkewX: number = 0

    createjs skewX, in degrees

    degSkewY: number = 0

    createjs skewY, in degrees

    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

    • Updates the local transformation matrix.

      Returns void

    • Updates the local and the world transformation matrices.

      Parameters

      • parentTransform: Transform

        The parent transform

      Returns void