fix: Diamond corner binding

This commit is contained in:
Mark Tolmacs
2025-10-31 16:54:03 +01:00
parent 2997594492
commit 03e29cc0b7

View File

@@ -400,20 +400,10 @@ export function deconstructDiamondElement(
), // TOP
];
const corners =
offset > 0
? baseCorners.map(
(corner) =>
curveCatmullRomCubicApproxPoints(
curveOffsetPoints(corner, offset),
)!,
)
: [
[baseCorners[0]],
[baseCorners[1]],
[baseCorners[2]],
[baseCorners[3]],
];
const corners = baseCorners.map(
(corner) =>
curveCatmullRomCubicApproxPoints(curveOffsetPoints(corner, offset))!,
);
const sides = [
lineSegment<GlobalPoint>(