From cbf4d5a591582e16f7b87588c9c60b6e29be353d Mon Sep 17 00:00:00 2001 From: Ryan Di Date: Wed, 19 Nov 2025 14:40:16 +0800 Subject: [PATCH] fix other imports as well --- excalidraw-app/components/DebugCanvas.tsx | 2 +- packages/element/src/distance.ts | 4 ++-- packages/excalidraw/eraser/index.ts | 2 +- packages/excalidraw/lasso/utils.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/excalidraw-app/components/DebugCanvas.tsx b/excalidraw-app/components/DebugCanvas.tsx index 71b0133076..0224cb699a 100644 --- a/excalidraw-app/components/DebugCanvas.tsx +++ b/excalidraw-app/components/DebugCanvas.tsx @@ -22,8 +22,8 @@ import { isLineSegment, type GlobalPoint, type LineSegment, + isCurve, } from "@excalidraw/math"; -import { isCurve } from "@excalidraw/math/curve"; import React from "react"; diff --git a/packages/element/src/distance.ts b/packages/element/src/distance.ts index 4766ac9eef..c6555c1ad6 100644 --- a/packages/element/src/distance.ts +++ b/packages/element/src/distance.ts @@ -2,10 +2,10 @@ import { curvePointDistance, distanceToLineSegment, pointRotateRads, + ellipse, + ellipseDistanceFromPoint, } from "@excalidraw/math"; -import { ellipse, ellipseDistanceFromPoint } from "@excalidraw/math/ellipse"; - import type { GlobalPoint, Radians } from "@excalidraw/math"; import { diff --git a/packages/excalidraw/eraser/index.ts b/packages/excalidraw/eraser/index.ts index d587bb3811..cab6e716fc 100644 --- a/packages/excalidraw/eraser/index.ts +++ b/packages/excalidraw/eraser/index.ts @@ -30,7 +30,7 @@ import { getBoundTextElementId } from "@excalidraw/element"; import type { Bounds } from "@excalidraw/element"; -import type { GlobalPoint, LineSegment } from "@excalidraw/math/types"; +import type { GlobalPoint, LineSegment } from "@excalidraw/math"; import type { ElementsMap, ExcalidrawElement } from "@excalidraw/element/types"; import { AnimatedTrail } from "../animated-trail"; diff --git a/packages/excalidraw/lasso/utils.ts b/packages/excalidraw/lasso/utils.ts index 2cab64662b..c5f0640422 100644 --- a/packages/excalidraw/lasso/utils.ts +++ b/packages/excalidraw/lasso/utils.ts @@ -15,7 +15,7 @@ import { intersectElementWithLineSegment, } from "@excalidraw/element"; -import type { ElementsSegmentsMap, GlobalPoint } from "@excalidraw/math/types"; +import type { ElementsSegmentsMap, GlobalPoint } from "@excalidraw/math"; import type { ElementsMap, ExcalidrawElement } from "@excalidraw/element/types"; export const getLassoSelectedElementIds = (input: {