Skip to main content

plugins

TypeArray<View360Plugin>
Default[]
Added inv4.0.0

Add plugins to View360.
See Guide for a list of available plugins.

To add plugins at anytime, you can use View360#addPlugins.
To remove the added plugins, you can use View360#removePlugins.

You can use View360#plugins for a list of currently active plugins.

Example

const viewer = new View360("#el_id", {
plugins: [new ControlBar()]
});

console.log(viewer.plugins); // [ControlBar]

viewer.addPlugins(new LoadingSpinner()) // [ControlBar, LoadingSpinner];