addTransformToObject
addTransformToObject(
object
,transform
):void
Defined in: src/util/misc/objectTransforms.ts:43
given an object and a transform, apply the transform to the object. this is equivalent to change the space where the object is drawn. Adding to an object a transform that scale by 2 is like scaling it by 2. This is used when removing an object from an active selection for example.
Parameters
Section titled “Parameters”object
Section titled “object”the object you want to transform
transform
Section titled “transform”the destination transform
Returns
Section titled “Returns”void