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 ), // TOP
]; ];
const corners = const corners = baseCorners.map(
offset > 0 (corner) =>
? baseCorners.map( curveCatmullRomCubicApproxPoints(curveOffsetPoints(corner, offset))!,
(corner) => );
curveCatmullRomCubicApproxPoints(
curveOffsetPoints(corner, offset),
)!,
)
: [
[baseCorners[0]],
[baseCorners[1]],
[baseCorners[2]],
[baseCorners[3]],
];
const sides = [ const sides = [
lineSegment<GlobalPoint>( lineSegment<GlobalPoint>(