Loading files
3b39095a9This file is pinned to the selected release. Download the original to open it in your design tool.
const html = require('nanohtml')
const viewerControls = (state, i18n) => html`
<div id='controls'>
<label for="toggleGrid">${i18n`grid`}</label>
<input type="checkbox" id="toggleGrid" checked=${state.viewer.grid.show} />
<label for="toggleAxes">${i18n`axes`}</label>
<input type="checkbox" id="toggleAxes" checked=${state.viewer.axes.show} />
<label for="toggleAutoRotate">${i18n`auto rotate`}</label>
<input type="checkbox" id="toggleAutoRotate" checked=${state.viewer.rendering.autoRotate}/>
</div>`
module.exports = viewerControls