@zsviczian/excalidraw 0.17.1-obsidian-21 → 0.17.1-obsidian-23
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/excalidraw.development.js +50 -39
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +10 -13
- package/dist/styles.production.css +3 -3
- package/package.json +1 -1
- package/types/excalidraw/actions/actionAlign.d.ts +2 -2
- package/types/excalidraw/actions/actionBoundText.d.ts +3 -3
- package/types/excalidraw/actions/actionCanvas.d.ts +3 -3
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +2 -2
- package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/excalidraw/actions/actionElementLock.d.ts +1 -1
- package/types/excalidraw/actions/actionExport.d.ts +1 -1
- package/types/excalidraw/actions/actionFinalize.d.ts +1 -1
- package/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/types/excalidraw/actions/actionFrame.d.ts +2 -2
- package/types/excalidraw/actions/actionGroup.d.ts +2 -2
- package/types/excalidraw/actions/actionHistory.d.ts +3 -3
- package/types/excalidraw/actions/actionLinearEditor.d.ts +4 -2
- package/types/excalidraw/actions/actionNavigate.d.ts +1 -1
- package/types/excalidraw/actions/actionProperties.d.ts +2 -2
- package/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
- package/types/excalidraw/actions/actionZindex.d.ts +4 -0
- package/types/excalidraw/actions/manager.d.ts +3 -3
- package/types/excalidraw/actions/register.d.ts +1 -1
- package/types/excalidraw/actions/shortcuts.d.ts +2 -2
- package/types/excalidraw/actions/types.d.ts +6 -6
- package/types/excalidraw/align.d.ts +1 -1
- package/types/excalidraw/animated-trail.d.ts +2 -2
- package/types/excalidraw/appState.d.ts +1 -1
- package/types/excalidraw/change.d.ts +4 -4
- package/types/excalidraw/charts.d.ts +1 -1
- package/types/excalidraw/clients.d.ts +2 -2
- package/types/excalidraw/clipboard.d.ts +3 -3
- package/types/excalidraw/colors.d.ts +1 -1
- package/types/excalidraw/components/Actions.d.ts +3 -3
- package/types/excalidraw/components/App.d.ts +8 -8
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -3
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/types.d.ts +3 -3
- package/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/types/excalidraw/components/ContextMenu.d.ts +2 -2
- package/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/types/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/types/excalidraw/components/EyeDropper.d.ts +2 -2
- package/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/types/excalidraw/components/InitializeApp.d.ts +2 -2
- package/types/excalidraw/components/JSONExportDialog.d.ts +3 -3
- package/types/excalidraw/components/LayerUI.d.ts +4 -4
- package/types/excalidraw/components/LibraryMenu.d.ts +2 -2
- package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +2 -2
- package/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuSection.d.ts +5 -4
- package/types/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/types/excalidraw/components/MobileMenu.d.ts +3 -3
- package/types/excalidraw/components/Modal.d.ts +1 -1
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/types/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/types/excalidraw/components/Stats.d.ts +2 -2
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -2
- package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/common.d.ts +4 -4
- package/types/excalidraw/components/TextField.d.ts +1 -1
- package/types/excalidraw/components/Toast.d.ts +1 -1
- package/types/excalidraw/components/ToolButton.d.ts +3 -2
- package/types/excalidraw/components/Trans.d.ts +1 -1
- package/types/excalidraw/components/UserList.d.ts +1 -1
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -1
- package/types/excalidraw/components/canvases/StaticCanvas.d.ts +2 -2
- package/types/excalidraw/components/footer/Footer.d.ts +2 -2
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/types/excalidraw/components/icons.d.ts +3 -2
- package/types/excalidraw/constants.d.ts +2 -2
- package/types/excalidraw/context/ui-appState.d.ts +1 -1
- package/types/excalidraw/cursor.d.ts +1 -1
- package/types/excalidraw/data/EditorLocalStorage.d.ts +2 -2
- package/types/excalidraw/data/blob.d.ts +5 -5
- package/types/excalidraw/data/filesystem.d.ts +2 -1
- package/types/excalidraw/data/index.d.ts +4 -4
- package/types/excalidraw/data/json.d.ts +3 -3
- package/types/excalidraw/data/library.d.ts +3 -3
- package/types/excalidraw/data/magic.d.ts +3 -3
- package/types/excalidraw/data/reconcile.d.ts +3 -3
- package/types/excalidraw/data/resave.d.ts +2 -2
- package/types/excalidraw/data/restore.d.ts +3 -3
- package/types/excalidraw/data/transform.d.ts +3 -3
- package/types/excalidraw/data/types.d.ts +3 -3
- package/types/excalidraw/element/ElementCanvasButtons.d.ts +1 -1
- package/types/excalidraw/element/binding.d.ts +3 -3
- package/types/excalidraw/element/bounds.d.ts +3 -3
- package/types/excalidraw/element/collision.d.ts +3 -3
- package/types/excalidraw/element/containerCache.d.ts +1 -1
- package/types/excalidraw/element/dragElements.d.ts +3 -3
- package/types/excalidraw/element/embeddable.d.ts +3 -3
- package/types/excalidraw/element/image.d.ts +2 -2
- package/types/excalidraw/element/index.d.ts +2 -2
- package/types/excalidraw/element/linearElementEditor.d.ts +5 -5
- package/types/excalidraw/element/mutateElement.d.ts +3 -3
- package/types/excalidraw/element/newElement.d.ts +3 -10
- package/types/excalidraw/element/resizeElements.d.ts +3 -3
- package/types/excalidraw/element/resizeTest.d.ts +4 -4
- package/types/excalidraw/element/showSelectedShapeActions.d.ts +2 -2
- package/types/excalidraw/element/sizeHelpers.d.ts +2 -2
- package/types/excalidraw/element/sortElements.d.ts +1 -1
- package/types/excalidraw/element/textElement.d.ts +4 -4
- package/types/excalidraw/element/textWysiwyg.d.ts +10 -5
- package/types/excalidraw/element/transformHandles.d.ts +3 -3
- package/types/excalidraw/element/typeChecks.d.ts +3 -3
- package/types/excalidraw/element/types.d.ts +11 -4
- package/types/excalidraw/emitter.d.ts +1 -1
- package/types/excalidraw/fractionalIndex.d.ts +1 -1
- package/types/excalidraw/frame.d.ts +3 -3
- package/types/excalidraw/gatransforms.d.ts +1 -1
- package/types/excalidraw/gesture.d.ts +1 -1
- package/types/excalidraw/groups.d.ts +3 -3
- package/types/excalidraw/history.d.ts +4 -4
- package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/types/excalidraw/i18n.d.ts +1 -1
- package/types/excalidraw/index.d.ts +3 -1
- package/types/excalidraw/jotai.d.ts +1 -1
- package/types/excalidraw/laser-trails.d.ts +3 -2
- package/types/excalidraw/math.d.ts +2 -2
- package/types/excalidraw/points.d.ts +1 -1
- package/types/excalidraw/queue.d.ts +1 -1
- package/types/excalidraw/renderer/helpers.d.ts +2 -2
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/renderer/renderElement.d.ts +3 -3
- package/types/excalidraw/renderer/renderSnaps.d.ts +1 -1
- package/types/excalidraw/renderer/staticScene.d.ts +1 -1
- package/types/excalidraw/renderer/staticSvgScene.d.ts +4 -4
- package/types/excalidraw/scene/Fonts.d.ts +2 -4
- package/types/excalidraw/scene/Renderer.d.ts +4 -4
- package/types/excalidraw/scene/Scene.d.ts +13 -7
- package/types/excalidraw/scene/Shape.d.ts +1 -1
- package/types/excalidraw/scene/ShapeCache.d.ts +4 -4
- package/types/excalidraw/scene/comparisons.d.ts +2 -2
- package/types/excalidraw/scene/export.d.ts +2 -2
- package/types/excalidraw/scene/scroll.d.ts +2 -2
- package/types/excalidraw/scene/scrollbars.d.ts +3 -3
- package/types/excalidraw/scene/selection.d.ts +2 -2
- package/types/excalidraw/scene/types.d.ts +4 -4
- package/types/excalidraw/scene/zoom.d.ts +1 -1
- package/types/excalidraw/snapping.d.ts +4 -4
- package/types/excalidraw/store.d.ts +2 -2
- package/types/excalidraw/types.d.ts +22 -18
- package/types/excalidraw/utils.d.ts +4 -4
- package/types/excalidraw/zindex.d.ts +2 -2
- package/types/utils/bbox.d.ts +2 -2
- package/types/utils/collision.d.ts +1 -1
- package/types/utils/export.d.ts +2 -2
- package/types/utils/geometry/geometry.d.ts +1 -1
- package/types/utils/geometry/shape.d.ts +1 -1
- package/types/utils/withinBounds.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppState, NormalizedZoomValue } from "../types";
|
|
1
|
+
import type { AppState, NormalizedZoomValue } from "../types";
|
|
2
2
|
export declare const getNormalizedZoom: (zoom: number) => NormalizedZoomValue;
|
|
3
3
|
export declare const getStateForZoom: ({ viewportX, viewportY, nextZoom, }: {
|
|
4
4
|
viewportX: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bounds } from "./element/bounds";
|
|
2
|
-
import { MaybeTransformHandleType } from "./element/transformHandles";
|
|
3
|
-
import { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement } from "./element/types";
|
|
4
|
-
import { AppState, KeyboardModifiersObject, Point } from "./types";
|
|
1
|
+
import type { Bounds } from "./element/bounds";
|
|
2
|
+
import type { MaybeTransformHandleType } from "./element/transformHandles";
|
|
3
|
+
import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement } from "./element/types";
|
|
4
|
+
import type { AppState, KeyboardModifiersObject, Point } from "./types";
|
|
5
5
|
export declare const getSnapDistance: (zoomValue: number) => number;
|
|
6
6
|
type Vector2D = {
|
|
7
7
|
x: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppStateChange, ElementsChange } from "./change";
|
|
2
|
-
import { OrderedExcalidrawElement } from "./element/types";
|
|
2
|
+
import type { OrderedExcalidrawElement } from "./element/types";
|
|
3
3
|
import { Emitter } from "./emitter";
|
|
4
|
-
import { AppState, ObservedAppState } from "./types";
|
|
4
|
+
import type { AppState, ObservedAppState } from "./types";
|
|
5
5
|
export declare const getObservedAppState: (appState: AppState) => ObservedAppState;
|
|
6
6
|
export type StoreActionType = "capture" | "update" | "none";
|
|
7
7
|
export declare const StoreAction: {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, ExcalidrawTextElement, FileId, ExcalidrawImageElement, Theme, StrokeRoundness, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeLikeElement, OrderedExcalidrawElement } from "./element/types";
|
|
3
|
-
import { Action } from "./actions/types";
|
|
4
|
-
import { Point as RoughPoint } from "roughjs/bin/geometry";
|
|
5
|
-
import { LinearElementEditor } from "./element/linearElementEditor";
|
|
6
|
-
import { SuggestedBinding } from "./element/binding";
|
|
7
|
-
import { ImportedDataState } from "./data/types";
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, ExcalidrawTextElement, FileId, ExcalidrawImageElement, Theme, StrokeRoundness, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeLikeElement, OrderedExcalidrawElement } from "./element/types";
|
|
3
|
+
import type { Action } from "./actions/types";
|
|
4
|
+
import type { Point as RoughPoint } from "roughjs/bin/geometry";
|
|
5
|
+
import type { LinearElementEditor } from "./element/linearElementEditor";
|
|
6
|
+
import type { SuggestedBinding } from "./element/binding";
|
|
7
|
+
import type { ImportedDataState } from "./data/types";
|
|
8
8
|
import type App from "./components/App";
|
|
9
9
|
import type { throttleRAF } from "./utils";
|
|
10
|
-
import { Spreadsheet } from "./charts";
|
|
11
|
-
import { Language } from "./i18n";
|
|
12
|
-
import { ClipboardData } from "./clipboard";
|
|
13
|
-
import { isOverScrollBars } from "./scene/scrollbars";
|
|
14
|
-
import { MaybeTransformHandleType } from "./element/transformHandles";
|
|
15
|
-
import Library from "./data/library";
|
|
10
|
+
import type { Spreadsheet } from "./charts";
|
|
11
|
+
import type { Language } from "./i18n";
|
|
12
|
+
import type { ClipboardData } from "./clipboard";
|
|
13
|
+
import type { isOverScrollBars } from "./scene/scrollbars";
|
|
14
|
+
import type { MaybeTransformHandleType } from "./element/transformHandles";
|
|
15
|
+
import type Library from "./data/library";
|
|
16
16
|
import type { FileSystemHandle } from "./data/filesystem";
|
|
17
17
|
import type { IMAGE_MIME_TYPES, MIME_TYPES } from "./constants";
|
|
18
|
-
import { ContextMenuItems } from "./components/ContextMenu";
|
|
19
|
-
import { SnapLine } from "./snapping";
|
|
20
|
-
import { Merge, MaybePromise, ValueOf } from "./utility-types";
|
|
18
|
+
import type { ContextMenuItems } from "./components/ContextMenu";
|
|
19
|
+
import type { SnapLine } from "./snapping";
|
|
20
|
+
import type { Merge, MaybePromise, ValueOf } from "./utility-types";
|
|
21
21
|
import { ColorPaletteCustom } from "./colors";
|
|
22
|
-
import { StoreActionType } from "./store";
|
|
22
|
+
import type { StoreActionType } from "./store";
|
|
23
23
|
export type Point = Readonly<RoughPoint>;
|
|
24
24
|
export type SocketId = string & {
|
|
25
25
|
_brand: "SocketId";
|
|
@@ -413,7 +413,11 @@ export interface ExcalidrawProps {
|
|
|
413
413
|
onLibraryChange?: (libraryItems: LibraryItems) => void | Promise<any>;
|
|
414
414
|
autoFocus?: boolean;
|
|
415
415
|
onBeforeTextEdit?: (textElement: ExcalidrawTextElement) => string;
|
|
416
|
-
onBeforeTextSubmit?: (textElement: ExcalidrawTextElement,
|
|
416
|
+
onBeforeTextSubmit?: (textElement: ExcalidrawTextElement, nextText: string, //wrapped
|
|
417
|
+
nextOriginalText: string, isDeleted: boolean) => {
|
|
418
|
+
updatedNextOriginalText: string;
|
|
419
|
+
nextLink: string;
|
|
420
|
+
};
|
|
417
421
|
generateIdForFile?: (file: File) => string | Promise<string>;
|
|
418
422
|
onThemeChange?: (newTheme: string) => void;
|
|
419
423
|
onViewModeChange?: (isViewModeEnabled: boolean) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EVENT } from "./constants";
|
|
2
|
-
import { FontFamilyValues, FontString } from "./element/types";
|
|
3
|
-
import { ActiveTool, AppState, ToolType, UnsubscribeCallback, Zoom } from "./types";
|
|
4
|
-
import { MaybePromise } from "./utility-types";
|
|
1
|
+
import type { EVENT } from "./constants";
|
|
2
|
+
import type { FontFamilyValues, FontString } from "./element/types";
|
|
3
|
+
import type { ActiveTool, AppState, ToolType, UnsubscribeCallback, Zoom } from "./types";
|
|
4
|
+
import type { MaybePromise } from "./utility-types";
|
|
5
5
|
export declare const setDateTimeForTests: (dateTime: string) => void;
|
|
6
6
|
export declare const getDateTime: () => string;
|
|
7
7
|
export declare const capitalizeString: (str: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExcalidrawElement } from "./element/types";
|
|
2
|
-
import { AppState } from "./types";
|
|
1
|
+
import type { ExcalidrawElement } from "./element/types";
|
|
2
|
+
import type { AppState } from "./types";
|
|
3
3
|
export declare const moveOneLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[];
|
|
4
4
|
export declare const moveOneRight: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[];
|
|
5
5
|
export declare const moveAllLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[] | ExcalidrawElement[];
|
package/types/utils/bbox.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bounds } from "../excalidraw/element/bounds";
|
|
2
|
-
import { Point } from "../excalidraw/types";
|
|
1
|
+
import type { Bounds } from "../excalidraw/element/bounds";
|
|
2
|
+
import type { Point } from "../excalidraw/types";
|
|
3
3
|
export type LineSegment = [Point, Point];
|
|
4
4
|
export declare function getBBox(line: LineSegment): Bounds;
|
|
5
5
|
export declare function crossProduct(a: Point, b: Point): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, Polygon, GeometricShape } from "./geometry/shape";
|
|
1
|
+
import type { Point, Polygon, GeometricShape } from "./geometry/shape";
|
|
2
2
|
export declare const isPointOnShape: (point: Point, shape: GeometricShape, tolerance?: number) => boolean;
|
|
3
3
|
export declare const isPointInShape: (point: Point, shape: GeometricShape) => boolean;
|
|
4
4
|
export declare const isPointInBounds: (point: Point, bounds: Polygon) => boolean;
|
package/types/utils/export.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AppState, BinaryFiles } from "../excalidraw/types";
|
|
2
|
-
import { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeleted } from "../excalidraw/element/types";
|
|
1
|
+
import type { AppState, BinaryFiles } from "../excalidraw/types";
|
|
2
|
+
import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeleted } from "../excalidraw/element/types";
|
|
3
3
|
import { MIME_TYPES } from "../excalidraw/constants";
|
|
4
4
|
export { MIME_TYPES };
|
|
5
5
|
type ExportOpts = {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* also included in this file are methods for converting an Excalidraw element or a Drawable from roughjs
|
|
12
12
|
* to pure shapes
|
|
13
13
|
*/
|
|
14
|
-
import { ElementsMap, ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawEllipseElement, ExcalidrawEmbeddableElement, ExcalidrawFrameLikeElement, ExcalidrawFreeDrawElement, ExcalidrawIframeElement, ExcalidrawImageElement, ExcalidrawLinearElement, ExcalidrawRectangleElement, ExcalidrawSelectionElement, ExcalidrawTextElement } from "../../excalidraw/element/types";
|
|
14
|
+
import type { ElementsMap, ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawEllipseElement, ExcalidrawEmbeddableElement, ExcalidrawFrameLikeElement, ExcalidrawFreeDrawElement, ExcalidrawIframeElement, ExcalidrawImageElement, ExcalidrawLinearElement, ExcalidrawRectangleElement, ExcalidrawSelectionElement, ExcalidrawTextElement } from "../../excalidraw/element/types";
|
|
15
15
|
import type { Drawable, Op } from "roughjs/bin/core";
|
|
16
16
|
export type Point = [number, number];
|
|
17
17
|
export type Vector = Point;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "../excalidraw/element/types";
|
|
2
|
-
import { Bounds } from "../excalidraw/element/bounds";
|
|
2
|
+
import type { Bounds } from "../excalidraw/element/bounds";
|
|
3
3
|
type Element = NonDeletedExcalidrawElement;
|
|
4
4
|
type Elements = readonly NonDeletedExcalidrawElement[];
|
|
5
5
|
export declare const isElementInsideBBox: (element: Element, bbox: Bounds, eitherDirection?: boolean) => boolean;
|