From caf01fb5712baf2bc374a44ebbc7735aeeada50b Mon Sep 17 00:00:00 2001 From: Mark Tolmacs Date: Tue, 7 Jul 2026 08:11:57 +0000 Subject: [PATCH] fix: Clearer debug Signed-off-by: Mark Tolmacs --- packages/element/src/shape.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/element/src/shape.ts b/packages/element/src/shape.ts index 72d8be6078..5c76551a71 100644 --- a/packages/element/src/shape.ts +++ b/packages/element/src/shape.ts @@ -1008,6 +1008,7 @@ const debugRoundedArrowControlPoints = ( elementX: number, elementY: number, points: readonly LocalPoint[], + permanent: boolean = false, ) => { if (points.length < 2) { return; @@ -1016,18 +1017,10 @@ const debugRoundedArrowControlPoints = ( const g = (p: LocalPoint): GlobalPoint => pointFrom(elementX + p[0], elementY + p[1]); - const PERMANENT = { permanent: true } as const; + const PERMANENT = { permanent } as const; const CP_RADIUS = 5; const DIAMOND_RADIUS = 6; - if (points.length === 2) { - debugDrawLine(lineSegment(g(points[0]), g(points[1])), { - color: "#888888", - ...PERMANENT, - }); - return; - } - for (const [start, cp1Local, cp2Local, end] of curveChordC2Spline(points)) { const p0 = g(start); const p1 = g(end);