Skip to main content

ElementDragger

A helper class that uses VisuallyJs's drag management classes to offer a means to make arbitrary DOM elements draggable. They do not need to be children of a Surface canvas.

You can pass a single element or an array of elements to the constructor. SVG/HTML elements are supported. SVG child elements - such as circle, rect, g etc - are not.

Methods

destroy()

destroy(): void

Unregister all event handlers etc and release resources.

Returns

void