@mcolabs/threebox-plugin 4.0.2 → 4.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcolabs/threebox-plugin",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "type": "module",
5
5
  "description": "A Three.js plugin for Mapbox GL JS, using the CustomLayerInterface feature. Provides convenient methods to manage objects in lnglat coordinates, and to synchronize the map and scene cameras.",
6
6
  "main": "dist/threebox.cjs",
@@ -456,7 +456,6 @@ AnimationManager.prototype = {
456
456
  if (item.type === 'playDefault') {
457
457
  object.activateAllActions();
458
458
  object.isPlaying = true;
459
- object.animationMethod = requestAnimationFrame(this.update);
460
459
  object.mixer.update(object.clock.getDelta());
461
460
  object.threebox.map.repaint = true;
462
461
  }
@@ -13,13 +13,11 @@ function CameraSync(map, camera, world) {
13
13
  this.active = true;
14
14
 
15
15
  this.camera.matrixAutoUpdate = false; // We're in charge of the camera now!
16
- this.camera.matrixWorldAutoUpdate = false; // Three.js r150+: prevent auto world matrix recalculation
17
16
 
18
17
  // Postion and configure the world group so we can scale it appropriately when the camera zooms
19
18
  this.world = world || new THREE.Group();
20
19
  this.world.position.x = this.world.position.y = ThreeboxConstants.WORLD_SIZE / 2
21
20
  this.world.matrixAutoUpdate = false;
22
- this.world.matrixWorldAutoUpdate = false; // Three.js r150+: prevent auto world matrix recalculation
23
21
 
24
22
  // set up basic camera state
25
23
  this.state = {