Skip to content

saveObjectTransform

saveObjectTransform(target): object

Defined in: src/util/misc/objectTransforms.ts:86

Extract Object transform values

Parameters

target

BaseFabricObject

object to read from

Returns

object

Components of transform

angle

angle: TDegree = target.angle

flipX

flipX: boolean = target.flipX

flipY

flipY: boolean = target.flipY

left

left: number = target.left

scaleX

scaleX: number = target.scaleX

scaleY

scaleY: number = target.scaleY

skewX

skewX: number = target.skewX

skewY

skewY: number = target.skewY

top

top: number = target.top