mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-04 05:41:34 +00:00
committed by
claude[bot]
parent
087f7cf381
commit
548677a99c
@@ -625,7 +625,11 @@ function unionSimpleBodies(bodies: number[][][]): any | null {
|
||||
for (const body of bodies) {
|
||||
if (body.length < 3) continue;
|
||||
const piece: any = closedRing(body);
|
||||
geom = geom ? union(geom, piece) : piece;
|
||||
// Keep the same MultiPolygon shape for one body and for a union. Returning
|
||||
// the bare Polygon made `polyclipToPathD()` see points where it expects
|
||||
// rings, so every single-segment preview (including Thickness hover)
|
||||
// became an empty path.
|
||||
geom = geom ? union(geom, piece) : [piece];
|
||||
}
|
||||
return geom;
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user