@xeokit/xeokit-sdk 2.4.2-beta-2 → 2.4.2-beta-4
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 +6 -2
- package/dist/xeokit-sdk.es.js +6 -2
- package/dist/xeokit-sdk.es5.js +1 -1
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/dist/xeokit-sdk.min.es5.js +1 -1
- package/package.json +1 -1
- package/src/viewer/metadata/MetaModel.js +6 -2
- package/types/viewer/metadata/MetaScene.d.ts +1 -1
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -89938,10 +89938,14 @@ class MetaModel {
|
|
|
89938
89938
|
// Globalize MetaObject IDs and parent IDs
|
|
89939
89939
|
|
|
89940
89940
|
metaObjectData.originalSystemId = metaObjectData.id;
|
|
89941
|
-
|
|
89941
|
+
if (metaObjectData.parent) {
|
|
89942
|
+
metaObjectData.originalParentSystemId = metaObjectData.parent;
|
|
89943
|
+
}
|
|
89942
89944
|
if (globalize) {
|
|
89943
89945
|
metaObjectData.id = math.globalizeObjectId(this.id, metaObjectData.id);
|
|
89944
|
-
|
|
89946
|
+
if (metaObjectData.parent) {
|
|
89947
|
+
metaObjectData.parent = math.globalizeObjectId(this.id, metaObjectData.parent);
|
|
89948
|
+
}
|
|
89945
89949
|
}
|
|
89946
89950
|
|
|
89947
89951
|
// Globalize MetaObject property set IDs
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -89934,10 +89934,14 @@ class MetaModel {
|
|
|
89934
89934
|
// Globalize MetaObject IDs and parent IDs
|
|
89935
89935
|
|
|
89936
89936
|
metaObjectData.originalSystemId = metaObjectData.id;
|
|
89937
|
-
|
|
89937
|
+
if (metaObjectData.parent) {
|
|
89938
|
+
metaObjectData.originalParentSystemId = metaObjectData.parent;
|
|
89939
|
+
}
|
|
89938
89940
|
if (globalize) {
|
|
89939
89941
|
metaObjectData.id = math.globalizeObjectId(this.id, metaObjectData.id);
|
|
89940
|
-
|
|
89942
|
+
if (metaObjectData.parent) {
|
|
89943
|
+
metaObjectData.parent = math.globalizeObjectId(this.id, metaObjectData.parent);
|
|
89944
|
+
}
|
|
89941
89945
|
}
|
|
89942
89946
|
|
|
89943
89947
|
// Globalize MetaObject property set IDs
|
package/dist/xeokit-sdk.es5.js
CHANGED
|
@@ -21930,7 +21930,7 @@ metaScene.metaObjectsByType={};for(var _objectId2 in metaScene.metaObjects){var
|
|
|
21930
21930
|
* Gets this MetaModel as JSON.
|
|
21931
21931
|
* @returns {{schema: (String|string|*), createdAt: (String|string|*), metaObjects: *[], author: (String|string|*), id: (String|Number|string|number|*), creatingApplication: (String|string|*), projectId: (String|Number|string|number|*), propertySets: *[]}}
|
|
21932
21932
|
*/},{key:"getJSON",value:function getJSON(){var json={id:this.id,projectId:this.projectId,author:this.author,createdAt:this.createdAt,schema:this.schema,creatingApplication:this.creatingApplication,metaObjects:[],propertySets:[]};for(var _i440=0,len=this.metaObjects.length;_i440<len;_i440++){var metaObject=this.metaObjects[_i440];var metaObjectCfg={id:metaObject.id,originalSystemId:metaObject.originalSystemId,extId:metaObject.extId,type:metaObject.type,name:metaObject.name};if(metaObject.parent){metaObjectCfg.parent=metaObject.parent.id;}if(metaObject.attributes){metaObjectCfg.attributes=metaObject.attributes;}if(metaObject.propertySetIds){metaObjectCfg.propertySetIds=metaObject.propertySetIds;}json.metaObjects.push(metaObjectCfg);}for(var _i441=0,_len97=this.propertySets.length;_i441<_len97;_i441++){var propertySet=this.propertySets[_i441];var propertySetCfg={id:propertySet.id,originalSystemId:propertySet.originalSystemId,extId:propertySet.extId,type:propertySet.type,name:propertySet.name,propertyies:[]};for(var j=0,lenj=propertySet.properties.length;j<lenj;j++){var property=propertySet.properties[j];var propertyCfg={id:property.id,description:property.description,type:property.type,name:property.name,value:property.value,valueType:property.valueType};propertySetCfg.properties.push(propertyCfg);}json.propertySets.push(propertySetCfg);}return json;}},{key:"_globalizeIDs",value:function _globalizeIDs(metaModelData,options){var globalize=!!options.globalizeObjectIds;if(metaModelData.metaObjects){for(var _i442=0,len=metaModelData.metaObjects.length;_i442<len;_i442++){var metaObjectData=metaModelData.metaObjects[_i442];// Globalize MetaObject IDs and parent IDs
|
|
21933
|
-
metaObjectData.originalSystemId=metaObjectData.id;metaObjectData.originalParentSystemId=metaObjectData.parent;if(globalize){metaObjectData.id=math.globalizeObjectId(this.id,metaObjectData.id);metaObjectData.parent=math.globalizeObjectId(this.id,metaObjectData.parent);}// Globalize MetaObject property set IDs
|
|
21933
|
+
metaObjectData.originalSystemId=metaObjectData.id;if(metaObjectData.parent){metaObjectData.originalParentSystemId=metaObjectData.parent;}if(globalize){metaObjectData.id=math.globalizeObjectId(this.id,metaObjectData.id);if(metaObjectData.parent){metaObjectData.parent=math.globalizeObjectId(this.id,metaObjectData.parent);}}// Globalize MetaObject property set IDs
|
|
21934
21934
|
if(globalize){var propertySetIds=metaObjectData.propertySetIds;if(propertySetIds){var propertySetGlobalIds=[];for(var j=0,lenj=propertySetIds.length;j<lenj;j++){propertySetGlobalIds.push(math.globalizeObjectId(this.id,propertySetIds[j]));}metaObjectData.propertySetIds=propertySetGlobalIds;metaObjectData.originalSystemPropertySetIds=propertySetIds;}}else{metaObjectData.originalSystemPropertySetIds=metaObjectData.propertySetIds;}}}// Globalize global PropertySet IDs
|
|
21935
21935
|
if(metaModelData.propertySets){for(var _i443=0,_len98=metaModelData.propertySets.length;_i443<_len98;_i443++){var propertySet=metaModelData.propertySets[_i443];propertySet.originalSystemId=propertySet.id;if(globalize){propertySet.id=math.globalizeObjectId(this.id,propertySet.id);}}}}}]);return MetaModel;}();/**
|
|
21936
21936
|
* @desc Metadata corresponding to a {@link Scene}.
|