mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix the rest except scene and ShapeCache
This commit is contained in:
parent
79021f4b6b
commit
875450a0a1
30 changed files with 100 additions and 125 deletions
|
@ -3,7 +3,6 @@ import { isPointWithinBounds, pointFrom } from "@excalidraw/math";
|
|||
import {
|
||||
doLineSegmentsIntersect,
|
||||
elementsOverlappingBBox,
|
||||
getCommonBounds,
|
||||
} from "@excalidraw/utils";
|
||||
|
||||
import {
|
||||
|
@ -37,7 +36,7 @@ import type {
|
|||
|
||||
import type { ReadonlySetLike } from "@excalidraw/excalidraw/utility-types";
|
||||
|
||||
import { getElementLineSegments } from "./bounds";
|
||||
import { getElementLineSegments, getCommonBounds } from "./bounds";
|
||||
import { mutateElement } from "./mutateElement";
|
||||
import { getBoundTextElement, getContainerElement } from "./textElement";
|
||||
import { isFrameElement, isFrameLikeElement } from "./typeChecks";
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
import { isInvisiblySmallElement } from "./src/sizeHelpers";
|
||||
import { isLinearElementType } from "./src/typeChecks";
|
||||
import { isInvisiblySmallElement } from "./sizeHelpers";
|
||||
import { isLinearElementType } from "./typeChecks";
|
||||
|
||||
import type {
|
||||
ExcalidrawElement,
|
||||
NonDeletedExcalidrawElement,
|
||||
NonDeleted,
|
||||
} from "./src/types";
|
||||
} from "./types";
|
||||
|
||||
export * from "./src/bounds";
|
||||
export * from "./src/dragElements";
|
||||
export * from "./src/frame";
|
||||
export * from "./src/mutateElement";
|
||||
export * from "./src/newElement";
|
||||
export * from "./src/resizeElements";
|
||||
export * from "./src/resizeTest";
|
||||
export * from "./src/shapes";
|
||||
export * from "./src/showSelectedShapeActions";
|
||||
export * from "./src/textElement";
|
||||
export * from "./src/typeChecks";
|
||||
export * from "./src/transformHandles";
|
||||
export * from "./src/sizeHelpers";
|
||||
export * from "./bounds";
|
||||
export * from "./dragElements";
|
||||
export * from "./frame";
|
||||
export * from "./mutateElement";
|
||||
export * from "./newElement";
|
||||
export * from "./resizeElements";
|
||||
export * from "./resizeTest";
|
||||
export * from "./shapes";
|
||||
export * from "./showSelectedShapeActions";
|
||||
export * from "./textElement";
|
||||
export * from "./typeChecks";
|
||||
export * from "./transformHandles";
|
||||
export * from "./sizeHelpers";
|
||||
|
||||
/**
|
||||
* @deprecated unsafe, use hashElementsVersion instead
|
|
@ -44,11 +44,6 @@ import type {
|
|||
|
||||
import type { Mutable } from "@excalidraw/excalidraw/utility-types";
|
||||
|
||||
import {
|
||||
getElementAbsoluteCoords,
|
||||
getLockedLinearCursorAlignSize,
|
||||
} from "../index";
|
||||
|
||||
import {
|
||||
bindOrUnbindLinearElement,
|
||||
getHoveredElementForBinding,
|
||||
|
@ -64,6 +59,8 @@ import {
|
|||
isFixedPointBinding,
|
||||
} from "./typeChecks";
|
||||
|
||||
import { getElementAbsoluteCoords, getLockedLinearCursorAlignSize } from "./";
|
||||
|
||||
import type { Bounds } from "./bounds";
|
||||
import type {
|
||||
NonDeleted,
|
||||
|
|
|
@ -27,14 +27,14 @@ import type {
|
|||
Mutable,
|
||||
} from "@excalidraw/excalidraw/utility-types";
|
||||
|
||||
import { getElementAbsoluteCoords } from "../index";
|
||||
|
||||
import { getResizedElementAbsoluteCoords } from "./bounds";
|
||||
import { bumpVersion, newElementWith } from "./mutateElement";
|
||||
import { getBoundTextMaxWidth } from "./textElement";
|
||||
import { normalizeText, measureText } from "./textMeasurements";
|
||||
import { wrapText } from "./textWrapping";
|
||||
|
||||
import { getElementAbsoluteCoords } from ".";
|
||||
|
||||
import type {
|
||||
ExcalidrawElement,
|
||||
ExcalidrawImageElement,
|
||||
|
|
|
@ -27,13 +27,13 @@ import {
|
|||
|
||||
import type { NormalizedZoomValue, Zoom } from "@excalidraw/excalidraw/types";
|
||||
|
||||
import { getElementAbsoluteCoords } from "../index";
|
||||
|
||||
import { shouldTestInside } from "./collision";
|
||||
import { LinearElementEditor } from "./linearElementEditor";
|
||||
import { getBoundTextElement } from "./textElement";
|
||||
import { ShapeCache } from "./scene/ShapeCache";
|
||||
|
||||
import { getElementAbsoluteCoords } from "./";
|
||||
|
||||
import type { Bounds } from "./bounds";
|
||||
import type {
|
||||
ElementsMap,
|
||||
|
|
|
@ -13,8 +13,6 @@ import type { AppState } from "@excalidraw/excalidraw/types";
|
|||
|
||||
import type { ExtractSetType } from "@excalidraw/excalidraw/utility-types";
|
||||
|
||||
import { isTextElement } from "../index";
|
||||
|
||||
import {
|
||||
resetOriginalContainerCache,
|
||||
updateOriginalContainerCache,
|
||||
|
@ -25,6 +23,8 @@ import { measureText } from "./textMeasurements";
|
|||
import { wrapText } from "./textWrapping";
|
||||
import { isBoundToContainer, isArrowElement } from "./typeChecks";
|
||||
|
||||
import { isTextElement } from "./";
|
||||
|
||||
import type { MaybeTransformHandleType } from "./transformHandles";
|
||||
import type {
|
||||
ElementsMap,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue