Skip to content

270 Degrees Customiser Plugin

Installation

  1. Load the plugin script after you have loaded the Viewer script.
<script src="https://api.270degrees.nl/api/script/latest/customiser.js"></script>
  1. 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
    }
});