Skip to content

wrapWithFixedAnchor

wrapWithFixedAnchor<T>(actionHandler): TransformActionHandler<T>

Wrap an action handler with saving/restoring object position on the transform. this is the code that permits to objects to keep their position while transforming.

Type Parameters

T extends Transform

Parameters

actionHandler: TransformActionHandler<T>

the function to wrap

Returns

TransformActionHandler<T>

a function with an action handler signature

Defined in

src/controls/wrapWithFixedAnchor.ts:9