@xeokit/xeokit-sdk 2.4.0-alpha-44 → 2.4.0-alpha-45
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
|
@@ -103094,7 +103094,13 @@ class MetaObject {
|
|
|
103094
103094
|
this.type = params.type;
|
|
103095
103095
|
|
|
103096
103096
|
/**
|
|
103097
|
-
*
|
|
103097
|
+
* IDs of PropertySets associated with this MetaObject.
|
|
103098
|
+
* @type {[]|*}
|
|
103099
|
+
*/
|
|
103100
|
+
this.propertySetIds = params.propertySetIds;
|
|
103101
|
+
|
|
103102
|
+
/**
|
|
103103
|
+
* The {@link PropertySet}s associated with this MetaObject.
|
|
103098
103104
|
*
|
|
103099
103105
|
* @property propertySets
|
|
103100
103106
|
* @type {PropertySet[]}
|
|
@@ -103521,6 +103527,7 @@ class MetaScene {
|
|
|
103521
103527
|
const metaObjectData = metaModelData.metaObjects[i];
|
|
103522
103528
|
const type = metaObjectData.type;
|
|
103523
103529
|
const id = metaObjectData.id;
|
|
103530
|
+
const propertySetIds = metaObjectData.propertySets | metaObjectData.propertySetIds;
|
|
103524
103531
|
let metaObject = this.metaObjects[id];
|
|
103525
103532
|
if (!metaObject) {
|
|
103526
103533
|
metaObject = new MetaObject({
|
|
@@ -103528,7 +103535,7 @@ class MetaScene {
|
|
|
103528
103535
|
parentId: metaObjectData.parent,
|
|
103529
103536
|
type,
|
|
103530
103537
|
name: metaObjectData.name,
|
|
103531
|
-
propertySetIds
|
|
103538
|
+
propertySetIds
|
|
103532
103539
|
});
|
|
103533
103540
|
this.metaObjects[id] = metaObject;
|
|
103534
103541
|
}
|
|
@@ -103548,6 +103555,19 @@ class MetaScene {
|
|
|
103548
103555
|
if (metaObject.children) {
|
|
103549
103556
|
metaObject.children = [];
|
|
103550
103557
|
}
|
|
103558
|
+
|
|
103559
|
+
// Re-link each MetaObject's property sets
|
|
103560
|
+
|
|
103561
|
+
if (metaObject.propertySets) {
|
|
103562
|
+
metaObject.propertySets = [];
|
|
103563
|
+
}
|
|
103564
|
+
if (metaObject.propertySetIds) {
|
|
103565
|
+
for (let i = 0, len = metaObject.propertySetIds.length; i < len; i++) {
|
|
103566
|
+
const propertySetId = metaObject.propertySetIds[i];
|
|
103567
|
+
const propertySet = this.propertySets[propertySetId];
|
|
103568
|
+
metaObject.propertySets.push(propertySet);
|
|
103569
|
+
}
|
|
103570
|
+
}
|
|
103551
103571
|
}
|
|
103552
103572
|
|
|
103553
103573
|
for (let objectId in this.metaObjects) {
|
|
@@ -103594,14 +103614,18 @@ class MetaScene {
|
|
|
103594
103614
|
|
|
103595
103615
|
// Globalize MetaObject property set IDs
|
|
103596
103616
|
|
|
103597
|
-
|
|
103598
|
-
|
|
103599
|
-
|
|
103600
|
-
|
|
103601
|
-
|
|
103617
|
+
if (globalize) {
|
|
103618
|
+
const propertySetIds = metaObjectData.propertySetIds;
|
|
103619
|
+
if (propertySetIds) {
|
|
103620
|
+
const propertySetGlobalIds = [];
|
|
103621
|
+
for (let j = 0, lenj = propertySetIds.length; j < lenj; j++) {
|
|
103622
|
+
propertySetGlobalIds.push(math.globalizeObjectId(modelId, propertySetIds[j]));
|
|
103623
|
+
}
|
|
103624
|
+
metaObjectData.propertySetIds = propertySetGlobalIds;
|
|
103625
|
+
metaObjectData.originalSystemPropertySetIds = propertySetIds;
|
|
103602
103626
|
}
|
|
103603
|
-
|
|
103604
|
-
metaObjectData.originalSystemPropertySetIds = propertySetIds;
|
|
103627
|
+
} else {
|
|
103628
|
+
metaObjectData.originalSystemPropertySetIds = metaObjectData.propertySetIds;
|
|
103605
103629
|
}
|
|
103606
103630
|
}
|
|
103607
103631
|
}
|
|
@@ -103684,6 +103708,19 @@ class MetaScene {
|
|
|
103684
103708
|
if (metaObject.children) {
|
|
103685
103709
|
metaObject.children = [];
|
|
103686
103710
|
}
|
|
103711
|
+
|
|
103712
|
+
// Re-link each MetaObject's property sets
|
|
103713
|
+
|
|
103714
|
+
if (metaObject.propertySets) {
|
|
103715
|
+
metaObject.propertySets = [];
|
|
103716
|
+
}
|
|
103717
|
+
if (metaObject.propertySetIds) {
|
|
103718
|
+
for (let i = 0, len = metaObject.propertySetIds.length; i < len; i++) {
|
|
103719
|
+
const propertySetId = metaObject.propertySetIds[i];
|
|
103720
|
+
const propertySet = this.propertySets[propertySetId];
|
|
103721
|
+
metaObject.propertySets.push(propertySet);
|
|
103722
|
+
}
|
|
103723
|
+
}
|
|
103687
103724
|
}
|
|
103688
103725
|
|
|
103689
103726
|
this.metaObjectsByType = {};
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -103090,7 +103090,13 @@ class MetaObject {
|
|
|
103090
103090
|
this.type = params.type;
|
|
103091
103091
|
|
|
103092
103092
|
/**
|
|
103093
|
-
*
|
|
103093
|
+
* IDs of PropertySets associated with this MetaObject.
|
|
103094
|
+
* @type {[]|*}
|
|
103095
|
+
*/
|
|
103096
|
+
this.propertySetIds = params.propertySetIds;
|
|
103097
|
+
|
|
103098
|
+
/**
|
|
103099
|
+
* The {@link PropertySet}s associated with this MetaObject.
|
|
103094
103100
|
*
|
|
103095
103101
|
* @property propertySets
|
|
103096
103102
|
* @type {PropertySet[]}
|
|
@@ -103517,6 +103523,7 @@ class MetaScene {
|
|
|
103517
103523
|
const metaObjectData = metaModelData.metaObjects[i];
|
|
103518
103524
|
const type = metaObjectData.type;
|
|
103519
103525
|
const id = metaObjectData.id;
|
|
103526
|
+
const propertySetIds = metaObjectData.propertySets | metaObjectData.propertySetIds;
|
|
103520
103527
|
let metaObject = this.metaObjects[id];
|
|
103521
103528
|
if (!metaObject) {
|
|
103522
103529
|
metaObject = new MetaObject({
|
|
@@ -103524,7 +103531,7 @@ class MetaScene {
|
|
|
103524
103531
|
parentId: metaObjectData.parent,
|
|
103525
103532
|
type,
|
|
103526
103533
|
name: metaObjectData.name,
|
|
103527
|
-
propertySetIds
|
|
103534
|
+
propertySetIds
|
|
103528
103535
|
});
|
|
103529
103536
|
this.metaObjects[id] = metaObject;
|
|
103530
103537
|
}
|
|
@@ -103544,6 +103551,19 @@ class MetaScene {
|
|
|
103544
103551
|
if (metaObject.children) {
|
|
103545
103552
|
metaObject.children = [];
|
|
103546
103553
|
}
|
|
103554
|
+
|
|
103555
|
+
// Re-link each MetaObject's property sets
|
|
103556
|
+
|
|
103557
|
+
if (metaObject.propertySets) {
|
|
103558
|
+
metaObject.propertySets = [];
|
|
103559
|
+
}
|
|
103560
|
+
if (metaObject.propertySetIds) {
|
|
103561
|
+
for (let i = 0, len = metaObject.propertySetIds.length; i < len; i++) {
|
|
103562
|
+
const propertySetId = metaObject.propertySetIds[i];
|
|
103563
|
+
const propertySet = this.propertySets[propertySetId];
|
|
103564
|
+
metaObject.propertySets.push(propertySet);
|
|
103565
|
+
}
|
|
103566
|
+
}
|
|
103547
103567
|
}
|
|
103548
103568
|
|
|
103549
103569
|
for (let objectId in this.metaObjects) {
|
|
@@ -103590,14 +103610,18 @@ class MetaScene {
|
|
|
103590
103610
|
|
|
103591
103611
|
// Globalize MetaObject property set IDs
|
|
103592
103612
|
|
|
103593
|
-
|
|
103594
|
-
|
|
103595
|
-
|
|
103596
|
-
|
|
103597
|
-
|
|
103613
|
+
if (globalize) {
|
|
103614
|
+
const propertySetIds = metaObjectData.propertySetIds;
|
|
103615
|
+
if (propertySetIds) {
|
|
103616
|
+
const propertySetGlobalIds = [];
|
|
103617
|
+
for (let j = 0, lenj = propertySetIds.length; j < lenj; j++) {
|
|
103618
|
+
propertySetGlobalIds.push(math.globalizeObjectId(modelId, propertySetIds[j]));
|
|
103619
|
+
}
|
|
103620
|
+
metaObjectData.propertySetIds = propertySetGlobalIds;
|
|
103621
|
+
metaObjectData.originalSystemPropertySetIds = propertySetIds;
|
|
103598
103622
|
}
|
|
103599
|
-
|
|
103600
|
-
metaObjectData.originalSystemPropertySetIds = propertySetIds;
|
|
103623
|
+
} else {
|
|
103624
|
+
metaObjectData.originalSystemPropertySetIds = metaObjectData.propertySetIds;
|
|
103601
103625
|
}
|
|
103602
103626
|
}
|
|
103603
103627
|
}
|
|
@@ -103680,6 +103704,19 @@ class MetaScene {
|
|
|
103680
103704
|
if (metaObject.children) {
|
|
103681
103705
|
metaObject.children = [];
|
|
103682
103706
|
}
|
|
103707
|
+
|
|
103708
|
+
// Re-link each MetaObject's property sets
|
|
103709
|
+
|
|
103710
|
+
if (metaObject.propertySets) {
|
|
103711
|
+
metaObject.propertySets = [];
|
|
103712
|
+
}
|
|
103713
|
+
if (metaObject.propertySetIds) {
|
|
103714
|
+
for (let i = 0, len = metaObject.propertySetIds.length; i < len; i++) {
|
|
103715
|
+
const propertySetId = metaObject.propertySetIds[i];
|
|
103716
|
+
const propertySet = this.propertySets[propertySetId];
|
|
103717
|
+
metaObject.propertySets.push(propertySet);
|
|
103718
|
+
}
|
|
103719
|
+
}
|
|
103683
103720
|
}
|
|
103684
103721
|
|
|
103685
103722
|
this.metaObjectsByType = {};
|