add @excalidraw/utils to external and fixes

This commit is contained in:
Aakansha Doshi 2024-05-03 17:08:07 +05:30
parent 6a1477a55c
commit 45ff9d1053
8 changed files with 9 additions and 9 deletions

View file

@ -26,7 +26,7 @@ import {
import { getElementAbsoluteCoords } from "./bounds";
import { AppClassProperties, AppState, Point } from "../types";
import { isPointOnShape } from "../../utils/collision";
import { isPointOnShape } from "@excalidraw/utils";
import { getElementAtPosition } from "../scene";
import {
isArrowElement,

View file

@ -13,7 +13,7 @@ import {
GeometricShape,
getPolygonShape,
} from "../../utils/geometry/shape";
import { isPointInShape, isPointOnShape } from "../../utils/collision";
import { isPointInShape, isPointOnShape } from "@excalidraw/utils";
import { isTransparent } from "../utils";
import {
hasBoundTextElement,

View file

@ -59,7 +59,7 @@
"@braintree/sanitize-url": "6.0.2",
"@excalidraw/laser-pointer": "1.3.1",
"@excalidraw/mermaid-to-excalidraw": "0.3.0",
"@excalidraw/utils": "workspace:^",
"@excalidraw/utils": "*",
"@excalidraw/random-username": "1.1.0",
"@radix-ui/react-popover": "1.0.3",
"@radix-ui/react-tabs": "1.0.2",

View file

@ -171,6 +171,8 @@ export const exportToSvg = async ({
exportPadding?: number;
renderEmbeddables?: boolean;
}): Promise<SVGSVGElement> => {
console.log("HIIII TGEREE122");
const { elements: restoredElements, appState: restoredAppState } = restore(
{ elements, appState },
null,

View file

@ -1,3 +1,4 @@
export * from "./export";
export * from "./withinBounds";
export * from "./bbox";
export * from "./collision";