@excalidraw/math 0.18.0-9ba0f5d → 0.18.0-a9ca16e
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 +116 -125
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +1 -1
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/colors.d.ts +1 -1
- package/dist/types/common/src/constants.d.ts +4 -0
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/utils.d.ts +4 -7
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +2 -0
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +13 -8
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/collision.d.ts +4 -3
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/index.d.ts +3 -0
- package/dist/types/element/src/linearElementEditor.d.ts +5 -0
- package/dist/types/element/src/mutateElement.d.ts +2 -0
- package/dist/types/element/src/selection.d.ts +5 -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/types.d.ts +5 -2
- package/dist/types/element/src/utils.d.ts +5 -3
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +38 -35
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +27 -25
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +157 -145
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +41 -36
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionExport.d.ts +75 -347
- package/dist/types/excalidraw/actions/actionFrame.d.ts +52 -48
- package/dist/types/excalidraw/actions/actionGroup.d.ts +27 -25
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -12
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionProperties.d.ts +28 -26
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -11
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/index.d.ts +2 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +9 -7
- 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 +6 -7
- package/dist/types/excalidraw/components/App.d.ts +53 -13
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
- 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/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +4 -0
- 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 +1 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/icons.d.ts +23 -9
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -0
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
- package/dist/types/excalidraw/components/shapes.d.ts +74 -1
- package/dist/types/excalidraw/data/blob.d.ts +45 -44
- 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 +37 -28
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +93 -16
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/math/src/point.d.ts +7 -2
- package/dist/types/math/src/types.d.ts +25 -1
- package/package.json +2 -2
- 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 -46
- package/dist/types/excalidraw/polyfill.d.ts +0 -2
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./DropdownMenu.scss";
|
|
3
3
|
declare const DropdownMenu: {
|
|
4
|
-
({ children, open,
|
|
4
|
+
({ children, open, }: {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
open: boolean;
|
|
7
|
-
placement?: "top" | "bottom";
|
|
8
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
Trigger: {
|
|
10
9
|
({ className, children, onToggle, title, ...rest }: {
|
|
@@ -16,29 +15,19 @@ declare const DropdownMenu: {
|
|
|
16
15
|
displayName: string;
|
|
17
16
|
};
|
|
18
17
|
Content: {
|
|
19
|
-
({ children, onClickOutside, className, onSelect,
|
|
18
|
+
({ children, onClickOutside, className, onSelect, open, align, style, }: {
|
|
20
19
|
children?: React.ReactNode;
|
|
21
20
|
onClickOutside?: () => void;
|
|
22
21
|
className?: string;
|
|
23
22
|
onSelect?: (event: Event) => void;
|
|
23
|
+
open?: boolean;
|
|
24
24
|
style?: React.CSSProperties;
|
|
25
|
-
|
|
25
|
+
align?: "start" | "center" | "end";
|
|
26
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
};
|
|
29
29
|
Item: {
|
|
30
|
-
({ icon,
|
|
31
|
-
icon?: React.JSX.Element;
|
|
32
|
-
value?: string | number | undefined;
|
|
33
|
-
order?: number;
|
|
34
|
-
onSelect?: (event: Event) => void;
|
|
35
|
-
children: React.ReactNode;
|
|
36
|
-
shortcut?: string;
|
|
37
|
-
hovered?: boolean;
|
|
38
|
-
selected?: boolean;
|
|
39
|
-
textStyle?: React.CSSProperties;
|
|
40
|
-
className?: string;
|
|
41
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
({ icon, badge, value, children, shortcut, className, selected, onSelect, ...rest }: import("./DropdownMenuItem").DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
42
31
|
displayName: string;
|
|
43
32
|
Badge: {
|
|
44
33
|
({ type, children, }: {
|
|
@@ -48,6 +37,9 @@ declare const DropdownMenu: {
|
|
|
48
37
|
displayName: string;
|
|
49
38
|
};
|
|
50
39
|
};
|
|
40
|
+
ItemCheckbox: (props: Omit<import("./DropdownMenuItem").DropdownMenuItemProps, "icon"> & {
|
|
41
|
+
checked: boolean;
|
|
42
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
51
43
|
ItemLink: {
|
|
52
44
|
({ icon, shortcut, href, children, onSelect, className, selected, rel, ...rest }: {
|
|
53
45
|
href: string;
|
|
@@ -79,6 +71,28 @@ declare const DropdownMenu: {
|
|
|
79
71
|
(): import("react/jsx-runtime").JSX.Element;
|
|
80
72
|
displayName: string;
|
|
81
73
|
};
|
|
74
|
+
Sub: {
|
|
75
|
+
({ children }: {
|
|
76
|
+
children?: React.ReactNode;
|
|
77
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
Trigger: {
|
|
79
|
+
({ children, icon, shortcut, className, }: {
|
|
80
|
+
children: React.ReactNode;
|
|
81
|
+
icon?: React.JSX.Element;
|
|
82
|
+
shortcut?: string;
|
|
83
|
+
className?: string;
|
|
84
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
displayName: string;
|
|
86
|
+
};
|
|
87
|
+
Content: {
|
|
88
|
+
({ children, className, }: {
|
|
89
|
+
children?: React.ReactNode;
|
|
90
|
+
className?: string;
|
|
91
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
displayName: string;
|
|
93
|
+
};
|
|
94
|
+
displayName: string;
|
|
95
|
+
};
|
|
82
96
|
displayName: string;
|
|
83
97
|
};
|
|
84
98
|
export default DropdownMenu;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const MenuContent: {
|
|
3
|
-
({ children, onClickOutside, className, onSelect,
|
|
3
|
+
({ children, onClickOutside, className, onSelect, open, align, style, }: {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
onClickOutside?: () => void;
|
|
6
6
|
className?: string;
|
|
@@ -8,8 +8,9 @@ declare const MenuContent: {
|
|
|
8
8
|
* Called when any menu item is selected (clicked on).
|
|
9
9
|
*/
|
|
10
10
|
onSelect?: (event: Event) => void;
|
|
11
|
+
open?: boolean;
|
|
11
12
|
style?: React.CSSProperties;
|
|
12
|
-
|
|
13
|
+
align?: "start" | "center" | "end";
|
|
13
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
displayName: string;
|
|
15
16
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ValueOf } from "@excalidraw/common/utility-types";
|
|
3
3
|
import type { JSX } from "react";
|
|
4
|
+
export type DropdownMenuItemProps = {
|
|
5
|
+
icon?: JSX.Element;
|
|
6
|
+
badge?: React.ReactNode;
|
|
7
|
+
value?: string | number | undefined;
|
|
8
|
+
onSelect?: (event: Event) => void;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
shortcut?: string;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">;
|
|
4
14
|
declare const DropdownMenuItem: {
|
|
5
|
-
({ icon,
|
|
6
|
-
icon?: JSX.Element;
|
|
7
|
-
value?: string | number | undefined;
|
|
8
|
-
order?: number;
|
|
9
|
-
onSelect?: (event: Event) => void;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
shortcut?: string;
|
|
12
|
-
hovered?: boolean;
|
|
13
|
-
selected?: boolean;
|
|
14
|
-
textStyle?: React.CSSProperties;
|
|
15
|
-
className?: string;
|
|
16
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
({ icon, badge, value, children, shortcut, className, selected, onSelect, ...rest }: DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
displayName: string;
|
|
18
17
|
Badge: {
|
|
19
18
|
({ type, children, }: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { JSX } from "react";
|
|
2
|
-
declare const MenuItemContent: ({ textStyle, icon, shortcut, children, }: {
|
|
2
|
+
declare const MenuItemContent: ({ textStyle, icon, shortcut, children, badge, }: {
|
|
3
3
|
icon?: JSX.Element;
|
|
4
4
|
shortcut?: string;
|
|
5
5
|
textStyle?: React.CSSProperties;
|
|
6
6
|
children: React.ReactNode;
|
|
7
|
+
badge?: React.ReactNode;
|
|
7
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default MenuItemContent;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const DropdownMenuSub: {
|
|
2
|
+
({ children }: {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
Trigger: {
|
|
6
|
+
({ children, icon, shortcut, className, }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
icon?: import("react").JSX.Element;
|
|
9
|
+
shortcut?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Content: {
|
|
15
|
+
({ children, className, }: {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
export default DropdownMenuSub;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { JSX } from "react";
|
|
3
|
+
declare const DropdownMenuSubTrigger: {
|
|
4
|
+
({ children, icon, shortcut, className, }: {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
icon?: JSX.Element;
|
|
7
|
+
shortcut?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default DropdownMenuSubTrigger;
|
|
@@ -3,4 +3,4 @@ export declare const DropdownMenuContentPropsContext: React.Context<{
|
|
|
3
3
|
onSelect?: (event: Event) => void;
|
|
4
4
|
}>;
|
|
5
5
|
export declare const getDropdownMenuItemClassName: (className?: string, selected?: boolean, hovered?: boolean) => string;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const useHandleDropdownMenuItemSelect: (onSelect: ((event: Event) => void) | undefined) => (event: Event) => void;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare const getMenuTriggerComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
|
|
3
3
|
export declare const getMenuContentComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
|
|
4
|
+
export declare const getSubMenuTriggerComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
|
|
5
|
+
export declare const getSubMenuContentComponent: (children: React.ReactNode) => string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
|
|
@@ -116,38 +116,49 @@ export declare const SloppinessArtistIcon: import("react/jsx-runtime").JSX.Eleme
|
|
|
116
116
|
export declare const SloppinessCartoonistIcon: import("react/jsx-runtime").JSX.Element;
|
|
117
117
|
export declare const EdgeSharpIcon: import("react/jsx-runtime").JSX.Element;
|
|
118
118
|
export declare const EdgeRoundIcon: import("react/jsx-runtime").JSX.Element;
|
|
119
|
-
export declare const ArrowheadNoneIcon:
|
|
119
|
+
export declare const ArrowheadNoneIcon: React.MemoExoticComponent<({ flip }: {
|
|
120
|
+
flip?: boolean;
|
|
121
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
120
122
|
export declare const ArrowheadArrowIcon: React.MemoExoticComponent<({ flip }: {
|
|
121
123
|
flip?: boolean;
|
|
122
124
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
125
|
+
export declare const ArrowheadTriangleIcon: React.MemoExoticComponent<({ flip }: {
|
|
126
|
+
flip?: boolean;
|
|
127
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
128
|
+
export declare const ArrowheadTriangleOutlineIcon: React.MemoExoticComponent<({ flip }: {
|
|
129
|
+
flip?: boolean;
|
|
130
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
123
131
|
export declare const ArrowheadCircleIcon: React.MemoExoticComponent<({ flip }: {
|
|
124
132
|
flip?: boolean;
|
|
125
133
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
126
134
|
export declare const ArrowheadCircleOutlineIcon: React.MemoExoticComponent<({ flip }: {
|
|
127
135
|
flip?: boolean;
|
|
128
136
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
129
|
-
export declare const
|
|
137
|
+
export declare const ArrowheadDiamondIcon: React.MemoExoticComponent<({ flip }: {
|
|
130
138
|
flip?: boolean;
|
|
131
139
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
132
|
-
export declare const
|
|
140
|
+
export declare const ArrowheadDiamondOutlineIcon: React.MemoExoticComponent<({ flip }: {
|
|
133
141
|
flip?: boolean;
|
|
134
142
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
135
|
-
export declare const
|
|
143
|
+
export declare const ArrowheadBarIcon: React.MemoExoticComponent<({ flip }: {
|
|
136
144
|
flip?: boolean;
|
|
137
145
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
138
|
-
export declare const
|
|
146
|
+
export declare const ArrowheadCardinalityOneIcon: React.MemoExoticComponent<({ flip }: {
|
|
139
147
|
flip?: boolean;
|
|
140
148
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
141
|
-
export declare const
|
|
149
|
+
export declare const ArrowheadCardinalityManyIcon: React.MemoExoticComponent<({ flip }: {
|
|
150
|
+
flip?: boolean;
|
|
151
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
152
|
+
export declare const ArrowheadCardinalityOneOrManyIcon: React.MemoExoticComponent<({ flip }: {
|
|
142
153
|
flip?: boolean;
|
|
143
154
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
144
|
-
export declare const
|
|
155
|
+
export declare const ArrowheadCardinalityExactlyOneIcon: React.MemoExoticComponent<({ flip }: {
|
|
145
156
|
flip?: boolean;
|
|
146
157
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
147
|
-
export declare const
|
|
158
|
+
export declare const ArrowheadCardinalityZeroOrOneIcon: React.MemoExoticComponent<({ flip }: {
|
|
148
159
|
flip?: boolean;
|
|
149
160
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
150
|
-
export declare const
|
|
161
|
+
export declare const ArrowheadCardinalityZeroOrManyIcon: React.MemoExoticComponent<({ flip }: {
|
|
151
162
|
flip?: boolean;
|
|
152
163
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
153
164
|
export declare const FontSizeSmallIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -236,4 +247,7 @@ export declare const chevronLeftIcon: import("react/jsx-runtime").JSX.Element;
|
|
|
236
247
|
export declare const sidebarRightIcon: import("react/jsx-runtime").JSX.Element;
|
|
237
248
|
export declare const messageCircleIcon: import("react/jsx-runtime").JSX.Element;
|
|
238
249
|
export declare const presentationIcon: import("react/jsx-runtime").JSX.Element;
|
|
250
|
+
export declare const emptyIcon: import("react/jsx-runtime").JSX.Element;
|
|
251
|
+
export declare const chevronRight: import("react/jsx-runtime").JSX.Element;
|
|
252
|
+
export declare const settingsIcon: import("react/jsx-runtime").JSX.Element;
|
|
239
253
|
export {};
|
|
@@ -62,3 +62,20 @@ export declare const LiveCollaborationTrigger: {
|
|
|
62
62
|
}): import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
displayName: string;
|
|
64
64
|
};
|
|
65
|
+
export declare const PreferencesToggleGridModeItem: () => import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export declare const PreferencesToggleZenModeItem: () => import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export declare const Preferences: {
|
|
68
|
+
({ children, additionalItems, }: {
|
|
69
|
+
children?: React.ReactNode;
|
|
70
|
+
additionalItems?: React.ReactNode;
|
|
71
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
ToggleToolLock: () => import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
ToggleSnapMode: () => import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
ToggleArrowBinding: () => import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
ToggleMidpointSnapping: () => import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
ToggleGridMode: () => import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
ToggleZenMode: () => import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
ToggleViewMode: () => import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
ToggleElementProperties: () => import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
displayName: string;
|
|
81
|
+
};
|
|
@@ -19,20 +19,7 @@ declare const MainMenu: React.FC<{
|
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
21
21
|
Item: {
|
|
22
|
-
({ icon,
|
|
23
|
-
icon?: React.JSX.Element;
|
|
24
|
-
value?: string | number | undefined;
|
|
25
|
-
order?: number;
|
|
26
|
-
onSelect?: (event: Event) => void;
|
|
27
|
-
children: React.ReactNode;
|
|
28
|
-
shortcut? /**
|
|
29
|
-
* Called when any menu item is selected (clicked on).
|
|
30
|
-
*/: string;
|
|
31
|
-
hovered?: boolean;
|
|
32
|
-
selected?: boolean;
|
|
33
|
-
textStyle?: React.CSSProperties;
|
|
34
|
-
className?: string;
|
|
35
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
({ icon, badge, value, children, shortcut, className, selected, onSelect, ...rest }: import("../dropdownMenu/DropdownMenuItem").DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
36
23
|
displayName: string;
|
|
37
24
|
Badge: {
|
|
38
25
|
({ type, children, }: {
|
|
@@ -73,6 +60,28 @@ declare const MainMenu: React.FC<{
|
|
|
73
60
|
(): import("react/jsx-runtime").JSX.Element;
|
|
74
61
|
displayName: string;
|
|
75
62
|
};
|
|
63
|
+
Sub: {
|
|
64
|
+
({ children }: {
|
|
65
|
+
children?: React.ReactNode;
|
|
66
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
Trigger: {
|
|
68
|
+
({ children, icon, shortcut, className, }: {
|
|
69
|
+
children: React.ReactNode;
|
|
70
|
+
icon?: React.JSX.Element;
|
|
71
|
+
shortcut?: string;
|
|
72
|
+
className?: string;
|
|
73
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
displayName: string;
|
|
75
|
+
};
|
|
76
|
+
Content: {
|
|
77
|
+
({ children, className, }: {
|
|
78
|
+
children?: React.ReactNode;
|
|
79
|
+
className?: string;
|
|
80
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
displayName: string;
|
|
82
|
+
};
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
76
85
|
DefaultItems: typeof DefaultItems;
|
|
77
86
|
};
|
|
78
87
|
export default MainMenu;
|
|
@@ -1,190 +1,263 @@
|
|
|
1
1
|
import type { AppClassProperties } from "../types";
|
|
2
2
|
export declare const SHAPES: readonly [{
|
|
3
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
readonly value: "hand";
|
|
5
|
+
readonly key: "h";
|
|
6
|
+
readonly numericKey: null;
|
|
7
|
+
readonly fillable: false;
|
|
8
|
+
readonly toolbar: true;
|
|
9
|
+
}, {
|
|
3
10
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
4
11
|
readonly value: "selection";
|
|
5
12
|
readonly key: "v";
|
|
6
13
|
readonly numericKey: "1";
|
|
7
14
|
readonly fillable: true;
|
|
15
|
+
readonly toolbar: true;
|
|
8
16
|
}, {
|
|
9
17
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
10
18
|
readonly value: "rectangle";
|
|
11
19
|
readonly key: "r";
|
|
12
20
|
readonly numericKey: "2";
|
|
13
21
|
readonly fillable: true;
|
|
22
|
+
readonly toolbar: true;
|
|
14
23
|
}, {
|
|
15
24
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
16
25
|
readonly value: "diamond";
|
|
17
26
|
readonly key: "d";
|
|
18
27
|
readonly numericKey: "3";
|
|
19
28
|
readonly fillable: true;
|
|
29
|
+
readonly toolbar: true;
|
|
20
30
|
}, {
|
|
21
31
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
22
32
|
readonly value: "ellipse";
|
|
23
33
|
readonly key: "o";
|
|
24
34
|
readonly numericKey: "4";
|
|
25
35
|
readonly fillable: true;
|
|
36
|
+
readonly toolbar: true;
|
|
26
37
|
}, {
|
|
27
38
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
28
39
|
readonly value: "arrow";
|
|
29
40
|
readonly key: "a";
|
|
30
41
|
readonly numericKey: "5";
|
|
31
42
|
readonly fillable: true;
|
|
43
|
+
readonly toolbar: true;
|
|
32
44
|
}, {
|
|
33
45
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
34
46
|
readonly value: "line";
|
|
35
47
|
readonly key: "l";
|
|
36
48
|
readonly numericKey: "6";
|
|
37
49
|
readonly fillable: true;
|
|
50
|
+
readonly toolbar: true;
|
|
38
51
|
}, {
|
|
39
52
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
40
53
|
readonly value: "freedraw";
|
|
41
54
|
readonly key: readonly ["p", "x"];
|
|
42
55
|
readonly numericKey: "7";
|
|
43
56
|
readonly fillable: false;
|
|
57
|
+
readonly toolbar: true;
|
|
44
58
|
}, {
|
|
45
59
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
46
60
|
readonly value: "text";
|
|
47
61
|
readonly key: "t";
|
|
48
62
|
readonly numericKey: "8";
|
|
49
63
|
readonly fillable: false;
|
|
64
|
+
readonly toolbar: true;
|
|
50
65
|
}, {
|
|
51
66
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
52
67
|
readonly value: "image";
|
|
53
68
|
readonly key: null;
|
|
54
69
|
readonly numericKey: "9";
|
|
55
70
|
readonly fillable: false;
|
|
71
|
+
readonly toolbar: true;
|
|
56
72
|
}, {
|
|
57
73
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
58
74
|
readonly value: "eraser";
|
|
59
75
|
readonly key: "e";
|
|
60
76
|
readonly numericKey: "0";
|
|
61
77
|
readonly fillable: false;
|
|
78
|
+
readonly toolbar: true;
|
|
79
|
+
}, {
|
|
80
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
readonly value: "laser";
|
|
82
|
+
readonly key: "k";
|
|
83
|
+
readonly numericKey: null;
|
|
84
|
+
readonly fillable: false;
|
|
85
|
+
readonly toolbar: false;
|
|
62
86
|
}];
|
|
63
87
|
export declare const getToolbarTools: (app: AppClassProperties) => readonly [{
|
|
88
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
readonly value: "hand";
|
|
90
|
+
readonly key: "h";
|
|
91
|
+
readonly numericKey: null;
|
|
92
|
+
readonly fillable: false;
|
|
93
|
+
readonly toolbar: true;
|
|
94
|
+
}, {
|
|
64
95
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
65
96
|
readonly value: "selection";
|
|
66
97
|
readonly key: "v";
|
|
67
98
|
readonly numericKey: "1";
|
|
68
99
|
readonly fillable: true;
|
|
100
|
+
readonly toolbar: true;
|
|
69
101
|
}, {
|
|
70
102
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
71
103
|
readonly value: "rectangle";
|
|
72
104
|
readonly key: "r";
|
|
73
105
|
readonly numericKey: "2";
|
|
74
106
|
readonly fillable: true;
|
|
107
|
+
readonly toolbar: true;
|
|
75
108
|
}, {
|
|
76
109
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
77
110
|
readonly value: "diamond";
|
|
78
111
|
readonly key: "d";
|
|
79
112
|
readonly numericKey: "3";
|
|
80
113
|
readonly fillable: true;
|
|
114
|
+
readonly toolbar: true;
|
|
81
115
|
}, {
|
|
82
116
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
83
117
|
readonly value: "ellipse";
|
|
84
118
|
readonly key: "o";
|
|
85
119
|
readonly numericKey: "4";
|
|
86
120
|
readonly fillable: true;
|
|
121
|
+
readonly toolbar: true;
|
|
87
122
|
}, {
|
|
88
123
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
89
124
|
readonly value: "arrow";
|
|
90
125
|
readonly key: "a";
|
|
91
126
|
readonly numericKey: "5";
|
|
92
127
|
readonly fillable: true;
|
|
128
|
+
readonly toolbar: true;
|
|
93
129
|
}, {
|
|
94
130
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
95
131
|
readonly value: "line";
|
|
96
132
|
readonly key: "l";
|
|
97
133
|
readonly numericKey: "6";
|
|
98
134
|
readonly fillable: true;
|
|
135
|
+
readonly toolbar: true;
|
|
99
136
|
}, {
|
|
100
137
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
101
138
|
readonly value: "freedraw";
|
|
102
139
|
readonly key: readonly ["p", "x"];
|
|
103
140
|
readonly numericKey: "7";
|
|
104
141
|
readonly fillable: false;
|
|
142
|
+
readonly toolbar: true;
|
|
105
143
|
}, {
|
|
106
144
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
107
145
|
readonly value: "text";
|
|
108
146
|
readonly key: "t";
|
|
109
147
|
readonly numericKey: "8";
|
|
110
148
|
readonly fillable: false;
|
|
149
|
+
readonly toolbar: true;
|
|
111
150
|
}, {
|
|
112
151
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
113
152
|
readonly value: "image";
|
|
114
153
|
readonly key: null;
|
|
115
154
|
readonly numericKey: "9";
|
|
116
155
|
readonly fillable: false;
|
|
156
|
+
readonly toolbar: true;
|
|
117
157
|
}, {
|
|
118
158
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
119
159
|
readonly value: "eraser";
|
|
120
160
|
readonly key: "e";
|
|
121
161
|
readonly numericKey: "0";
|
|
122
162
|
readonly fillable: false;
|
|
163
|
+
readonly toolbar: true;
|
|
164
|
+
}, {
|
|
165
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
166
|
+
readonly value: "laser";
|
|
167
|
+
readonly key: "k";
|
|
168
|
+
readonly numericKey: null;
|
|
169
|
+
readonly fillable: false;
|
|
170
|
+
readonly toolbar: false;
|
|
123
171
|
}] | readonly [{
|
|
124
172
|
readonly value: "lasso";
|
|
125
173
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
126
174
|
readonly key: "v";
|
|
127
175
|
readonly numericKey: "1";
|
|
128
176
|
readonly fillable: true;
|
|
177
|
+
readonly toolbar: true;
|
|
129
178
|
}, ...({
|
|
179
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
180
|
+
readonly value: "hand";
|
|
181
|
+
readonly key: "h";
|
|
182
|
+
readonly numericKey: null;
|
|
183
|
+
readonly fillable: false;
|
|
184
|
+
readonly toolbar: true;
|
|
185
|
+
} | {
|
|
130
186
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
131
187
|
readonly value: "selection";
|
|
132
188
|
readonly key: "v";
|
|
133
189
|
readonly numericKey: "1";
|
|
134
190
|
readonly fillable: true;
|
|
191
|
+
readonly toolbar: true;
|
|
135
192
|
} | {
|
|
136
193
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
137
194
|
readonly value: "rectangle";
|
|
138
195
|
readonly key: "r";
|
|
139
196
|
readonly numericKey: "2";
|
|
140
197
|
readonly fillable: true;
|
|
198
|
+
readonly toolbar: true;
|
|
141
199
|
} | {
|
|
142
200
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
143
201
|
readonly value: "diamond";
|
|
144
202
|
readonly key: "d";
|
|
145
203
|
readonly numericKey: "3";
|
|
146
204
|
readonly fillable: true;
|
|
205
|
+
readonly toolbar: true;
|
|
147
206
|
} | {
|
|
148
207
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
149
208
|
readonly value: "ellipse";
|
|
150
209
|
readonly key: "o";
|
|
151
210
|
readonly numericKey: "4";
|
|
152
211
|
readonly fillable: true;
|
|
212
|
+
readonly toolbar: true;
|
|
153
213
|
} | {
|
|
154
214
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
155
215
|
readonly value: "arrow";
|
|
156
216
|
readonly key: "a";
|
|
157
217
|
readonly numericKey: "5";
|
|
158
218
|
readonly fillable: true;
|
|
219
|
+
readonly toolbar: true;
|
|
159
220
|
} | {
|
|
160
221
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
161
222
|
readonly value: "line";
|
|
162
223
|
readonly key: "l";
|
|
163
224
|
readonly numericKey: "6";
|
|
164
225
|
readonly fillable: true;
|
|
226
|
+
readonly toolbar: true;
|
|
165
227
|
} | {
|
|
166
228
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
167
229
|
readonly value: "freedraw";
|
|
168
230
|
readonly key: readonly ["p", "x"];
|
|
169
231
|
readonly numericKey: "7";
|
|
170
232
|
readonly fillable: false;
|
|
233
|
+
readonly toolbar: true;
|
|
171
234
|
} | {
|
|
172
235
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
173
236
|
readonly value: "text";
|
|
174
237
|
readonly key: "t";
|
|
175
238
|
readonly numericKey: "8";
|
|
176
239
|
readonly fillable: false;
|
|
240
|
+
readonly toolbar: true;
|
|
177
241
|
} | {
|
|
178
242
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
179
243
|
readonly value: "image";
|
|
180
244
|
readonly key: null;
|
|
181
245
|
readonly numericKey: "9";
|
|
182
246
|
readonly fillable: false;
|
|
247
|
+
readonly toolbar: true;
|
|
183
248
|
} | {
|
|
184
249
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
185
250
|
readonly value: "eraser";
|
|
186
251
|
readonly key: "e";
|
|
187
252
|
readonly numericKey: "0";
|
|
188
253
|
readonly fillable: false;
|
|
254
|
+
readonly toolbar: true;
|
|
255
|
+
} | {
|
|
256
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
257
|
+
readonly value: "laser";
|
|
258
|
+
readonly key: "k";
|
|
259
|
+
readonly numericKey: null;
|
|
260
|
+
readonly fillable: false;
|
|
261
|
+
readonly toolbar: false;
|
|
189
262
|
})[]];
|
|
190
|
-
export declare const findShapeByKey: (key: string, app: AppClassProperties) => "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "lasso" | "eraser" | null;
|
|
263
|
+
export declare const findShapeByKey: (key: string, app: AppClassProperties) => "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "lasso" | "eraser" | "hand" | "laser" | null;
|