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

@ -16,6 +16,7 @@ import {
arrayToMap,
getSizeFromPoints,
normalizeLink,
getLineHeight,
} from "@excalidraw/common";
import {
getNonDeletedElements,
@ -65,7 +66,6 @@ import type { MarkOptional, Mutable } from "@excalidraw/common/utility-types";
import { getDefaultAppState } from "../appState";
import { getLineHeight } from "../fonts/FontMetadata";
import {
getNormalizedGridSize,
getNormalizedGridStep,

View file

@ -13,6 +13,7 @@ import {
getFontString,
isDevEnv,
toBrandedType,
getLineHeight,
} from "@excalidraw/common";
import {
getCommonBounds,
@ -61,8 +62,6 @@ import type {
import type { MarkOptional } from "@excalidraw/common/utility-types";
import { getLineHeight } from "../fonts/FontMetadata";
export type ValidLinearElement = {
type: "arrow" | "line";
x: number;