@xeokit/xeokit-sdk 2.4.0-alpha-68 → 2.4.0-alpha-70

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.
@@ -18879,7 +18879,7 @@ class Perspective extends Component {
18879
18879
 
18880
18880
  const WIDTH_INDEX = 2;
18881
18881
  const HEIGHT_INDEX = 3;
18882
- const boundary = this.scene.viewport.boundary;
18882
+ const boundary = this.scene.canvas.boundary;
18883
18883
  const aspect = boundary[WIDTH_INDEX] / boundary[HEIGHT_INDEX];
18884
18884
  const fovAxis = this._fovAxis;
18885
18885
 
@@ -19181,7 +19181,7 @@ class Ortho extends Component {
19181
19181
  const scale = this._scale;
19182
19182
  const halfSize = 0.5 * scale;
19183
19183
 
19184
- const boundary = scene.viewport.boundary;
19184
+ const boundary = scene.canvas.boundary;
19185
19185
  const boundaryWidth = boundary[WIDTH_INDEX];
19186
19186
  const boundaryHeight = boundary[HEIGHT_INDEX];
19187
19187
  const aspect = boundaryWidth / boundaryHeight;
@@ -91457,8 +91457,8 @@ class MetaScene {
91457
91457
  } else {
91458
91458
  const newMetaModels = [];
91459
91459
  for (let j = 0, lenj = propertySet.metaModels.length; j < lenj; j++) {
91460
- if (propertySet.metaModels[i].id !== id) {
91461
- newMetaModels.push(propertySet.metaModels[i]);
91460
+ if (propertySet.metaModels[j].id !== id) {
91461
+ newMetaModels.push(propertySet.metaModels[j]);
91462
91462
  }
91463
91463
  }
91464
91464
  propertySet.metaModels = newMetaModels;
@@ -91481,9 +91481,9 @@ class MetaScene {
91481
91481
  } else {
91482
91482
  const newMetaModels = [];
91483
91483
  const metaModelId = metaModel.id;
91484
- for (let i = 0, len = metaObject.metaModels.length; i < len; i++) {
91485
- if (metaObject.metaModels[i].id !== metaModelId) {
91486
- newMetaModels.push(metaObject.metaModels[i]);
91484
+ for (let j = 0, lenj = metaObject.metaModels.length; j < lenj; j++) {
91485
+ if (metaObject.metaModels[j].id !== metaModelId) {
91486
+ newMetaModels.push(metaObject.metaModels[j]);
91487
91487
  }
91488
91488
  }
91489
91489
  metaObject.metaModels = newMetaModels;
@@ -18875,7 +18875,7 @@ class Perspective extends Component {
18875
18875
 
18876
18876
  const WIDTH_INDEX = 2;
18877
18877
  const HEIGHT_INDEX = 3;
18878
- const boundary = this.scene.viewport.boundary;
18878
+ const boundary = this.scene.canvas.boundary;
18879
18879
  const aspect = boundary[WIDTH_INDEX] / boundary[HEIGHT_INDEX];
18880
18880
  const fovAxis = this._fovAxis;
18881
18881
 
@@ -19177,7 +19177,7 @@ class Ortho extends Component {
19177
19177
  const scale = this._scale;
19178
19178
  const halfSize = 0.5 * scale;
19179
19179
 
19180
- const boundary = scene.viewport.boundary;
19180
+ const boundary = scene.canvas.boundary;
19181
19181
  const boundaryWidth = boundary[WIDTH_INDEX];
19182
19182
  const boundaryHeight = boundary[HEIGHT_INDEX];
19183
19183
  const aspect = boundaryWidth / boundaryHeight;
@@ -91453,8 +91453,8 @@ class MetaScene {
91453
91453
  } else {
91454
91454
  const newMetaModels = [];
91455
91455
  for (let j = 0, lenj = propertySet.metaModels.length; j < lenj; j++) {
91456
- if (propertySet.metaModels[i].id !== id) {
91457
- newMetaModels.push(propertySet.metaModels[i]);
91456
+ if (propertySet.metaModels[j].id !== id) {
91457
+ newMetaModels.push(propertySet.metaModels[j]);
91458
91458
  }
91459
91459
  }
91460
91460
  propertySet.metaModels = newMetaModels;
@@ -91477,9 +91477,9 @@ class MetaScene {
91477
91477
  } else {
91478
91478
  const newMetaModels = [];
91479
91479
  const metaModelId = metaModel.id;
91480
- for (let i = 0, len = metaObject.metaModels.length; i < len; i++) {
91481
- if (metaObject.metaModels[i].id !== metaModelId) {
91482
- newMetaModels.push(metaObject.metaModels[i]);
91480
+ for (let j = 0, lenj = metaObject.metaModels.length; j < lenj; j++) {
91481
+ if (metaObject.metaModels[j].id !== metaModelId) {
91482
+ newMetaModels.push(metaObject.metaModels[j]);
91483
91483
  }
91484
91484
  }
91485
91485
  metaObject.metaModels = newMetaModels;