build-dxf 0.0.28 → 0.0.29

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 +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-dxf",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/build.js CHANGED
@@ -1837,7 +1837,7 @@ class z extends V {
1837
1837
  */
1838
1838
  lineDataToOriginalData(t, e) {
1839
1839
  return e || (e = new T(C.fromByLineSegment(...t)), t.forEach((n) => e?.insert({ line: n, userData: void 0 }))), t.map((n) => {
1840
- const i = n.userData, s = i.drawWindow, r = e.queryLineSegment(n).filter((o) => o.line !== n && !o.userData?.isDoor).map((o) => ({ index: this.lines.indexOf(o.line) }));
1840
+ const i = n.userData, s = i.drawWindow, r = e.queryLineSegment(n).filter((o) => o.line !== n && !o.userData?.isDoor).map((o) => ({ index: t.indexOf(o.line) }));
1841
1841
  return {
1842
1842
  start: n.start.toJson(this.originalZAverage),
1843
1843
  end: n.end.toJson(this.originalZAverage),