build-dxf 0.1.53 → 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 +8 -1
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -19867,7 +19867,14 @@ function getGlobalDxfSystem() {
|
|
|
19867
19867
|
return gloabalDxfSystem;
|
|
19868
19868
|
}
|
|
19869
19869
|
function hasCircle(lineData, startIndex, direction) {
|
|
19870
|
-
|
|
19870
|
+
let lines = originalDataToLineData(lineData).lineSegments;
|
|
19871
|
+
const center = lines[startIndex].center;
|
|
19872
|
+
lines = lineSegmentClipping(lines, 1e-9);
|
|
19873
|
+
let removeSet = findDiscretePointLine2(lines, /* @__PURE__ */ new Set(), true);
|
|
19874
|
+
lines = lines.filter((line2) => !removeSet.has(line2));
|
|
19875
|
+
const list = lines.filter((line2) => line2.userData.isBayWindow && line2.isPointOnSegment(center));
|
|
19876
|
+
if (list.length === 0) return false;
|
|
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]);
|
|
19871
19878
|
const result = miniCircles.findSameSidePath({
|
|
19872
19879
|
line,
|
|
19873
19880
|
currentPoint: line.start,
|