ThreeJS controls as standalone
npm install three-controls --save
import * as ThreeControls from 'three-controls'
let orbit = new ThreeControls.OrbitControls(camera, domElement)
function render() {
orbit.update()
renderer.render(scene, camera)
requestAnimationFrame(render)
}
or you can use like this
import {OrbitControls} from 'three-controls'
let orbit = new OrbitControls(camera, domElement)
function render() {
orbit.update()
renderer.render(scene, camera)
requestAnimationFrame(render)
}