build-dxf 0.1.158 → 0.1.160
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 +3 -3
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -22995,12 +22995,12 @@ function getBeamNearWallVec(line) {
|
|
|
22995
22995
|
}
|
|
22996
22996
|
}
|
|
22997
22997
|
function beamSupportLine(lines, {}) {
|
|
22998
|
-
const lsh = Quadtree.from(lines);
|
|
22998
|
+
const lsh = Quadtree.from(lines.filter((line) => !line.userData.isBalconyRailing));
|
|
22999
22999
|
lines.forEach((line) => {
|
|
23000
23000
|
if (WallHole.isBeam(line)) {
|
|
23001
23001
|
const findLine = line.clone();
|
|
23002
|
-
findLine.setLength(findLine.length -
|
|
23003
|
-
let rectangle =
|
|
23002
|
+
findLine.setLength(findLine.length - 2e-3);
|
|
23003
|
+
let rectangle = findLine.toRectangle(2, "butt");
|
|
23004
23004
|
const center = findLine.center;
|
|
23005
23005
|
const beamNearWallVec = getBeamNearWallVec(line);
|
|
23006
23006
|
const list = lsh.queryRect(rectangle).filter((target) => {
|