mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-26 23:54:20 +01:00
refactor: export everything from @excalidraw/element, don't import from subpaths (#9466)
* Don't import from subpaths * Fix tests, move related tests to element
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { queryByText } from "@testing-library/react";
|
||||
|
||||
import { pointFrom } from "@excalidraw/math";
|
||||
import { getOriginalContainerHeightFromCache } from "@excalidraw/element/containerCache";
|
||||
import { getOriginalContainerHeightFromCache } from "@excalidraw/element";
|
||||
|
||||
import {
|
||||
CODES,
|
||||
|
||||
@@ -12,10 +12,10 @@ import {
|
||||
import {
|
||||
originalContainerCache,
|
||||
updateOriginalContainerCache,
|
||||
} from "@excalidraw/element/containerCache";
|
||||
} from "@excalidraw/element";
|
||||
|
||||
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
||||
import { bumpVersion } from "@excalidraw/element/mutateElement";
|
||||
import { LinearElementEditor } from "@excalidraw/element";
|
||||
import { bumpVersion } from "@excalidraw/element";
|
||||
import {
|
||||
getBoundTextElementId,
|
||||
getContainerElement,
|
||||
@@ -26,15 +26,15 @@ import {
|
||||
computeContainerDimensionForBoundText,
|
||||
computeBoundTextPosition,
|
||||
getBoundTextElement,
|
||||
} from "@excalidraw/element/textElement";
|
||||
import { getTextWidth } from "@excalidraw/element/textMeasurements";
|
||||
import { normalizeText } from "@excalidraw/element/textMeasurements";
|
||||
import { wrapText } from "@excalidraw/element/textWrapping";
|
||||
} from "@excalidraw/element";
|
||||
import { getTextWidth } from "@excalidraw/element";
|
||||
import { normalizeText } from "@excalidraw/element";
|
||||
import { wrapText } from "@excalidraw/element";
|
||||
import {
|
||||
isArrowElement,
|
||||
isBoundToContainer,
|
||||
isTextElement,
|
||||
} from "@excalidraw/element/typeChecks";
|
||||
} from "@excalidraw/element";
|
||||
|
||||
import type {
|
||||
ExcalidrawElement,
|
||||
|
||||
Reference in New Issue
Block a user