build-dxf 0.0.24 → 0.0.26-1

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.0.24",
3
+ "version": "0.0.26-1",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/build.js CHANGED
@@ -1607,9 +1607,9 @@ class z extends V {
1607
1607
  return this.set(a, e, n);
1608
1608
  } else
1609
1609
  throw new Error("非node环境不允许使用路径");
1610
- this.scale = n, this.width = e, this.originalData = t, this.lineSegments.length = 0;
1610
+ this.scale = n, this.width = e;
1611
1611
  const s = this.preprocessing(t, i);
1612
- t = s.data, this.lineSegments = s.lineSegments;
1612
+ t = s.data, this.lineSegments = s.lineSegments, this.originalData = t;
1613
1613
  const o = [];
1614
1614
  this.data = t.map(({ start: r, end: l, insetionArr: c, isDoor: a = !1 }, h) => {
1615
1615
  o.push(r.z ?? 0, l.z ?? 0);