From 49dcf23101c412394e7326e661b073565025586d Mon Sep 17 00:00:00 2001 From: Mark Tolmacs Date: Sun, 16 Mar 2025 19:53:05 +0100 Subject: [PATCH] Remove debug --- packages/excalidraw/element/binding.ts | 6 ------ packages/excalidraw/element/elbowArrow.ts | 6 ++---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/excalidraw/element/binding.ts b/packages/excalidraw/element/binding.ts index 285e08310..32b15cc23 100644 --- a/packages/excalidraw/element/binding.ts +++ b/packages/excalidraw/element/binding.ts @@ -13,7 +13,6 @@ import { vectorCross, pointsEqual, lineSegmentIntersectionPoints, - round, PRECISION, } from "@excalidraw/math"; import { isPointOnShape } from "@excalidraw/utils/collision"; @@ -39,10 +38,6 @@ import { import { intersectElementWithLineSegment } from "./collision"; import { distanceToBindableElement } from "./distance"; import { - compareHeading, - HEADING_DOWN, - HEADING_RIGHT, - HEADING_UP, headingForPointFromElement, headingIsHorizontal, vectorToHeading, @@ -85,7 +80,6 @@ import type { } from "./types"; import type Scene from "../scene/Scene"; import type { AppState } from "../types"; -import { debugClear, debugDrawPoint } from "../visualdebug"; export type SuggestedBinding = | NonDeleted diff --git a/packages/excalidraw/element/elbowArrow.ts b/packages/excalidraw/element/elbowArrow.ts index 0c8872df2..533d2c228 100644 --- a/packages/excalidraw/element/elbowArrow.ts +++ b/packages/excalidraw/element/elbowArrow.ts @@ -40,7 +40,7 @@ import { headingForPoint, } from "./heading"; import { type ElementUpdate } from "./mutateElement"; -import { isBindableElement, isElbowArrow } from "./typeChecks"; +import { isBindableElement } from "./typeChecks"; import { type ExcalidrawElbowArrowElement, type NonDeletedSceneElementsMap, @@ -58,7 +58,6 @@ import type { NonDeletedExcalidrawElement, } from "./types"; import type { AppState } from "../types"; -import { debugClear } from "../visualdebug"; type GridAddress = [number, number] & { _brand: "gridaddress" }; @@ -1236,8 +1235,7 @@ const getElbowArrowData = ( ? getBindableElementForId(arrow.endBinding.elementId, elementsMap) || null : null; } - debugClear(); - console.log("----"); + const startGlobalPoint = getGlobalPoint( { ...arrow,