three-base 2.0.18 → 2.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ThreeBase.js CHANGED
@@ -149,11 +149,11 @@ export default class ThreeBase extends EventDispatcher {
149
149
  const controlsPosition = new Transition({ x: 100, y: 100, z: 100 });
150
150
  controlsPosition.setDuration(1000);
151
151
  controlsPosition.onChange(({ x, y, z }) => {
152
- const distance = this.controlsDistance.get("distance");
153
- this.camera.position.set(x, y, z)
154
- .sub(this.controls.target)
155
- .setLength(distance)
156
- .add(this.controls.target);
152
+ // const distance = this.controlsDistance.get("distance");
153
+ this.camera.position.set(x, y, z);
154
+ // .sub(this.controls.target)
155
+ // .setLength(distance)
156
+ // .add(this.controls.target);
157
157
  this.camera.lookAt(this.controls.target);
158
158
  this.needRender = true;
159
159
  });
package/ThreeBase.ts CHANGED
@@ -177,11 +177,11 @@ export default class ThreeBase extends EventDispatcher {
177
177
  const controlsPosition = new Transition({ x: 100, y: 100, z: 100 });
178
178
  controlsPosition.setDuration(1000);
179
179
  controlsPosition.onChange(({ x, y, z }) => {
180
- const distance = this.controlsDistance.get("distance");
180
+ // const distance = this.controlsDistance.get("distance");
181
181
  this.camera.position.set(x, y, z)
182
- .sub(this.controls.target)
183
- .setLength(distance)
184
- .add(this.controls.target);
182
+ // .sub(this.controls.target)
183
+ // .setLength(distance)
184
+ // .add(this.controls.target);
185
185
 
186
186
  this.camera.lookAt(this.controls.target);
187
187
  this.needRender = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "description": "three 3d three-base",
5
5
  "repository": {
6
6
  "type": "git",