onShapeEvents([callback], [remove])

Class: Window.

Description:

Gets, registers, and unregisters and event handler for shapes events, when shape is added, removes and pointer interaction with shapes.

Parameters:

Name Type Default Description

[callback]

function

Event handler callback function that accepts an event Object

[remove]

boolean

false

Set to true to unregister the event handler.

Returns:

Returns an array of previously set handler functions if no arguments are provided, otherwise returns this Window component.

Type: Window | Array.<function()>