@excalidraw/element 0.18.0-c6f8ef9 → 0.18.0-d1cff91
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 +4978 -2538
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +18 -18
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +59 -39
- package/dist/types/common/src/constants.d.ts +37 -26
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +0 -1
- package/dist/types/common/src/utils.d.ts +52 -38
- package/dist/types/element/src/Scene.d.ts +5 -3
- 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 +67 -48
- package/dist/types/element/src/bounds.d.ts +3 -11
- package/dist/types/element/src/collision.d.ts +7 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/delta.d.ts +0 -1
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +5 -1
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +4 -3
- package/dist/types/element/src/linearElementEditor.d.ts +21 -20
- package/dist/types/element/src/mutateElement.d.ts +5 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -7
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +6 -5
- package/dist/types/element/src/selection.d.ts +3 -7
- package/dist/types/element/src/shape.d.ts +8 -7
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/textMeasurements.d.ts +1 -3
- package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
- package/dist/types/element/src/transformHandles.d.ts +8 -27
- package/dist/types/element/src/typeChecks.d.ts +4 -7
- package/dist/types/element/src/types.d.ts +8 -12
- package/dist/types/element/src/utils.d.ts +8 -3
- package/dist/types/element/src/visualdebug.d.ts +59 -0
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +120 -160
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +85 -112
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +509 -853
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +104 -872
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +41 -55
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +139 -183
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +33 -53
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +84 -111
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +42 -56
- package/dist/types/excalidraw/actions/actionExport.d.ts +181 -1141
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +263 -354
- package/dist/types/excalidraw/actions/actionGroup.d.ts +88 -123
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +151 -203
- package/dist/types/excalidraw/actions/actionLink.d.ts +39 -53
- package/dist/types/excalidraw/actions/actionMenu.d.ts +32 -418
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
- package/dist/types/excalidraw/actions/actionProperties.d.ts +144 -2501
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +44 -62
- package/dist/types/excalidraw/actions/actionStyles.d.ts +41 -55
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +41 -55
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +41 -55
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +30 -50
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +41 -55
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +41 -55
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +42 -56
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
- package/dist/types/excalidraw/actions/index.d.ts +4 -2
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -4
- package/dist/types/excalidraw/appState.d.ts +21 -14
- 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 +58 -19
- package/dist/types/excalidraw/components/Actions.d.ts +22 -5
- package/dist/types/excalidraw/components/App.d.ts +74 -66
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
- package/dist/types/excalidraw/components/Modal.d.ts +0 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
- package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
- package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
- package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
- package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
- package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/Toast.d.ts +3 -3
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- 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/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +32 -13
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
- package/dist/types/excalidraw/components/shapes.d.ts +202 -1
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
- package/dist/types/excalidraw/data/blob.d.ts +326 -10
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +160 -2
- package/dist/types/excalidraw/data/library.d.ts +24 -9
- package/dist/types/excalidraw/data/restore.d.ts +25 -10
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +8 -7
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +22 -5
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
- package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
- package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +52 -29
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/point.d.ts +6 -1
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +4 -3
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +9 -3
- package/dist/types/excalidraw/charts.d.ts +0 -27
|
@@ -1,62 +1,263 @@
|
|
|
1
|
+
import type { AppClassProperties } from "../types";
|
|
1
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
|
+
}, {
|
|
2
10
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
3
11
|
readonly value: "selection";
|
|
4
12
|
readonly key: "v";
|
|
5
13
|
readonly numericKey: "1";
|
|
6
14
|
readonly fillable: true;
|
|
15
|
+
readonly toolbar: true;
|
|
7
16
|
}, {
|
|
8
17
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
9
18
|
readonly value: "rectangle";
|
|
10
19
|
readonly key: "r";
|
|
11
20
|
readonly numericKey: "2";
|
|
12
21
|
readonly fillable: true;
|
|
22
|
+
readonly toolbar: true;
|
|
13
23
|
}, {
|
|
14
24
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
15
25
|
readonly value: "diamond";
|
|
16
26
|
readonly key: "d";
|
|
17
27
|
readonly numericKey: "3";
|
|
18
28
|
readonly fillable: true;
|
|
29
|
+
readonly toolbar: true;
|
|
19
30
|
}, {
|
|
20
31
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
21
32
|
readonly value: "ellipse";
|
|
22
33
|
readonly key: "o";
|
|
23
34
|
readonly numericKey: "4";
|
|
24
35
|
readonly fillable: true;
|
|
36
|
+
readonly toolbar: true;
|
|
25
37
|
}, {
|
|
26
38
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
27
39
|
readonly value: "arrow";
|
|
28
40
|
readonly key: "a";
|
|
29
41
|
readonly numericKey: "5";
|
|
30
42
|
readonly fillable: true;
|
|
43
|
+
readonly toolbar: true;
|
|
31
44
|
}, {
|
|
32
45
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
33
46
|
readonly value: "line";
|
|
34
47
|
readonly key: "l";
|
|
35
48
|
readonly numericKey: "6";
|
|
36
49
|
readonly fillable: true;
|
|
50
|
+
readonly toolbar: true;
|
|
37
51
|
}, {
|
|
38
52
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
39
53
|
readonly value: "freedraw";
|
|
40
54
|
readonly key: readonly ["p", "x"];
|
|
41
55
|
readonly numericKey: "7";
|
|
42
56
|
readonly fillable: false;
|
|
57
|
+
readonly toolbar: true;
|
|
43
58
|
}, {
|
|
44
59
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
45
60
|
readonly value: "text";
|
|
46
61
|
readonly key: "t";
|
|
47
62
|
readonly numericKey: "8";
|
|
48
63
|
readonly fillable: false;
|
|
64
|
+
readonly toolbar: true;
|
|
49
65
|
}, {
|
|
50
66
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
51
67
|
readonly value: "image";
|
|
52
68
|
readonly key: null;
|
|
53
69
|
readonly numericKey: "9";
|
|
54
70
|
readonly fillable: false;
|
|
71
|
+
readonly toolbar: true;
|
|
55
72
|
}, {
|
|
56
73
|
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
57
74
|
readonly value: "eraser";
|
|
58
75
|
readonly key: "e";
|
|
59
76
|
readonly numericKey: "0";
|
|
60
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;
|
|
61
86
|
}];
|
|
62
|
-
export declare const
|
|
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
|
+
}, {
|
|
95
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
readonly value: "selection";
|
|
97
|
+
readonly key: "v";
|
|
98
|
+
readonly numericKey: "1";
|
|
99
|
+
readonly fillable: true;
|
|
100
|
+
readonly toolbar: true;
|
|
101
|
+
}, {
|
|
102
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
readonly value: "rectangle";
|
|
104
|
+
readonly key: "r";
|
|
105
|
+
readonly numericKey: "2";
|
|
106
|
+
readonly fillable: true;
|
|
107
|
+
readonly toolbar: true;
|
|
108
|
+
}, {
|
|
109
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
readonly value: "diamond";
|
|
111
|
+
readonly key: "d";
|
|
112
|
+
readonly numericKey: "3";
|
|
113
|
+
readonly fillable: true;
|
|
114
|
+
readonly toolbar: true;
|
|
115
|
+
}, {
|
|
116
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
readonly value: "ellipse";
|
|
118
|
+
readonly key: "o";
|
|
119
|
+
readonly numericKey: "4";
|
|
120
|
+
readonly fillable: true;
|
|
121
|
+
readonly toolbar: true;
|
|
122
|
+
}, {
|
|
123
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
readonly value: "arrow";
|
|
125
|
+
readonly key: "a";
|
|
126
|
+
readonly numericKey: "5";
|
|
127
|
+
readonly fillable: true;
|
|
128
|
+
readonly toolbar: true;
|
|
129
|
+
}, {
|
|
130
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
131
|
+
readonly value: "line";
|
|
132
|
+
readonly key: "l";
|
|
133
|
+
readonly numericKey: "6";
|
|
134
|
+
readonly fillable: true;
|
|
135
|
+
readonly toolbar: true;
|
|
136
|
+
}, {
|
|
137
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
138
|
+
readonly value: "freedraw";
|
|
139
|
+
readonly key: readonly ["p", "x"];
|
|
140
|
+
readonly numericKey: "7";
|
|
141
|
+
readonly fillable: false;
|
|
142
|
+
readonly toolbar: true;
|
|
143
|
+
}, {
|
|
144
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
145
|
+
readonly value: "text";
|
|
146
|
+
readonly key: "t";
|
|
147
|
+
readonly numericKey: "8";
|
|
148
|
+
readonly fillable: false;
|
|
149
|
+
readonly toolbar: true;
|
|
150
|
+
}, {
|
|
151
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
152
|
+
readonly value: "image";
|
|
153
|
+
readonly key: null;
|
|
154
|
+
readonly numericKey: "9";
|
|
155
|
+
readonly fillable: false;
|
|
156
|
+
readonly toolbar: true;
|
|
157
|
+
}, {
|
|
158
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
159
|
+
readonly value: "eraser";
|
|
160
|
+
readonly key: "e";
|
|
161
|
+
readonly numericKey: "0";
|
|
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;
|
|
171
|
+
}] | readonly [{
|
|
172
|
+
readonly value: "lasso";
|
|
173
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
174
|
+
readonly key: "v";
|
|
175
|
+
readonly numericKey: "1";
|
|
176
|
+
readonly fillable: true;
|
|
177
|
+
readonly toolbar: true;
|
|
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
|
+
} | {
|
|
186
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
187
|
+
readonly value: "selection";
|
|
188
|
+
readonly key: "v";
|
|
189
|
+
readonly numericKey: "1";
|
|
190
|
+
readonly fillable: true;
|
|
191
|
+
readonly toolbar: true;
|
|
192
|
+
} | {
|
|
193
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
194
|
+
readonly value: "rectangle";
|
|
195
|
+
readonly key: "r";
|
|
196
|
+
readonly numericKey: "2";
|
|
197
|
+
readonly fillable: true;
|
|
198
|
+
readonly toolbar: true;
|
|
199
|
+
} | {
|
|
200
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
201
|
+
readonly value: "diamond";
|
|
202
|
+
readonly key: "d";
|
|
203
|
+
readonly numericKey: "3";
|
|
204
|
+
readonly fillable: true;
|
|
205
|
+
readonly toolbar: true;
|
|
206
|
+
} | {
|
|
207
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
208
|
+
readonly value: "ellipse";
|
|
209
|
+
readonly key: "o";
|
|
210
|
+
readonly numericKey: "4";
|
|
211
|
+
readonly fillable: true;
|
|
212
|
+
readonly toolbar: true;
|
|
213
|
+
} | {
|
|
214
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
215
|
+
readonly value: "arrow";
|
|
216
|
+
readonly key: "a";
|
|
217
|
+
readonly numericKey: "5";
|
|
218
|
+
readonly fillable: true;
|
|
219
|
+
readonly toolbar: true;
|
|
220
|
+
} | {
|
|
221
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
222
|
+
readonly value: "line";
|
|
223
|
+
readonly key: "l";
|
|
224
|
+
readonly numericKey: "6";
|
|
225
|
+
readonly fillable: true;
|
|
226
|
+
readonly toolbar: true;
|
|
227
|
+
} | {
|
|
228
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
229
|
+
readonly value: "freedraw";
|
|
230
|
+
readonly key: readonly ["p", "x"];
|
|
231
|
+
readonly numericKey: "7";
|
|
232
|
+
readonly fillable: false;
|
|
233
|
+
readonly toolbar: true;
|
|
234
|
+
} | {
|
|
235
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
236
|
+
readonly value: "text";
|
|
237
|
+
readonly key: "t";
|
|
238
|
+
readonly numericKey: "8";
|
|
239
|
+
readonly fillable: false;
|
|
240
|
+
readonly toolbar: true;
|
|
241
|
+
} | {
|
|
242
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
243
|
+
readonly value: "image";
|
|
244
|
+
readonly key: null;
|
|
245
|
+
readonly numericKey: "9";
|
|
246
|
+
readonly fillable: false;
|
|
247
|
+
readonly toolbar: true;
|
|
248
|
+
} | {
|
|
249
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
250
|
+
readonly value: "eraser";
|
|
251
|
+
readonly key: "e";
|
|
252
|
+
readonly numericKey: "0";
|
|
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;
|
|
262
|
+
})[]];
|
|
263
|
+
export declare const findShapeByKey: (key: string, app: AppClassProperties) => "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "lasso" | "eraser" | "hand" | "laser" | null;
|
|
@@ -26,18 +26,18 @@ declare const Center: {
|
|
|
26
26
|
({ onSelect, children, icon, shortcut, className, ...props }: {
|
|
27
27
|
onSelect: () => void;
|
|
28
28
|
children: React.ReactNode;
|
|
29
|
-
icon?: JSX.Element
|
|
30
|
-
shortcut?: string | null
|
|
31
|
-
} &
|
|
29
|
+
icon?: JSX.Element;
|
|
30
|
+
shortcut?: string | null;
|
|
31
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
34
|
MenuItemLink: {
|
|
35
35
|
({ children, href, icon, shortcut, className, ...props }: {
|
|
36
36
|
children: React.ReactNode;
|
|
37
37
|
href: string;
|
|
38
|
-
icon?: JSX.Element
|
|
39
|
-
shortcut?: string | null
|
|
40
|
-
} &
|
|
38
|
+
icon?: JSX.Element;
|
|
39
|
+
shortcut?: string | null;
|
|
40
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
displayName: string;
|
|
42
42
|
};
|
|
43
43
|
MenuItemHelp: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import "./WelcomeScreen.scss";
|
|
3
2
|
declare const WelcomeScreen: {
|
|
4
3
|
(props: {
|
|
@@ -7,43 +6,43 @@ declare const WelcomeScreen: {
|
|
|
7
6
|
displayName: string;
|
|
8
7
|
Center: {
|
|
9
8
|
({ children }: {
|
|
10
|
-
children?:
|
|
9
|
+
children?: React.ReactNode;
|
|
11
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
displayName: string;
|
|
13
12
|
Logo: {
|
|
14
13
|
({ children }: {
|
|
15
|
-
children?:
|
|
14
|
+
children?: React.ReactNode;
|
|
16
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
displayName: string;
|
|
18
17
|
};
|
|
19
18
|
Heading: {
|
|
20
19
|
({ children }: {
|
|
21
|
-
children:
|
|
20
|
+
children: React.ReactNode;
|
|
22
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
22
|
displayName: string;
|
|
24
23
|
};
|
|
25
24
|
Menu: {
|
|
26
25
|
({ children }: {
|
|
27
|
-
children?:
|
|
26
|
+
children?: React.ReactNode;
|
|
28
27
|
}): import("react/jsx-runtime").JSX.Element;
|
|
29
28
|
displayName: string;
|
|
30
29
|
};
|
|
31
30
|
MenuItem: {
|
|
32
31
|
({ onSelect, children, icon, shortcut, className, ...props }: {
|
|
33
32
|
onSelect: () => void;
|
|
34
|
-
children:
|
|
35
|
-
icon?: import("react").JSX.Element
|
|
36
|
-
shortcut?: string | null
|
|
37
|
-
} &
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
icon?: import("react").JSX.Element;
|
|
35
|
+
shortcut?: string | null;
|
|
36
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
|
|
38
37
|
displayName: string;
|
|
39
38
|
};
|
|
40
39
|
MenuItemLink: {
|
|
41
40
|
({ children, href, icon, shortcut, className, ...props }: {
|
|
42
|
-
children:
|
|
41
|
+
children: React.ReactNode;
|
|
43
42
|
href: string;
|
|
44
|
-
icon?: import("react").JSX.Element
|
|
45
|
-
shortcut?: string | null
|
|
46
|
-
} &
|
|
43
|
+
icon?: import("react").JSX.Element;
|
|
44
|
+
shortcut?: string | null;
|
|
45
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
|
|
47
46
|
displayName: string;
|
|
48
47
|
};
|
|
49
48
|
MenuItemHelp: {
|
|
@@ -64,19 +63,19 @@ declare const WelcomeScreen: {
|
|
|
64
63
|
Hints: {
|
|
65
64
|
MenuHint: {
|
|
66
65
|
({ children }: {
|
|
67
|
-
children?:
|
|
66
|
+
children?: React.ReactNode;
|
|
68
67
|
}): import("react/jsx-runtime").JSX.Element;
|
|
69
68
|
displayName: string;
|
|
70
69
|
};
|
|
71
70
|
ToolbarHint: {
|
|
72
71
|
({ children }: {
|
|
73
|
-
children?:
|
|
72
|
+
children?: React.ReactNode;
|
|
74
73
|
}): import("react/jsx-runtime").JSX.Element;
|
|
75
74
|
displayName: string;
|
|
76
75
|
};
|
|
77
76
|
HelpHint: {
|
|
78
77
|
({ children }: {
|
|
79
|
-
children?:
|
|
78
|
+
children?: React.ReactNode;
|
|
80
79
|
}): import("react/jsx-runtime").JSX.Element;
|
|
81
80
|
displayName: string;
|
|
82
81
|
};
|