@expofp/renderer 3.1.4 → 3.1.6

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6818,7 +6818,7 @@ var SceneSystem = class {
6818
6818
  }
6819
6819
  /** Iterator over all registered scene states */
6820
6820
  get sceneStates() {
6821
- return this.mapIdToSceneState.values().toArray();
6821
+ return Array.from(this.mapIdToSceneState.values());
6822
6822
  }
6823
6823
  /**
6824
6824
  * Get the scale factor for a given scene.
@@ -6974,6 +6974,7 @@ var ViewportSystem = class {
6974
6974
  /** Stores the CSS-pixel sub-rect. Call {@link updateViewport} separately to apply it. */
6975
6975
  set visibleRect(rect) {
6976
6976
  this.visibleRectCss = rect;
6977
+ this.updateViewportRectPx();
6977
6978
  }
6978
6979
  /**
6979
6980
  * Raycasts all loaded scenes and returns all visible intersections per scene.
@@ -7010,7 +7011,6 @@ var ViewportSystem = class {
7010
7011
  * Should be called after a canvas resize or a {@link setVisibleRect} change.
7011
7012
  */
7012
7013
  updateViewport() {
7013
- this.updateViewportRectPx();
7014
7014
  this.internalCameraSystem?.updateCamera();
7015
7015
  this.sceneSystem.updateScene();
7016
7016
  this.ctx.invalidate();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/renderer",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"