270 Degrees Customiser Plugin¶
Installation¶
- Load the plugin script after you have loaded the Viewer script.
<script src="https://api.270degrees.nl/api/script/latest/customiser.js"></script>
- Attach the plugin to your viewer automatically:
TSDViewer.create(element, {
plugins: 'customiser'
})
<div class="js-270viewer" data-270-plugins="customiser">
Or attach it via javascript after TSDViewer.create()
:
TSDCustomiser.attach(element, {
onAttach: () => {
// attached the plugin methods
}
});