@expofp/renderer 3.1.3 → 3.1.5
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/dist/index.js +25 -1
- 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);
|
|
@@ -6950,6 +6974,7 @@ var ViewportSystem = class {
|
|
|
6950
6974
|
/** Stores the CSS-pixel sub-rect. Call {@link updateViewport} separately to apply it. */
|
|
6951
6975
|
set visibleRect(rect) {
|
|
6952
6976
|
this.visibleRectCss = rect;
|
|
6977
|
+
this.updateViewportRectPx();
|
|
6953
6978
|
}
|
|
6954
6979
|
/**
|
|
6955
6980
|
* Raycasts all loaded scenes and returns all visible intersections per scene.
|
|
@@ -6986,7 +7011,6 @@ var ViewportSystem = class {
|
|
|
6986
7011
|
* Should be called after a canvas resize or a {@link setVisibleRect} change.
|
|
6987
7012
|
*/
|
|
6988
7013
|
updateViewport() {
|
|
6989
|
-
this.updateViewportRectPx();
|
|
6990
7014
|
this.internalCameraSystem?.updateCamera();
|
|
6991
7015
|
this.sceneSystem.updateScene();
|
|
6992
7016
|
this.ctx.invalidate();
|