fix: Clearer debug

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs committed 2026-09-18 12:18:00 +02:00
1 parent 99150ea161
commit caf01fb571
1 file changed
+2 -9
+2 -9
View File
@@ -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<GlobalPoint>(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);