parentWorldTransform property

Mat2D get parentWorldTransform

Returns the world transform of the parent component. Returns the identity if there is no parent (the artboard should be the only case here).

Implementation

Mat2D get parentWorldTransform => parent is WorldTransformComponent
    ? (parent as WorldTransformComponent).worldTransform
    : Mat2D.identity;