跳转到内容

sendObjectToPlane

sendObjectToPlane(object, from?, to?): TMat2D

Parameters

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

from?: TMat2D

plane matrix containing object. Passing undefined is equivalent to passing the identity matrix, which means object is a direct child of canvas.

to?: TMat2D

destination plane matrix to contain object. Passing undefined means object should be sent to the canvas coordinate plane.

Returns

TMat2D

the transform matrix that was applied to object

Defined in

src/util/misc/planeChange.ts:81