build-dxf 0.1.54 → 0.1.55
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/package.json +1 -1
- package/src/build.js +2 -0
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -19870,6 +19870,8 @@ function hasCircle(lineData, startIndex, direction) {
|
|
|
19870
19870
|
let lines = originalDataToLineData(lineData).lineSegments;
|
|
19871
19871
|
const center = lines[startIndex].center;
|
|
19872
19872
|
lines = lineSegmentClipping(lines, 1e-9);
|
|
19873
|
+
let removeSet = findDiscretePointLine2(lines, /* @__PURE__ */ new Set(), true);
|
|
19874
|
+
lines = lines.filter((line2) => !removeSet.has(line2));
|
|
19873
19875
|
const list = lines.filter((line2) => line2.userData.isBayWindow && line2.isPointOnSegment(center));
|
|
19874
19876
|
if (list.length === 0) return false;
|
|
19875
19877
|
const miniCircles = new MiniCircles(), line = list[0], direct = Point.from(direction), entity = line.center.add(direct.multiplyScalar(1e-8)), path = /* @__PURE__ */ new Set([line]);
|