Moving font metadata into common

This commit is contained in:
Marcel Mraz 2025-03-19 15:50:16 +01:00
parent dfd48c221c
commit ccbd004f22
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
18 changed files with 58 additions and 45 deletions

View file

@ -8,15 +8,13 @@ import {
VERTICAL_ALIGN,
randomInteger,
randomId,
getNewGroupIdsForDuplication,
arrayToMap,
getFontString,
getUpdatedTimestamp,
isTestEnv,
getLineHeight
} from "@excalidraw/common";
import { getLineHeight } from "@excalidraw/excalidraw/fonts/FontMetadata";
import type { Radians } from "@excalidraw/math";
import type { AppState } from "@excalidraw/excalidraw/types";
@ -32,6 +30,7 @@ import { bumpVersion, newElementWith } from "./mutateElement";
import { getBoundTextMaxWidth } from "./textElement";
import { normalizeText, measureText } from "./textMeasurements";
import { wrapText } from "./textWrapping";
import { getNewGroupIdsForDuplication } from "./groups";
import { getElementAbsoluteCoords } from ".";