mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Moving font metadata into common
This commit is contained in:
parent
dfd48c221c
commit
ccbd004f22
18 changed files with 58 additions and 45 deletions
|
@ -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 ".";
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ import {
|
|||
distance,
|
||||
getFontString,
|
||||
isRTL,
|
||||
getVerticalOffset,
|
||||
} from "@excalidraw/common";
|
||||
import { getElementAbsoluteCoords } from "@excalidraw/element/bounds";
|
||||
import { getUncroppedImageElement } from "@excalidraw/element/cropElement";
|
||||
|
@ -38,8 +39,6 @@ import {
|
|||
import { getContainingFrame } from "@excalidraw/element/frame";
|
||||
import { getCornerRadius } from "@excalidraw/element/shapes";
|
||||
|
||||
// TODO_SEP: consider separating
|
||||
import { getVerticalOffset } from "@excalidraw/excalidraw/fonts/FontMetadata";
|
||||
|
||||
import type {
|
||||
ExcalidrawElement,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue