-
-
Notifications
You must be signed in to change notification settings - Fork 390
Closed
Description
Components
-
WHS.Model
->WHS.Importer
Reason: can handle group of objects
Modules
-
WHS.app.ModuleName
->WHS.ModuleName
Maintainance
- Remove
compact
version
Presets
- Make
TestApp
class that will behave like anApp
withBasicAppPreset
ControlsModule
A lot of Three.js controls have similar API (.update()
, ...).
We can make a ControlsModule
which will take:
-
A Three.js controls instance.
-
fix()
- same as inTextureModule
. Allows you to make changes to controls before they are added. -
Concept
const controlsModule = new ControlsModule({
controls: new THREE.OrbitControls(),
fix(controls) {
controls.customParameter = value;
return controls;
}
});
const app = new App([
// ...
controlsModule
]);
app.start();
- Get original controls
console.log(controlsModule.controls); // THREE.OrbitControls
- Shorter way
const app = new App([
// ...
ControlsModule.from(new THREE.OrbitControls())
]);
Version:
- v2.x.x
- v1.x.x
Issue type:
- Bug
- Proposal/Enhancement
- Question
- Discussion
Tested on:
Desktop
- Chrome
- Chrome Canary
- Chrome dev-channel
- Firefox
- Opera
- Microsoft IE
- Microsoft Edge
Android
- Chrome
- Firefox
- Opera
IOS
- Chrome
- Firefox
- Opera