chore: simplify line-break regexes, separate text wrapping (#8715)

This commit is contained in:
Marcel Mraz
2024-10-30 14:24:12 +01:00
committed by GitHub
parent dfaaff4432
commit 2734e646ca
11 changed files with 1213 additions and 1039 deletions
+2 -5
View File
@@ -7,11 +7,8 @@ import {
getFontFamilyFallbacks,
} from "../constants";
import { isTextElement } from "../element";
import {
charWidth,
containsCJK,
getContainerElement,
} from "../element/textElement";
import { charWidth, getContainerElement } from "../element/textElement";
import { containsCJK } from "../element/textWrapping";
import { ShapeCache } from "../scene/ShapeCache";
import { getFontString, PromisePool, promiseTry } from "../utils";
import { ExcalidrawFontFace } from "./ExcalidrawFontFace";