Skip to main content

Function: cancelActiveManipulations()

cancelActiveManipulations(element): string | undefined

Cancel the current active manipulation that is being performed on the provided element. It filters all the active and passive tools for the enabledElement and calls cancel() method for all of them, and returns the tool that has executed its cancellation (returned its annotationUID), since tools that are not being manipulated will short circuit early. Note: not all tools currently implement a cancel method.

Parameters

element: HTMLDivElement

canvas element

Returns

string | undefined

annotationUID that is cancelled

Defined in

tools/src/store/cancelActiveManipulations.ts:15