@xeokit/xeokit-sdk 2.4.0-alpha-67 → 2.4.0-alpha-69
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/xeokit-sdk.cjs.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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;
|
|
@@ -91119,10 +91119,10 @@ class MetaModel {
|
|
|
91119
91119
|
if (metaModelData.metaObjects) {
|
|
91120
91120
|
for (let i = 0, len = metaModelData.metaObjects.length; i < len; i++) {
|
|
91121
91121
|
const metaObjectData = metaModelData.metaObjects[i];
|
|
91122
|
+
const id = metaObjectData.id;
|
|
91122
91123
|
let metaObject = metaScene.metaObjects[id];
|
|
91123
91124
|
if (!metaObject) {
|
|
91124
91125
|
const type = metaObjectData.type;
|
|
91125
|
-
const id = metaObjectData.id;
|
|
91126
91126
|
const originalSystemId = metaObjectData.originalSystemId;
|
|
91127
91127
|
const propertySetIds = metaObjectData.propertySets || metaObjectData.propertySetIds;
|
|
91128
91128
|
metaObject = new MetaObject({
|
|
@@ -91139,7 +91139,7 @@ class MetaModel {
|
|
|
91139
91139
|
metaObject.metaModels.push(this);
|
|
91140
91140
|
if (!metaObjectData.parent) {
|
|
91141
91141
|
this.rootMetaObjects.push(metaObject);
|
|
91142
|
-
metaScene.rootMetaObjects[
|
|
91142
|
+
metaScene.rootMetaObjects[id] = metaObject;
|
|
91143
91143
|
}
|
|
91144
91144
|
this.metaObjects.push(metaObject);
|
|
91145
91145
|
}
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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;
|
|
@@ -91115,10 +91115,10 @@ class MetaModel {
|
|
|
91115
91115
|
if (metaModelData.metaObjects) {
|
|
91116
91116
|
for (let i = 0, len = metaModelData.metaObjects.length; i < len; i++) {
|
|
91117
91117
|
const metaObjectData = metaModelData.metaObjects[i];
|
|
91118
|
+
const id = metaObjectData.id;
|
|
91118
91119
|
let metaObject = metaScene.metaObjects[id];
|
|
91119
91120
|
if (!metaObject) {
|
|
91120
91121
|
const type = metaObjectData.type;
|
|
91121
|
-
const id = metaObjectData.id;
|
|
91122
91122
|
const originalSystemId = metaObjectData.originalSystemId;
|
|
91123
91123
|
const propertySetIds = metaObjectData.propertySets || metaObjectData.propertySetIds;
|
|
91124
91124
|
metaObject = new MetaObject({
|
|
@@ -91135,7 +91135,7 @@ class MetaModel {
|
|
|
91135
91135
|
metaObject.metaModels.push(this);
|
|
91136
91136
|
if (!metaObjectData.parent) {
|
|
91137
91137
|
this.rootMetaObjects.push(metaObject);
|
|
91138
|
-
metaScene.rootMetaObjects[
|
|
91138
|
+
metaScene.rootMetaObjects[id] = metaObject;
|
|
91139
91139
|
}
|
|
91140
91140
|
this.metaObjects.push(metaObject);
|
|
91141
91141
|
}
|