[skip ci] First iteration of bringing over previous changes

This commit is contained in:
Mark Tolmacs 2025-03-24 19:22:45 +01:00
parent 979fff566c
commit b6dea75d57
19 changed files with 599 additions and 596 deletions

View file

@ -2,6 +2,7 @@ import { average } from "@excalidraw/math";
import type {
ExcalidrawBindableElement,
ExcalidrawElement,
FontFamilyValues,
FontString,
} from "@excalidraw/element/types";
@ -1200,3 +1201,6 @@ export const escapeDoubleQuotes = (str: string) => {
export const castArray = <T>(value: T | T[]): T[] =>
Array.isArray(value) ? value : [value];
export const toLocalPoint = (p: GlobalPoint, element: ExcalidrawElement) =>
pointTranslate<GlobalPoint, LocalPoint>(p, vector(-element.x, -element.y));