mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
chore: simplify line-break regexes, separate text wrapping (#8715)
This commit is contained in:
parent
dfaaff4432
commit
2734e646ca
11 changed files with 1213 additions and 1039 deletions
|
@ -20,7 +20,6 @@ import { LinearElementEditor } from "../element/linearElementEditor";
|
|||
import { act, queryByTestId, queryByText } from "@testing-library/react";
|
||||
import {
|
||||
getBoundTextElementPosition,
|
||||
wrapText,
|
||||
getBoundTextMaxWidth,
|
||||
} from "../element/textElement";
|
||||
import * as textElementUtils from "../element/textElement";
|
||||
|
@ -29,6 +28,7 @@ import { vi } from "vitest";
|
|||
import { arrayToMap } from "../utils";
|
||||
import type { GlobalPoint } from "../../math";
|
||||
import { pointCenter, pointFrom } from "../../math";
|
||||
import { wrapText } from "../element/textWrapping";
|
||||
|
||||
const renderInteractiveScene = vi.spyOn(
|
||||
InteractiveCanvas,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue