@excalidraw/excalidraw 0.17.1-d9bbf1e → 0.17.1-e63dd02
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/CHANGELOG.md +4 -0
- package/dist/browser/dev/excalidraw-assets-dev/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-XOM7LNOU.js → chunk-IT7T3AIK.js} +49 -8
- package/dist/browser/dev/excalidraw-assets-dev/chunk-IT7T3AIK.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-BLEB3M62.js → chunk-RNHSD5AR.js} +7668 -2142
- package/dist/browser/dev/excalidraw-assets-dev/chunk-RNHSD5AR.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{dist-ITJNUBZF.js → dist-DNSPZDOZ.js} +66 -32
- package/dist/browser/dev/excalidraw-assets-dev/dist-DNSPZDOZ.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{en-TR4QLF5E.js → en-XV7OZCPP.js} +8 -2
- package/dist/browser/dev/excalidraw-assets-dev/{image-ZGDDRBEN.js → image-77HZYGLG.js} +2 -2
- package/dist/browser/dev/excalidraw-assets-dev/{image-O66MQ7WQ.css → image-WDHYGKKP.css} +1 -1
- package/dist/browser/dev/excalidraw-assets-dev/{image-O66MQ7WQ.css.map → image-WDHYGKKP.css.map} +2 -2
- package/dist/browser/dev/index.css +610 -180
- package/dist/browser/dev/index.css.map +3 -3
- package/dist/browser/dev/index.js +13306 -8006
- package/dist/browser/dev/index.js.map +4 -4
- package/dist/browser/prod/excalidraw-assets/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/chunk-OYEADJSR.js +63 -0
- package/dist/browser/prod/excalidraw-assets/{chunk-5SYIAZGL.js → chunk-PDYFZJMS.js} +5 -5
- package/dist/browser/prod/excalidraw-assets/dist-NLUQPPQQ.js +7 -0
- package/dist/browser/prod/excalidraw-assets/en-YVAVVILW.js +1 -0
- package/dist/browser/prod/excalidraw-assets/image-X3GFZHNN.js +1 -0
- package/dist/browser/prod/index.css +1 -1
- package/dist/browser/prod/index.js +70 -51
- package/dist/dev/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/dev/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/dev/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/dev/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/dev/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/dev/{en-XW4JO6VX.json → en-YNVBSAIL.json} +42 -7
- package/dist/dev/index.css +610 -180
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +22165 -16833
- package/dist/dev/index.js.map +4 -4
- package/dist/excalidraw/actions/actionAddToLibrary.d.ts +24 -9
- package/dist/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/excalidraw/actions/actionBoundText.d.ts +20 -10
- package/dist/excalidraw/actions/actionBoundText.js +3 -1
- package/dist/excalidraw/actions/actionCanvas.d.ts +100 -40
- package/dist/excalidraw/actions/actionCanvas.js +1 -1
- package/dist/excalidraw/actions/actionClipboard.d.ts +62 -26
- package/dist/excalidraw/actions/actionDeleteSelected.d.ts +28 -12
- package/dist/excalidraw/actions/actionDeleteSelected.js +24 -5
- package/dist/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/excalidraw/actions/actionDuplicateSelection.d.ts +3 -3
- package/dist/excalidraw/actions/actionDuplicateSelection.js +1 -2
- package/dist/excalidraw/actions/actionElementLock.d.ts +17 -7
- package/dist/excalidraw/actions/actionExport.d.ts +75 -30
- package/dist/excalidraw/actions/actionFinalize.d.ts +17 -7
- package/dist/excalidraw/actions/actionFinalize.js +2 -2
- package/dist/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/excalidraw/actions/actionFlip.js +2 -2
- package/dist/excalidraw/actions/actionFrame.d.ts +338 -10
- package/dist/excalidraw/actions/actionGroup.d.ts +324 -4
- package/dist/excalidraw/actions/actionHistory.d.ts +3 -3
- package/dist/excalidraw/actions/actionHistory.js +8 -8
- package/dist/excalidraw/actions/actionLinearEditor.d.ts +12 -5
- package/dist/excalidraw/actions/actionLinearEditor.js +21 -5
- package/dist/excalidraw/actions/actionLink.d.ts +8 -3
- package/dist/excalidraw/actions/actionMenu.d.ts +24 -9
- package/dist/excalidraw/actions/actionNavigate.d.ts +17 -7
- package/dist/excalidraw/actions/actionProperties.d.ts +476 -82
- package/dist/excalidraw/actions/actionProperties.js +384 -59
- package/dist/excalidraw/actions/actionSelectAll.d.ts +9 -4
- package/dist/excalidraw/actions/actionStyles.d.ts +12 -4
- package/dist/excalidraw/actions/actionStyles.js +3 -2
- package/dist/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
- package/dist/excalidraw/actions/actionTextAutoResize.js +38 -0
- package/dist/excalidraw/actions/actionToggleGridMode.d.ts +9 -4
- package/dist/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +8 -3
- package/dist/excalidraw/actions/actionToggleStats.d.ts +9 -3
- package/dist/excalidraw/actions/actionToggleStats.js +4 -3
- package/dist/excalidraw/actions/actionToggleViewMode.d.ts +8 -3
- package/dist/excalidraw/actions/actionToggleZenMode.d.ts +8 -3
- package/dist/excalidraw/actions/actionZindex.d.ts +8 -4
- package/dist/excalidraw/actions/actionZindex.js +4 -0
- package/dist/excalidraw/actions/manager.d.ts +3 -3
- package/dist/excalidraw/actions/register.d.ts +1 -1
- package/dist/excalidraw/actions/shortcuts.d.ts +2 -2
- package/dist/excalidraw/actions/types.d.ts +6 -6
- package/dist/excalidraw/align.d.ts +1 -1
- package/dist/excalidraw/analytics.js +9 -7
- package/dist/excalidraw/animated-trail.d.ts +2 -2
- package/dist/excalidraw/appState.d.ts +6 -2
- package/dist/excalidraw/appState.js +14 -3
- package/dist/excalidraw/binaryheap.d.ts +12 -0
- package/dist/excalidraw/binaryheap.js +93 -0
- package/dist/excalidraw/change.d.ts +6 -5
- package/dist/excalidraw/change.js +20 -11
- package/dist/excalidraw/charts.d.ts +1 -1
- package/dist/excalidraw/charts.js +0 -10
- package/dist/excalidraw/clients.d.ts +2 -2
- package/dist/excalidraw/clients.js +1 -1
- package/dist/excalidraw/clipboard.d.ts +3 -3
- package/dist/excalidraw/colors.d.ts +1 -1
- package/dist/excalidraw/components/Actions.d.ts +3 -3
- package/dist/excalidraw/components/Actions.js +14 -9
- package/dist/excalidraw/components/App.d.ts +14 -17
- package/dist/excalidraw/components/App.js +356 -217
- package/dist/excalidraw/components/ButtonIcon.d.ts +15 -0
- package/dist/excalidraw/components/ButtonIcon.js +8 -0
- package/dist/excalidraw/components/ButtonIconSelect.js +2 -3
- package/dist/excalidraw/components/ButtonSeparator.d.ts +2 -0
- package/dist/excalidraw/components/ButtonSeparator.js +7 -0
- package/dist/excalidraw/components/CheckboxItem.js +1 -1
- package/dist/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/ColorInput.js +1 -1
- package/dist/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/dist/excalidraw/components/ColorPicker/ColorPicker.js +48 -80
- package/dist/excalidraw/components/ColorPicker/Picker.d.ts +3 -3
- package/dist/excalidraw/components/ColorPicker/Picker.js +1 -1
- package/dist/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/dist/excalidraw/components/ColorPicker/colorPickerUtils.js +1 -1
- package/dist/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
- package/dist/excalidraw/components/ColorPicker/keyboardNavHandlers.js +1 -1
- package/dist/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
- package/dist/excalidraw/components/CommandPalette/CommandPalette.js +5 -5
- package/dist/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -1
- package/dist/excalidraw/components/CommandPalette/types.d.ts +3 -3
- package/dist/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/dist/excalidraw/components/ContextMenu.d.ts +2 -2
- package/dist/excalidraw/components/ContextMenu.js +2 -2
- package/dist/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/dist/excalidraw/components/Dialog.js +1 -1
- package/dist/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/dist/excalidraw/components/EyeDropper.d.ts +2 -2
- package/dist/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/dist/excalidraw/components/FollowMode/FollowMode.js +1 -1
- package/dist/excalidraw/components/FontPicker/FontPicker.d.ts +21 -0
- package/dist/excalidraw/components/FontPicker/FontPicker.js +49 -0
- package/dist/excalidraw/components/FontPicker/FontPickerList.d.ts +25 -0
- package/dist/excalidraw/components/FontPicker/FontPickerList.js +119 -0
- package/dist/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +7 -0
- package/dist/excalidraw/components/FontPicker/FontPickerTrigger.js +13 -0
- package/dist/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +14 -0
- package/dist/excalidraw/components/FontPicker/keyboardNavHandlers.js +38 -0
- package/dist/excalidraw/components/HelpDialog.js +2 -2
- package/dist/excalidraw/components/HintViewer.d.ts +1 -1
- package/dist/excalidraw/components/HintViewer.js +6 -3
- package/dist/excalidraw/components/IconPicker.js +2 -2
- package/dist/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/dist/excalidraw/components/InitializeApp.d.ts +2 -2
- package/dist/excalidraw/components/JSONExportDialog.d.ts +3 -3
- package/dist/excalidraw/components/LayerUI.d.ts +4 -4
- package/dist/excalidraw/components/LayerUI.js +10 -7
- package/dist/excalidraw/components/LibraryMenu.d.ts +2 -2
- package/dist/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -1
- package/dist/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/excalidraw/components/LibraryMenuHeaderContent.d.ts +2 -2
- package/dist/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/dist/excalidraw/components/LibraryMenuSection.d.ts +5 -4
- package/dist/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/dist/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/excalidraw/components/MagicSettings.js +2 -2
- package/dist/excalidraw/components/MobileMenu.d.ts +3 -3
- package/dist/excalidraw/components/MobileMenu.js +2 -6
- package/dist/excalidraw/components/Modal.d.ts +1 -1
- package/dist/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/dist/excalidraw/components/PasteChartDialog.js +1 -1
- package/dist/excalidraw/components/PropertiesPopover.d.ts +15 -0
- package/dist/excalidraw/components/PropertiesPopover.js +31 -0
- package/dist/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/dist/excalidraw/components/QuickSearch.d.ts +9 -0
- package/dist/excalidraw/components/QuickSearch.js +8 -0
- package/dist/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/excalidraw/components/ScrollableList.d.ts +9 -0
- package/dist/excalidraw/components/ScrollableList.js +8 -0
- package/dist/excalidraw/components/Sidebar/Sidebar.js +1 -1
- package/dist/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/dist/excalidraw/components/Stats/Angle.d.ts +12 -0
- package/dist/excalidraw/components/Stats/Angle.js +53 -0
- package/dist/excalidraw/components/Stats/Collapsible.d.ts +9 -0
- package/dist/excalidraw/components/Stats/Collapsible.js +12 -0
- package/dist/excalidraw/components/Stats/Dimension.d.ts +12 -0
- package/dist/excalidraw/components/Stats/Dimension.js +68 -0
- package/dist/excalidraw/components/Stats/DragInput.d.ts +32 -0
- package/dist/excalidraw/components/Stats/DragInput.js +174 -0
- package/dist/excalidraw/components/Stats/FontSize.d.ts +12 -0
- package/dist/excalidraw/components/Stats/FontSize.js +50 -0
- package/dist/excalidraw/components/Stats/MultiAngle.d.ts +12 -0
- package/dist/excalidraw/components/Stats/MultiAngle.js +66 -0
- package/dist/excalidraw/components/Stats/MultiDimension.d.ts +15 -0
- package/dist/excalidraw/components/Stats/MultiDimension.js +199 -0
- package/dist/excalidraw/components/Stats/MultiFontSize.d.ts +13 -0
- package/dist/excalidraw/components/Stats/MultiFontSize.js +72 -0
- package/dist/excalidraw/components/Stats/MultiPosition.d.ts +15 -0
- package/dist/excalidraw/components/Stats/MultiPosition.js +101 -0
- package/dist/excalidraw/components/Stats/Position.d.ts +13 -0
- package/dist/excalidraw/components/Stats/Position.js +40 -0
- package/dist/excalidraw/components/Stats/index.d.ts +16 -0
- package/dist/excalidraw/components/Stats/index.js +79 -0
- package/dist/excalidraw/components/Stats/utils.d.ts +26 -0
- package/dist/excalidraw/components/Stats/utils.js +162 -0
- package/dist/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialog.js +2 -2
- package/dist/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/common.d.ts +5 -5
- package/dist/excalidraw/components/TTDDialog/common.js +3 -7
- package/dist/excalidraw/components/TextField.d.ts +1 -1
- package/dist/excalidraw/components/Toast.d.ts +1 -1
- package/dist/excalidraw/components/ToolButton.d.ts +3 -2
- package/dist/excalidraw/components/Trans.d.ts +1 -1
- package/dist/excalidraw/components/UserList.d.ts +1 -1
- package/dist/excalidraw/components/UserList.js +22 -22
- package/dist/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/dist/excalidraw/components/canvases/InteractiveCanvas.js +4 -2
- package/dist/excalidraw/components/canvases/StaticCanvas.d.ts +2 -2
- package/dist/excalidraw/components/canvases/StaticCanvas.js +3 -2
- package/dist/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +12 -3
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +24 -4
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItem.js +55 -14
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItemContent.js +2 -2
- package/dist/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/excalidraw/components/dropdownMenu/common.js +3 -2
- package/dist/excalidraw/components/footer/Footer.d.ts +2 -2
- package/dist/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/dist/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/dist/excalidraw/components/icons.d.ts +10 -2
- package/dist/excalidraw/components/icons.js +29 -6
- package/dist/excalidraw/components/main-menu/MainMenu.d.ts +12 -3
- package/dist/excalidraw/components/welcome-screen/WelcomeScreen.Center.js +2 -2
- package/dist/excalidraw/components/welcome-screen/WelcomeScreen.Hints.js +3 -3
- package/dist/excalidraw/constants.d.ts +24 -3
- package/dist/excalidraw/constants.js +28 -4
- package/dist/excalidraw/context/ui-appState.d.ts +1 -1
- package/dist/excalidraw/cursor.d.ts +1 -1
- package/dist/excalidraw/data/EditorLocalStorage.d.ts +2 -2
- package/dist/excalidraw/data/blob.d.ts +5 -5
- package/dist/excalidraw/data/filesystem.d.ts +2 -1
- package/dist/excalidraw/data/index.d.ts +4 -4
- package/dist/excalidraw/data/json.d.ts +3 -3
- package/dist/excalidraw/data/library.d.ts +3 -3
- package/dist/excalidraw/data/magic.d.ts +3 -3
- package/dist/excalidraw/data/reconcile.d.ts +3 -3
- package/dist/excalidraw/data/reconcile.js +18 -1
- package/dist/excalidraw/data/resave.d.ts +2 -2
- package/dist/excalidraw/data/restore.d.ts +3 -3
- package/dist/excalidraw/data/restore.js +58 -9
- package/dist/excalidraw/data/transform.d.ts +3 -3
- package/dist/excalidraw/data/transform.js +8 -5
- package/dist/excalidraw/data/types.d.ts +3 -3
- package/dist/excalidraw/element/ElementCanvasButtons.d.ts +1 -1
- package/dist/excalidraw/element/binding.d.ts +29 -10
- package/dist/excalidraw/element/binding.js +303 -71
- package/dist/excalidraw/element/bounds.d.ts +3 -3
- package/dist/excalidraw/element/collision.d.ts +4 -4
- package/dist/excalidraw/element/collision.js +5 -2
- package/dist/excalidraw/element/containerCache.d.ts +1 -1
- package/dist/excalidraw/element/dragElements.d.ts +6 -6
- package/dist/excalidraw/element/dragElements.js +39 -5
- package/dist/excalidraw/element/embeddable.d.ts +11 -6
- package/dist/excalidraw/element/heading.d.ts +11 -0
- package/dist/excalidraw/element/heading.js +81 -0
- package/dist/excalidraw/element/image.d.ts +2 -2
- package/dist/excalidraw/element/index.d.ts +2 -2
- package/dist/excalidraw/element/index.js +1 -1
- package/dist/excalidraw/element/linearElementEditor.d.ts +27 -16
- package/dist/excalidraw/element/linearElementEditor.js +133 -56
- package/dist/excalidraw/element/mutateElement.d.ts +3 -3
- package/dist/excalidraw/element/mutateElement.js +5 -3
- package/dist/excalidraw/element/newElement.d.ts +12 -10
- package/dist/excalidraw/element/newElement.js +31 -16
- package/dist/excalidraw/element/resizeElements.d.ts +15 -6
- package/dist/excalidraw/element/resizeElements.js +122 -46
- package/dist/excalidraw/element/resizeTest.d.ts +4 -4
- package/dist/excalidraw/element/resizeTest.js +2 -4
- package/dist/excalidraw/element/routing.d.ts +13 -0
- package/dist/excalidraw/element/routing.js +641 -0
- package/dist/excalidraw/element/showSelectedShapeActions.d.ts +2 -2
- package/dist/excalidraw/element/sizeHelpers.d.ts +2 -2
- package/dist/excalidraw/element/sortElements.d.ts +1 -1
- package/dist/excalidraw/element/textElement.d.ts +6 -28
- package/dist/excalidraw/element/textElement.js +64 -112
- package/dist/excalidraw/element/textWysiwyg.d.ts +12 -6
- package/dist/excalidraw/element/textWysiwyg.js +75 -62
- package/dist/excalidraw/element/transformHandles.d.ts +3 -3
- package/dist/excalidraw/element/transformHandles.js +7 -12
- package/dist/excalidraw/element/typeChecks.d.ts +7 -4
- package/dist/excalidraw/element/typeChecks.js +17 -0
- package/dist/excalidraw/element/types.d.ts +22 -4
- package/dist/excalidraw/emitter.d.ts +1 -1
- package/dist/excalidraw/fonts/ExcalidrawFont.d.ts +21 -0
- package/dist/excalidraw/fonts/ExcalidrawFont.js +112 -0
- package/dist/excalidraw/fonts/index.d.ts +58 -0
- package/dist/excalidraw/fonts/index.js +240 -0
- package/dist/excalidraw/fonts/metadata.d.ts +36 -0
- package/dist/excalidraw/fonts/metadata.js +91 -0
- package/dist/excalidraw/fractionalIndex.d.ts +12 -5
- package/dist/excalidraw/fractionalIndex.js +40 -10
- package/dist/excalidraw/frame.d.ts +4 -4
- package/dist/excalidraw/frame.js +3 -3
- package/dist/excalidraw/gatransforms.d.ts +1 -1
- package/dist/excalidraw/gesture.d.ts +1 -1
- package/dist/excalidraw/groups.d.ts +4 -4
- package/dist/excalidraw/history.d.ts +8 -7
- package/dist/excalidraw/history.js +8 -8
- package/dist/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/excalidraw/i18n.d.ts +1 -1
- package/dist/excalidraw/index.d.ts +2 -2
- package/dist/excalidraw/index.js +3 -3
- package/dist/excalidraw/jotai.d.ts +1 -1
- package/dist/excalidraw/laser-trails.d.ts +3 -2
- package/dist/excalidraw/locales/en.json +42 -7
- package/dist/excalidraw/math.d.ts +47 -2
- package/dist/excalidraw/math.js +116 -0
- package/dist/excalidraw/mermaid.d.ts +2 -0
- package/dist/excalidraw/mermaid.js +29 -0
- package/dist/excalidraw/points.d.ts +1 -1
- package/dist/excalidraw/queue.d.ts +1 -1
- package/dist/excalidraw/renderer/helpers.d.ts +2 -2
- package/dist/excalidraw/renderer/interactiveScene.d.ts +2 -2
- package/dist/excalidraw/renderer/interactiveScene.js +64 -22
- package/dist/excalidraw/renderer/renderElement.d.ts +6 -4
- package/dist/excalidraw/renderer/renderElement.js +78 -58
- package/dist/excalidraw/renderer/renderSnaps.d.ts +1 -1
- package/dist/excalidraw/renderer/staticScene.d.ts +1 -1
- package/dist/excalidraw/renderer/staticSvgScene.d.ts +4 -4
- package/dist/excalidraw/renderer/staticSvgScene.js +2 -1
- package/dist/excalidraw/scene/Renderer.d.ts +4 -4
- package/dist/excalidraw/scene/Renderer.js +2 -3
- package/dist/excalidraw/scene/Scene.d.ts +16 -7
- package/dist/excalidraw/scene/Scene.js +26 -11
- package/dist/excalidraw/scene/Shape.d.ts +1 -1
- package/dist/excalidraw/scene/Shape.js +56 -5
- package/dist/excalidraw/scene/ShapeCache.d.ts +4 -4
- package/dist/excalidraw/scene/comparisons.d.ts +3 -2
- package/dist/excalidraw/scene/comparisons.js +1 -1
- package/dist/excalidraw/scene/export.d.ts +4 -3
- package/dist/excalidraw/scene/export.js +34 -36
- package/dist/excalidraw/scene/scroll.d.ts +2 -2
- package/dist/excalidraw/scene/scrollbars.d.ts +3 -3
- package/dist/excalidraw/scene/selection.d.ts +2 -2
- package/dist/excalidraw/scene/types.d.ts +6 -8
- package/dist/excalidraw/scene/zoom.d.ts +1 -1
- package/dist/excalidraw/shapes.d.ts +8 -0
- package/dist/excalidraw/shapes.js +57 -0
- package/dist/excalidraw/snapping.d.ts +4 -4
- package/dist/excalidraw/snapping.js +2 -1
- package/dist/excalidraw/store.d.ts +34 -4
- package/dist/excalidraw/store.js +27 -0
- package/dist/excalidraw/types.d.ts +32 -21
- package/dist/excalidraw/utils.d.ts +15 -5
- package/dist/excalidraw/utils.js +22 -0
- package/dist/excalidraw/zindex.d.ts +2 -2
- package/dist/prod/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/prod/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/prod/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/prod/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/prod/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/prod/{en-XW4JO6VX.json → en-YNVBSAIL.json} +42 -7
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +49 -53
- package/dist/utils/bbox.d.ts +2 -2
- package/dist/utils/collision.d.ts +1 -1
- package/dist/utils/export.d.ts +4 -3
- package/dist/utils/export.js +2 -1
- package/dist/utils/geometry/geometry.d.ts +3 -2
- package/dist/utils/geometry/geometry.js +5 -1
- package/dist/utils/geometry/shape.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/withinBounds.d.ts +1 -1
- package/history.ts +13 -6
- package/package.json +2 -2
- package/dist/browser/dev/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/browser/dev/Virgil-UZN6MUT6.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/chunk-BLEB3M62.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/chunk-XOM7LNOU.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/dist-ITJNUBZF.js.map +0 -7
- package/dist/browser/prod/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/browser/prod/Virgil-UZN6MUT6.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/chunk-UWBW5SR2.js +0 -55
- package/dist/browser/prod/excalidraw-assets/dist-54276HPL.js +0 -6
- package/dist/browser/prod/excalidraw-assets/en-7GPZE2Y2.js +0 -1
- package/dist/browser/prod/excalidraw-assets/image-35KQQ5EN.js +0 -1
- package/dist/dev/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/dev/Virgil-UZN6MUT6.woff2 +0 -0
- package/dist/excalidraw/components/Stats.d.ts +0 -11
- package/dist/excalidraw/components/Stats.js +0 -13
- package/dist/excalidraw/scene/Fonts.d.ts +0 -21
- package/dist/excalidraw/scene/Fonts.js +0 -72
- package/dist/prod/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/prod/Virgil-UZN6MUT6.woff2 +0 -0
- /package/dist/browser/dev/{Assistant-Bold-ZDZZ6JHA.woff2 → excalidraw-assets-dev/Assistant-Bold-ZDZZ6JHA.woff2} +0 -0
- /package/dist/browser/dev/{Assistant-Medium-DZ25RZU3.woff2 → excalidraw-assets-dev/Assistant-Medium-DZ25RZU3.woff2} +0 -0
- /package/dist/browser/dev/{Assistant-Regular-PLF2XOGW.woff2 → excalidraw-assets-dev/Assistant-Regular-PLF2XOGW.woff2} +0 -0
- /package/dist/browser/dev/{Assistant-SemiBold-CZ5MX6FK.woff2 → excalidraw-assets-dev/Assistant-SemiBold-CZ5MX6FK.woff2} +0 -0
- /package/dist/browser/dev/excalidraw-assets-dev/{en-TR4QLF5E.js.map → en-XV7OZCPP.js.map} +0 -0
- /package/dist/browser/dev/excalidraw-assets-dev/{image-ZGDDRBEN.js.map → image-77HZYGLG.js.map} +0 -0
- /package/dist/browser/prod/{Assistant-Bold-ZDZZ6JHA.woff2 → excalidraw-assets/Assistant-Bold-ZDZZ6JHA.woff2} +0 -0
- /package/dist/browser/prod/{Assistant-Medium-DZ25RZU3.woff2 → excalidraw-assets/Assistant-Medium-DZ25RZU3.woff2} +0 -0
- /package/dist/browser/prod/{Assistant-Regular-PLF2XOGW.woff2 → excalidraw-assets/Assistant-Regular-PLF2XOGW.woff2} +0 -0
- /package/dist/browser/prod/{Assistant-SemiBold-CZ5MX6FK.woff2 → excalidraw-assets/Assistant-SemiBold-CZ5MX6FK.woff2} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, FileId, ExcalidrawImageElement, Theme, StrokeRoundness, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeLikeElement, OrderedExcalidrawElement } from "./element/types";
|
|
3
|
-
import { Action } from "./actions/types";
|
|
4
|
-
import { Point as RoughPoint } from "roughjs/bin/geometry";
|
|
5
|
-
import { LinearElementEditor } from "./element/linearElementEditor";
|
|
6
|
-
import { SuggestedBinding } from "./element/binding";
|
|
7
|
-
import { ImportedDataState } from "./data/types";
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, FileId, ExcalidrawImageElement, Theme, StrokeRoundness, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeLikeElement, OrderedExcalidrawElement } from "./element/types";
|
|
3
|
+
import type { Action } from "./actions/types";
|
|
4
|
+
import type { Point as RoughPoint } from "roughjs/bin/geometry";
|
|
5
|
+
import type { LinearElementEditor } from "./element/linearElementEditor";
|
|
6
|
+
import type { SuggestedBinding } from "./element/binding";
|
|
7
|
+
import type { ImportedDataState } from "./data/types";
|
|
8
8
|
import type App from "./components/App";
|
|
9
9
|
import type { throttleRAF } from "./utils";
|
|
10
|
-
import { Spreadsheet } from "./charts";
|
|
11
|
-
import { Language } from "./i18n";
|
|
12
|
-
import { ClipboardData } from "./clipboard";
|
|
13
|
-
import { isOverScrollBars } from "./scene/scrollbars";
|
|
14
|
-
import { MaybeTransformHandleType } from "./element/transformHandles";
|
|
15
|
-
import Library from "./data/library";
|
|
10
|
+
import type { Spreadsheet } from "./charts";
|
|
11
|
+
import type { Language } from "./i18n";
|
|
12
|
+
import type { ClipboardData } from "./clipboard";
|
|
13
|
+
import type { isOverScrollBars } from "./scene/scrollbars";
|
|
14
|
+
import type { MaybeTransformHandleType } from "./element/transformHandles";
|
|
15
|
+
import type Library from "./data/library";
|
|
16
16
|
import type { FileSystemHandle } from "./data/filesystem";
|
|
17
17
|
import type { IMAGE_MIME_TYPES, MIME_TYPES } from "./constants";
|
|
18
|
-
import { ContextMenuItems } from "./components/ContextMenu";
|
|
19
|
-
import { SnapLine } from "./snapping";
|
|
20
|
-
import { Merge, MaybePromise, ValueOf } from "./utility-types";
|
|
21
|
-
import { StoreActionType } from "./store";
|
|
18
|
+
import type { ContextMenuItems } from "./components/ContextMenu";
|
|
19
|
+
import type { SnapLine } from "./snapping";
|
|
20
|
+
import type { Merge, MaybePromise, ValueOf } from "./utility-types";
|
|
21
|
+
import type { StoreActionType } from "./store";
|
|
22
22
|
export type Point = Readonly<RoughPoint>;
|
|
23
23
|
export type SocketId = string & {
|
|
24
24
|
_brand: "SocketId";
|
|
@@ -119,6 +119,7 @@ export type StaticCanvasAppState = Readonly<_CommonCanvasAppState & {
|
|
|
119
119
|
selectedElementsAreBeingDragged: AppState["selectedElementsAreBeingDragged"];
|
|
120
120
|
gridSize: AppState["gridSize"];
|
|
121
121
|
frameRendering: AppState["frameRendering"];
|
|
122
|
+
currentHoveredFontFamily: AppState["currentHoveredFontFamily"];
|
|
122
123
|
}>;
|
|
123
124
|
export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
|
|
124
125
|
activeEmbeddable: AppState["activeEmbeddable"];
|
|
@@ -134,6 +135,7 @@ export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
|
|
|
134
135
|
collaborators: AppState["collaborators"];
|
|
135
136
|
snapLines: AppState["snapLines"];
|
|
136
137
|
zenModeEnabled: AppState["zenModeEnabled"];
|
|
138
|
+
editingElement: AppState["editingElement"];
|
|
137
139
|
}>;
|
|
138
140
|
export type ObservedAppState = ObservedStandaloneAppState & ObservedElementsAppState;
|
|
139
141
|
export type ObservedStandaloneAppState = {
|
|
@@ -204,7 +206,9 @@ export interface AppState {
|
|
|
204
206
|
currentItemTextAlign: TextAlign;
|
|
205
207
|
currentItemStartArrowhead: Arrowhead | null;
|
|
206
208
|
currentItemEndArrowhead: Arrowhead | null;
|
|
209
|
+
currentHoveredFontFamily: FontFamilyValues | null;
|
|
207
210
|
currentItemRoundness: StrokeRoundness;
|
|
211
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
208
212
|
viewBackgroundColor: string;
|
|
209
213
|
scrollX: number;
|
|
210
214
|
scrollY: number;
|
|
@@ -215,7 +219,7 @@ export interface AppState {
|
|
|
215
219
|
isRotating: boolean;
|
|
216
220
|
zoom: Zoom;
|
|
217
221
|
openMenu: "canvas" | "shape" | null;
|
|
218
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
222
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | null;
|
|
219
223
|
openSidebar: {
|
|
220
224
|
name: SidebarName;
|
|
221
225
|
tab?: SidebarTabName;
|
|
@@ -271,7 +275,11 @@ export interface AppState {
|
|
|
271
275
|
offsetLeft: number;
|
|
272
276
|
fileHandle: FileSystemHandle | null;
|
|
273
277
|
collaborators: Map<SocketId, Collaborator>;
|
|
274
|
-
|
|
278
|
+
stats: {
|
|
279
|
+
open: boolean;
|
|
280
|
+
/** bitmap. Use `STATS_PANELS` bit values */
|
|
281
|
+
panels: number;
|
|
282
|
+
};
|
|
275
283
|
currentChartType: ChartType;
|
|
276
284
|
pasteDialog: {
|
|
277
285
|
shown: false;
|
|
@@ -345,7 +353,7 @@ export type OnUserFollowedPayload = {
|
|
|
345
353
|
};
|
|
346
354
|
export interface ExcalidrawProps {
|
|
347
355
|
onChange?: (elements: readonly OrderedExcalidrawElement[], appState: AppState, files: BinaryFiles) => void;
|
|
348
|
-
initialData?: MaybePromise<ExcalidrawInitialDataState | null>;
|
|
356
|
+
initialData?: (() => MaybePromise<ExcalidrawInitialDataState | null>) | MaybePromise<ExcalidrawInitialDataState | null>;
|
|
349
357
|
excalidrawAPI?: (api: ExcalidrawImperativeAPI) => void;
|
|
350
358
|
isCollaborating?: boolean;
|
|
351
359
|
onPointerUpdate?: (payload: {
|
|
@@ -385,6 +393,7 @@ export interface ExcalidrawProps {
|
|
|
385
393
|
validateEmbeddable?: boolean | string[] | RegExp | RegExp[] | ((link: string) => boolean | undefined);
|
|
386
394
|
renderEmbeddable?: (element: NonDeleted<ExcalidrawEmbeddableElement>, appState: AppState) => JSX.Element | null;
|
|
387
395
|
aiEnabled?: boolean;
|
|
396
|
+
showDeprecatedFonts?: boolean;
|
|
388
397
|
}
|
|
389
398
|
export type SceneData = {
|
|
390
399
|
elements?: ImportedDataState["elements"];
|
|
@@ -448,6 +457,8 @@ export type AppClassProperties = {
|
|
|
448
457
|
files: BinaryFiles;
|
|
449
458
|
device: App["device"];
|
|
450
459
|
scene: App["scene"];
|
|
460
|
+
syncActionResult: App["syncActionResult"];
|
|
461
|
+
fonts: App["fonts"];
|
|
451
462
|
pasteFromClipboard: App["pasteFromClipboard"];
|
|
452
463
|
id: App["id"];
|
|
453
464
|
onInsertElements: App["onInsertElements"];
|
|
@@ -462,8 +473,8 @@ export type AppClassProperties = {
|
|
|
462
473
|
setOpenDialog: App["setOpenDialog"];
|
|
463
474
|
insertEmbeddableElement: App["insertEmbeddableElement"];
|
|
464
475
|
onMagicframeToolSelect: App["onMagicframeToolSelect"];
|
|
465
|
-
getElementShape: App["getElementShape"];
|
|
466
476
|
getName: App["getName"];
|
|
477
|
+
dismissLinearEditor: App["dismissLinearEditor"];
|
|
467
478
|
};
|
|
468
479
|
export type PointerDownState = Readonly<{
|
|
469
480
|
origin: Readonly<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EVENT } from "./constants";
|
|
2
|
-
import { FontFamilyValues, FontString } from "./element/types";
|
|
3
|
-
import { ActiveTool, AppState, ToolType, UnsubscribeCallback, Zoom } from "./types";
|
|
4
|
-
import { MaybePromise } from "./utility-types";
|
|
1
|
+
import type { EVENT } from "./constants";
|
|
2
|
+
import type { FontFamilyValues, FontString } from "./element/types";
|
|
3
|
+
import type { ActiveTool, AppState, ToolType, UnsubscribeCallback, Zoom } from "./types";
|
|
4
|
+
import type { MaybePromise } from "./utility-types";
|
|
5
5
|
export declare const setDateTimeForTests: (dateTime: string) => void;
|
|
6
6
|
export declare const getDateTime: () => string;
|
|
7
7
|
export declare const capitalizeString: (str: string) => string;
|
|
@@ -163,9 +163,18 @@ export declare const arrayToMapWithIndex: <T extends {
|
|
|
163
163
|
/**
|
|
164
164
|
* Transform array into an object, use only when array order is irrelevant.
|
|
165
165
|
*/
|
|
166
|
-
export declare const arrayToObject: <T>(array: readonly T[], groupBy?: ((value: T) => string) | undefined) => {
|
|
166
|
+
export declare const arrayToObject: <T>(array: readonly T[], groupBy?: ((value: T) => string | number) | undefined) => {
|
|
167
167
|
[key: string]: T;
|
|
168
168
|
};
|
|
169
|
+
/** Doubly linked node */
|
|
170
|
+
export type Node<T> = T & {
|
|
171
|
+
prev: Node<T> | null;
|
|
172
|
+
next: Node<T> | null;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Creates a circular doubly linked list by adding `prev` and `next` props to the existing array nodes.
|
|
176
|
+
*/
|
|
177
|
+
export declare const arrayToList: <T>(array: readonly T[]) => Node<T>[];
|
|
169
178
|
export declare const isTestEnv: () => boolean;
|
|
170
179
|
export declare const isDevEnv: () => boolean;
|
|
171
180
|
export declare const wrapEvent: <T extends Event>(name: EVENT, nativeEvent: T) => CustomEvent<{
|
|
@@ -228,4 +237,5 @@ type Unbrand<T> = T extends Map<infer E, infer F> ? Map<E, F> : T extends Set<in
|
|
|
228
237
|
*/
|
|
229
238
|
export declare const toBrandedType: <BrandedType, CurrentType = BrandedType>(value: Unbrand<BrandedType>) => CurrentType & BrandedType;
|
|
230
239
|
export declare const promiseTry: <TValue, TArgs extends unknown[]>(fn: (...args: TArgs) => TValue | PromiseLike<TValue>, ...args: TArgs) => Promise<TValue>;
|
|
240
|
+
export declare const isAnyTrue: (...args: boolean[]) => boolean;
|
|
231
241
|
export {};
|
package/dist/excalidraw/utils.js
CHANGED
|
@@ -37,6 +37,7 @@ export const isWritableElement = (target) => (target instanceof HTMLElement && t
|
|
|
37
37
|
export const getFontFamilyString = ({ fontFamily, }) => {
|
|
38
38
|
for (const [fontFamilyString, id] of Object.entries(FONT_FAMILY)) {
|
|
39
39
|
if (id === fontFamily) {
|
|
40
|
+
// TODO: we should fallback first to generic family names first, rather than directly to the emoji font
|
|
40
41
|
return `${fontFamilyString}, ${WINDOWS_EMOJI_FALLBACK_FONT}`;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
@@ -452,6 +453,26 @@ export const arrayToObject = (array, groupBy) => array.reduce((acc, value) => {
|
|
|
452
453
|
acc[groupBy ? groupBy(value) : String(value)] = value;
|
|
453
454
|
return acc;
|
|
454
455
|
}, {});
|
|
456
|
+
/**
|
|
457
|
+
* Creates a circular doubly linked list by adding `prev` and `next` props to the existing array nodes.
|
|
458
|
+
*/
|
|
459
|
+
export const arrayToList = (array) => array.reduce((acc, curr, index) => {
|
|
460
|
+
const node = { ...curr, prev: null, next: null };
|
|
461
|
+
// no-op for first item, we don't want circular references on a single item
|
|
462
|
+
if (index !== 0) {
|
|
463
|
+
const prevNode = acc[index - 1];
|
|
464
|
+
node.prev = prevNode;
|
|
465
|
+
prevNode.next = node;
|
|
466
|
+
if (index === array.length - 1) {
|
|
467
|
+
// make the references circular and connect head & tail
|
|
468
|
+
const firstNode = acc[0];
|
|
469
|
+
node.next = firstNode;
|
|
470
|
+
firstNode.prev = node;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
acc.push(node);
|
|
474
|
+
return acc;
|
|
475
|
+
}, []);
|
|
455
476
|
export const isTestEnv = () => import.meta.env.MODE === "test";
|
|
456
477
|
export const isDevEnv = () => import.meta.env.MODE === "development";
|
|
457
478
|
export const wrapEvent = (name, nativeEvent) => {
|
|
@@ -690,3 +711,4 @@ export const promiseTry = async (fn, ...args) => {
|
|
|
690
711
|
resolve(fn(...args));
|
|
691
712
|
});
|
|
692
713
|
};
|
|
714
|
+
export const isAnyTrue = (...args) => Math.max(...args.map((arg) => (arg ? 1 : 0))) > 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExcalidrawElement } from "./element/types";
|
|
2
|
-
import { AppState } from "./types";
|
|
1
|
+
import type { ExcalidrawElement } from "./element/types";
|
|
2
|
+
import type { AppState } from "./types";
|
|
3
3
|
export declare const moveOneLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[];
|
|
4
4
|
export declare const moveOneRight: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[];
|
|
5
5
|
export declare const moveAllLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[] | ExcalidrawElement[];
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
"arrowhead_triangle_outline": "Triangle (outline)",
|
|
47
47
|
"arrowhead_diamond": "Diamond",
|
|
48
48
|
"arrowhead_diamond_outline": "Diamond (outline)",
|
|
49
|
+
"arrowtypes": "Arrow type",
|
|
50
|
+
"arrowtype_sharp": "Sharp arrow",
|
|
51
|
+
"arrowtype_round": "Curved arrow",
|
|
52
|
+
"arrowtype_elbowed": "Elbow arrow",
|
|
49
53
|
"fontSize": "Font size",
|
|
50
54
|
"fontFamily": "Font family",
|
|
51
55
|
"addWatermark": "Add \"Made with Excalidraw\"",
|
|
@@ -109,6 +113,7 @@
|
|
|
109
113
|
"share": "Share",
|
|
110
114
|
"showStroke": "Show stroke color picker",
|
|
111
115
|
"showBackground": "Show background color picker",
|
|
116
|
+
"showFonts": "Show font picker",
|
|
112
117
|
"toggleTheme": "Toggle light/dark theme",
|
|
113
118
|
"theme": "Theme",
|
|
114
119
|
"personalLib": "Personal Library",
|
|
@@ -129,7 +134,7 @@
|
|
|
129
134
|
},
|
|
130
135
|
"lineEditor": {
|
|
131
136
|
"edit": "Edit line",
|
|
132
|
-
"
|
|
137
|
+
"editArrow": "Edit arrow"
|
|
133
138
|
},
|
|
134
139
|
"elementLock": {
|
|
135
140
|
"lock": "Lock",
|
|
@@ -148,7 +153,9 @@
|
|
|
148
153
|
"discordChat": "Discord chat",
|
|
149
154
|
"zoomToFitViewport": "Zoom to fit in viewport",
|
|
150
155
|
"zoomToFitSelection": "Zoom to fit selection",
|
|
151
|
-
"zoomToFit": "Zoom to fit all elements"
|
|
156
|
+
"zoomToFit": "Zoom to fit all elements",
|
|
157
|
+
"installPWA": "Install Excalidraw locally (PWA)",
|
|
158
|
+
"autoResize": "Enable text auto-resizing"
|
|
152
159
|
},
|
|
153
160
|
"library": {
|
|
154
161
|
"noItems": "No items added yet...",
|
|
@@ -268,6 +275,22 @@
|
|
|
268
275
|
"mermaidToExcalidraw": "Mermaid to Excalidraw",
|
|
269
276
|
"magicSettings": "AI settings"
|
|
270
277
|
},
|
|
278
|
+
"element": {
|
|
279
|
+
"rectangle": "Rectangle",
|
|
280
|
+
"diamond": "Diamond",
|
|
281
|
+
"ellipse": "Ellipse",
|
|
282
|
+
"arrow": "Arrow",
|
|
283
|
+
"line": "Line",
|
|
284
|
+
"freedraw": "Freedraw",
|
|
285
|
+
"text": "Text",
|
|
286
|
+
"image": "Image",
|
|
287
|
+
"group": "Group",
|
|
288
|
+
"frame": "Frame",
|
|
289
|
+
"magicframe": "Wireframe to code",
|
|
290
|
+
"embeddable": "Web Embed",
|
|
291
|
+
"selection": "Selection",
|
|
292
|
+
"iframe": "IFrame"
|
|
293
|
+
},
|
|
271
294
|
"headings": {
|
|
272
295
|
"canvasActions": "Canvas actions",
|
|
273
296
|
"selectedShapeActions": "Selected shape actions",
|
|
@@ -276,6 +299,7 @@
|
|
|
276
299
|
"hints": {
|
|
277
300
|
"canvasPanning": "To move canvas, hold mouse wheel or spacebar while dragging, or use the hand tool",
|
|
278
301
|
"linearElement": "Click to start multiple points, drag for single line",
|
|
302
|
+
"arrowTool": "Click to start multiple points, drag for single line. Press {{arrowShortcut}} again to change arrow type.",
|
|
279
303
|
"freeDraw": "Click and drag, release when you're finished",
|
|
280
304
|
"text": "Tip: you can also add text by double-clicking anywhere with the selection tool",
|
|
281
305
|
"embeddable": "Click-drag to create a website embed",
|
|
@@ -441,7 +465,10 @@
|
|
|
441
465
|
"scene": "Scene",
|
|
442
466
|
"selected": "Selected",
|
|
443
467
|
"storage": "Storage",
|
|
444
|
-
"
|
|
468
|
+
"fullTitle": "Stats & Element properties",
|
|
469
|
+
"title": "Stats",
|
|
470
|
+
"generalStats": "General stats",
|
|
471
|
+
"elementProperties": "Element properties",
|
|
445
472
|
"total": "Total",
|
|
446
473
|
"version": "Version",
|
|
447
474
|
"versionCopy": "Click to copy",
|
|
@@ -536,11 +563,19 @@
|
|
|
536
563
|
"syntax": "Mermaid Syntax",
|
|
537
564
|
"preview": "Preview"
|
|
538
565
|
},
|
|
539
|
-
"
|
|
540
|
-
"
|
|
541
|
-
|
|
542
|
-
|
|
566
|
+
"quickSearch": {
|
|
567
|
+
"placeholder": "Quick search"
|
|
568
|
+
},
|
|
569
|
+
"fontList": {
|
|
570
|
+
"badge": {
|
|
571
|
+
"old": "old"
|
|
543
572
|
},
|
|
573
|
+
"sceneFonts": "In this scene",
|
|
574
|
+
"availableFonts": "Available fonts",
|
|
575
|
+
"empty": "No fonts found"
|
|
576
|
+
},
|
|
577
|
+
"userList": {
|
|
578
|
+
"empty": "No users found",
|
|
544
579
|
"hint": {
|
|
545
580
|
"text": "Click on user to follow",
|
|
546
581
|
"followStatus": "You're currently following this user",
|