Autodesk.Viewing.Extensions
SnappingExtension
Utility extension that provides access to the Autodesk.Viewing.Extensions.Snapping.Snapper tool.
The extension id is: Autodesk.Snapping
new SnappingExtension(viewer, options)
Parameters
viewer* | Viewer instance |
options* object | Configurations for the extension |
* Required
Examples
viewer.loadExtension('Autodesk.Snapping')
Methods
load()
Load the extension.
Returns
type | description |
---|---|
Promise | that resolves when dependent extension finishes loading. |
unload()
Unloads the extension. It does not unload dependent extensions.
Returns
type | description |
---|---|
boolean | Always returns true |
activate()
Unused method.
Returns
type | description |
---|---|
boolean | Always returns true |
deactivate()
Unused method.
Returns
type | description |
---|---|
boolean | Always returns false |