Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

orbit-controls-es6

silviopaganini1.7kUnlicense2.0.1

Threejs orbit controls update for ES6

readme

Orbit Controls ES6

Little update to Orbit Controls from three.js to support ES6 modules

Install

npm i orbit-controls-es6 --save

Example

import OrbitControls from 'orbit-controls-es6';

const controls = new OrbitControls(camera, renderer.domElement);
controls.enabled = true;
controls.maxDistance = 1500;
controls.minDistance = 0;