@misenkashari/excalidraw-element 1.0.6 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js.map +1 -1
- package/dist/types/common/src/constants.d.ts +1 -1
- package/dist/types/common/src/emitter.d.ts +1 -1
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +1 -1
- package/dist/types/element/src/binding.d.ts +1 -1
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/comparisons.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +1 -1
- package/dist/types/element/src/distribute.d.ts +1 -1
- package/dist/types/element/src/dragElements.d.ts +1 -1
- package/dist/types/element/src/duplicate.d.ts +1 -1
- package/dist/types/element/src/elementLink.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +1 -1
- package/dist/types/element/src/flowchart.d.ts +1 -1
- package/dist/types/element/src/frame.d.ts +1 -1
- package/dist/types/element/src/groups.d.ts +1 -1
- package/dist/types/element/src/image.d.ts +1 -1
- package/dist/types/element/src/linearElementEditor.d.ts +1 -1
- package/dist/types/element/src/renderElement.d.ts +2 -2
- package/dist/types/element/src/resizeElements.d.ts +1 -1
- package/dist/types/element/src/resizeTest.d.ts +1 -1
- package/dist/types/element/src/selection.d.ts +1 -1
- package/dist/types/element/src/shape.d.ts +2 -2
- package/dist/types/element/src/showSelectedShapeActions.d.ts +1 -1
- package/dist/types/element/src/sizeHelpers.d.ts +1 -1
- package/dist/types/element/src/store.d.ts +2 -2
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +1 -1
- package/dist/types/element/src/typeChecks.d.ts +1 -1
- package/dist/types/element/src/utils.d.ts +1 -1
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExcalidrawElement, FontFamilyValues } from "@misenkashari/excalidraw-element/types";
|
|
2
|
-
import type { AppProps, AppState } from "@
|
|
2
|
+
import type { AppProps, AppState } from "@misenkashari/excalidraw/types";
|
|
3
3
|
export declare const supportsResizeObserver: boolean;
|
|
4
4
|
export declare const APP_NAME = "Excalidraw";
|
|
5
5
|
export declare const TEXT_AUTOWRAP_THRESHOLD = 36;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UnsubscribeCallback } from "@
|
|
1
|
+
import type { UnsubscribeCallback } from "@misenkashari/excalidraw/types";
|
|
2
2
|
type Subscriber<T extends any[]> = (...payload: T) => void;
|
|
3
3
|
export declare class Emitter<T extends any[] = []> {
|
|
4
4
|
subscribers: Subscriber<T>[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type GlobalPoint, type LocalPoint } from "@misenkashari/excalidraw-math";
|
|
2
|
-
import type { NullableGridSize } from "@
|
|
2
|
+
import type { NullableGridSize } from "@misenkashari/excalidraw/types";
|
|
3
3
|
export declare const getSizeFromPoints: (points: readonly (GlobalPoint | LocalPoint)[]) => {
|
|
4
4
|
width: number;
|
|
5
5
|
height: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FontFamilyValues, FontString } from "@misenkashari/excalidraw-element/types";
|
|
2
|
-
import type { ActiveTool, AppState, ToolType, UnsubscribeCallback, Zoom } from "@
|
|
2
|
+
import type { ActiveTool, AppState, ToolType, UnsubscribeCallback, Zoom } from "@misenkashari/excalidraw/types";
|
|
3
3
|
import type { MaybePromise, ResolutionType } from "./utility-types";
|
|
4
4
|
import type { EVENT } from "./constants";
|
|
5
5
|
export declare const setDateTimeForTests: (dateTime: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type GlobalPoint } from "@misenkashari/excalidraw-math";
|
|
2
2
|
import type { LineSegment, LocalPoint } from "@misenkashari/excalidraw-math";
|
|
3
|
-
import type { AppState } from "@
|
|
3
|
+
import type { AppState } from "@misenkashari/excalidraw/types";
|
|
4
4
|
import type { Bounds } from "@misenkashari/excalidraw-common";
|
|
5
5
|
import { type Heading } from "./heading";
|
|
6
6
|
import type { Scene } from "./Scene";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Bounds } from "@misenkashari/excalidraw-common";
|
|
2
2
|
import type { Degrees, GlobalPoint, LineSegment, LocalPoint } from "@misenkashari/excalidraw-math";
|
|
3
|
-
import type { AppState } from "@
|
|
3
|
+
import type { AppState } from "@misenkashari/excalidraw/types";
|
|
4
4
|
import type { Drawable, Op } from "roughjs/bin/core";
|
|
5
5
|
import type { Arrowhead, ElementsMap, ElementsMapOrArray, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, NonDeleted } from "./types";
|
|
6
6
|
export type RectangleBox = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GlobalPoint, LineSegment } from "@misenkashari/excalidraw-math";
|
|
2
|
-
import type { FrameNameBounds } from "@
|
|
2
|
+
import type { FrameNameBounds } from "@misenkashari/excalidraw/types";
|
|
3
3
|
import type { ElementsMap, ExcalidrawBindableElement, ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap, Ordered } from "./types";
|
|
4
4
|
export declare const shouldTestInside: (element: ExcalidrawElement) => boolean;
|
|
5
5
|
export type HitTestArgs = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElementOrToolType } from "@
|
|
1
|
+
import type { ElementOrToolType } from "@misenkashari/excalidraw/types";
|
|
2
2
|
export declare const hasBackground: (type: ElementOrToolType) => type is "line" | "rectangle" | "diamond" | "ellipse" | "triangle" | "hexagon" | "heart" | "star" | "embeddable" | "iframe" | "freedraw";
|
|
3
3
|
export declare const hasStrokeColor: (type: ElementOrToolType) => type is "line" | "arrow" | "text" | "rectangle" | "diamond" | "ellipse" | "triangle" | "hexagon" | "heart" | "star" | "embeddable" | "freedraw";
|
|
4
4
|
export declare const hasStrokeWidth: (type: ElementOrToolType) => type is "line" | "arrow" | "rectangle" | "diamond" | "ellipse" | "triangle" | "hexagon" | "heart" | "star" | "embeddable" | "iframe" | "freedraw";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExcalidrawElement, Ordered, OrderedExcalidrawElement, SceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import type { DTO, ValueOf } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
|
-
import type { AppState, ObservedAppState } from "@
|
|
3
|
+
import type { AppState, ObservedAppState } from "@misenkashari/excalidraw/types";
|
|
4
4
|
import { StoreSnapshot } from "./store";
|
|
5
5
|
/**
|
|
6
6
|
* Represents the difference between two objects of the same type.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppState, NormalizedZoomValue, NullableGridSize, PointerDownState } from "@
|
|
1
|
+
import type { AppState, NormalizedZoomValue, NullableGridSize, PointerDownState } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import type { Scene } from "./Scene";
|
|
4
4
|
export declare const dragSelectedElements: (pointerDownState: PointerDownState, _selectedElements: NonDeletedExcalidrawElement[], offset: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mutable } from "@misenkashari/excalidraw-common/utility-types";
|
|
2
|
-
import type { AppState } from "@
|
|
2
|
+
import type { AppState } from "@misenkashari/excalidraw/types";
|
|
3
3
|
import type { ExcalidrawElement, GroupId } from "./types";
|
|
4
4
|
/**
|
|
5
5
|
* Duplicate an element, often used in the alt-drag operation.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Create and link between shapes.
|
|
3
3
|
*/
|
|
4
|
-
import type { AppProps, AppState } from "@
|
|
4
|
+
import type { AppProps, AppState } from "@misenkashari/excalidraw/types";
|
|
5
5
|
import type { ExcalidrawElement } from "./types";
|
|
6
6
|
export declare const defaultGetElementLinkFromSelection: Exclude<AppProps["generateLinkForSelection"], undefined>;
|
|
7
7
|
export declare const getLinkIdAndTypeFromSelection: (selectedElements: ExcalidrawElement[], appState: AppState) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawProps } from "@
|
|
1
|
+
import type { ExcalidrawProps } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import type { MarkRequired } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
3
|
import type { ExcalidrawElement, ExcalidrawIframeLikeElement, IframeData } from "./types";
|
|
4
4
|
type IframeDataWithSandbox = MarkRequired<IframeData, "sandbox">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppState, PendingExcalidrawElements } from "@
|
|
1
|
+
import type { AppState, PendingExcalidrawElements } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import { type ElementsMap, type ExcalidrawBindableElement, type ExcalidrawElement, type ExcalidrawFlowchartNodeElement } from "./types";
|
|
3
3
|
import type { Scene } from "./Scene";
|
|
4
4
|
type LinkDirection = "up" | "right" | "down" | "left";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppClassProperties, AppState, StaticCanvasAppState } from "@
|
|
1
|
+
import type { AppClassProperties, AppState, StaticCanvasAppState } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import type { ReadonlySetLike } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
3
|
import type { ExcalidrawElementsIncludingDeleted } from "./Scene";
|
|
4
4
|
import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeleted, NonDeletedExcalidrawElement } from "./types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppClassProperties, AppState, InteractiveCanvasAppState } from "@
|
|
1
|
+
import type { AppClassProperties, AppState, InteractiveCanvasAppState } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import type { Mutable } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
3
|
import type { GroupId, ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, ElementsMapOrArray, ElementsMap } from "./types";
|
|
4
4
|
export declare const selectGroup: (groupId: GroupId, appState: InteractiveCanvasAppState, elements: readonly NonDeleted<ExcalidrawElement>[]) => Pick<InteractiveCanvasAppState, "selectedGroupIds" | "selectedElementIds" | "editingGroupId">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppClassProperties, DataURL, BinaryFiles } from "@
|
|
1
|
+
import type { AppClassProperties, DataURL, BinaryFiles } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import type { ExcalidrawElement, FileId, InitializedExcalidrawImageElement } from "./types";
|
|
3
3
|
export declare const loadHTMLImageElement: (dataURL: DataURL) => Promise<HTMLImageElement>;
|
|
4
4
|
/** NOTE: updates cache even if already populated with given image. Thus,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type GlobalPoint, type LocalPoint } from "@misenkashari/excalidraw-math";
|
|
2
2
|
import { type Store } from "@misenkashari/excalidraw-element";
|
|
3
|
-
import type { AppState, PointerCoords, InteractiveCanvasAppState, AppClassProperties, NullableGridSize, Zoom } from "@
|
|
3
|
+
import type { AppState, PointerCoords, InteractiveCanvasAppState, AppClassProperties, NullableGridSize, Zoom } from "@misenkashari/excalidraw/types";
|
|
4
4
|
import type { Bounds } from "@misenkashari/excalidraw-common";
|
|
5
5
|
import type { Scene } from "./Scene";
|
|
6
6
|
import type { NonDeleted, ExcalidrawLinearElement, ExcalidrawElement, ExcalidrawTextElementWithContainer, ElementsMap, NonDeletedSceneElementsMap, FixedPointBinding, ExcalidrawElbowArrowElement, PointsPositionUpdates } from "./types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type GlobalPoint } from "@misenkashari/excalidraw-math";
|
|
2
|
-
import type { AppState, StaticCanvasAppState, InteractiveCanvasAppState, ElementsPendingErasure, PendingExcalidrawElements } from "@
|
|
3
|
-
import type { StaticCanvasRenderConfig, RenderableElementsMap, InteractiveCanvasRenderConfig } from "@
|
|
2
|
+
import type { AppState, StaticCanvasAppState, InteractiveCanvasAppState, ElementsPendingErasure, PendingExcalidrawElements } from "@misenkashari/excalidraw/types";
|
|
3
|
+
import type { StaticCanvasRenderConfig, RenderableElementsMap, InteractiveCanvasRenderConfig } from "@misenkashari/excalidraw/scene/types";
|
|
4
4
|
import type { ExcalidrawElement, ExcalidrawTextElement, NonDeletedExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawImageElement, ExcalidrawFrameLikeElement, NonDeletedSceneElementsMap, ElementsMap } from "./types";
|
|
5
5
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
6
6
|
export declare const getRenderOpacity: (element: ExcalidrawElement, containingFrame: ExcalidrawFrameLikeElement | null, elementsPendingErasure: ElementsPendingErasure, pendingNodes: Readonly<PendingExcalidrawElements> | null, globalAlpha?: number) => number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type LocalPoint } from "@misenkashari/excalidraw-math";
|
|
2
|
-
import type { PointerDownState } from "@
|
|
2
|
+
import type { PointerDownState } from "@misenkashari/excalidraw/types";
|
|
3
3
|
import type { Scene } from "./Scene";
|
|
4
4
|
import type { BoundingBox } from "./bounds";
|
|
5
5
|
import type { MaybeTransformHandleType, TransformHandleDirection } from "./transformHandles";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EditorInterface } from "@misenkashari/excalidraw-common";
|
|
2
2
|
import type { GlobalPoint, LocalPoint } from "@misenkashari/excalidraw-math";
|
|
3
|
-
import type { AppState, Zoom } from "@
|
|
3
|
+
import type { AppState, Zoom } from "@misenkashari/excalidraw/types";
|
|
4
4
|
import type { Bounds } from "@misenkashari/excalidraw-common";
|
|
5
5
|
import type { MaybeTransformHandleType } from "./transformHandles";
|
|
6
6
|
import type { ExcalidrawElement, PointerType, NonDeletedExcalidrawElement, ElementsMap } from "./types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppState, InteractiveCanvasAppState } from "@
|
|
1
|
+
import type { AppState, InteractiveCanvasAppState } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import { LinearElementEditor } from "./linearElementEditor";
|
|
3
3
|
import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, NonDeletedExcalidrawElement } from "./types";
|
|
4
4
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type GeometricShape } from "@misenkashari/excalidraw-utils/shape";
|
|
2
2
|
import { type LocalPoint } from "@misenkashari/excalidraw-math";
|
|
3
3
|
import type { GlobalPoint } from "@misenkashari/excalidraw-math";
|
|
4
|
-
import type { AppState, EmbedsValidationStatus } from "@
|
|
5
|
-
import type { ElementShape, ElementShapes } from "@
|
|
4
|
+
import type { AppState, EmbedsValidationStatus } from "@misenkashari/excalidraw/types";
|
|
5
|
+
import type { ElementShape, ElementShapes } from "@misenkashari/excalidraw/scene/types";
|
|
6
6
|
import type { ExcalidrawElement, ExcalidrawSelectionElement, ExcalidrawLinearElement, ExcalidrawFreeDrawElement, ElementsMap, ExcalidrawLineElement } from "./types";
|
|
7
7
|
import type { Drawable, Options } from "roughjs/bin/core";
|
|
8
8
|
export declare class ShapeCache {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { UIAppState } from "@
|
|
1
|
+
import type { UIAppState } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import type { NonDeletedExcalidrawElement } from "./types";
|
|
3
3
|
export declare const showSelectedShapeActions: (appState: UIAppState, elements: readonly NonDeletedExcalidrawElement[]) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppState, Offsets, Zoom } from "@
|
|
1
|
+
import type { AppState, Offsets, Zoom } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import type { ElementsMap, ExcalidrawElement } from "./types";
|
|
3
3
|
export declare const INVISIBLY_SMALL_ELEMENT_SIZE = 0.1;
|
|
4
4
|
export declare const isInvisiblySmallElement: (element: ExcalidrawElement) => boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Emitter } from "@misenkashari/excalidraw-common";
|
|
2
|
-
import type App from "@
|
|
2
|
+
import type App from "@misenkashari/excalidraw/components/App";
|
|
3
3
|
import type { DTO, ValueOf } from "@misenkashari/excalidraw-common/utility-types";
|
|
4
|
-
import type { AppState, ObservedAppState } from "@
|
|
4
|
+
import type { AppState, ObservedAppState } from "@misenkashari/excalidraw/types";
|
|
5
5
|
import { ElementsDelta, AppStateDelta } from "./delta";
|
|
6
6
|
import type { ApplyToOptions } from "./delta";
|
|
7
7
|
import type { ExcalidrawElement, OrderedExcalidrawElement, SceneElementsMap } from "./types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Radians } from "@misenkashari/excalidraw-math";
|
|
2
|
-
import type { AppState } from "@
|
|
2
|
+
import type { AppState } from "@misenkashari/excalidraw/types";
|
|
3
3
|
import type { ExtractSetType } from "@misenkashari/excalidraw-common/utility-types";
|
|
4
4
|
import type { Scene } from "./Scene";
|
|
5
5
|
import type { MaybeTransformHandleType } from "./transformHandles";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EditorInterface } from "@misenkashari/excalidraw-common";
|
|
2
2
|
import type { Radians } from "@misenkashari/excalidraw-math";
|
|
3
|
-
import type { InteractiveCanvasAppState, Zoom } from "@
|
|
3
|
+
import type { InteractiveCanvasAppState, Zoom } from "@misenkashari/excalidraw/types";
|
|
4
4
|
import type { Bounds } from "@misenkashari/excalidraw-common";
|
|
5
5
|
import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement, PointerType } from "./types";
|
|
6
6
|
export type TransformHandleDirection = "n" | "s" | "w" | "e" | "nw" | "ne" | "sw" | "se";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElementOrToolType } from "@
|
|
1
|
+
import type { ElementOrToolType } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import type { MarkNonNullable } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
3
|
import type { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawEmbeddableElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawFreeDrawElement, InitializedExcalidrawImageElement, ExcalidrawImageElement, ExcalidrawTextElementWithContainer, ExcalidrawTextContainer, ExcalidrawFrameElement, RoundnessType, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeElement, ExcalidrawIframeLikeElement, ExcalidrawMagicFrameElement, ExcalidrawArrowElement, ExcalidrawElbowArrowElement, ExcalidrawLineElement, ExcalidrawFlowchartNodeElement, ExcalidrawLinearElementSubType } from "./types";
|
|
4
4
|
export declare const isInitializedImageElement: (element: ExcalidrawElement | null) => element is InitializedExcalidrawImageElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type GlobalPoint } from "@misenkashari/excalidraw-math";
|
|
2
2
|
import type { Curve, LineSegment } from "@misenkashari/excalidraw-math";
|
|
3
|
-
import type { Zoom } from "@
|
|
3
|
+
import type { Zoom } from "@misenkashari/excalidraw/types";
|
|
4
4
|
import type { ElementsMap, ExcalidrawArrowElement, ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawRectanguloidElement } from "./types";
|
|
5
5
|
/**
|
|
6
6
|
* Returns the **rotated** components of freedraw, line or arrow elements.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppState } from "@
|
|
1
|
+
import type { AppState } from "@misenkashari/excalidraw/types";
|
|
2
2
|
import type { GlobalPoint } from "@misenkashari/excalidraw-math";
|
|
3
3
|
import type { Scene } from "./Scene";
|
|
4
4
|
import type { ExcalidrawArrowElement, ExcalidrawElement, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap, Ordered, OrderedExcalidrawElement } from "./types";
|
|
@@ -394,7 +394,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
394
394
|
* - `CaptureUpdateAction.NEVER`: Updates never make it to undo/redo stack. Use for remote updates or scene initialization.
|
|
395
395
|
* - `CaptureUpdateAction.EVENTUALLY`: Updates will be eventually be captured as part of a future increment.
|
|
396
396
|
*
|
|
397
|
-
* Check [API docs](https://docs.excalidraw.com/docs/@
|
|
397
|
+
* Check [API docs](https://docs.excalidraw.com/docs/@misenkashari/excalidraw/api/props/excalidraw-api#captureUpdate) for more details.
|
|
398
398
|
*
|
|
399
399
|
* @default CaptureUpdateAction.EVENTUALLY
|
|
400
400
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type EditorInterface } from "@misenkashari/excalidraw-common";
|
|
3
|
-
import type { RenderableElementsMap, RenderInteractiveSceneCallback } from "@
|
|
3
|
+
import type { RenderableElementsMap, RenderInteractiveSceneCallback } from "@misenkashari/excalidraw/scene/types";
|
|
4
4
|
import type { NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
5
5
|
import type { AppClassProperties, InteractiveCanvasAppState } from "../../types";
|
|
6
6
|
import type { DOMAttributes } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MIME_TYPES } from "@misenkashari/excalidraw-common";
|
|
2
2
|
import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeleted } from "@misenkashari/excalidraw-element/types";
|
|
3
|
-
import type { AppState, BinaryFiles } from "@
|
|
3
|
+
import type { AppState, BinaryFiles } from "@misenkashari/excalidraw/types";
|
|
4
4
|
export { MIME_TYPES };
|
|
5
5
|
type ExportOpts = {
|
|
6
6
|
elements: readonly NonDeleted<ExcalidrawElement>[];
|