From b2e19055bf4bb2bab58ef43549e71676451c4df7 Mon Sep 17 00:00:00 2001 From: Mark Tolmacs Date: Sun, 30 Mar 2025 16:56:19 +0200 Subject: [PATCH] [skip ci] Refactor visual debug Signed-off-by: Mark Tolmacs --- excalidraw-app/components/DebugCanvas.tsx | 2 +- packages/common/src/index.ts | 1 + packages/{excalidraw => common/src}/visualdebug.ts | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename packages/{excalidraw => common/src}/visualdebug.ts (100%) diff --git a/excalidraw-app/components/DebugCanvas.tsx b/excalidraw-app/components/DebugCanvas.tsx index e83a62647..7f2a69cb7 100644 --- a/excalidraw-app/components/DebugCanvas.tsx +++ b/excalidraw-app/components/DebugCanvas.tsx @@ -18,7 +18,7 @@ import { } from "@excalidraw/math"; import { isCurve } from "@excalidraw/math/curve"; -import type { DebugElement } from "@excalidraw/excalidraw/visualdebug"; +import type { DebugElement } from "@excalidraw/common"; import type { Curve } from "@excalidraw/math"; diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index d896ba98e..cbce534fe 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -9,3 +9,4 @@ export * from "./promise-pool"; export * from "./random"; export * from "./url"; export * from "./utils"; +export * from "./visualdebug"; diff --git a/packages/excalidraw/visualdebug.ts b/packages/common/src/visualdebug.ts similarity index 100% rename from packages/excalidraw/visualdebug.ts rename to packages/common/src/visualdebug.ts