build-dxf 0.1.70 → 0.1.71

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/build.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-dxf",
3
- "version": "0.1.70",
3
+ "version": "0.1.71",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/build.js CHANGED
@@ -6159,7 +6159,7 @@ class BayWindowHelper {
6159
6159
  for (let i = 0; i < lines.length; i++) {
6160
6160
  const line = lines[i];
6161
6161
  if (line.userData.isBayWindow) bayWindowLine = line;
6162
- else if (line.userData.isWindow && line.userData.drawWindow) windowLine = line;
6162
+ else if (line.userData.isWindow && line.userData.drawWindow && line.userData.drawWindow.length) windowLine = line;
6163
6163
  else deptLine = line;
6164
6164
  }
6165
6165
  if (bayWindowLine && windowLine && deptLine) {
@@ -6197,7 +6197,7 @@ class BayWindowHelper {
6197
6197
  for (let i = 0; i < lines.length; i++) {
6198
6198
  const line = lines[i];
6199
6199
  if (line.userData.isBayWindow) bayWindowLine = line;
6200
- else if (line.userData.isWindow && line.userData.drawWindow) windowLine = line;
6200
+ else if (line.userData.isWindow && line.userData.drawWindow && line.userData.drawWindow.length) windowLine = line;
6201
6201
  }
6202
6202
  if (bayWindowLine && windowLine) {
6203
6203
  const { width, height, groundClearance } = windowLine.userData.drawWindow[0];