@excalidraw/excalidraw 0.15.2-2a39d0b → 0.15.2-3bd5d87
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 +16 -0
- package/dist/excalidraw-assets/locales/ar-SA-json-20b8359339093c0d55e4.js +1 -0
- package/dist/excalidraw-assets/locales/az-AZ-json-95ab85135314fce51ccc.js +1 -0
- package/dist/excalidraw-assets/locales/bg-BG-json-0d8dbcb99870971021ee.js +1 -0
- package/dist/excalidraw-assets/locales/bn-BD-json-e2b7f233baf2dcd84360.js +1 -0
- package/dist/excalidraw-assets/locales/ca-ES-json-2526e4d277313d9fa2ba.js +1 -0
- package/dist/excalidraw-assets/locales/cs-CZ-json-9eb9864732272e7dd3e5.js +1 -0
- package/dist/excalidraw-assets/locales/da-DK-json-4f8e7ffffcfe77676372.js +1 -0
- package/dist/excalidraw-assets/locales/de-DE-json-d3be08a6c1c77da3217b.js +1 -0
- package/dist/excalidraw-assets/locales/el-GR-json-dbefbe1435eb60114eb6.js +1 -0
- package/dist/excalidraw-assets/locales/es-ES-json-bce3ffccc2d4f618c802.js +1 -0
- package/dist/excalidraw-assets/locales/eu-ES-json-5533c5bc25f2a8c5f167.js +1 -0
- package/dist/excalidraw-assets/locales/fa-IR-json-5a4de9617f16bd36abf9.js +1 -0
- package/dist/excalidraw-assets/locales/fi-FI-json-8941c5209ec2fe54175f.js +1 -0
- package/dist/excalidraw-assets/locales/fr-FR-json-f350482e7da034549dbf.js +1 -0
- package/dist/excalidraw-assets/locales/gl-ES-json-c54966edc31ab5d6917e.js +1 -0
- package/dist/excalidraw-assets/locales/he-IL-json-0a140148a521e80ef951.js +1 -0
- package/dist/excalidraw-assets/locales/hi-IN-json-fa6d3964054b114046c0.js +1 -0
- package/dist/excalidraw-assets/locales/hu-HU-json-ec488d80d0a50ac94743.js +1 -0
- package/dist/excalidraw-assets/locales/id-ID-json-b724e9ec875dd8ffee62.js +1 -0
- package/dist/excalidraw-assets/locales/it-IT-json-4e385faed32727fe36ce.js +1 -0
- package/dist/excalidraw-assets/locales/ja-JP-json-323f591c38869b307b87.js +1 -0
- package/dist/excalidraw-assets/locales/kaa-json-ac1f4f50b9d889b7b8c6.js +1 -0
- package/dist/excalidraw-assets/locales/kab-KAB-json-8a859cf6ef556b4cb21a.js +1 -0
- package/dist/excalidraw-assets/locales/kk-KZ-json-31eb6ba41a19136eff88.js +1 -0
- package/dist/excalidraw-assets/locales/km-KH-json-7f445f80e19ca90e9998.js +1 -0
- package/dist/excalidraw-assets/locales/ko-KR-json-9a0b6ecc5be0f4e98fee.js +1 -0
- package/dist/excalidraw-assets/locales/ku-TR-json-2608a20f805341b51a6e.js +1 -0
- package/dist/excalidraw-assets/locales/lt-LT-json-a258da44916407cf694a.js +1 -0
- package/dist/excalidraw-assets/locales/lv-LV-json-7dbbb288da81c4987475.js +1 -0
- package/dist/excalidraw-assets/locales/mr-IN-json-d72d88dfcb51c3668e5b.js +1 -0
- package/dist/excalidraw-assets/locales/my-MM-json-e35accf714a96ecbf476.js +1 -0
- package/dist/excalidraw-assets/locales/nb-NO-json-4f1808f3507956e1afe9.js +1 -0
- package/dist/excalidraw-assets/locales/nl-NL-json-e2408c0b590b8987e423.js +1 -0
- package/dist/excalidraw-assets/locales/nn-NO-json-67ff40e2c3eb08ee2368.js +1 -0
- package/dist/excalidraw-assets/locales/oc-FR-json-ff98e2029afacd5a71e7.js +1 -0
- package/dist/excalidraw-assets/locales/pa-IN-json-448f5d174c6ac1f9eae2.js +1 -0
- package/dist/excalidraw-assets/locales/pl-PL-json-8d41ca8cad23ad48c767.js +1 -0
- package/dist/excalidraw-assets/locales/pt-BR-json-80997877c2c88f481632.js +1 -0
- package/dist/excalidraw-assets/locales/pt-PT-json-54e547cc2cd8b0700305.js +1 -0
- package/dist/excalidraw-assets/locales/ro-RO-json-6f6fbe0dacd28213189e.js +1 -0
- package/dist/excalidraw-assets/locales/ru-RU-json-f3368da59c45bb4ea83d.js +1 -0
- package/dist/excalidraw-assets/locales/si-LK-json-0e496395bea7aa09c12e.js +1 -0
- package/dist/excalidraw-assets/locales/sk-SK-json-f6694f00a14601aafbc9.js +1 -0
- package/dist/excalidraw-assets/locales/sl-SI-json-956739803bca409172cb.js +1 -0
- package/dist/excalidraw-assets/locales/sv-SE-json-036a58ce76df0ef486f1.js +1 -0
- package/dist/excalidraw-assets/locales/ta-IN-json-e215bca042782bf1aafb.js +1 -0
- package/dist/excalidraw-assets/locales/th-TH-json-779ad701c23e676f3907.js +1 -0
- package/dist/excalidraw-assets/locales/tr-TR-json-1f83ec99916cff31ea83.js +1 -0
- package/dist/excalidraw-assets/locales/uk-UA-json-b402aaa379cc70152220.js +1 -0
- package/dist/excalidraw-assets/locales/vi-VN-json-bcc95c0e05c13d6f59f3.js +1 -0
- package/dist/excalidraw-assets/locales/zh-CN-json-cba518876516337cde09.js +1 -0
- package/dist/excalidraw-assets/locales/zh-HK-json-9af6e5a3292b417d9698.js +1 -0
- package/dist/excalidraw-assets/locales/zh-TW-json-c578828a49f1eb06685e.js +1 -0
- package/dist/excalidraw-assets-dev/locales/ar-SA-json-f0a936944c7690d6ca20.js +22 -0
- package/dist/excalidraw-assets-dev/locales/az-AZ-json-aa2106a195005649f288.js +22 -0
- package/dist/excalidraw-assets-dev/locales/bg-BG-json-244a526ffd7fb0401bf4.js +22 -0
- package/dist/excalidraw-assets-dev/locales/bn-BD-json-84daac1a6f87d54ab482.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ca-ES-json-f19488481689426f35e7.js +22 -0
- package/dist/excalidraw-assets-dev/locales/cs-CZ-json-4131c5c6a650ff359d88.js +22 -0
- package/dist/excalidraw-assets-dev/locales/da-DK-json-43c89c591886c0bf87c5.js +22 -0
- package/dist/excalidraw-assets-dev/locales/de-DE-json-c1c6f1ccba0c81e36ff3.js +22 -0
- package/dist/excalidraw-assets-dev/locales/el-GR-json-a0d2db555d8eabf2314d.js +22 -0
- package/dist/excalidraw-assets-dev/locales/es-ES-json-d28c0a34dd65557c36d1.js +22 -0
- package/dist/excalidraw-assets-dev/locales/eu-ES-json-a9c30edbcd64040f6d81.js +22 -0
- package/dist/excalidraw-assets-dev/locales/fa-IR-json-c94925ee07701ef438a2.js +22 -0
- package/dist/excalidraw-assets-dev/locales/fi-FI-json-534ff9afaddfa5e98712.js +22 -0
- package/dist/excalidraw-assets-dev/locales/fr-FR-json-148222fdde4309b9ffdd.js +22 -0
- package/dist/excalidraw-assets-dev/locales/gl-ES-json-b6d43d24dfabd06e45d5.js +22 -0
- package/dist/excalidraw-assets-dev/locales/he-IL-json-5f74dda2737436b4482a.js +22 -0
- package/dist/excalidraw-assets-dev/locales/hi-IN-json-5ce4fc9ec6678cfd2f6b.js +22 -0
- package/dist/excalidraw-assets-dev/locales/hu-HU-json-e6a409606cf22a639a75.js +22 -0
- package/dist/excalidraw-assets-dev/locales/id-ID-json-81ef59d57194b5eaf5cc.js +22 -0
- package/dist/excalidraw-assets-dev/locales/it-IT-json-3ae9ff054a8832e055d3.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ja-JP-json-4f64b1c6188e0451fd4b.js +22 -0
- package/dist/excalidraw-assets-dev/locales/kaa-json-4017d8481aa0b479424a.js +22 -0
- package/dist/excalidraw-assets-dev/locales/kab-KAB-json-ffe286fa0d0bb4f0c8b0.js +22 -0
- package/dist/excalidraw-assets-dev/locales/kk-KZ-json-0a85d681d9deb9c440c9.js +22 -0
- package/dist/excalidraw-assets-dev/locales/km-KH-json-38d489a3cd78fb378b39.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ko-KR-json-dab1c947d6d2ca3ddac0.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ku-TR-json-c342bf0a9985d2953f39.js +22 -0
- package/dist/excalidraw-assets-dev/locales/lt-LT-json-5b6406e76cf0d826cc16.js +22 -0
- package/dist/excalidraw-assets-dev/locales/lv-LV-json-216a1fe6e16d46a93b33.js +22 -0
- package/dist/excalidraw-assets-dev/locales/mr-IN-json-d2359502fdbadc31b122.js +22 -0
- package/dist/excalidraw-assets-dev/locales/my-MM-json-0ee160095e1784b8d62b.js +22 -0
- package/dist/excalidraw-assets-dev/locales/nb-NO-json-2cf7b76c223968714b89.js +22 -0
- package/dist/excalidraw-assets-dev/locales/nl-NL-json-04f6aacdcbd509af44a0.js +22 -0
- package/dist/excalidraw-assets-dev/locales/nn-NO-json-cd3bec2e4911f6ca612d.js +22 -0
- package/dist/excalidraw-assets-dev/locales/oc-FR-json-ec9566e0768dfe4b1496.js +22 -0
- package/dist/excalidraw-assets-dev/locales/pa-IN-json-64ff3aef4c4f2285e7d4.js +22 -0
- package/dist/excalidraw-assets-dev/locales/pl-PL-json-6ce16ec772ca39cb8744.js +22 -0
- package/dist/excalidraw-assets-dev/locales/pt-BR-json-7571b67e63f5e151e90a.js +22 -0
- package/dist/excalidraw-assets-dev/locales/pt-PT-json-a0efd06ca81979f0a547.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ro-RO-json-259991b384060c398825.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ru-RU-json-1666880345e0ee1d9198.js +22 -0
- package/dist/excalidraw-assets-dev/locales/si-LK-json-e6e6b1caa13f7abcfacc.js +22 -0
- package/dist/excalidraw-assets-dev/locales/sk-SK-json-f0dcb9f158c1416791e9.js +22 -0
- package/dist/excalidraw-assets-dev/locales/sl-SI-json-cd56d7fa0376488e5343.js +22 -0
- package/dist/excalidraw-assets-dev/locales/sv-SE-json-b16a829e634fedfb3471.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ta-IN-json-0f92406d511259672140.js +22 -0
- package/dist/excalidraw-assets-dev/locales/th-TH-json-53f4f07ed0af4f4164f1.js +22 -0
- package/dist/excalidraw-assets-dev/locales/tr-TR-json-efa928fe68850c03bfed.js +22 -0
- package/dist/excalidraw-assets-dev/locales/uk-UA-json-4e9f0d94b39ba92e56f2.js +22 -0
- package/dist/excalidraw-assets-dev/locales/vi-VN-json-87f5a22fd45850d1ddf7.js +22 -0
- package/dist/excalidraw-assets-dev/locales/zh-CN-json-09003f959f8d8d9ee650.js +22 -0
- package/dist/excalidraw-assets-dev/locales/zh-HK-json-79ea857f9fc00efa982e.js +22 -0
- package/dist/excalidraw-assets-dev/locales/zh-TW-json-fa855c8136cdf8c637e0.js +22 -0
- package/dist/excalidraw.development.js +1201 -232
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +2 -2
- package/types/actions/actionAddToLibrary.d.ts +18 -9
- package/types/actions/actionBoundText.d.ts +12 -6
- package/types/actions/actionCanvas.d.ts +61 -31
- package/types/actions/actionClipboard.d.ts +30 -15
- package/types/actions/actionDeleteSelected.d.ts +18 -9
- package/types/actions/actionElementLock.d.ts +243 -0
- package/types/actions/actionExport.d.ts +55 -28
- package/types/actions/actionFinalize.d.ts +12 -6
- package/types/actions/actionFlip.d.ts +2 -4
- package/types/actions/actionHistory.d.ts +1 -1
- package/types/actions/actionLinearEditor.d.ts +6 -3
- package/types/actions/actionMenu.d.ts +18 -9
- package/types/actions/actionNavigate.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +80 -41
- package/types/actions/actionStyles.d.ts +6 -3
- package/types/actions/actionToggleGridMode.d.ts +6 -3
- package/types/actions/actionToggleStats.d.ts +6 -3
- package/types/actions/actionToggleViewMode.d.ts +6 -3
- package/types/actions/actionToggleZenMode.d.ts +6 -3
- package/types/actions/index.d.ts +1 -1
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +7 -7
- package/types/appState.d.ts +5 -2
- package/types/charts.d.ts +2 -2
- package/types/clients.d.ts +5 -6
- package/types/colors.d.ts +60 -5
- package/types/components/Actions.d.ts +5 -5
- package/types/components/ActiveConfirmDialog.d.ts +1 -21
- package/types/components/App.d.ts +16 -5
- package/types/components/Avatar.d.ts +1 -2
- package/types/components/Button.d.ts +3 -1
- package/types/components/ColorPicker/ColorInput.d.ts +7 -0
- package/types/components/ColorPicker/ColorPicker.d.ts +19 -0
- package/types/components/ColorPicker/CustomColorList.d.ts +8 -0
- package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -0
- package/types/components/ColorPicker/Picker.d.ts +18 -0
- package/types/components/ColorPicker/PickerColorList.d.ts +10 -0
- package/types/components/ColorPicker/PickerHeading.d.ts +5 -0
- package/types/components/ColorPicker/ShadeList.d.ts +8 -0
- package/types/components/ColorPicker/TopPicks.d.ts +9 -0
- package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -0
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +21 -0
- package/types/components/ContextMenu.d.ts +3 -3
- package/types/components/DefaultSidebar.d.ts +30 -0
- package/types/components/Dialog.d.ts +2 -4
- package/types/components/EyeDropper.d.ts +18 -0
- package/types/components/FilledButton.d.ts +16 -0
- package/types/components/FixedSideContainer.d.ts +1 -1
- package/types/components/HandButton.d.ts +1 -1
- package/types/components/HelpButton.d.ts +1 -1
- package/types/components/HintViewer.d.ts +2 -2
- package/types/components/ImageExportDialog.d.ts +8 -13
- package/types/components/Island.d.ts +1 -1
- package/types/components/JSONExportDialog.d.ts +4 -4
- package/types/components/LayerUI.d.ts +4 -10
- package/types/components/LibraryMenu.d.ts +13 -14
- package/types/components/LibraryMenuBrowseButton.d.ts +2 -2
- package/types/components/LibraryMenuControlButtons.d.ts +9 -0
- package/types/components/LibraryMenuHeaderContent.d.ts +11 -28
- package/types/components/LibraryMenuItems.d.ts +6 -7
- package/types/components/LibraryMenuSection.d.ts +22 -0
- package/types/components/LibraryUnit.d.ts +7 -3
- package/types/components/LockButton.d.ts +1 -1
- package/types/components/MobileMenu.d.ts +4 -4
- package/types/components/PasteChartDialog.d.ts +4 -5
- package/types/components/PenModeButton.d.ts +1 -1
- package/types/components/Popover.d.ts +1 -1
- package/types/components/ProjectName.d.ts +2 -1
- package/types/components/PublishLibrary.d.ts +2 -2
- package/types/components/RadioGroup.d.ts +12 -0
- package/types/components/Sidebar/Sidebar.d.ts +66 -63
- package/types/components/Sidebar/SidebarHeader.d.ts +6 -19
- package/types/components/Sidebar/SidebarTab.d.ts +9 -0
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +10 -0
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +7 -0
- package/types/components/Sidebar/SidebarTabs.d.ts +7 -0
- package/types/components/Sidebar/SidebarTrigger.d.ts +6 -0
- package/types/components/Sidebar/common.d.ts +24 -7
- package/types/components/Spinner.d.ts +2 -1
- package/types/components/Stack.d.ts +4 -3
- package/types/components/Stats.d.ts +3 -3
- package/types/components/Switch.d.ts +9 -0
- package/types/components/ToolButton.d.ts +3 -3
- package/types/components/Tooltip.d.ts +1 -1
- package/types/components/Trans.d.ts +8 -0
- package/types/components/footer/Footer.d.ts +2 -2
- package/types/components/icons.d.ts +8 -1
- package/types/constants.d.ts +11 -0
- package/types/context/tunnels.d.ts +18 -0
- package/types/context/ui-appState.d.ts +4 -0
- package/types/data/encode.d.ts +1 -1
- package/types/data/filesystem.d.ts +1 -1
- package/types/data/library.d.ts +3 -45
- package/types/data/restore.d.ts +2 -2
- package/types/data/types.d.ts +3 -5
- package/types/element/Hyperlink.d.ts +8 -5
- package/types/element/binding.d.ts +2 -2
- package/types/element/bounds.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +6 -3
- package/types/element/mutateElement.d.ts +1 -1
- package/types/element/newElement.d.ts +1 -1
- package/types/element/resizeElements.d.ts +1 -0
- package/types/element/showSelectedShapeActions.d.ts +2 -2
- package/types/element/transformHandles.d.ts +5 -5
- package/types/element/types.d.ts +35 -35
- package/types/errors.d.ts +1 -1
- package/types/ga.d.ts +5 -5
- package/types/hooks/useCreatePortalContainer.d.ts +4 -0
- package/types/hooks/useLibraryItemSvg.d.ts +11 -0
- package/types/hooks/useOutsideClick.d.ts +19 -1
- package/types/hooks/useScrollPosition.d.ts +2 -0
- package/types/hooks/useTransition.d.ts +2 -0
- package/types/i18n.d.ts +2 -2
- package/types/jotai.d.ts +16 -104
- package/types/keys.d.ts +1 -1
- package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-CN-json-cba518876516337cde09.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-HK-json-9af6e5a3292b417d9698.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-TW-json-c578828a49f1eb06685e.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-CN-json-09003f959f8d8d9ee650.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-HK-json-79ea857f9fc00efa982e.d.ts +2 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/zh-TW-json-fa855c8136cdf8c637e0.d.ts +2 -0
- package/types/packages/excalidraw/index.d.ts +2 -1
- package/types/packages/utils.d.ts +1 -1
- package/types/renderer/renderElement.d.ts +2 -2
- package/types/renderer/roundRect.d.ts +1 -1
- package/types/scene/Scene.d.ts +4 -4
- package/types/scene/selection.d.ts +4 -4
- package/types/scene/types.d.ts +4 -4
- package/types/types.d.ts +56 -42
- package/types/utility-types.d.ts +13 -13
- package/types/utils.d.ts +7 -5
- package/dist/excalidraw-assets/locales/ar-SA-json-319bdcce09f77452e556.js +0 -1
- package/dist/excalidraw-assets/locales/bg-BG-json-72b645832f9e21ed650d.js +0 -1
- package/dist/excalidraw-assets/locales/bn-BD-json-75d37ad586d7447997de.js +0 -1
- package/dist/excalidraw-assets/locales/ca-ES-json-67ffd969950eed7221e2.js +0 -1
- package/dist/excalidraw-assets/locales/cs-CZ-json-b7f5162a0ecc2fd634fd.js +0 -1
- package/dist/excalidraw-assets/locales/da-DK-json-1378750c9e2c2cae1f87.js +0 -1
- package/dist/excalidraw-assets/locales/de-DE-json-2ad2dc0c4beaa07c538f.js +0 -1
- package/dist/excalidraw-assets/locales/el-GR-json-608df084791fbb349206.js +0 -1
- package/dist/excalidraw-assets/locales/es-ES-json-f1b509a41d06a9d92960.js +0 -1
- package/dist/excalidraw-assets/locales/eu-ES-json-fddd3beb3f3d69c85afb.js +0 -1
- package/dist/excalidraw-assets/locales/fa-IR-json-2fd2bebc74e9735dce6e.js +0 -1
- package/dist/excalidraw-assets/locales/fi-FI-json-e545b27e4a726d7f2e2c.js +0 -1
- package/dist/excalidraw-assets/locales/fr-FR-json-945292efb3be57885a2a.js +0 -1
- package/dist/excalidraw-assets/locales/gl-ES-json-5dbdfa707812884b2cfa.js +0 -1
- package/dist/excalidraw-assets/locales/he-IL-json-0148f98af040f4ef7f06.js +0 -1
- package/dist/excalidraw-assets/locales/hi-IN-json-3c67653496af54f0fd81.js +0 -1
- package/dist/excalidraw-assets/locales/hu-HU-json-b6c2c7fd6ed3b57d4385.js +0 -1
- package/dist/excalidraw-assets/locales/id-ID-json-37689190a3afa41673e5.js +0 -1
- package/dist/excalidraw-assets/locales/it-IT-json-7e1b921ce8ff7c8eee72.js +0 -1
- package/dist/excalidraw-assets/locales/ja-JP-json-f1efefc27c7a74e0781f.js +0 -1
- package/dist/excalidraw-assets/locales/kab-KAB-json-4c9b5009f2d5563bfa21.js +0 -1
- package/dist/excalidraw-assets/locales/kk-KZ-json-29d048bdc2be47c2f20c.js +0 -1
- package/dist/excalidraw-assets/locales/ko-KR-json-b5483a6096a52a2b67ef.js +0 -1
- package/dist/excalidraw-assets/locales/ku-TR-json-db7bd3c504214dc3af35.js +0 -1
- package/dist/excalidraw-assets/locales/lt-LT-json-f08538bcb2aeff0b1818.js +0 -1
- package/dist/excalidraw-assets/locales/lv-LV-json-412bc76139c32e0ad4c4.js +0 -1
- package/dist/excalidraw-assets/locales/mr-IN-json-8b142e97e6d7c3bfb723.js +0 -1
- package/dist/excalidraw-assets/locales/my-MM-json-0995ada8250fb9275374.js +0 -1
- package/dist/excalidraw-assets/locales/nb-NO-json-90888f613ffee513cc75.js +0 -1
- package/dist/excalidraw-assets/locales/nl-NL-json-71af5b460a2ca8b2868f.js +0 -1
- package/dist/excalidraw-assets/locales/nn-NO-json-1c9f32f989d03e7901cb.js +0 -1
- package/dist/excalidraw-assets/locales/oc-FR-json-2e6c6209949dc11f079a.js +0 -1
- package/dist/excalidraw-assets/locales/pa-IN-json-1445e723d69edff21aba.js +0 -1
- package/dist/excalidraw-assets/locales/pl-PL-json-9fe89b1c8e8c91956565.js +0 -1
- package/dist/excalidraw-assets/locales/pt-BR-json-397d12272b78f0d6113b.js +0 -1
- package/dist/excalidraw-assets/locales/pt-PT-json-1bb72444035194cd2145.js +0 -1
- package/dist/excalidraw-assets/locales/ro-RO-json-6993e2d3c429dc44ca15.js +0 -1
- package/dist/excalidraw-assets/locales/ru-RU-json-89a303632b3c278622ff.js +0 -1
- package/dist/excalidraw-assets/locales/si-LK-json-b4a800debcbe2b5ea7d1.js +0 -1
- package/dist/excalidraw-assets/locales/sk-SK-json-824b7c2a409e41dcbfc1.js +0 -1
- package/dist/excalidraw-assets/locales/sl-SI-json-343874ae57ed10594379.js +0 -1
- package/dist/excalidraw-assets/locales/sv-SE-json-d386f73a6e7c4ab4dbcd.js +0 -1
- package/dist/excalidraw-assets/locales/ta-IN-json-b76dfc733e4c2e18332b.js +0 -1
- package/dist/excalidraw-assets/locales/th-TH-json-a0f620140e6158fdeab9.js +0 -1
- package/dist/excalidraw-assets/locales/tr-TR-json-9bbea58366200610e5ba.js +0 -1
- package/dist/excalidraw-assets/locales/uk-UA-json-75feb4ecfb244d7e2218.js +0 -1
- package/dist/excalidraw-assets/locales/vi-VN-json-323518108b79d9f9faf6.js +0 -1
- package/dist/excalidraw-assets/locales/zh-CN-json-20b64eb2b4a7dd686c91.js +0 -1
- package/dist/excalidraw-assets/locales/zh-HK-json-c13c015f52fe3a322fbf.js +0 -1
- package/dist/excalidraw-assets/locales/zh-TW-json-7b55f7bf80b604b53f4b.js +0 -1
- package/dist/excalidraw-assets-dev/locales/ar-SA-json-383cec8996cf463fb2c6.js +0 -22
- package/dist/excalidraw-assets-dev/locales/bg-BG-json-f6d55a160efa71dfcafd.js +0 -22
- package/dist/excalidraw-assets-dev/locales/bn-BD-json-e975150371bfa1edb583.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ca-ES-json-c9cc26517eb9eadd29e9.js +0 -22
- package/dist/excalidraw-assets-dev/locales/cs-CZ-json-ff3834a399ae4b083d43.js +0 -22
- package/dist/excalidraw-assets-dev/locales/da-DK-json-b5364d639c2eff771afb.js +0 -22
- package/dist/excalidraw-assets-dev/locales/de-DE-json-83368f154b3dfcc3d957.js +0 -22
- package/dist/excalidraw-assets-dev/locales/el-GR-json-10fa4f0d4023fc5ecbcb.js +0 -22
- package/dist/excalidraw-assets-dev/locales/es-ES-json-074dc89253548179bd8a.js +0 -22
- package/dist/excalidraw-assets-dev/locales/eu-ES-json-f34f76bd7ec78b2aa578.js +0 -22
- package/dist/excalidraw-assets-dev/locales/fa-IR-json-11f5ca1f68a1b5c8c8e5.js +0 -22
- package/dist/excalidraw-assets-dev/locales/fi-FI-json-84946a003e1ddcac07e9.js +0 -22
- package/dist/excalidraw-assets-dev/locales/fr-FR-json-95aee5c2cb526f7b1e9e.js +0 -22
- package/dist/excalidraw-assets-dev/locales/gl-ES-json-716e37ca0bd82fc2ff80.js +0 -22
- package/dist/excalidraw-assets-dev/locales/he-IL-json-70a9904ee01d1388f73d.js +0 -22
- package/dist/excalidraw-assets-dev/locales/hi-IN-json-7da9b3824a7700cb9883.js +0 -22
- package/dist/excalidraw-assets-dev/locales/hu-HU-json-193d1749cda934e9e096.js +0 -22
- package/dist/excalidraw-assets-dev/locales/id-ID-json-3d0b058b9bc03e1bacac.js +0 -22
- package/dist/excalidraw-assets-dev/locales/it-IT-json-673e3f4ba80e9daae9e5.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ja-JP-json-108cc6981fb2aca50ad3.js +0 -22
- package/dist/excalidraw-assets-dev/locales/kab-KAB-json-d363cbd7c8a3279e1e47.js +0 -22
- package/dist/excalidraw-assets-dev/locales/kk-KZ-json-f13f4453ec809a59bf16.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ko-KR-json-4d3cee8e646cc2647b88.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ku-TR-json-25c2e27ba24d1250b006.js +0 -22
- package/dist/excalidraw-assets-dev/locales/lt-LT-json-c4c46f97a56caf3127ce.js +0 -22
- package/dist/excalidraw-assets-dev/locales/lv-LV-json-d3f0c764c8140d745c85.js +0 -22
- package/dist/excalidraw-assets-dev/locales/mr-IN-json-88e303a0ad42cb9c5984.js +0 -22
- package/dist/excalidraw-assets-dev/locales/my-MM-json-df57d0191524ebc8879e.js +0 -22
- package/dist/excalidraw-assets-dev/locales/nb-NO-json-e213f92bc70e823d0908.js +0 -22
- package/dist/excalidraw-assets-dev/locales/nl-NL-json-f4cdd5f3bc409a30e067.js +0 -22
- package/dist/excalidraw-assets-dev/locales/nn-NO-json-42ad4c5b8c1e3c21dc14.js +0 -22
- package/dist/excalidraw-assets-dev/locales/oc-FR-json-32412e7f6ac7ac90a3c2.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pa-IN-json-01d341095db8c33e54c1.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pl-PL-json-7648ad55bf8636e94340.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pt-BR-json-43e4c5ed434a3d81f778.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pt-PT-json-1a02c9495e64ef5bd042.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ro-RO-json-18ba9a2d5299ee0b72f7.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ru-RU-json-e785e1f72fd205dec174.js +0 -22
- package/dist/excalidraw-assets-dev/locales/si-LK-json-2bba8a6dc72683bbd21c.js +0 -22
- package/dist/excalidraw-assets-dev/locales/sk-SK-json-2733757fa5d72b99d145.js +0 -22
- package/dist/excalidraw-assets-dev/locales/sl-SI-json-60b48ea3d8338e17a6f5.js +0 -22
- package/dist/excalidraw-assets-dev/locales/sv-SE-json-647209072ab54e63435e.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ta-IN-json-5566df3262378a875862.js +0 -22
- package/dist/excalidraw-assets-dev/locales/th-TH-json-cfaa7a7e56909280be62.js +0 -22
- package/dist/excalidraw-assets-dev/locales/tr-TR-json-92ca2b86544067670ba2.js +0 -22
- package/dist/excalidraw-assets-dev/locales/uk-UA-json-0509e0a98aa4f585db20.js +0 -22
- package/dist/excalidraw-assets-dev/locales/vi-VN-json-c5283aac6ea2dba3e1c6.js +0 -22
- package/dist/excalidraw-assets-dev/locales/zh-CN-json-e542ccec460087a08c97.js +0 -22
- package/dist/excalidraw-assets-dev/locales/zh-HK-json-c6d66d44b3d0a45c91d7.js +0 -22
- package/dist/excalidraw-assets-dev/locales/zh-TW-json-232f370346e52fed1181.js +0 -22
- package/types/actions/actionToggleLock.d.ts +0 -119
- package/types/components/ColorPicker.d.ts +0 -14
- package/types/components/LibraryButton.d.ts +0 -8
- package/types/components/context/tunnels.d.ts +0 -16
- package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{zh-TW-json-7b55f7bf80b604b53f4b.d.ts → ar-SA-json-20b8359339093c0d55e4.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{zh-HK-json-c13c015f52fe3a322fbf.d.ts → az-AZ-json-95ab85135314fce51ccc.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{zh-CN-json-20b64eb2b4a7dd686c91.d.ts → bg-BG-json-0d8dbcb99870971021ee.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{vi-VN-json-323518108b79d9f9faf6.d.ts → bn-BD-json-e2b7f233baf2dcd84360.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{uk-UA-json-75feb4ecfb244d7e2218.d.ts → ca-ES-json-2526e4d277313d9fa2ba.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{tr-TR-json-9bbea58366200610e5ba.d.ts → cs-CZ-json-9eb9864732272e7dd3e5.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{th-TH-json-a0f620140e6158fdeab9.d.ts → da-DK-json-4f8e7ffffcfe77676372.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ta-IN-json-b76dfc733e4c2e18332b.d.ts → de-DE-json-d3be08a6c1c77da3217b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{sv-SE-json-d386f73a6e7c4ab4dbcd.d.ts → el-GR-json-dbefbe1435eb60114eb6.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{sl-SI-json-343874ae57ed10594379.d.ts → es-ES-json-bce3ffccc2d4f618c802.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{sk-SK-json-824b7c2a409e41dcbfc1.d.ts → eu-ES-json-5533c5bc25f2a8c5f167.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{si-LK-json-b4a800debcbe2b5ea7d1.d.ts → fa-IR-json-5a4de9617f16bd36abf9.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ru-RU-json-89a303632b3c278622ff.d.ts → fi-FI-json-8941c5209ec2fe54175f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ro-RO-json-6993e2d3c429dc44ca15.d.ts → fr-FR-json-f350482e7da034549dbf.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pt-PT-json-1bb72444035194cd2145.d.ts → gl-ES-json-c54966edc31ab5d6917e.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pt-BR-json-397d12272b78f0d6113b.d.ts → he-IL-json-0a140148a521e80ef951.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pl-PL-json-9fe89b1c8e8c91956565.d.ts → hi-IN-json-fa6d3964054b114046c0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pa-IN-json-1445e723d69edff21aba.d.ts → hu-HU-json-ec488d80d0a50ac94743.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{oc-FR-json-2e6c6209949dc11f079a.d.ts → id-ID-json-b724e9ec875dd8ffee62.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{nn-NO-json-1c9f32f989d03e7901cb.d.ts → it-IT-json-4e385faed32727fe36ce.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{nl-NL-json-71af5b460a2ca8b2868f.d.ts → ja-JP-json-323f591c38869b307b87.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{nb-NO-json-90888f613ffee513cc75.d.ts → kaa-json-ac1f4f50b9d889b7b8c6.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{my-MM-json-0995ada8250fb9275374.d.ts → kab-KAB-json-8a859cf6ef556b4cb21a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{mr-IN-json-8b142e97e6d7c3bfb723.d.ts → kk-KZ-json-31eb6ba41a19136eff88.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{lv-LV-json-412bc76139c32e0ad4c4.d.ts → km-KH-json-7f445f80e19ca90e9998.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{lt-LT-json-f08538bcb2aeff0b1818.d.ts → ko-KR-json-9a0b6ecc5be0f4e98fee.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ku-TR-json-db7bd3c504214dc3af35.d.ts → ku-TR-json-2608a20f805341b51a6e.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ko-KR-json-b5483a6096a52a2b67ef.d.ts → lt-LT-json-a258da44916407cf694a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kk-KZ-json-29d048bdc2be47c2f20c.d.ts → lv-LV-json-7dbbb288da81c4987475.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kab-KAB-json-4c9b5009f2d5563bfa21.d.ts → mr-IN-json-d72d88dfcb51c3668e5b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ja-JP-json-f1efefc27c7a74e0781f.d.ts → my-MM-json-e35accf714a96ecbf476.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{it-IT-json-7e1b921ce8ff7c8eee72.d.ts → nb-NO-json-4f1808f3507956e1afe9.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{id-ID-json-37689190a3afa41673e5.d.ts → nl-NL-json-e2408c0b590b8987e423.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hu-HU-json-b6c2c7fd6ed3b57d4385.d.ts → nn-NO-json-67ff40e2c3eb08ee2368.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hi-IN-json-3c67653496af54f0fd81.d.ts → oc-FR-json-ff98e2029afacd5a71e7.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{he-IL-json-0148f98af040f4ef7f06.d.ts → pa-IN-json-448f5d174c6ac1f9eae2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{gl-ES-json-5dbdfa707812884b2cfa.d.ts → pl-PL-json-8d41ca8cad23ad48c767.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{fr-FR-json-945292efb3be57885a2a.d.ts → pt-BR-json-80997877c2c88f481632.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{fi-FI-json-e545b27e4a726d7f2e2c.d.ts → pt-PT-json-54e547cc2cd8b0700305.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{fa-IR-json-2fd2bebc74e9735dce6e.d.ts → ro-RO-json-6f6fbe0dacd28213189e.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{eu-ES-json-fddd3beb3f3d69c85afb.d.ts → ru-RU-json-f3368da59c45bb4ea83d.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{es-ES-json-f1b509a41d06a9d92960.d.ts → si-LK-json-0e496395bea7aa09c12e.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{el-GR-json-608df084791fbb349206.d.ts → sk-SK-json-f6694f00a14601aafbc9.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{de-DE-json-2ad2dc0c4beaa07c538f.d.ts → sl-SI-json-956739803bca409172cb.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{da-DK-json-1378750c9e2c2cae1f87.d.ts → sv-SE-json-036a58ce76df0ef486f1.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{cs-CZ-json-b7f5162a0ecc2fd634fd.d.ts → ta-IN-json-e215bca042782bf1aafb.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ca-ES-json-67ffd969950eed7221e2.d.ts → th-TH-json-779ad701c23e676f3907.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{bn-BD-json-75d37ad586d7447997de.d.ts → tr-TR-json-1f83ec99916cff31ea83.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{bg-BG-json-72b645832f9e21ed650d.d.ts → uk-UA-json-b402aaa379cc70152220.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ar-SA-json-319bdcce09f77452e556.d.ts → vi-VN-json-bcc95c0e05c13d6f59f3.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-TW-json-232f370346e52fed1181.d.ts → ar-SA-json-f0a936944c7690d6ca20.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-HK-json-c6d66d44b3d0a45c91d7.d.ts → az-AZ-json-aa2106a195005649f288.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-CN-json-e542ccec460087a08c97.d.ts → bg-BG-json-244a526ffd7fb0401bf4.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{vi-VN-json-c5283aac6ea2dba3e1c6.d.ts → bn-BD-json-84daac1a6f87d54ab482.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{uk-UA-json-0509e0a98aa4f585db20.d.ts → ca-ES-json-f19488481689426f35e7.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{tr-TR-json-92ca2b86544067670ba2.d.ts → cs-CZ-json-4131c5c6a650ff359d88.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{th-TH-json-cfaa7a7e56909280be62.d.ts → da-DK-json-43c89c591886c0bf87c5.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ta-IN-json-5566df3262378a875862.d.ts → de-DE-json-c1c6f1ccba0c81e36ff3.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sv-SE-json-647209072ab54e63435e.d.ts → el-GR-json-a0d2db555d8eabf2314d.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sl-SI-json-60b48ea3d8338e17a6f5.d.ts → es-ES-json-d28c0a34dd65557c36d1.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sk-SK-json-2733757fa5d72b99d145.d.ts → eu-ES-json-a9c30edbcd64040f6d81.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{si-LK-json-2bba8a6dc72683bbd21c.d.ts → fa-IR-json-c94925ee07701ef438a2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ru-RU-json-e785e1f72fd205dec174.d.ts → fi-FI-json-534ff9afaddfa5e98712.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ro-RO-json-18ba9a2d5299ee0b72f7.d.ts → fr-FR-json-148222fdde4309b9ffdd.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pt-PT-json-1a02c9495e64ef5bd042.d.ts → gl-ES-json-b6d43d24dfabd06e45d5.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pt-BR-json-43e4c5ed434a3d81f778.d.ts → he-IL-json-5f74dda2737436b4482a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pl-PL-json-7648ad55bf8636e94340.d.ts → hi-IN-json-5ce4fc9ec6678cfd2f6b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pa-IN-json-01d341095db8c33e54c1.d.ts → hu-HU-json-e6a409606cf22a639a75.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{oc-FR-json-32412e7f6ac7ac90a3c2.d.ts → id-ID-json-81ef59d57194b5eaf5cc.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nn-NO-json-42ad4c5b8c1e3c21dc14.d.ts → it-IT-json-3ae9ff054a8832e055d3.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nl-NL-json-f4cdd5f3bc409a30e067.d.ts → ja-JP-json-4f64b1c6188e0451fd4b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nb-NO-json-e213f92bc70e823d0908.d.ts → kaa-json-4017d8481aa0b479424a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{my-MM-json-df57d0191524ebc8879e.d.ts → kab-KAB-json-ffe286fa0d0bb4f0c8b0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{mr-IN-json-88e303a0ad42cb9c5984.d.ts → kk-KZ-json-0a85d681d9deb9c440c9.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{lv-LV-json-d3f0c764c8140d745c85.d.ts → km-KH-json-38d489a3cd78fb378b39.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{lt-LT-json-c4c46f97a56caf3127ce.d.ts → ko-KR-json-dab1c947d6d2ca3ddac0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ku-TR-json-25c2e27ba24d1250b006.d.ts → ku-TR-json-c342bf0a9985d2953f39.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ko-KR-json-4d3cee8e646cc2647b88.d.ts → lt-LT-json-5b6406e76cf0d826cc16.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{kk-KZ-json-f13f4453ec809a59bf16.d.ts → lv-LV-json-216a1fe6e16d46a93b33.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{kab-KAB-json-d363cbd7c8a3279e1e47.d.ts → mr-IN-json-d2359502fdbadc31b122.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ja-JP-json-108cc6981fb2aca50ad3.d.ts → my-MM-json-0ee160095e1784b8d62b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{it-IT-json-673e3f4ba80e9daae9e5.d.ts → nb-NO-json-2cf7b76c223968714b89.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{id-ID-json-3d0b058b9bc03e1bacac.d.ts → nl-NL-json-04f6aacdcbd509af44a0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{hu-HU-json-193d1749cda934e9e096.d.ts → nn-NO-json-cd3bec2e4911f6ca612d.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{hi-IN-json-7da9b3824a7700cb9883.d.ts → oc-FR-json-ec9566e0768dfe4b1496.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{he-IL-json-70a9904ee01d1388f73d.d.ts → pa-IN-json-64ff3aef4c4f2285e7d4.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{gl-ES-json-716e37ca0bd82fc2ff80.d.ts → pl-PL-json-6ce16ec772ca39cb8744.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fr-FR-json-95aee5c2cb526f7b1e9e.d.ts → pt-BR-json-7571b67e63f5e151e90a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fi-FI-json-84946a003e1ddcac07e9.d.ts → pt-PT-json-a0efd06ca81979f0a547.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fa-IR-json-11f5ca1f68a1b5c8c8e5.d.ts → ro-RO-json-259991b384060c398825.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{eu-ES-json-f34f76bd7ec78b2aa578.d.ts → ru-RU-json-1666880345e0ee1d9198.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{es-ES-json-074dc89253548179bd8a.d.ts → si-LK-json-e6e6b1caa13f7abcfacc.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{el-GR-json-10fa4f0d4023fc5ecbcb.d.ts → sk-SK-json-f0dcb9f158c1416791e9.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{de-DE-json-83368f154b3dfcc3d957.d.ts → sl-SI-json-cd56d7fa0376488e5343.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{da-DK-json-b5364d639c2eff771afb.d.ts → sv-SE-json-b16a829e634fedfb3471.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{cs-CZ-json-ff3834a399ae4b083d43.d.ts → ta-IN-json-0f92406d511259672140.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ca-ES-json-c9cc26517eb9eadd29e9.d.ts → th-TH-json-53f4f07ed0af4f4164f1.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{bn-BD-json-e975150371bfa1edb583.d.ts → tr-TR-json-efa928fe68850c03bfed.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{bg-BG-json-f6d55a160efa71dfcafd.d.ts → uk-UA-json-4e9f0d94b39ba92e56f2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ar-SA-json-383cec8996cf463fb2c6.d.ts → vi-VN-json-87f5a22fd45850d1ddf7.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AppState, ExcalidrawProps } from "../types";
|
|
2
|
+
import { AppState, ExcalidrawProps, UIAppState } from "../types";
|
|
3
3
|
import { NonDeletedExcalidrawElement } from "./types";
|
|
4
4
|
import { Bounds } from "./bounds";
|
|
5
5
|
import "./Hyperlink.scss";
|
|
@@ -75,10 +75,13 @@ export declare const actionLink: {
|
|
|
75
75
|
zoom: Readonly<{
|
|
76
76
|
value: import("../types").NormalizedZoomValue;
|
|
77
77
|
}>;
|
|
78
|
-
openPopup: "
|
|
79
|
-
openSidebar:
|
|
78
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
79
|
+
openSidebar: {
|
|
80
|
+
name: string;
|
|
81
|
+
tab?: string | undefined;
|
|
82
|
+
} | null;
|
|
80
83
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
81
|
-
|
|
84
|
+
defaultSidebarDockedPreference: boolean;
|
|
82
85
|
lastPointerDownWith: import("./types").PointerType;
|
|
83
86
|
selectedElementIds: {
|
|
84
87
|
[id: string]: boolean;
|
|
@@ -132,7 +135,7 @@ export declare const actionLink: {
|
|
|
132
135
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
133
136
|
};
|
|
134
137
|
export declare const getContextMenuLabel: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState) => "labels.link.edit" | "labels.link.create";
|
|
135
|
-
export declare const getLinkHandleFromCoords: ([x1, y1, x2, y2]: Bounds, angle: number, appState:
|
|
138
|
+
export declare const getLinkHandleFromCoords: ([x1, y1, x2, y2]: Bounds, angle: number, appState: UIAppState) => [x: number, y: number, width: number, height: number];
|
|
136
139
|
export declare const isPointHittingLinkIcon: (element: NonDeletedExcalidrawElement, appState: AppState, [x, y]: readonly [number, number], isMobile: boolean) => boolean;
|
|
137
140
|
export declare const showHyperlinkTooltip: (element: NonDeletedExcalidrawElement, appState: AppState) => void;
|
|
138
141
|
export declare const hideHyperlinkToolip: () => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ExcalidrawLinearElement, ExcalidrawBindableElement, NonDeleted, NonDeletedExcalidrawElement, ExcalidrawElement } from "./types";
|
|
2
2
|
import { AppState } from "../types";
|
|
3
3
|
import Scene from "../scene/Scene";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type SuggestedBinding = NonDeleted<ExcalidrawBindableElement> | SuggestedPointBinding;
|
|
5
|
+
export type SuggestedPointBinding = [
|
|
6
6
|
NonDeleted<ExcalidrawLinearElement>,
|
|
7
7
|
"start" | "end" | "both",
|
|
8
8
|
NonDeleted<ExcalidrawBindableElement>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExcalidrawElement, ExcalidrawLinearElement, Arrowhead, NonDeleted } from "./types";
|
|
2
2
|
import { Drawable, Op } from "roughjs/bin/core";
|
|
3
|
-
export
|
|
3
|
+
export type Bounds = readonly [number, number, number, number];
|
|
4
4
|
export declare const getElementAbsoluteCoords: (element: ExcalidrawElement, includeBoundText?: boolean) => [number, number, number, number, number, number];
|
|
5
5
|
export declare const pointRelativeTo: (element: ExcalidrawElement, absoluteCoords: readonly [number, number]) => readonly [number, number];
|
|
6
6
|
export declare const getDiamondPoints: (element: ExcalidrawElement) => number[];
|
|
@@ -180,10 +180,13 @@ export declare class LinearElementEditor {
|
|
|
180
180
|
value: import("../types").NormalizedZoomValue;
|
|
181
181
|
}>;
|
|
182
182
|
openMenu: "canvas" | "shape" | null;
|
|
183
|
-
openPopup: "
|
|
184
|
-
openSidebar:
|
|
183
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
184
|
+
openSidebar: {
|
|
185
|
+
name: string;
|
|
186
|
+
tab?: string | undefined;
|
|
187
|
+
} | null;
|
|
185
188
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
186
|
-
|
|
189
|
+
defaultSidebarDockedPreference: boolean;
|
|
187
190
|
lastPointerDownWith: import("./types").PointerType;
|
|
188
191
|
selectedElementIds: {
|
|
189
192
|
[id: string]: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "./types";
|
|
2
2
|
import { Mutable } from "../utility-types";
|
|
3
|
-
|
|
3
|
+
type ElementUpdate<TElement extends ExcalidrawElement> = Omit<Partial<TElement>, "id" | "version" | "versionNonce">;
|
|
4
4
|
export declare const mutateElement: <TElement extends Mutable<ExcalidrawElement>>(element: TElement, updates: ElementUpdate<TElement>, informMutation?: boolean) => TElement;
|
|
5
5
|
export declare const newElementWith: <TElement extends ExcalidrawElement>(element: TElement, updates: ElementUpdate<TElement>) => TElement;
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExcalidrawElement, ExcalidrawImageElement, ExcalidrawTextElement, ExcalidrawLinearElement, ExcalidrawGenericElement, NonDeleted, TextAlign, GroupId, VerticalAlign, Arrowhead, ExcalidrawFreeDrawElement, FontFamilyValues, ExcalidrawTextContainer } from "../element/types";
|
|
2
2
|
import { AppState } from "../types";
|
|
3
3
|
import { MarkOptional, Mutable } from "../utility-types";
|
|
4
|
-
|
|
4
|
+
type ElementConstructorOpts = MarkOptional<Omit<ExcalidrawGenericElement, "id" | "type" | "isDeleted" | "updated">, "width" | "height" | "angle" | "groupIds" | "boundElements" | "seed" | "version" | "versionNonce" | "link" | "strokeStyle" | "fillStyle" | "strokeColor" | "backgroundColor" | "roughness" | "strokeWidth" | "roundness" | "locked" | "opacity">;
|
|
5
5
|
export declare const newElement: (opts: {
|
|
6
6
|
type: ExcalidrawGenericElement["type"];
|
|
7
7
|
} & ElementConstructorOpts) => NonDeleted<ExcalidrawGenericElement>;
|
|
@@ -4,5 +4,6 @@ import { PointerDownState } from "../types";
|
|
|
4
4
|
export declare const normalizeAngle: (angle: number) => number;
|
|
5
5
|
export declare const transformElements: (pointerDownState: PointerDownState, transformHandleType: MaybeTransformHandleType, selectedElements: readonly NonDeletedExcalidrawElement[], resizeArrowDirection: "origin" | "end", shouldRotateWithDiscreteAngle: boolean, shouldResizeFromCenter: boolean, shouldMaintainAspectRatio: boolean, pointerX: number, pointerY: number, centerX: number, centerY: number) => boolean;
|
|
6
6
|
export declare const resizeSingleElement: (originalElements: PointerDownState["originalElements"], shouldMaintainAspectRatio: boolean, element: NonDeletedExcalidrawElement, transformHandleDirection: TransformHandleDirection, shouldResizeFromCenter: boolean, pointerX: number, pointerY: number) => void;
|
|
7
|
+
export declare const resizeMultipleElements: (pointerDownState: PointerDownState, selectedElements: readonly NonDeletedExcalidrawElement[], transformHandleType: "nw" | "ne" | "sw" | "se", shouldResizeFromCenter: boolean, pointerX: number, pointerY: number) => void;
|
|
7
8
|
export declare const getResizeOffsetXY: (transformHandleType: MaybeTransformHandleType, selectedElements: NonDeletedExcalidrawElement[], x: number, y: number) => [number, number];
|
|
8
9
|
export declare const getResizeArrowDirection: (transformHandleType: MaybeTransformHandleType, element: NonDeleted<ExcalidrawLinearElement>) => "origin" | "end";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AppState } from "../types";
|
|
2
1
|
import { NonDeletedExcalidrawElement } from "./types";
|
|
3
|
-
|
|
2
|
+
import { UIAppState } from "../types";
|
|
3
|
+
export declare const showSelectedShapeActions: (appState: UIAppState, elements: readonly NonDeletedExcalidrawElement[]) => boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ExcalidrawElement, NonDeletedExcalidrawElement, PointerType } from "./types";
|
|
2
2
|
import { AppState, Zoom } from "../types";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
export type TransformHandleDirection = "n" | "s" | "w" | "e" | "nw" | "ne" | "sw" | "se";
|
|
4
|
+
export type TransformHandleType = TransformHandleDirection | "rotation";
|
|
5
|
+
export type TransformHandle = [number, number, number, number];
|
|
6
|
+
export type TransformHandles = Partial<{
|
|
7
7
|
[T in TransformHandleType]: TransformHandle;
|
|
8
8
|
}>;
|
|
9
|
-
export
|
|
9
|
+
export type MaybeTransformHandleType = TransformHandleType | false;
|
|
10
10
|
export declare const OMIT_SIDES_FOR_MULTIPLE_ELEMENTS: {
|
|
11
11
|
e: boolean;
|
|
12
12
|
s: boolean;
|
package/types/element/types.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { Point } from "../types";
|
|
2
2
|
import { FONT_FAMILY, ROUNDNESS, TEXT_ALIGN, THEME, VERTICAL_ALIGN } from "../constants";
|
|
3
3
|
import { MarkNonNullable, ValueOf } from "../utility-types";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
4
|
+
export type ChartType = "bar" | "line";
|
|
5
|
+
export type FillStyle = "hachure" | "cross-hatch" | "solid" | "zigzag";
|
|
6
|
+
export type FontFamilyKeys = keyof typeof FONT_FAMILY;
|
|
7
|
+
export type FontFamilyValues = typeof FONT_FAMILY[FontFamilyKeys];
|
|
8
|
+
export type Theme = typeof THEME[keyof typeof THEME];
|
|
9
|
+
export type FontString = string & {
|
|
10
10
|
_brand: "fontString";
|
|
11
11
|
};
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
export
|
|
20
|
-
|
|
12
|
+
export type GroupId = string;
|
|
13
|
+
export type PointerType = "mouse" | "pen" | "touch";
|
|
14
|
+
export type StrokeRoundness = "round" | "sharp";
|
|
15
|
+
export type RoundnessType = ValueOf<typeof ROUNDNESS>;
|
|
16
|
+
export type StrokeStyle = "solid" | "dashed" | "dotted";
|
|
17
|
+
export type TextAlign = typeof TEXT_ALIGN[keyof typeof TEXT_ALIGN];
|
|
18
|
+
type VerticalAlignKeys = keyof typeof VERTICAL_ALIGN;
|
|
19
|
+
export type VerticalAlign = typeof VERTICAL_ALIGN[VerticalAlignKeys];
|
|
20
|
+
type _ExcalidrawElementBase = Readonly<{
|
|
21
21
|
id: string;
|
|
22
22
|
x: number;
|
|
23
23
|
y: number;
|
|
@@ -60,19 +60,19 @@ declare type _ExcalidrawElementBase = Readonly<{
|
|
|
60
60
|
locked: boolean;
|
|
61
61
|
customData?: Record<string, any>;
|
|
62
62
|
}>;
|
|
63
|
-
export
|
|
63
|
+
export type ExcalidrawSelectionElement = _ExcalidrawElementBase & {
|
|
64
64
|
type: "selection";
|
|
65
65
|
};
|
|
66
|
-
export
|
|
66
|
+
export type ExcalidrawRectangleElement = _ExcalidrawElementBase & {
|
|
67
67
|
type: "rectangle";
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type ExcalidrawDiamondElement = _ExcalidrawElementBase & {
|
|
70
70
|
type: "diamond";
|
|
71
71
|
};
|
|
72
|
-
export
|
|
72
|
+
export type ExcalidrawEllipseElement = _ExcalidrawElementBase & {
|
|
73
73
|
type: "ellipse";
|
|
74
74
|
};
|
|
75
|
-
export
|
|
75
|
+
export type ExcalidrawImageElement = _ExcalidrawElementBase & Readonly<{
|
|
76
76
|
type: "image";
|
|
77
77
|
fileId: FileId | null;
|
|
78
78
|
/** whether respective file is persisted */
|
|
@@ -80,22 +80,22 @@ export declare type ExcalidrawImageElement = _ExcalidrawElementBase & Readonly<{
|
|
|
80
80
|
/** X and Y scale factors <-1, 1>, used for image axis flipping */
|
|
81
81
|
scale: [number, number];
|
|
82
82
|
}>;
|
|
83
|
-
export
|
|
83
|
+
export type InitializedExcalidrawImageElement = MarkNonNullable<ExcalidrawImageElement, "fileId">;
|
|
84
84
|
/**
|
|
85
85
|
* These are elements that don't have any additional properties.
|
|
86
86
|
*/
|
|
87
|
-
export
|
|
87
|
+
export type ExcalidrawGenericElement = ExcalidrawSelectionElement | ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawEllipseElement;
|
|
88
88
|
/**
|
|
89
89
|
* ExcalidrawElement should be JSON serializable and (eventually) contain
|
|
90
90
|
* no computed data. The list of all ExcalidrawElements should be shareable
|
|
91
91
|
* between peers and contain no state local to the peer.
|
|
92
92
|
*/
|
|
93
|
-
export
|
|
94
|
-
export
|
|
93
|
+
export type ExcalidrawElement = ExcalidrawGenericElement | ExcalidrawTextElement | ExcalidrawLinearElement | ExcalidrawFreeDrawElement | ExcalidrawImageElement;
|
|
94
|
+
export type NonDeleted<TElement extends ExcalidrawElement> = TElement & {
|
|
95
95
|
isDeleted: boolean;
|
|
96
96
|
};
|
|
97
|
-
export
|
|
98
|
-
export
|
|
97
|
+
export type NonDeletedExcalidrawElement = NonDeleted<ExcalidrawElement>;
|
|
98
|
+
export type ExcalidrawTextElement = _ExcalidrawElementBase & Readonly<{
|
|
99
99
|
type: "text";
|
|
100
100
|
fontSize: number;
|
|
101
101
|
fontFamily: FontFamilyValues;
|
|
@@ -113,18 +113,18 @@ export declare type ExcalidrawTextElement = _ExcalidrawElementBase & Readonly<{
|
|
|
113
113
|
_brand: "unitlessLineHeight";
|
|
114
114
|
};
|
|
115
115
|
}>;
|
|
116
|
-
export
|
|
117
|
-
export
|
|
118
|
-
export
|
|
116
|
+
export type ExcalidrawBindableElement = ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawEllipseElement | ExcalidrawTextElement | ExcalidrawImageElement;
|
|
117
|
+
export type ExcalidrawTextContainer = ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawEllipseElement | ExcalidrawImageElement | ExcalidrawArrowElement;
|
|
118
|
+
export type ExcalidrawTextElementWithContainer = {
|
|
119
119
|
containerId: ExcalidrawTextContainer["id"];
|
|
120
120
|
} & ExcalidrawTextElement;
|
|
121
|
-
export
|
|
121
|
+
export type PointBinding = {
|
|
122
122
|
elementId: ExcalidrawBindableElement["id"];
|
|
123
123
|
focus: number;
|
|
124
124
|
gap: number;
|
|
125
125
|
};
|
|
126
|
-
export
|
|
127
|
-
export
|
|
126
|
+
export type Arrowhead = "arrow" | "bar" | "dot" | "triangle";
|
|
127
|
+
export type ExcalidrawLinearElement = _ExcalidrawElementBase & Readonly<{
|
|
128
128
|
type: "line" | "arrow";
|
|
129
129
|
points: readonly Point[];
|
|
130
130
|
lastCommittedPoint: Point | null;
|
|
@@ -133,17 +133,17 @@ export declare type ExcalidrawLinearElement = _ExcalidrawElementBase & Readonly<
|
|
|
133
133
|
startArrowhead: Arrowhead | null;
|
|
134
134
|
endArrowhead: Arrowhead | null;
|
|
135
135
|
}>;
|
|
136
|
-
export
|
|
136
|
+
export type ExcalidrawArrowElement = ExcalidrawLinearElement & Readonly<{
|
|
137
137
|
type: "arrow";
|
|
138
138
|
}>;
|
|
139
|
-
export
|
|
139
|
+
export type ExcalidrawFreeDrawElement = _ExcalidrawElementBase & Readonly<{
|
|
140
140
|
type: "freedraw";
|
|
141
141
|
points: readonly Point[];
|
|
142
142
|
pressures: readonly number[];
|
|
143
143
|
simulatePressure: boolean;
|
|
144
144
|
lastCommittedPoint: Point | null;
|
|
145
145
|
}>;
|
|
146
|
-
export
|
|
146
|
+
export type FileId = string & {
|
|
147
147
|
_brand: "FileId";
|
|
148
148
|
};
|
|
149
149
|
export {};
|
package/types/errors.d.ts
CHANGED
package/types/ga.d.ts
CHANGED
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
* See GAPoint, GALine, GADirection and GATransform modules for common
|
|
17
17
|
* operations.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
19
|
+
export type Point = NVector;
|
|
20
|
+
export type Direction = NVector;
|
|
21
|
+
export type Line = NVector;
|
|
22
|
+
export type Transform = NVector;
|
|
23
23
|
export declare const point: (x: number, y: number) => NVector;
|
|
24
24
|
export declare const origin: () => NVector;
|
|
25
25
|
export declare const direction: (x: number, y: number) => NVector;
|
|
26
26
|
export declare const offset: (x: number, y: number) => NVector;
|
|
27
|
-
|
|
27
|
+
type NVector = readonly [
|
|
28
28
|
number,
|
|
29
29
|
number,
|
|
30
30
|
number,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LibraryItem } from "../types";
|
|
2
|
+
export type SvgCache = Map<LibraryItem["id"], SVGSVGElement>;
|
|
3
|
+
export declare const libraryItemSvgsCache: import("jotai").PrimitiveAtom<SvgCache> & {
|
|
4
|
+
init: SvgCache;
|
|
5
|
+
};
|
|
6
|
+
export declare const useLibraryItemSvg: (id: LibraryItem["id"] | null, elements: LibraryItem["elements"] | undefined, svgCache: SvgCache) => SVGSVGElement | undefined;
|
|
7
|
+
export declare const useLibraryCache: () => {
|
|
8
|
+
clearLibraryCache: () => void;
|
|
9
|
+
deleteItemsFromLibraryCache: (items: LibraryItem["id"][]) => void;
|
|
10
|
+
svgCache: SvgCache;
|
|
11
|
+
};
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare
|
|
2
|
+
export declare function useOutsideClick<T extends HTMLElement>(ref: React.RefObject<T>,
|
|
3
|
+
/** if performance is of concern, memoize the callback */
|
|
4
|
+
callback: (event: Event) => void,
|
|
5
|
+
/**
|
|
6
|
+
* Optional callback which is called on every click.
|
|
7
|
+
*
|
|
8
|
+
* Should return `true` if click should be considered as inside the container,
|
|
9
|
+
* and `false` if it falls outside and should call the `callback`.
|
|
10
|
+
*
|
|
11
|
+
* Returning `true` overrides the default behavior and `callback` won't be
|
|
12
|
+
* called.
|
|
13
|
+
*
|
|
14
|
+
* Returning `undefined` will fallback to the default behavior.
|
|
15
|
+
*/
|
|
16
|
+
isInside?: (event: Event & {
|
|
17
|
+
target: HTMLElement;
|
|
18
|
+
},
|
|
19
|
+
/** the element of the passed ref */
|
|
20
|
+
container: T) => boolean | undefined): void;
|
package/types/i18n.d.ts
CHANGED
|
@@ -12,10 +12,10 @@ export declare const setLanguage: (lang: Language) => Promise<void>;
|
|
|
12
12
|
export declare const getLanguage: () => Language;
|
|
13
13
|
export declare const t: (path: string, replacement?: {
|
|
14
14
|
[key: string]: string | number;
|
|
15
|
-
} | undefined) => string;
|
|
15
|
+
} | null | undefined, fallback?: string) => string;
|
|
16
16
|
export declare const useI18n: () => {
|
|
17
17
|
t: (path: string, replacement?: {
|
|
18
18
|
[key: string]: string | number;
|
|
19
|
-
} | undefined) => string;
|
|
19
|
+
} | null | undefined, fallback?: string) => string;
|
|
20
20
|
langCode: string;
|
|
21
21
|
};
|
package/types/jotai.d.ts
CHANGED
|
@@ -1,122 +1,34 @@
|
|
|
1
1
|
import { PrimitiveAtom } from "jotai";
|
|
2
2
|
export declare const jotaiScope: unique symbol;
|
|
3
3
|
export declare const jotaiStore: {
|
|
4
|
-
get: <Value>(atom: import("jotai").Atom<Value>) =>
|
|
5
|
-
asyncGet: <Value_1>(atom: import("jotai").Atom<Value_1>) => Promise<
|
|
4
|
+
get: <Value>(atom: import("jotai").Atom<Value>) => Awaited<Value> | undefined;
|
|
5
|
+
asyncGet: <Value_1>(atom: import("jotai").Atom<Value_1>) => Promise<Awaited<Value_1>>;
|
|
6
6
|
set: <Value_2, Update, Result extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_2, Update, Result>, update: Update) => Result;
|
|
7
|
-
sub: (atom:
|
|
8
|
-
toString: () => string;
|
|
9
|
-
debugLabel?: string | undefined;
|
|
10
|
-
read: (get: {
|
|
11
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
12
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
13
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
14
|
-
}) => unknown;
|
|
15
|
-
}, callback: () => void) => () => void;
|
|
7
|
+
sub: (atom: import("jotai").Atom<unknown>, callback: () => void) => () => void;
|
|
16
8
|
SECRET_INTERNAL_store: {
|
|
17
|
-
r: <
|
|
9
|
+
r: <Value_3>(readingAtom: import("jotai").Atom<Value_3>, version?: import("jotai/core/store").VersionObject | undefined) => import("jotai/core/store").AtomState<Value_3>;
|
|
18
10
|
w: <Value_1_1, Update_1, Result_1 extends void | Promise<void>>(writingAtom: import("jotai").WritableAtom<Value_1_1, Update_1, Result_1>, update: Update_1, version?: import("jotai/core/store").VersionObject | undefined) => Result_1;
|
|
19
|
-
c: (_atom:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
read: (get: {
|
|
23
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
24
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
25
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
26
|
-
}) => unknown;
|
|
27
|
-
} | null, version?: import("jotai/core/store").VersionObject | undefined) => void;
|
|
28
|
-
s: (atom: {
|
|
29
|
-
toString: () => string;
|
|
30
|
-
debugLabel?: string | undefined;
|
|
31
|
-
read: (get: {
|
|
32
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
33
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
34
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
35
|
-
}) => unknown;
|
|
36
|
-
}, callback: (version?: import("jotai/core/store").VersionObject | undefined) => void) => () => void;
|
|
37
|
-
h: (values: Iterable<readonly [{
|
|
38
|
-
toString: () => string;
|
|
39
|
-
debugLabel?: string | undefined;
|
|
40
|
-
read: (get: {
|
|
41
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
42
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
43
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
44
|
-
}) => unknown;
|
|
45
|
-
}, unknown]>, version?: import("jotai/core/store").VersionObject | undefined) => void;
|
|
11
|
+
c: (_atom: import("jotai").Atom<unknown> | null, version?: import("jotai/core/store").VersionObject | undefined) => void;
|
|
12
|
+
s: (atom: import("jotai").Atom<unknown>, callback: (version?: import("jotai/core/store").VersionObject | undefined) => void, version?: import("jotai/core/store").VersionObject | undefined) => () => void;
|
|
13
|
+
h: (values: Iterable<readonly [import("jotai").Atom<unknown>, unknown]>, version?: import("jotai/core/store").VersionObject | undefined) => void;
|
|
46
14
|
n: (l: () => void) => () => void;
|
|
47
|
-
l: () => IterableIterator<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
read: (get: {
|
|
51
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
52
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
53
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
54
|
-
}) => unknown;
|
|
55
|
-
}>;
|
|
56
|
-
a: (a: {
|
|
57
|
-
toString: () => string;
|
|
58
|
-
debugLabel?: string | undefined;
|
|
59
|
-
read: (get: {
|
|
60
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
61
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
62
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
63
|
-
}) => unknown;
|
|
64
|
-
}) => import("jotai/core/store").AtomState<unknown> | undefined;
|
|
65
|
-
m: (a: {
|
|
66
|
-
toString: () => string;
|
|
67
|
-
debugLabel?: string | undefined;
|
|
68
|
-
read: (get: {
|
|
69
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
70
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
71
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
72
|
-
}) => unknown;
|
|
73
|
-
}) => {
|
|
15
|
+
l: () => IterableIterator<import("jotai").Atom<unknown>>;
|
|
16
|
+
a: (a: import("jotai").Atom<unknown>) => import("jotai/core/store").AtomState<unknown> | undefined;
|
|
17
|
+
m: (a: import("jotai").Atom<unknown>) => {
|
|
74
18
|
l: Set<(version?: import("jotai/core/store").VersionObject | undefined) => void>;
|
|
75
|
-
t: Set<
|
|
76
|
-
toString: () => string;
|
|
77
|
-
debugLabel?: string | undefined;
|
|
78
|
-
read: (get: {
|
|
79
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
80
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
81
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
82
|
-
}) => unknown;
|
|
83
|
-
}>;
|
|
19
|
+
t: Set<import("jotai").Atom<unknown>>;
|
|
84
20
|
u?: (() => void) | undefined;
|
|
85
21
|
} | undefined;
|
|
86
22
|
} | {
|
|
87
|
-
r: <
|
|
23
|
+
r: <Value_4>(readingAtom: import("jotai").Atom<Value_4>, version?: import("jotai/core/store").VersionObject | undefined) => import("jotai/core/store").AtomState<Value_4>;
|
|
88
24
|
w: <Value_1_2, Update_2, Result_2 extends void | Promise<void>>(writingAtom: import("jotai").WritableAtom<Value_1_2, Update_2, Result_2>, update: Update_2, version?: import("jotai/core/store").VersionObject | undefined) => Result_2;
|
|
89
|
-
c: (_atom:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
read: (get: {
|
|
93
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
94
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
95
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
96
|
-
}) => unknown;
|
|
97
|
-
} | null, version?: import("jotai/core/store").VersionObject | undefined) => void;
|
|
98
|
-
s: (atom: {
|
|
99
|
-
toString: () => string;
|
|
100
|
-
debugLabel?: string | undefined;
|
|
101
|
-
read: (get: {
|
|
102
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
103
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
104
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
105
|
-
}) => unknown;
|
|
106
|
-
}, callback: (version?: import("jotai/core/store").VersionObject | undefined) => void) => () => void;
|
|
107
|
-
h: (values: Iterable<readonly [{
|
|
108
|
-
toString: () => string;
|
|
109
|
-
debugLabel?: string | undefined;
|
|
110
|
-
read: (get: {
|
|
111
|
-
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>): Value_3;
|
|
112
|
-
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>): Value_4;
|
|
113
|
-
<Value_5>(atom: import("jotai").Atom<Value_5>): Value_5 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? V_1 extends Promise<infer V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_5;
|
|
114
|
-
}) => unknown;
|
|
115
|
-
}, unknown]>, version?: import("jotai/core/store").VersionObject | undefined) => void;
|
|
25
|
+
c: (_atom: import("jotai").Atom<unknown> | null, version?: import("jotai/core/store").VersionObject | undefined) => void;
|
|
26
|
+
s: (atom: import("jotai").Atom<unknown>, callback: (version?: import("jotai/core/store").VersionObject | undefined) => void, version?: import("jotai/core/store").VersionObject | undefined) => () => void;
|
|
27
|
+
h: (values: Iterable<readonly [import("jotai").Atom<unknown>, unknown]>, version?: import("jotai/core/store").VersionObject | undefined) => void;
|
|
116
28
|
n?: undefined;
|
|
117
29
|
l?: undefined;
|
|
118
30
|
a?: undefined;
|
|
119
31
|
m?: undefined;
|
|
120
32
|
};
|
|
121
33
|
};
|
|
122
|
-
export declare const useAtomWithInitialValue: <T extends unknown, A extends PrimitiveAtom<T>>(atom: A, initialValue: T | (() => T)) => readonly [
|
|
34
|
+
export declare const useAtomWithInitialValue: <T extends unknown, A extends PrimitiveAtom<T>>(atom: A, initialValue: T | (() => T)) => readonly [Awaited<T>, import("jotai/core/atom").SetAtom<T | ((prev: T) => T), void>];
|
package/types/keys.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export declare const KEYS: {
|
|
|
70
70
|
readonly 8: "8";
|
|
71
71
|
readonly 9: "9";
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type Key = keyof typeof KEYS;
|
|
74
74
|
export declare const isArrowKey: (key: string) => boolean;
|
|
75
75
|
export declare const shouldResizeFromCenter: (event: MouseEvent | KeyboardEvent) => boolean;
|
|
76
76
|
export declare const shouldMaintainAspectRatio: (event: MouseEvent | KeyboardEvent) => boolean;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ import Footer from "../../components/footer/FooterCenter";
|
|
|
6
6
|
import MainMenu from "../../components/main-menu/MainMenu";
|
|
7
7
|
import WelcomeScreen from "../../components/welcome-screen/WelcomeScreen";
|
|
8
8
|
import LiveCollaborationTrigger from "../../components/live-collaboration/LiveCollaborationTrigger";
|
|
9
|
-
|
|
9
|
+
type PublicExcalidrawProps = Omit<ExcalidrawProps, "forwardedRef">;
|
|
10
10
|
export declare const Excalidraw: React.MemoExoticComponent<React.ForwardRefExoticComponent<PublicExcalidrawProps & React.RefAttributes<ExcalidrawAPIRefValue>>>;
|
|
11
11
|
export { getSceneVersion, isInvisiblySmallElement, getNonDeletedElements, } from "../../element";
|
|
12
12
|
export { defaultLang, useI18n, languages } from "../../i18n";
|
|
@@ -24,3 +24,4 @@ export { MainMenu };
|
|
|
24
24
|
export { useDevice } from "../../components/App";
|
|
25
25
|
export { WelcomeScreen };
|
|
26
26
|
export { LiveCollaborationTrigger };
|
|
27
|
+
export { DefaultSidebar } from "../../components/DefaultSidebar";
|
|
@@ -2,7 +2,7 @@ import { AppState, BinaryFiles } from "../types";
|
|
|
2
2
|
import { ExcalidrawElement, NonDeleted } from "../element/types";
|
|
3
3
|
import { MIME_TYPES } from "../constants";
|
|
4
4
|
export { MIME_TYPES };
|
|
5
|
-
|
|
5
|
+
type ExportOpts = {
|
|
6
6
|
elements: readonly NonDeleted<ExcalidrawElement>[];
|
|
7
7
|
appState?: Partial<Omit<AppState, "offsetTop" | "offsetLeft">>;
|
|
8
8
|
files: BinaryFiles | null;
|
|
@@ -15,8 +15,8 @@ export interface ExcalidrawElementWithCanvas {
|
|
|
15
15
|
boundTextElementVersion: number | null;
|
|
16
16
|
}
|
|
17
17
|
export declare const DEFAULT_LINK_SIZE = 14;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
type ElementShape = Drawable | Drawable[] | null;
|
|
19
|
+
type ElementShapes = {
|
|
20
20
|
freedraw: Drawable | null;
|
|
21
21
|
arrow: Drawable[];
|
|
22
22
|
line: Drawable[];
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* @param {Number} height The height of the rectangle
|
|
9
9
|
* @param {Number} radius The corner radius
|
|
10
10
|
*/
|
|
11
|
-
export declare const roundRect: (context: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number) => void;
|
|
11
|
+
export declare const roundRect: (context: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number, strokeColor?: string) => void;
|
package/types/scene/Scene.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ExcalidrawElement, NonDeletedExcalidrawElement, NonDeleted } from "../element/types";
|
|
2
2
|
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type ElementIdKey = InstanceType<typeof LinearElementEditor>["elementId"];
|
|
4
|
+
type ElementKey = ExcalidrawElement | ElementIdKey;
|
|
5
|
+
type SceneStateCallback = () => void;
|
|
6
|
+
type SceneStateCallbackRemover = () => void;
|
|
7
7
|
declare class Scene {
|
|
8
8
|
private static sceneMapByElement;
|
|
9
9
|
private static sceneMapById;
|