feat: custom text metrics provider (#9121)

This commit is contained in:
Marcel Mraz
2025-02-11 14:23:08 +01:00
committed by GitHub
parent c329470b73
commit e3060dfb8f
19 changed files with 268 additions and 267 deletions
+1 -1
View File
@@ -19,7 +19,6 @@ import {
newMagicFrameElement,
newTextElement,
} from "../element/newElement";
import { measureText, normalizeText } from "../element/textElement";
import type {
ElementsMap,
ExcalidrawArrowElement,
@@ -55,6 +54,7 @@ import { syncInvalidIndices } from "../fractionalIndex";
import { getLineHeight } from "../fonts";
import { isArrowElement } from "../element/typeChecks";
import { pointFrom, type LocalPoint } from "../../math";
import { measureText, normalizeText } from "../element/textMeasurements";
export type ValidLinearElement = {
type: "arrow" | "line";