Package Exports
- wge-threejs-controls
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wge-threejs-controls) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Threejs Controls as modules using UMD (Universal Module Definition)
This project aims to make it easier to work with controls as modules instead of having to manually copy the files from the examples/controls folder.
Install
npm i --save threejs-controls
or
yarn add threejs-controls
Usage
AMD
define(['threejs-controls/EditorControls'], function(EditorControls) {
var control = new EditorControls(parameters);
});
CommonJS
var EditorControls = require('threejs-controls/EditorControls');
var control = new EditorControls(parameters);
ES6 imports
import EditorControls from 'threejs-controls/EditorControls';
const control = new EditorControls(paramenters);
Includes
- DeviceOrientationControls
- DragControls
- EditorControls
- FirstPersonControls
- FlyControls
- OrbitControls
- OrthographicTrackballControls
- PointerLockControls
- TrackballControls
- TransformControls
- VRControls
Tested Controls
- EditorControls
- OrbitControls
- TrackballControls
- TransformControls
TODO
- Test the remaining controls