This version of the ShapeDiver viewer is no longer supported.
Please refer to the version 3 documentation here. See also the migration guide from version 2 to version 3 here.
Get all possible event types.
"drag.end"
"drag.move"
"drag.start"
Add an anchor element that can snap to the snap elements.
the ID of the created element
Add an event listener for the specified type with the specified callback.
Add a line which can be snapped to.
the ID of the created element
Add a point which can be snapped to.
the ID of the created element
Remove an anchor element from the list of anchor elements.
Remove an event listener.
Remove a line from the list of lines which can be snapped to.
Remove a point from the list of points which can be snapped to.
Creates the SnapModule.
Cannot be created without the api reference.