Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Nov 10, 2023
1 parent d02b1a1 commit 35cf0e0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
8 changes: 6 additions & 2 deletions dist/xeokit-sdk.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -89938,10 +89938,14 @@ class MetaModel {
// Globalize MetaObject IDs and parent IDs

metaObjectData.originalSystemId = metaObjectData.id;
metaObjectData.originalParentSystemId = metaObjectData.parent;
if (metaObjectData.parent) {
metaObjectData.originalParentSystemId = metaObjectData.parent;
}
if (globalize) {
metaObjectData.id = math.globalizeObjectId(this.id, metaObjectData.id);
metaObjectData.parent = math.globalizeObjectId(this.id, metaObjectData.parent);
if (metaObjectData.parent) {
metaObjectData.parent = math.globalizeObjectId(this.id, metaObjectData.parent);
}
}

// Globalize MetaObject property set IDs
Expand Down
8 changes: 6 additions & 2 deletions dist/xeokit-sdk.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -89934,10 +89934,14 @@ class MetaModel {
// Globalize MetaObject IDs and parent IDs

metaObjectData.originalSystemId = metaObjectData.id;
metaObjectData.originalParentSystemId = metaObjectData.parent;
if (metaObjectData.parent) {
metaObjectData.originalParentSystemId = metaObjectData.parent;
}
if (globalize) {
metaObjectData.id = math.globalizeObjectId(this.id, metaObjectData.id);
metaObjectData.parent = math.globalizeObjectId(this.id, metaObjectData.parent);
if (metaObjectData.parent) {
metaObjectData.parent = math.globalizeObjectId(this.id, metaObjectData.parent);
}
}

// Globalize MetaObject property set IDs
Expand Down
2 changes: 1 addition & 1 deletion dist/xeokit-sdk.es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -21930,7 +21930,7 @@ metaScene.metaObjectsByType={};for(var _objectId2 in metaScene.metaObjects){var
* Gets this MetaModel as JSON.
* @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: *[]}}
*/},{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
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
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
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
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;}();/**
* @desc Metadata corresponding to a {@link Scene}.
Expand Down
2 changes: 1 addition & 1 deletion dist/xeokit-sdk.min.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/xeokit-sdk.min.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/xeokit-sdk.min.es5.js

Large diffs are not rendered by default.

0 comments on commit 35cf0e0

Please sign in to comment.