Fix incorrect typing

This commit is contained in:
Mark Tolmacs 2025-03-16 21:40:42 +01:00
parent 06daae0f18
commit f05470736b

View file

@ -1,4 +1,4 @@
import { pointFrom, type LocalPoint } from "@excalidraw/math";
import { type GlobalPoint, pointFrom, type LocalPoint } from "@excalidraw/math";
import { elementOverlapsWithFrame, elementsAreInFrameBounds } from "../frame";
import { KEYS } from "../keys";
@ -94,7 +94,7 @@ const getNodeRelatives = (
const heading = headingForPointFromElement(node, aabbForElement(node), [
edgePoint[0] + el.x,
edgePoint[1] + el.y,
] as Readonly<LocalPoint>);
] as Readonly<GlobalPoint>);
acc.push({
relative,