@expofp/renderer 3.1.3 → 3.1.4

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.
Files changed (2) hide show
  1. package/dist/index.js +24 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -310,6 +310,7 @@ var BatchedMesh$1 = class BatchedMesh$1 extends BatchedMesh {
310
310
  uniformsTexture;
311
311
  uniformSchema = {};
312
312
  isMaterialPatched = false;
313
+ boundsNeedsUpdate = false;
313
314
  batchCount = 0;
314
315
  indexBuffer;
315
316
  geometryById = /* @__PURE__ */ new Map();
@@ -408,6 +409,19 @@ var BatchedMesh$1 = class BatchedMesh$1 extends BatchedMesh {
408
409
  }
409
410
  this.uniformsTexture.setUniformAt(instanceId, name, value);
410
411
  }
412
+ updateMatrixWorld(force) {
413
+ super.updateMatrixWorld(force);
414
+ if (this.boundsNeedsUpdate) {
415
+ this.computeBoundingBox();
416
+ this.computeBoundingSphere();
417
+ this.boundsNeedsUpdate = false;
418
+ }
419
+ }
420
+ setMatrixAt(instanceId, matrix) {
421
+ super.setMatrixAt(instanceId, matrix);
422
+ this.boundsNeedsUpdate = true;
423
+ return this;
424
+ }
411
425
  dispose() {
412
426
  if (this.indexBuffer) this.geometry.setIndex(this.indexBuffer);
413
427
  super.dispose();
@@ -6119,6 +6133,16 @@ var PitchHandler = class extends Handler {
6119
6133
  p0 = new Vector2();
6120
6134
  p1 = new Vector2();
6121
6135
  prevTwoFingerAction;
6136
+ /**
6137
+ * @param domElement {@link HTMLElement} instance
6138
+ * @param eventManager {@link EventManager} instance
6139
+ * @param cameraAccess {@link InternalCameraAccess} instance
6140
+ * @param coordinatesSystem {@link CoordinatesSystem} instance
6141
+ */
6142
+ constructor(domElement, eventManager, cameraAccess, coordinatesSystem) {
6143
+ super(domElement, eventManager, cameraAccess, coordinatesSystem);
6144
+ this.updatePolarAngles();
6145
+ }
6122
6146
  reset(enableTransition = true) {
6123
6147
  const polarAngle = this.enabled ? this.minPitch * DEG2RAD : 0;
6124
6148
  return this.controller.rotatePolarTo(polarAngle, enableTransition);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/renderer",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"