@pascal-app/ifc-converter 0.1.1 → 0.1.2
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/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -953,7 +953,7 @@ export async function convertIfcToPascal(ifcData, onProgress, options) {
|
|
|
953
953
|
if (!wallNodeId)
|
|
954
954
|
continue;
|
|
955
955
|
const wallNode = nodes[wallNodeId];
|
|
956
|
-
if (
|
|
956
|
+
if (wallNode?.type !== 'wall')
|
|
957
957
|
continue;
|
|
958
958
|
const wallDx = wallNode.end[0] - wallNode.start[0];
|
|
959
959
|
const wallDy = wallNode.end[1] - wallNode.start[1];
|
|
@@ -1112,7 +1112,7 @@ export async function convertIfcToPascal(ifcData, onProgress, options) {
|
|
|
1112
1112
|
const wallInfos = [];
|
|
1113
1113
|
for (const [wallExpressId, wallNodeId] of expressIdToNodeId) {
|
|
1114
1114
|
const node = nodes[wallNodeId];
|
|
1115
|
-
if (
|
|
1115
|
+
if (node?.type !== 'wall')
|
|
1116
1116
|
continue;
|
|
1117
1117
|
const w = node;
|
|
1118
1118
|
const length = Math.hypot(w.end[0] - w.start[0], w.end[1] - w.start[1]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pascal-app/ifc-converter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "IFC → Pascal scene-graph conversion. Pure logic — no DOM, no React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsc --build",
|
|
21
|
-
"dev": "
|
|
21
|
+
"dev": "tsgo --build --watch",
|
|
22
22
|
"prepublishOnly": "npm run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|