Current collected state Current
Observed since 20 Oct, 22:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
3D rotation input plugin for Tweakpane
@0b5vr/tweakpane-plugin-rotationRotation input plugin for Tweakpane

<script type="module">
import * as Tweakpane from 'https://unpkg.com/tweakpane@4.0.1/dist/tweakpane.js';
import * as TweakpaneRotationInputPlugin from './tweakpane-plugin-rotation.js';
const pane = new Tweakpane.Pane();
pane.registerPlugin(TweakpaneRotationInputPlugin);
const params = {
euler: { x: 0.0, y: 0.0, z: 0.0 },
quat: { x: 0.0, y: 0.0, z: 0.0, w: 1.0 },
};
// euler
const guiEuler = pane.addBinding(params, 'euler', {
view: 'rotation',
rotationMode: 'euler',
order: 'XYZ', // Extrinsic rotation order. optional, 'XYZ' by default
unit: 'deg', // or 'rad' or 'turn'. optional, 'rad' by default
});
// quaternion
const guiQuat = pane.addBinding(params, 'quat', {
view: 'rotation',
rotationMode: 'quaternion', // optional, 'quaternion' by default
picker: 'inline', // or 'popup'. optional, 'popup' by default
expanded: true, // optional, false by default
});
guiEuler.on('change', ({ value }) => {
console.log(value); // do something
});
</script>
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7ce8217b61fa6d27972dadb4f4c22ca863f360ce25bcc65fa1ec235b8e01fd9f