mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Remove debug
This commit is contained in:
parent
e6ec02bf52
commit
49dcf23101
2 changed files with 2 additions and 10 deletions
|
@ -13,7 +13,6 @@ import {
|
||||||
vectorCross,
|
vectorCross,
|
||||||
pointsEqual,
|
pointsEqual,
|
||||||
lineSegmentIntersectionPoints,
|
lineSegmentIntersectionPoints,
|
||||||
round,
|
|
||||||
PRECISION,
|
PRECISION,
|
||||||
} from "@excalidraw/math";
|
} from "@excalidraw/math";
|
||||||
import { isPointOnShape } from "@excalidraw/utils/collision";
|
import { isPointOnShape } from "@excalidraw/utils/collision";
|
||||||
|
@ -39,10 +38,6 @@ import {
|
||||||
import { intersectElementWithLineSegment } from "./collision";
|
import { intersectElementWithLineSegment } from "./collision";
|
||||||
import { distanceToBindableElement } from "./distance";
|
import { distanceToBindableElement } from "./distance";
|
||||||
import {
|
import {
|
||||||
compareHeading,
|
|
||||||
HEADING_DOWN,
|
|
||||||
HEADING_RIGHT,
|
|
||||||
HEADING_UP,
|
|
||||||
headingForPointFromElement,
|
headingForPointFromElement,
|
||||||
headingIsHorizontal,
|
headingIsHorizontal,
|
||||||
vectorToHeading,
|
vectorToHeading,
|
||||||
|
@ -85,7 +80,6 @@ import type {
|
||||||
} from "./types";
|
} from "./types";
|
||||||
import type Scene from "../scene/Scene";
|
import type Scene from "../scene/Scene";
|
||||||
import type { AppState } from "../types";
|
import type { AppState } from "../types";
|
||||||
import { debugClear, debugDrawPoint } from "../visualdebug";
|
|
||||||
|
|
||||||
export type SuggestedBinding =
|
export type SuggestedBinding =
|
||||||
| NonDeleted<ExcalidrawBindableElement>
|
| NonDeleted<ExcalidrawBindableElement>
|
||||||
|
|
|
@ -40,7 +40,7 @@ import {
|
||||||
headingForPoint,
|
headingForPoint,
|
||||||
} from "./heading";
|
} from "./heading";
|
||||||
import { type ElementUpdate } from "./mutateElement";
|
import { type ElementUpdate } from "./mutateElement";
|
||||||
import { isBindableElement, isElbowArrow } from "./typeChecks";
|
import { isBindableElement } from "./typeChecks";
|
||||||
import {
|
import {
|
||||||
type ExcalidrawElbowArrowElement,
|
type ExcalidrawElbowArrowElement,
|
||||||
type NonDeletedSceneElementsMap,
|
type NonDeletedSceneElementsMap,
|
||||||
|
@ -58,7 +58,6 @@ import type {
|
||||||
NonDeletedExcalidrawElement,
|
NonDeletedExcalidrawElement,
|
||||||
} from "./types";
|
} from "./types";
|
||||||
import type { AppState } from "../types";
|
import type { AppState } from "../types";
|
||||||
import { debugClear } from "../visualdebug";
|
|
||||||
|
|
||||||
type GridAddress = [number, number] & { _brand: "gridaddress" };
|
type GridAddress = [number, number] & { _brand: "gridaddress" };
|
||||||
|
|
||||||
|
@ -1236,8 +1235,7 @@ const getElbowArrowData = (
|
||||||
? getBindableElementForId(arrow.endBinding.elementId, elementsMap) || null
|
? getBindableElementForId(arrow.endBinding.elementId, elementsMap) || null
|
||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
debugClear();
|
|
||||||
console.log("----");
|
|
||||||
const startGlobalPoint = getGlobalPoint(
|
const startGlobalPoint = getGlobalPoint(
|
||||||
{
|
{
|
||||||
...arrow,
|
...arrow,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue