Remove debug

This commit is contained in:
Mark Tolmacs 2025-03-16 19:53:05 +01:00
parent e6ec02bf52
commit 49dcf23101
2 changed files with 2 additions and 10 deletions

View file

@ -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<ExcalidrawBindableElement>

View file

@ -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,