Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

@0b5vr/tweakpane-plugin-rotation

3D rotation input plugin for Tweakpane

Published6 Feb 2022
Direct dependencies21
Transitive dependenciesNot calculated

README

Current package documentation

@0b5vr/tweakpane-plugin-rotation

npm

Rotation input plugin for Tweakpane

@0b5vr/tweakpane-plugin-rotation, Rotation input plugin for tweakpane. A working screenshot of the plugin on the right

Sandbox

<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>

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 22

Native requirements
21 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@rollup/plugin-alias
Environment
{
  "local_name": "@rollup/plugin-alias",
  "alias": false,
  "peer_metadata": null
}
^3.1.2development
@rollup/plugin-node-resolve
Environment
{
  "local_name": "@rollup/plugin-node-resolve",
  "alias": false,
  "peer_metadata": null
}
^13.0.0development
@rollup/plugin-replace
Environment
{
  "local_name": "@rollup/plugin-replace",
  "alias": false,
  "peer_metadata": null
}
^2.4.1development
@rollup/plugin-typescript
Environment
{
  "local_name": "@rollup/plugin-typescript",
  "alias": false,
  "peer_metadata": null
}
^8.2.0development
@tweakpane/core
Environment
{
  "local_name": "@tweakpane/core",
  "alias": false,
  "peer_metadata": null
}
^1.0.8development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^4.15.2development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^4.15.2development
autoprefixer
Environment
{
  "local_name": "autoprefixer",
  "alias": false,
  "peer_metadata": null
}
^10.2.4development
downlevel-dts
Environment
{
  "local_name": "downlevel-dts",
  "alias": false,
  "peer_metadata": null
}
^0.7.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^7.20.0development
eslint-plugin-sort-imports-es6-autofix
Environment
{
  "local_name": "eslint-plugin-sort-imports-es6-autofix",
  "alias": false,
  "peer_metadata": null
}
^0.6.0development
node-sass
Environment
{
  "local_name": "node-sass",
  "alias": false,
  "peer_metadata": null
}
^6.0.0development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.5development
onchange
Environment
{
  "local_name": "onchange",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
postcss
Environment
{
  "local_name": "postcss",
  "alias": false,
  "peer_metadata": null
}
^8.2.6development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^3.0.2development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^2.39.1development
rollup-plugin-cleanup
Environment
{
  "local_name": "rollup-plugin-cleanup",
  "alias": false,
  "peer_metadata": null
}
^3.2.1development
rollup-plugin-terser
Environment
{
  "local_name": "rollup-plugin-terser",
  "alias": false,
  "peer_metadata": null
}
^7.0.2development
tweakpane
Environment
{
  "local_name": "tweakpane",
  "alias": false,
  "peer_metadata": null
}
^3.0.7development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.1.5development
tweakpane
Environment
{
  "local_name": "tweakpane",
  "alias": false,
  "peer_metadata": null
}
^3.0.7peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-lrunqnqP+tbzlYQbp6TLFU7MXvdpBv6fxoPuyx1Xez8ER8+SmsiiTp6QgBuRtQASSxmW9FgH8/uh5VEysYHTNw==",
  "shasum": "3fa315c9f7a3a4db63a67b9cdbda5e852fc5f16d",
  "tarball": "https://registry.npmjs.org/@0b5vr/tweakpane-plugin-rotation/-/tweakpane-plugin-rotation-0.1.0.tgz",
  "fileCount": 97,
  "unpackedSize": 209385,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/87rCRA9TVsSAnZWagAAgY0P/RwyLXYHKz02iUY5Lvxu\nZ2Xc6GLcObmBHdY1DDwUCcLBKwABRaNGwjCZVPumu964fW3ERaQ96YuQdIkn\n0mkTbcY/c+jez438O4EA+2L/BKKaKpvfY3+i9oXfH4Yq3c7vYyLLzPGKwDDI\nOX1fcZ0Tx3WgwDsCTfdHNuEeJJhetUqBs6+mCjYijaOeQNMeGCgvpgij4Jwe\n7kYkubRxOyxZRCaoVQU7qjwArZ4INVvvwSXXlneaRADk4outA0wnFi+ixSC0\n35kQ34LC2Xeyl/R0+3Wy2OTlGW3CFSCoAqtZimBS8ZmJco7jUoPmFLDAj3gf\nVoGZGgp2b0rdgl0+9d+tMfs0C4WPqqHxsD4GhBC0javpsiKrKBeHkVyeYGiJ\nvlTzX0fIyxh6OYpG7qBOxvLf2HhoxvduPe+JW9b60MDwONkWlLbg9XcDJORG\n/MMhhA6J4iLRjeMFXY7sHrj+s3ISmEiIeeiZzk7QQuuxqCwxQGoh9ic52eeW\nt8ddRCViRMx/fOOEkOCtzx/+3K7I8E942i7O4TMJqqJSiGk/k8+Prst/lEKf\nrKAjqyfKgcuPJmTHmkgvwdFAIhznrmYGSldVALMmBlZZ/Q1LLaj9pWcb1dr8\nQvMdHKf72TpweOJzInufwVN+IQG/JsmIUGE8y2eVmz+Rgp1eS+B7If9Mddab\n+zBj\r\n=/a7v\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQCDM7PwJ2lp/HWbbvuESSVGHAo9GKGreOpbp6J7WgwxtQIgQl9obkqiqgz9cK7j8q8eygsuywvQdRuRmMEbomt4tNs="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:04 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:6a3ecfdf2c00d3b489674e96ed3ed3c87a035fe0f87f4e1bd595e14be18d7d7a

Other collected versions

0.2.09 Nov0.1.121 Feb0.0.13 FebView all collected versions →