This is called by Viewport to initialize the plugins.
Classes
Methods
-
Inserts a named plugin or a user plugin into the viewport default plugin order: 'drag', 'pinch', 'wheel', 'follow', 'mouse-edges', 'decelerate', 'bounce', 'snap-zoom', 'clamp-zoom', 'snap', 'clamp'
Name Type Description name
string of plugin
plugin
Plugin instantiated Plugin class
index
number to insert userPlugin (otherwise inserts it at the end)
-
Get plugin
Name Type Description name
string of plugin
ignorePaused
boolean optional return null if plugin is paused
-
Pause plugin
Name Type Description name
string of plugin (e.g., 'drag', 'pinch')
-
Removes installed plugin
Name Type Description name
string of plugin (e.g., 'drag', 'pinch')
-
removes all installed plugins
-
Clamps and resets bounce and decelerate (as needed) after manually moving viewport
-
Resume plugin
Name Type Description name
string of plugin (e.g., 'drag', 'pinch')