diff --git a/excalidraw-app/components/DebugCanvas.tsx b/excalidraw-app/components/DebugCanvas.tsx index 07b29499be..3270783516 100644 --- a/excalidraw-app/components/DebugCanvas.tsx +++ b/excalidraw-app/components/DebugCanvas.tsx @@ -27,7 +27,7 @@ import { isCurve } from "@excalidraw/math/curve"; import React from "react"; import type { Curve } from "@excalidraw/math"; -import type { DebugElement } from "@excalidraw/utils/visualdebug"; +import type { DebugElement } from "@excalidraw/common"; import type { ElementsMap, ExcalidrawArrowElement, diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index 79f243f4f0..9e28ce4132 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -10,3 +10,4 @@ export * from "./random"; export * from "./url"; export * from "./utils"; export * from "./emitter"; +export * from "./visualdebug"; diff --git a/packages/utils/src/visualdebug.ts b/packages/common/src/visualdebug.ts similarity index 99% rename from packages/utils/src/visualdebug.ts rename to packages/common/src/visualdebug.ts index 961fa919f2..9cdbbd7e97 100644 --- a/packages/utils/src/visualdebug.ts +++ b/packages/common/src/visualdebug.ts @@ -63,6 +63,8 @@ export const debugDrawLine = ( ); }; +export const testDebug = () => {}; + export const debugDrawPoint = ( p: GlobalPoint, opts?: { diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index b0fe30cf55..a6207e9c34 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -2,4 +2,3 @@ export * from "./export"; export * from "./withinBounds"; export * from "./bbox"; export { getCommonBounds } from "@excalidraw/element"; -export * from "./visualdebug";