is the three.js OrbitControls from official repo examples
All credit goes to OrbitControls.js contributors. I have just stolen the code and modified to export it as a module so you can do something like
var THREE =var OrbitControls =// Init THREE scene (add your code)var camera = 75 width / height 01 1000camerapositionz = 5var renderer = canvasvar controls = camera rendererdomElementcontrolsenableDamping = truecontrolsdampingFactor = 025controlsenableZoom = false
Please note that:
OrbitControlsdirectly instead of
npm install three three-orbitcontrols --save
I am using this package for my 3d tic tac toe online game.