Fx issues with esbuild

This commit is contained in:
Marcel Mraz 2025-03-24 13:54:45 +01:00
parent 4a182f985b
commit 033fcfea14
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
4 changed files with 6 additions and 8 deletions

View file

@ -3,7 +3,7 @@ import type {
FontFamilyValues,
} from "@excalidraw/element/types";
import { FONT_FAMILY, FONT_FAMILY_FALLBACKS } from ".";
import { FONT_FAMILY, FONT_FAMILY_FALLBACKS } from "./constants";
/**
* Encapsulates font metrics with additional font metadata.

View file

@ -1,9 +1,7 @@
import { arrayToMap } from "@excalidraw/common";
import { isPointWithinBounds, pointFrom } from "@excalidraw/math";
import {
doLineSegmentsIntersect,
elementsOverlappingBBox,
} from "@excalidraw/utils";
import { doLineSegmentsIntersect } from "@excalidraw/utils/bbox";
import { elementsOverlappingBBox } from "@excalidraw/utils/withinBounds";
import type { ExcalidrawElementsIncludingDeleted } from "@excalidraw/excalidraw/scene/Scene";

View file

@ -12,9 +12,9 @@ import {
import type { Curve } from "@excalidraw/math";
import { pointInEllipse, pointOnEllipse, type GeometricShape } from "./shape";
import { pointInEllipse, pointOnEllipse } from "./shape";
import type { Polycurve, Polyline } from "./shape";
import type { Polycurve, Polyline, GeometricShape } from "./shape";
// check if the given point is considered on the given shape's border
export const isPointOnShape = <Point extends GlobalPoint | LocalPoint>(

View file

@ -11,6 +11,7 @@
* also included in this file are methods for converting an Excalidraw element or a Drawable from roughjs
* to pure shapes
*/
import { pointsOnBezierCurves } from "points-on-curve";
import { invariant } from "@excalidraw/common";
import {
@ -32,7 +33,6 @@ import {
type GlobalPoint,
type LocalPoint,
} from "@excalidraw/math";
import { pointsOnBezierCurves } from "points-on-curve";
import { getElementAbsoluteCoords } from "@excalidraw/element/bounds";