Skip to content

addTransformToObject

addTransformToObject(object, transform): void

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

object: BaseFabricObject<Partial<ObjectProps>, SerializedObjectProps, ObjectEvents>

the object you want to transform

transform: TMat2D

the destination transform

Returns

void

Defined in

src/util/misc/objectTransforms.ts:43