mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-15 10:15:03 +01:00
fix: Diamond corner binding
This commit is contained in:
@@ -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>(
|
||||||
|
|||||||
Reference in New Issue
Block a user