@xeokit/xeokit-sdk 2.6.13 → 2.6.14
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 +22 -2
- package/dist/xeokit-sdk.es.js +22 -2
- package/dist/xeokit-sdk.es5.js +2 -2
- 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 +2 -2
- package/src/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.js +22 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xeokit/xeokit-sdk",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.14",
|
|
4
4
|
"description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
|
|
5
5
|
"module": "./dist/xeokit-sdk.es.js",
|
|
6
6
|
"main": "./dist/xeokit-sdk.cjs.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"docs": "rm -Rf ./docs/*; ./node_modules/.bin/esdoc",
|
|
12
12
|
"typedocs": "rm -Rf ./docs/*; typedoc --tsconfig tsconfig.json",
|
|
13
13
|
"publish": "npm publish --access public",
|
|
14
|
-
"changelog": "auto-changelog --commit-limit false --package --template changelog-template.hbs"
|
|
14
|
+
"changelog": "git fetch all; auto-changelog --commit-limit false --package --template changelog-template.hbs"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
@@ -110,7 +110,7 @@ import {IFCObjectDefaults} from "../../viewer/metadata/IFCObjectDefaults.js";
|
|
|
110
110
|
* excludeTypes: ["IfcSpace"]
|
|
111
111
|
* });
|
|
112
112
|
* ````
|
|
113
|
-
*
|
|
113
|
+
*
|
|
114
114
|
* # Configuring initial IFC object appearances
|
|
115
115
|
*
|
|
116
116
|
* We can specify the custom initial appearance of loaded objects according to their IFC types.
|
|
@@ -470,11 +470,31 @@ export class DotBIMLoaderPlugin extends Plugin {
|
|
|
470
470
|
isObject: true
|
|
471
471
|
});
|
|
472
472
|
|
|
473
|
+
for (let infoKey in info) {
|
|
474
|
+
let properties;
|
|
475
|
+
if (infoKey.startsWith("IFC_Pset_")) {
|
|
476
|
+
if (!properties) {
|
|
477
|
+
properties = [];
|
|
478
|
+
}
|
|
479
|
+
properties.push({
|
|
480
|
+
name: infoKey,
|
|
481
|
+
value: info[infoKey]
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
if (properties) {
|
|
485
|
+
metaModelData.propertySets.push({
|
|
486
|
+
id: objectId,
|
|
487
|
+
properties
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
473
492
|
metaModelData.metaObjects.push({
|
|
474
493
|
id: objectId,
|
|
475
494
|
name: info && info.Name && info.Name !== "None" ? info.Name : `${element.type} ${objectId}`,
|
|
476
495
|
type: element.type,
|
|
477
|
-
parent: ifcBuildingStoryId
|
|
496
|
+
parent: ifcBuildingStoryId,
|
|
497
|
+
propertySetIds: [objectId]
|
|
478
498
|
});
|
|
479
499
|
}
|
|
480
500
|
|