File tree Expand file tree Collapse file tree 4 files changed +18
-15
lines changed
src/fragments/FragmentClassifier Expand file tree Collapse file tree 4 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 1010 "build" : " node resources/cleaner.js && tsc && yarn build-examples && yarn build-css" ,
1111 "build-css" : " tailwindcss build -i src/ui/UIManager/top.css -o resources/styles.css" ,
1212 "build-examples" : " rollup -c resources/rollup.config.mjs" ,
13- "publish-repo" : " cpy package.json dist && cd dist && npm publish"
13+ "publish-repo" : " yarn build && cpy package.json dist && cd dist && npm publish"
1414 },
1515 "devDependencies" : {
1616 "@rollup/plugin-commonjs" : " 25.0.0" ,
2424 "@types/three" : " 0.152.1" ,
2525 "@typescript-eslint/eslint-plugin" : " ^4.27.0" ,
2626 "@typescript-eslint/parser" : " ^4.27.0" ,
27- "bim-fragment" : " 1.0.25 " ,
27+ "bim-fragment" : " 1.3.1 " ,
2828 "cpy-cli" : " ^3.1.1" ,
2929 "eslint" : " ^7.28.0" ,
3030 "eslint-config-airbnb-base" : " ^14.2.1" ,
5858 "unzipit" : " ^1.4.3"
5959 },
6060 "peerDependencies" : {
61- "bim-fragment" : " 1.0.25 " ,
61+ "bim-fragment" : " 1.3.1 " ,
6262 "three" : " 0.152.2" ,
6363 "web-ifc" : " 0.0.46"
6464 }
65- }
65+ }
Original file line number Diff line number Diff line change @@ -21595,7 +21595,7 @@ class IfcAlignmentData {
2159521595}
2159621596
2159721597/**
21598- * Object to export and import sets of fragments efficiently using
21598+ * Object to export and import sets of fragments efficiently using the library
2159921599 * [flatbuffers](https://flatbuffers.dev/).
2160021600 */
2160121601class Serializer {
@@ -104187,7 +104187,7 @@ class FragmentClassifier extends Component {
104187104187 }
104188104188 const currentTypes = this._groupSystems.predefinedTypes;
104189104189 for (const expressID in group.data) {
104190- const entity = group.properties[expressID];
104190+ const entity = group.properties[parseInt( expressID, 10) ];
104191104191 if (!entity)
104192104192 continue;
104193104193 const predefinedType = String((_a = entity.PredefinedType) === null || _a === void 0 ? void 0 : _a.value).toUpperCase();
@@ -109096,7 +109096,9 @@ class LengthMeasurement extends Component {
109096109096 .filter((box) => box !== undefined);
109097109097 }
109098109098 setupEvents(active) {
109099- const viewerContainer = this.components.ui.viewerContainer;
109099+ const viewerContainer = this.components.renderer.get().domElement.parentElement;
109100+ if (!viewerContainer)
109101+ return;
109100109102 if (active) {
109101109103 viewerContainer.addEventListener("click", this.create);
109102109104 window.addEventListener("keydown", this.onKeyDown);
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ export class FragmentClassifier
181181 const currentTypes = this . _groupSystems . predefinedTypes ;
182182
183183 for ( const expressID in group . data ) {
184- const entity = group . properties [ expressID ] as {
184+ const entity = group . properties [ parseInt ( expressID , 10 ) ] as {
185185 [ attribute : string ] : any ;
186186 } ;
187187 if ( ! entity ) continue ;
Original file line number Diff line number Diff line change @@ -1886,14 +1886,15 @@ __metadata:
18861886 languageName : node
18871887 linkType : hard
18881888
1889- " bim-fragment@npm:1.0.25 " :
1890- version : 1.0.25
1891- resolution : " bim-fragment@npm:1.0.25 "
1889+ " bim-fragment@npm:1.3.1 " :
1890+ version : 1.3.1
1891+ resolution : " bim-fragment@npm:1.3.1 "
18921892 dependencies :
18931893 flatbuffers : ^23.3.3
1894- three : 0.152.2
18951894 three-mesh-bvh : 0.6.0
1896- checksum : 686a5702a64d33c007ca2d34efe5dd856914e331ff4917782852011ebd74d2c248b2abc573b6f171aa8af387f529d47317798ad269c5a7a2dbff17aa27ea58c0
1895+ peerDependencies :
1896+ three : 0.152.2
1897+ checksum : 25493ef7dba2cbba8edcd24333b43c3ccfc4b0795f0684e509454689e75fee15694273c458d3f1a4b85b40ab2970303f2bf7b4c3cc92f0dca8bb55949d0f85ac
18971898 languageName : node
18981899 linkType : hard
18991900
@@ -6055,7 +6056,7 @@ __metadata:
60556056 " @types/three " : 0.152.1
60566057 " @typescript-eslint/eslint-plugin " : ^4.27.0
60576058 " @typescript-eslint/parser " : ^4.27.0
6058- bim-fragment : 1.0.25
6059+ bim-fragment : 1.3.1
60596060 camera-controls : ^1.36.0
60606061 cpy-cli : ^3.1.1
60616062 dexie : ^3.2.3
@@ -6085,7 +6086,7 @@ __metadata:
60856086 unzipit : ^1.4.3
60866087 web-ifc : 0.0.46
60876088 peerDependencies :
6088- bim-fragment : 1.0.25
6089+ bim-fragment : 1.3.1
60896090 three : 0.152.2
60906091 web-ifc : 0.0.46
60916092 languageName : unknown
You can’t perform that action at this time.
0 commit comments