@excalidraw/common 0.18.0-2874f9e → 0.18.0-2a82821
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 +173 -25
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/colors.d.ts +14 -14
- package/dist/types/common/src/constants.d.ts +9 -7
- package/dist/types/common/src/index.d.ts +2 -0
- package/dist/types/common/src/utils.d.ts +1 -3
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +7 -3
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/binding.d.ts +3 -4
- package/dist/types/element/src/bounds.d.ts +22 -3
- package/dist/types/element/src/comparisons.d.ts +1 -0
- package/dist/types/element/src/duplicate.d.ts +1 -0
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/frame.d.ts +7 -6
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +5 -2
- package/dist/types/element/src/mutateElement.d.ts +2 -0
- package/dist/types/element/src/newElement.d.ts +1 -0
- package/dist/types/element/src/selection.d.ts +8 -4
- package/dist/types/element/src/shape.d.ts +1 -1
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/element/src/typeChecks.d.ts +1 -0
- package/dist/types/element/src/types.d.ts +11 -2
- package/dist/types/element/src/utils.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +35 -38
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +25 -27
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +207 -219
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +24 -26
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +37 -40
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +8 -13
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +24 -26
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionExport.d.ts +112 -394
- package/dist/types/excalidraw/actions/actionFrame.d.ts +49 -52
- package/dist/types/excalidraw/actions/actionGroup.d.ts +27 -29
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +13 -13
- package/dist/types/excalidraw/actions/actionLink.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionMenu.d.ts +8 -13
- package/dist/types/excalidraw/actions/actionProperties.d.ts +37 -30
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +13 -14
- package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -12
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -13
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -13
- package/dist/types/excalidraw/actions/index.d.ts +4 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +32 -28
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +4 -7
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +54 -14
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +19 -8
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +9 -3
- package/dist/types/excalidraw/components/shapes.d.ts +7 -0
- package/dist/types/excalidraw/data/blob.d.ts +163 -166
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +2 -3
- package/dist/types/excalidraw/data/json.d.ts +92 -85
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/animation.d.ts +4 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +426 -19
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +110 -18
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +35 -0
- package/dist/types/math/src/constants.d.ts +0 -1
- package/dist/types/math/src/curve.d.ts +4 -1
- package/dist/types/math/src/point.d.ts +2 -1
- package/dist/types/utils/src/index.d.ts +1 -2
- package/package.json +1 -1
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/charts.d.ts +0 -27
- package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
- package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
- package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
- package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
- package/dist/types/excalidraw/index.d.ts +0 -47
- package/dist/types/excalidraw/polyfill.d.ts +0 -2
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
|
@@ -11,7 +11,7 @@ export type OverwriteConfirmState = {
|
|
|
11
11
|
} | {
|
|
12
12
|
active: false;
|
|
13
13
|
};
|
|
14
|
-
export declare const overwriteConfirmStateAtom: import("jotai
|
|
14
|
+
export declare const overwriteConfirmStateAtom: import("jotai").PrimitiveAtom<OverwriteConfirmState> & {
|
|
15
15
|
init: OverwriteConfirmState;
|
|
16
16
|
};
|
|
17
17
|
export declare function openConfirmModal({ title, description, actionLabel, color, }: {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import "./PasteChartDialog.scss";
|
|
3
|
-
import type {
|
|
4
|
-
export declare const PasteChartDialog: ({
|
|
5
|
-
|
|
2
|
+
import type { Spreadsheet } from "../charts";
|
|
3
|
+
export declare const PasteChartDialog: ({ data, rawText, onClose, }: {
|
|
4
|
+
data: Spreadsheet;
|
|
5
|
+
rawText: string;
|
|
6
6
|
onClose: () => void;
|
|
7
|
-
setAppState: React.Component<any, UIAppState>["setState"];
|
|
8
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import "./Range.scss";
|
|
2
|
-
import type { AppClassProperties } from "../types";
|
|
3
3
|
export type RangeProps = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
value: number;
|
|
6
|
+
onChange: (value: number) => void;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
step?: number;
|
|
10
|
+
minLabel?: React.ReactNode;
|
|
11
|
+
hasCommonValue?: boolean;
|
|
6
12
|
testId?: string;
|
|
7
13
|
};
|
|
8
|
-
export declare const Range: ({
|
|
14
|
+
export declare const Range: ({ label, value, onChange, min, max, step, minLabel, hasCommonValue, testId, }: RangeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./SearchMenu.scss";
|
|
2
|
-
export declare const searchItemInFocusAtom: import("jotai
|
|
2
|
+
export declare const searchItemInFocusAtom: import("jotai").PrimitiveAtom<number | null> & {
|
|
3
3
|
init: number | null;
|
|
4
4
|
};
|
|
5
5
|
export declare const SearchMenu: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,7 @@ import "./Sidebar.scss";
|
|
|
8
8
|
*
|
|
9
9
|
* Since we can only render one Sidebar at a time, we can use a simple flag.
|
|
10
10
|
*/
|
|
11
|
-
export declare const isSidebarDockedAtom: import("jotai
|
|
11
|
+
export declare const isSidebarDockedAtom: import("jotai").PrimitiveAtom<boolean> & {
|
|
12
12
|
init: boolean;
|
|
13
13
|
};
|
|
14
14
|
export declare const SidebarInner: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Theme } from "@excalidraw/element/types";
|
|
2
|
+
export interface CodeMirrorEditorProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
onKeyboardSubmit?: () => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
theme: Theme;
|
|
8
|
+
errorLine?: number | null;
|
|
9
|
+
}
|
|
10
|
+
declare const CodeMirrorEditor: ({ value, onChange, onKeyboardSubmit, placeholder, theme, errorLine, }: CodeMirrorEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default CodeMirrorEditor;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { RateLimits, TChat } from "./types";
|
|
2
|
-
export declare const rateLimitsAtom: import("jotai
|
|
2
|
+
export declare const rateLimitsAtom: import("jotai").PrimitiveAtom<RateLimits | null> & {
|
|
3
3
|
init: RateLimits | null;
|
|
4
4
|
};
|
|
5
|
-
export declare const showPreviewAtom: import("jotai
|
|
5
|
+
export declare const showPreviewAtom: import("jotai").PrimitiveAtom<boolean> & {
|
|
6
6
|
init: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const errorAtom: import("jotai
|
|
8
|
+
export declare const errorAtom: import("jotai").PrimitiveAtom<Error | null> & {
|
|
9
9
|
init: Error | null;
|
|
10
10
|
};
|
|
11
|
-
export declare const chatHistoryAtom: import("jotai
|
|
11
|
+
export declare const chatHistoryAtom: import("jotai").PrimitiveAtom<TChat.ChatHistory> & {
|
|
12
12
|
init: TChat.ChatHistory;
|
|
13
13
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ChangeEventHandler } from "react";
|
|
2
1
|
interface TTDDialogInputProps {
|
|
3
2
|
input: string;
|
|
4
3
|
placeholder: string;
|
|
5
|
-
onChange:
|
|
4
|
+
onChange: (value: string) => void;
|
|
6
5
|
onKeyboardSubmit?: () => void;
|
|
6
|
+
errorLine?: number | null;
|
|
7
7
|
}
|
|
8
|
-
export declare const TTDDialogInput: ({ input, placeholder, onChange, onKeyboardSubmit, }: TTDDialogInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const TTDDialogInput: ({ input, placeholder, onChange, onKeyboardSubmit, errorLine, }: TTDDialogInputProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
export {};
|
|
@@ -3,6 +3,9 @@ interface TTDDialogOutputProps {
|
|
|
3
3
|
canvasRef: React.RefObject<HTMLDivElement | null>;
|
|
4
4
|
loaded: boolean;
|
|
5
5
|
hideErrorDetails?: boolean;
|
|
6
|
+
sourceText?: string;
|
|
7
|
+
autoFixAvailable?: boolean;
|
|
8
|
+
onApplyAutoFix?: () => void;
|
|
6
9
|
}
|
|
7
|
-
export declare const TTDDialogOutput: ({ error, canvasRef, loaded, hideErrorDetails, }: TTDDialogOutputProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const TTDDialogOutput: ({ error, canvasRef, loaded, hideErrorDetails, sourceText, autoFixAvailable, onApplyAutoFix, }: TTDDialogOutputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export {};
|
|
@@ -9,13 +9,13 @@ interface UseTTDChatStorageReturn {
|
|
|
9
9
|
restoreChat: (chat: SavedChat) => SavedChat;
|
|
10
10
|
createNewChatId: () => Promise<string>;
|
|
11
11
|
}
|
|
12
|
-
export declare const savedChatsAtom: import("jotai
|
|
12
|
+
export declare const savedChatsAtom: import("jotai").PrimitiveAtom<SavedChats> & {
|
|
13
13
|
init: SavedChats;
|
|
14
14
|
};
|
|
15
|
-
export declare const isLoadingChatsAtom: import("jotai
|
|
15
|
+
export declare const isLoadingChatsAtom: import("jotai").PrimitiveAtom<boolean> & {
|
|
16
16
|
init: boolean;
|
|
17
17
|
};
|
|
18
|
-
export declare const chatsLoadedAtom: import("jotai
|
|
18
|
+
export declare const chatsLoadedAtom: import("jotai").PrimitiveAtom<boolean> & {
|
|
19
19
|
init: boolean;
|
|
20
20
|
};
|
|
21
21
|
export declare const useTTDChatStorage: ({ persistenceAdapter, }: UseTTDChatStorageProps) => UseTTDChatStorageReturn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getMermaidAutoFixCandidates: (sourceText: string, errorMessage: string) => string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const isMermaidParseSyntaxError: (message: string) => boolean;
|
|
2
|
+
export declare const isMermaidAutoFixableError: (message: string) => boolean;
|
|
3
|
+
export declare const isMermaidCaretLine: (line: string) => boolean;
|
|
4
|
+
export declare const getMermaidInactiveParticipant: (message: string) => string | null;
|
|
5
|
+
export declare const getMermaidErrorLineNumber: (message: string, sourceText?: string) => number | null;
|
|
6
|
+
export declare const getMermaidSyntaxErrorGuidance: (message: string, sourceText?: string) => {
|
|
7
|
+
summary: string;
|
|
8
|
+
likelyCauses: string[];
|
|
9
|
+
} | null;
|
|
10
|
+
export declare const formatMermaidParseErrorMessage: (message: string) => string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import "./Toast.scss";
|
|
2
|
-
import type { CSSProperties } from "react";
|
|
3
|
-
export declare const Toast: ({ message, onClose, closable, duration, style, }: {
|
|
4
|
-
message:
|
|
2
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
3
|
+
export declare const Toast: (({ message, onClose, closable, duration, style, }: {
|
|
4
|
+
message: ReactNode;
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
closable?: boolean;
|
|
7
7
|
duration?: number;
|
|
8
8
|
style?: CSSProperties;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
|
+
ProgressBar: ({ progress }: {
|
|
11
|
+
progress: number;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
@@ -11,7 +11,7 @@ type InteractiveCanvasProps = {
|
|
|
11
11
|
visibleElements: readonly NonDeletedExcalidrawElement[];
|
|
12
12
|
selectedElements: readonly NonDeletedExcalidrawElement[];
|
|
13
13
|
allElementsMap: NonDeletedSceneElementsMap;
|
|
14
|
-
|
|
14
|
+
canvasNonce: string;
|
|
15
15
|
selectionNonce: number | undefined;
|
|
16
16
|
scale: number;
|
|
17
17
|
appState: InteractiveCanvasAppState;
|
|
@@ -21,6 +21,7 @@ type InteractiveCanvasProps = {
|
|
|
21
21
|
renderInteractiveSceneCallback: (data: RenderInteractiveSceneCallback) => void;
|
|
22
22
|
handleCanvasRef: (canvas: HTMLCanvasElement | null) => void;
|
|
23
23
|
onContextMenu: Exclude<DOMAttributes<HTMLCanvasElement | HTMLDivElement>["onContextMenu"], undefined>;
|
|
24
|
+
onClick: Exclude<DOMAttributes<HTMLCanvasElement>["onClick"], undefined>;
|
|
24
25
|
onPointerMove: Exclude<DOMAttributes<HTMLCanvasElement>["onPointerMove"], undefined>;
|
|
25
26
|
onPointerUp: Exclude<DOMAttributes<HTMLCanvasElement>["onPointerUp"], undefined>;
|
|
26
27
|
onPointerCancel: Exclude<DOMAttributes<HTMLCanvasElement>["onPointerCancel"], undefined>;
|
|
@@ -4,6 +4,7 @@ import type { AppState } from "../../types";
|
|
|
4
4
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
5
5
|
interface NewElementCanvasProps {
|
|
6
6
|
appState: AppState;
|
|
7
|
+
newElement: NonNullable<AppState["newElement"]>;
|
|
7
8
|
elementsMap: RenderableElementsMap;
|
|
8
9
|
allElementsMap: NonDeletedSceneElementsMap;
|
|
9
10
|
scale: number;
|
|
@@ -9,7 +9,7 @@ type StaticCanvasProps = {
|
|
|
9
9
|
elementsMap: RenderableElementsMap;
|
|
10
10
|
allElementsMap: NonDeletedSceneElementsMap;
|
|
11
11
|
visibleElements: readonly NonDeletedExcalidrawElement[];
|
|
12
|
-
|
|
12
|
+
canvasNonce: string;
|
|
13
13
|
selectionNonce: number | undefined;
|
|
14
14
|
scale: number;
|
|
15
15
|
appState: StaticCanvasAppState;
|
|
@@ -9,9 +9,10 @@ type Props<T> = {
|
|
|
9
9
|
onChange: (value: T) => void;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
name: string;
|
|
12
|
+
icon?: React.ReactNode;
|
|
12
13
|
};
|
|
13
14
|
declare const DropdownMenuItemContentRadio: {
|
|
14
|
-
<T>({ value, shortcut, onChange, choices, children, name, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
<T>({ value, shortcut, onChange, choices, children, name, icon, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
displayName: string;
|
|
16
17
|
};
|
|
17
18
|
export default DropdownMenuItemContentRadio;
|
|
@@ -114,6 +114,8 @@ export declare const StrokeStyleDottedIcon: import("react/jsx-runtime").JSX.Elem
|
|
|
114
114
|
export declare const SloppinessArchitectIcon: import("react/jsx-runtime").JSX.Element;
|
|
115
115
|
export declare const SloppinessArtistIcon: import("react/jsx-runtime").JSX.Element;
|
|
116
116
|
export declare const SloppinessCartoonistIcon: import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
export declare const strokeVariabilityConstantIcon: import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
export declare const strokeVariabilityVariableIcon: import("react/jsx-runtime").JSX.Element;
|
|
117
119
|
export declare const EdgeSharpIcon: import("react/jsx-runtime").JSX.Element;
|
|
118
120
|
export declare const EdgeRoundIcon: import("react/jsx-runtime").JSX.Element;
|
|
119
121
|
export declare const ArrowheadNoneIcon: React.MemoExoticComponent<({ flip }: {
|
|
@@ -122,34 +124,43 @@ export declare const ArrowheadNoneIcon: React.MemoExoticComponent<({ flip }: {
|
|
|
122
124
|
export declare const ArrowheadArrowIcon: React.MemoExoticComponent<({ flip }: {
|
|
123
125
|
flip?: boolean;
|
|
124
126
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
127
|
+
export declare const ArrowheadTriangleIcon: React.MemoExoticComponent<({ flip }: {
|
|
128
|
+
flip?: boolean;
|
|
129
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
130
|
+
export declare const ArrowheadTriangleOutlineIcon: React.MemoExoticComponent<({ flip }: {
|
|
131
|
+
flip?: boolean;
|
|
132
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
125
133
|
export declare const ArrowheadCircleIcon: React.MemoExoticComponent<({ flip }: {
|
|
126
134
|
flip?: boolean;
|
|
127
135
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
128
136
|
export declare const ArrowheadCircleOutlineIcon: React.MemoExoticComponent<({ flip }: {
|
|
129
137
|
flip?: boolean;
|
|
130
138
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
131
|
-
export declare const
|
|
139
|
+
export declare const ArrowheadDiamondIcon: React.MemoExoticComponent<({ flip }: {
|
|
132
140
|
flip?: boolean;
|
|
133
141
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
134
|
-
export declare const
|
|
142
|
+
export declare const ArrowheadDiamondOutlineIcon: React.MemoExoticComponent<({ flip }: {
|
|
135
143
|
flip?: boolean;
|
|
136
144
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
137
|
-
export declare const
|
|
145
|
+
export declare const ArrowheadBarIcon: React.MemoExoticComponent<({ flip }: {
|
|
138
146
|
flip?: boolean;
|
|
139
147
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
140
|
-
export declare const
|
|
148
|
+
export declare const ArrowheadCardinalityOneIcon: React.MemoExoticComponent<({ flip }: {
|
|
141
149
|
flip?: boolean;
|
|
142
150
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
143
|
-
export declare const
|
|
151
|
+
export declare const ArrowheadCardinalityManyIcon: React.MemoExoticComponent<({ flip }: {
|
|
152
|
+
flip?: boolean;
|
|
153
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
154
|
+
export declare const ArrowheadCardinalityOneOrManyIcon: React.MemoExoticComponent<({ flip }: {
|
|
144
155
|
flip?: boolean;
|
|
145
156
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
146
|
-
export declare const
|
|
157
|
+
export declare const ArrowheadCardinalityExactlyOneIcon: React.MemoExoticComponent<({ flip }: {
|
|
147
158
|
flip?: boolean;
|
|
148
159
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
149
|
-
export declare const
|
|
160
|
+
export declare const ArrowheadCardinalityZeroOrOneIcon: React.MemoExoticComponent<({ flip }: {
|
|
150
161
|
flip?: boolean;
|
|
151
162
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
152
|
-
export declare const
|
|
163
|
+
export declare const ArrowheadCardinalityZeroOrManyIcon: React.MemoExoticComponent<({ flip }: {
|
|
153
164
|
flip?: boolean;
|
|
154
165
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
155
166
|
export declare const FontSizeSmallIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -35,11 +35,14 @@ export declare const ClearCanvas: {
|
|
|
35
35
|
export declare const ToggleTheme: {
|
|
36
36
|
(props: {
|
|
37
37
|
allowSystemTheme: true;
|
|
38
|
+
/**
|
|
39
|
+
* Controls the theme of this UI component only.
|
|
40
|
+
* You should subscribe to `props.onThemeChange` and control the theme
|
|
41
|
+
* upstream.
|
|
42
|
+
*/
|
|
38
43
|
theme: Theme | "system";
|
|
39
|
-
onSelect: (theme: Theme | "system") => void;
|
|
40
44
|
} | {
|
|
41
|
-
allowSystemTheme
|
|
42
|
-
onSelect?: (theme: Theme) => void;
|
|
45
|
+
allowSystemTheme: false;
|
|
43
46
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
44
47
|
displayName: string;
|
|
45
48
|
};
|
|
@@ -70,7 +73,10 @@ export declare const Preferences: {
|
|
|
70
73
|
additionalItems?: React.ReactNode;
|
|
71
74
|
}): import("react/jsx-runtime").JSX.Element;
|
|
72
75
|
ToggleToolLock: () => import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
BoxSelectionMode: () => import("react/jsx-runtime").JSX.Element;
|
|
73
77
|
ToggleSnapMode: () => import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
ToggleArrowBinding: () => import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
ToggleMidpointSnapping: () => import("react/jsx-runtime").JSX.Element;
|
|
74
80
|
ToggleGridMode: () => import("react/jsx-runtime").JSX.Element;
|
|
75
81
|
ToggleZenMode: () => import("react/jsx-runtime").JSX.Element;
|
|
76
82
|
ToggleViewMode: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -169,6 +169,13 @@ export declare const getToolbarTools: (app: AppClassProperties) => readonly [{
|
|
|
169
169
|
readonly fillable: false;
|
|
170
170
|
readonly toolbar: false;
|
|
171
171
|
}] | readonly [{
|
|
172
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
173
|
+
readonly value: "hand";
|
|
174
|
+
readonly key: "h";
|
|
175
|
+
readonly numericKey: null;
|
|
176
|
+
readonly fillable: false;
|
|
177
|
+
readonly toolbar: true;
|
|
178
|
+
}, {
|
|
172
179
|
readonly value: "lasso";
|
|
173
180
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
174
181
|
readonly key: "v";
|