subTransform property

set subTransform (PcanvasTransform transform2)

Sets transform to a sub-transformation, merging the current transform with transform2.

Implementation

set subTransform(PcanvasTransform transform2) {
  if (transform2.isZeroTransformation) return;

  var prevT = transform;
  if (prevT.isZeroTransformation) {
    transform = transform2;
  } else {
    var subT = transform + transform2;
    transform = subT;
  }
}