@excalidraw/excalidraw 0.15.2-6546-81bee8a → 0.15.2-a89952e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/excalidraw-assets/locales/{ar-SA-json-af9f33573806a2b17db5.js → ar-SA-json-0a59aece60276ed11321.js} +1 -1
- package/dist/excalidraw-assets/locales/{bg-BG-json-a3f29bd627c85a3b0c09.js → bg-BG-json-9194ad23121157147546.js} +1 -1
- package/dist/excalidraw-assets/locales/{bn-BD-json-3f24d6535bb251542bb5.js → bn-BD-json-ebf1d26fdb12c5bb181e.js} +1 -1
- package/dist/excalidraw-assets/locales/{ca-ES-json-7ba6318a6ce18b150755.js → ca-ES-json-79f84ac70a367a68e9a0.js} +1 -1
- package/dist/excalidraw-assets/locales/{cs-CZ-json-5d11ff0ce2122c3bbf9d.js → cs-CZ-json-26c3db7e8a6c4e8bcf23.js} +1 -1
- package/dist/excalidraw-assets/locales/{da-DK-json-274791ee26d07767950e.js → da-DK-json-547418996cfd8bb285be.js} +1 -1
- package/dist/excalidraw-assets/locales/{de-DE-json-725680257d7a1d7db20e.js → de-DE-json-b03af65bb5eff6d7023b.js} +1 -1
- package/dist/excalidraw-assets/locales/{el-GR-json-b1a0f73643adea39ed31.js → el-GR-json-ca506c54e42e135959b0.js} +1 -1
- package/dist/excalidraw-assets/locales/{es-ES-json-3ca4ab2ad942b5cf8d9a.js → es-ES-json-265b459985c4898b7781.js} +1 -1
- package/dist/excalidraw-assets/locales/eu-ES-json-8714a4293a6a397560c4.js +1 -0
- package/dist/excalidraw-assets/locales/{fa-IR-json-e00ed81abe02d242bdb3.js → fa-IR-json-d891247fdcbdfc77d42a.js} +1 -1
- package/dist/excalidraw-assets/locales/{fi-FI-json-7dcc36b84a5d99012192.js → fi-FI-json-1640f182578a4d4a77ba.js} +1 -1
- package/dist/excalidraw-assets/locales/{fr-FR-json-9d97947d53501a0a341e.js → fr-FR-json-08f595b2a14a7f1b5c3f.js} +1 -1
- package/dist/excalidraw-assets/locales/{gl-ES-json-2576befc81eaed5aa65e.js → gl-ES-json-190e4b913c120f078129.js} +1 -1
- package/dist/excalidraw-assets/locales/{he-IL-json-df9689750e6a9e3fc2b9.js → he-IL-json-a3aadae77e5d8f9d9477.js} +1 -1
- package/dist/excalidraw-assets/locales/{hi-IN-json-15b2d720e1b2b20158cb.js → hi-IN-json-f7636cdb60eac7c6d0e9.js} +1 -1
- package/dist/excalidraw-assets/locales/{hu-HU-json-484077f149c645102803.js → hu-HU-json-7137c9d42ad71e4291e1.js} +1 -1
- package/dist/excalidraw-assets/locales/{id-ID-json-2a2270978704bae8b567.js → id-ID-json-d1156d23b30643d02794.js} +1 -1
- package/dist/excalidraw-assets/locales/it-IT-json-304768049d19d44f8b7c.js +1 -0
- package/dist/excalidraw-assets/locales/{ja-JP-json-00427e1b4759220948e1.js → ja-JP-json-46cf12c4be04cc8b452d.js} +1 -1
- package/dist/excalidraw-assets/locales/{kaa-json-b8a1931a54affae6ce6f.js → kaa-json-52971f5d051ddd65887f.js} +1 -1
- package/dist/excalidraw-assets/locales/kab-KAB-json-3d0babc84b87ba5a6c40.js +1 -0
- package/dist/excalidraw-assets/locales/{kk-KZ-json-a8e8bbe5119dd3a53af4.js → kk-KZ-json-f7739980a0373cac0448.js} +1 -1
- package/dist/excalidraw-assets/locales/{km-KH-json-51759d5379a45b355944.js → km-KH-json-93e08aa0ef1c18f9abe6.js} +1 -1
- package/dist/excalidraw-assets/locales/{ko-KR-json-81f8d97ebb8f67b66cbb.js → ko-KR-json-d347255ddd5b17936d70.js} +1 -1
- package/dist/excalidraw-assets/locales/{ku-TR-json-24ea9bad0f5c166fcdfa.js → ku-TR-json-1ce02dc10f8f18a3e609.js} +1 -1
- package/dist/excalidraw-assets/locales/{lt-LT-json-c97807dbd05b378d19a8.js → lt-LT-json-21dccba82996be6c9978.js} +1 -1
- package/dist/excalidraw-assets/locales/{lv-LV-json-4aa8653ffc57472135d1.js → lv-LV-json-2754b00cb2959287583a.js} +1 -1
- package/dist/excalidraw-assets/locales/{mr-IN-json-c7e95d47af75ea8f507b.js → mr-IN-json-9fbf7ef2fc6a57f19633.js} +1 -1
- package/dist/excalidraw-assets/locales/{my-MM-json-ae47996f76e07c62f2e2.js → my-MM-json-09e2cd449c159b515bd5.js} +1 -1
- package/dist/excalidraw-assets/locales/{nb-NO-json-ce4166112fa056369a3d.js → nb-NO-json-fa893095b70cefc2f7e2.js} +1 -1
- package/dist/excalidraw-assets/locales/{nl-NL-json-8001e673fb3f434f00ba.js → nl-NL-json-3117b157902ca19b9cc3.js} +1 -1
- package/dist/excalidraw-assets/locales/{nn-NO-json-4fe3b63e7c0949e035a1.js → nn-NO-json-e630a5b8e3fd3e0d98d4.js} +1 -1
- package/dist/excalidraw-assets/locales/{oc-FR-json-2a7b244777a29ac4540d.js → oc-FR-json-8bfe443f96fa0cc7073b.js} +1 -1
- package/dist/excalidraw-assets/locales/pa-IN-json-5b1c3903004d63ad7bda.js +1 -0
- package/dist/excalidraw-assets/locales/{pl-PL-json-093569bfd3a5afeda0a3.js → pl-PL-json-85d9c16b934129641849.js} +1 -1
- package/dist/excalidraw-assets/locales/pt-BR-json-fc4b878ac107c23255dd.js +1 -0
- package/dist/excalidraw-assets/locales/pt-PT-json-47032f63e88e79dd73f2.js +1 -0
- package/dist/excalidraw-assets/locales/{ro-RO-json-1cd4bc568653407afe44.js → ro-RO-json-cbce5205231a582024d7.js} +1 -1
- package/dist/excalidraw-assets/locales/{ru-RU-json-6f16105f9e3a666bcca9.js → ru-RU-json-99829b1ba9d5093b157b.js} +1 -1
- package/dist/excalidraw-assets/locales/{si-LK-json-69b88abfac862b65241d.js → si-LK-json-def580f91ccb834e3c2a.js} +1 -1
- package/dist/excalidraw-assets/locales/{sk-SK-json-c53b73a632863f5f447f.js → sk-SK-json-48d5acc83691a9e45243.js} +1 -1
- package/dist/excalidraw-assets/locales/{sl-SI-json-571553f7ef1f32c44b9e.js → sl-SI-json-2d3159666a9b694373e0.js} +1 -1
- package/dist/excalidraw-assets/locales/{sv-SE-json-29f8fd0f6fe182274d55.js → sv-SE-json-81f406cec5a178dfc603.js} +1 -1
- package/dist/excalidraw-assets/locales/{ta-IN-json-3ffe4cded65c2f0ae4b6.js → ta-IN-json-aa166453a01a662a3e07.js} +1 -1
- package/dist/excalidraw-assets/locales/{th-TH-json-35e29f56952088017288.js → th-TH-json-56e28d7ee80115f5dc07.js} +1 -1
- package/dist/excalidraw-assets/locales/{tr-TR-json-18de81acaa52d2e0f6c6.js → tr-TR-json-abd9e64817a5f1bf722a.js} +1 -1
- package/dist/excalidraw-assets/locales/uk-UA-json-f41664cf41fa0a75d303.js +1 -0
- package/dist/excalidraw-assets/locales/{vi-VN-json-d4b137a881014828d846.js → vi-VN-json-79622fb3b0a457d8c17b.js} +1 -1
- package/dist/excalidraw-assets/locales/zh-CN-json-a4a9d3ae663b3dadfc4a.js +1 -0
- package/dist/excalidraw-assets/locales/{zh-HK-json-1fb52905cf97d0b1c945.js → zh-HK-json-b5ebaab9e5576589fd75.js} +1 -1
- package/dist/excalidraw-assets/locales/{zh-TW-json-f4a4d2bf76e17e58994d.js → zh-TW-json-666cdd14005847709d40.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{ar-SA-json-e8e481885098e57829de.js → ar-SA-json-70a5f1a783a785b7e93c.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{bg-BG-json-7d3264c2a5893345bf63.js → bg-BG-json-13911f22e77da62aed30.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{bn-BD-json-699c6189a7d8085d681e.js → bn-BD-json-46d393116092c755f0f3.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{ca-ES-json-d981eba7a9f53160ff51.js → ca-ES-json-3498504fc6da812b3058.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{cs-CZ-json-4d677ad1941def4e93fc.js → cs-CZ-json-dde6031123de5441f318.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{da-DK-json-1da0ee18f6134ecc310e.js → da-DK-json-1ad7d7f19aec114ebe50.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{de-DE-json-0be3ec99525c61bdcba3.js → de-DE-json-a7a0a7a8f371bc7ba5c0.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{el-GR-json-388edf089413073931eb.js → el-GR-json-f4a6ef403e57a5227a3a.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{es-ES-json-85cfca766fae1f406fd7.js → es-ES-json-b8442d54aabef318e2dc.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/eu-ES-json-43e4d2f5e87feec87329.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{fa-IR-json-e5d56b7aca5dc354f7af.js → fa-IR-json-51cdec085b5f875af21b.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{fi-FI-json-cb29a42edf8f5291f8c3.js → fi-FI-json-f97e2e7d43641c0e840a.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{fr-FR-json-b0dbe7d058f2a1a49121.js → fr-FR-json-8979cd243e0bbc81c99b.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{gl-ES-json-d8d0f4cb2490aa386e7f.js → gl-ES-json-36750301d902ad2b2806.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{he-IL-json-105198ac3a4c03bd8c4e.js → he-IL-json-2093e314b87cdcfdd126.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{hi-IN-json-3a90a39ee45b0a25acf0.js → hi-IN-json-cb93e43b65701ce90198.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{hu-HU-json-0b100a81d35a9fbacedc.js → hu-HU-json-4239cb5f99d6fda36fbe.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{id-ID-json-ce0c7798d61b01b6de8e.js → id-ID-json-40f01633ae6046a20158.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/it-IT-json-395bb09586a95a3c7a0c.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{ja-JP-json-c3b89682cb079237d4b1.js → ja-JP-json-a7e58b0f0528b0d9adee.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{kaa-json-022d123c622de36b2ffd.js → kaa-json-8c158b975f7ac7595487.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/kab-KAB-json-16bc09201bc75389e0c2.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{kk-KZ-json-2f67b4e257c72ba296ea.js → kk-KZ-json-9d3bab1e41bdd0593cba.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{km-KH-json-6044125ce86d33e4d013.js → km-KH-json-5f033ad55694d12c770d.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{ko-KR-json-7527e56cd2a14c8f4d38.js → ko-KR-json-2d7d04482b8f94ac8f65.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{ku-TR-json-37b6c9f37d164c0a8750.js → ku-TR-json-0dfab20d9c6ac0da2776.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{lt-LT-json-6c724317d3a154ee0922.js → lt-LT-json-f6b8a91c2d0af70bb40a.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{lv-LV-json-d3456c9eed9db873851c.js → lv-LV-json-200fd554e6f50cdb198f.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{mr-IN-json-68c33362d2688cf9a86a.js → mr-IN-json-3fd24dfc0b92db0ecaa3.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{my-MM-json-8bcf2c1106b41d299b22.js → my-MM-json-622c3f7b4b996f4d9675.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{nb-NO-json-1e91626c5141406d4171.js → nb-NO-json-06218da2a78c0389ca45.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{nl-NL-json-d59fb9cdb3694c05d4d3.js → nl-NL-json-558c43ecce00b4f632ed.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{nn-NO-json-2110d3022652857f0d4e.js → nn-NO-json-b1cdc9fe9e3ef6661443.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{oc-FR-json-f59199dae5b5fd1cd73e.js → oc-FR-json-aff7d8ffc8d29dcadf9f.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/pa-IN-json-1676618fa49328bc0ecc.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{pl-PL-json-89fa28aabd2914fe0396.js → pl-PL-json-52763bf24013775cc692.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/pt-BR-json-cc1554e6671be344e008.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{pt-PT-json-60936bdd0cb60fa61754.js → pt-PT-json-0b332e1305fa14c732d0.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{ro-RO-json-f55c1fc1cc7a03bf14ec.js → ro-RO-json-672a25ac3a7165011576.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{ru-RU-json-32b411f319cb3486effb.js → ru-RU-json-e88fc7d0b0022da65cd7.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{si-LK-json-b46d31c3231c1a5a9bef.js → si-LK-json-988cd28b7f15bfd7b612.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{sk-SK-json-d32509ca142ed0b8cdcd.js → sk-SK-json-0b543a434ec1a4cc2831.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{sl-SI-json-fa5755e107a0fd45fba1.js → sl-SI-json-3e7849fcb1fe7ed8e146.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{sv-SE-json-246b162a13d49e29a4da.js → sv-SE-json-e594c928d13f0183f9bc.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{ta-IN-json-ece6caa568e593236b8f.js → ta-IN-json-97670b76df151af63fbe.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{th-TH-json-a157cfe4042b491f8a6a.js → th-TH-json-750c74d47969f873875a.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{tr-TR-json-66680580284c2db06be2.js → tr-TR-json-55711d39e393bde4d8e1.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/uk-UA-json-1ad24b86d9998c472afe.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{vi-VN-json-508428e8e4c39aa390aa.js → vi-VN-json-67cf288dc185122c6fbd.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/zh-CN-json-8682588312662adaa170.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{zh-HK-json-e69824cc96d688bf90d2.js → zh-HK-json-f5a427054479f0a5781f.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{zh-TW-json-7dbf8aee365138759c72.js → zh-TW-json-b4ebc4c389ccf204d77e.js} +1 -1
- package/dist/excalidraw.development.js +566 -71
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +2 -2
- package/types/actions/actionAddToLibrary.d.ts +6 -6
- package/types/actions/actionBoundText.d.ts +4 -4
- package/types/actions/actionCanvas.d.ts +21 -21
- package/types/actions/actionClipboard.d.ts +10 -10
- package/types/actions/actionDeleteSelected.d.ts +6 -6
- package/types/actions/actionElementLock.d.ts +243 -0
- package/types/actions/actionExport.d.ts +27 -27
- package/types/actions/actionFinalize.d.ts +4 -4
- package/types/actions/actionHistory.d.ts +1 -1
- package/types/actions/actionLinearEditor.d.ts +2 -2
- package/types/actions/actionMenu.d.ts +6 -6
- package/types/actions/actionProperties.d.ts +28 -28
- package/types/actions/actionStyles.d.ts +2 -2
- package/types/actions/actionToggleGridMode.d.ts +2 -2
- package/types/actions/actionToggleStats.d.ts +2 -2
- package/types/actions/actionToggleViewMode.d.ts +2 -2
- package/types/actions/actionToggleZenMode.d.ts +2 -2
- package/types/actions/actionZindex.d.ts +2 -2
- package/types/actions/index.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 +2 -2
- package/types/charts.d.ts +2 -2
- package/types/clients.d.ts +4 -1
- package/types/colors.d.ts +59 -5
- package/types/components/App.d.ts +3 -0
- package/types/components/Avatar.d.ts +1 -1
- package/types/components/ColorPicker/ColorInput.d.ts +7 -0
- package/types/components/ColorPicker/ColorPicker.d.ts +18 -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 +16 -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 +41 -0
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +16 -0
- package/types/components/ContextMenu.d.ts +3 -3
- 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/ImageExportDialog.d.ts +6 -10
- package/types/components/Island.d.ts +1 -1
- package/types/components/JSONExportDialog.d.ts +1 -1
- package/types/components/LayerUI.d.ts +3 -2
- package/types/components/LibraryMenuControlButtons.d.ts +4 -4
- package/types/components/LibraryMenuHeaderContent.d.ts +3 -1
- package/types/components/LockButton.d.ts +1 -1
- package/types/components/MobileMenu.d.ts +1 -1
- package/types/components/PenModeButton.d.ts +1 -1
- package/types/components/Popover.d.ts +1 -1
- package/types/components/ProjectName.d.ts +1 -1
- package/types/components/Sidebar/common.d.ts +3 -3
- package/types/components/Stack.d.ts +1 -1
- package/types/components/ToolButton.d.ts +3 -3
- package/types/components/Tooltip.d.ts +1 -1
- package/types/components/icons.d.ts +1 -1
- package/types/constants.d.ts +5 -0
- package/types/context/tunnels.d.ts +2 -2
- package/types/data/encode.d.ts +1 -1
- package/types/data/filesystem.d.ts +1 -1
- package/types/data/restore.d.ts +2 -2
- package/types/data/types.d.ts +3 -14
- package/types/element/Hyperlink.d.ts +2 -2
- package/types/element/binding.d.ts +2 -2
- package/types/element/bounds.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +2 -2
- package/types/element/mutateElement.d.ts +1 -1
- package/types/element/newElement.d.ts +4 -5
- package/types/element/textElement.d.ts +3 -11
- 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/i18n.d.ts +2 -2
- package/types/keys.d.ts +1 -1
- package/types/packages/excalidraw/example/initialData.d.ts +0 -122
- package/types/packages/excalidraw/index.d.ts +1 -1
- package/types/packages/utils.d.ts +1 -1
- package/types/renderer/renderElement.d.ts +2 -2
- package/types/scene/Scene.d.ts +4 -4
- package/types/scene/types.d.ts +4 -4
- package/types/shapes.d.ts +1 -1
- package/types/types.d.ts +35 -33
- package/types/utility-types.d.ts +13 -13
- package/types/utils.d.ts +4 -4
- package/types/zindex.d.ts +2 -2
- package/dist/excalidraw-assets/locales/eu-ES-json-7d9398c86be603c5b8bd.js +0 -1
- package/dist/excalidraw-assets/locales/it-IT-json-45824e053eb867323aaa.js +0 -1
- package/dist/excalidraw-assets/locales/kab-KAB-json-d3b57bc235e6986200cb.js +0 -1
- package/dist/excalidraw-assets/locales/pa-IN-json-7a43cceaf71ab41aa772.js +0 -1
- package/dist/excalidraw-assets/locales/pt-BR-json-b2e52cb153719f9fcc21.js +0 -1
- package/dist/excalidraw-assets/locales/pt-PT-json-37f6807c2e30c2c04e0a.js +0 -1
- package/dist/excalidraw-assets/locales/uk-UA-json-ddb1a218e27b6516f707.js +0 -1
- package/dist/excalidraw-assets/locales/zh-CN-json-006110a878ce56805814.js +0 -1
- package/dist/excalidraw-assets-dev/locales/eu-ES-json-ac9c079dfafc1c496aa6.js +0 -22
- package/dist/excalidraw-assets-dev/locales/it-IT-json-0bb94a9b829e3d7eae49.js +0 -22
- package/dist/excalidraw-assets-dev/locales/kab-KAB-json-1f7aa99a00c2764bbd6a.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pa-IN-json-eee62a309aa298c6a042.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pt-BR-json-3cbcf214f049d5e746fd.js +0 -22
- package/dist/excalidraw-assets-dev/locales/uk-UA-json-a212f26f95b2989f0430.js +0 -22
- package/dist/excalidraw-assets-dev/locales/zh-CN-json-63cf3f7b69e2e58cf7af.js +0 -22
- package/types/actions/actionToggleLock.d.ts +0 -122
- package/types/components/ColorPicker.d.ts +0 -14
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ar-SA-json-af9f33573806a2b17db5.d.ts → ar-SA-json-0a59aece60276ed11321.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{bg-BG-json-a3f29bd627c85a3b0c09.d.ts → bg-BG-json-9194ad23121157147546.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{bn-BD-json-3f24d6535bb251542bb5.d.ts → bn-BD-json-ebf1d26fdb12c5bb181e.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ca-ES-json-7ba6318a6ce18b150755.d.ts → ca-ES-json-79f84ac70a367a68e9a0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{cs-CZ-json-5d11ff0ce2122c3bbf9d.d.ts → cs-CZ-json-26c3db7e8a6c4e8bcf23.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{da-DK-json-274791ee26d07767950e.d.ts → da-DK-json-547418996cfd8bb285be.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{de-DE-json-725680257d7a1d7db20e.d.ts → de-DE-json-b03af65bb5eff6d7023b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{el-GR-json-b1a0f73643adea39ed31.d.ts → el-GR-json-ca506c54e42e135959b0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{es-ES-json-3ca4ab2ad942b5cf8d9a.d.ts → es-ES-json-265b459985c4898b7781.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{eu-ES-json-7d9398c86be603c5b8bd.d.ts → eu-ES-json-8714a4293a6a397560c4.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{fa-IR-json-e00ed81abe02d242bdb3.d.ts → fa-IR-json-d891247fdcbdfc77d42a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{fi-FI-json-7dcc36b84a5d99012192.d.ts → fi-FI-json-1640f182578a4d4a77ba.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{fr-FR-json-9d97947d53501a0a341e.d.ts → fr-FR-json-08f595b2a14a7f1b5c3f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{gl-ES-json-2576befc81eaed5aa65e.d.ts → gl-ES-json-190e4b913c120f078129.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{he-IL-json-df9689750e6a9e3fc2b9.d.ts → he-IL-json-a3aadae77e5d8f9d9477.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hi-IN-json-15b2d720e1b2b20158cb.d.ts → hi-IN-json-f7636cdb60eac7c6d0e9.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hu-HU-json-484077f149c645102803.d.ts → hu-HU-json-7137c9d42ad71e4291e1.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{id-ID-json-2a2270978704bae8b567.d.ts → id-ID-json-d1156d23b30643d02794.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{it-IT-json-45824e053eb867323aaa.d.ts → it-IT-json-304768049d19d44f8b7c.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ja-JP-json-00427e1b4759220948e1.d.ts → ja-JP-json-46cf12c4be04cc8b452d.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kaa-json-b8a1931a54affae6ce6f.d.ts → kaa-json-52971f5d051ddd65887f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kab-KAB-json-d3b57bc235e6986200cb.d.ts → kab-KAB-json-3d0babc84b87ba5a6c40.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kk-KZ-json-a8e8bbe5119dd3a53af4.d.ts → kk-KZ-json-f7739980a0373cac0448.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{km-KH-json-51759d5379a45b355944.d.ts → km-KH-json-93e08aa0ef1c18f9abe6.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ko-KR-json-81f8d97ebb8f67b66cbb.d.ts → ko-KR-json-d347255ddd5b17936d70.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ku-TR-json-24ea9bad0f5c166fcdfa.d.ts → ku-TR-json-1ce02dc10f8f18a3e609.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{lt-LT-json-c97807dbd05b378d19a8.d.ts → lt-LT-json-21dccba82996be6c9978.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{lv-LV-json-4aa8653ffc57472135d1.d.ts → lv-LV-json-2754b00cb2959287583a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{mr-IN-json-c7e95d47af75ea8f507b.d.ts → mr-IN-json-9fbf7ef2fc6a57f19633.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{my-MM-json-ae47996f76e07c62f2e2.d.ts → my-MM-json-09e2cd449c159b515bd5.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{nb-NO-json-ce4166112fa056369a3d.d.ts → nb-NO-json-fa893095b70cefc2f7e2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{nl-NL-json-8001e673fb3f434f00ba.d.ts → nl-NL-json-3117b157902ca19b9cc3.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{nn-NO-json-4fe3b63e7c0949e035a1.d.ts → nn-NO-json-e630a5b8e3fd3e0d98d4.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{oc-FR-json-2a7b244777a29ac4540d.d.ts → oc-FR-json-8bfe443f96fa0cc7073b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pa-IN-json-7a43cceaf71ab41aa772.d.ts → pa-IN-json-5b1c3903004d63ad7bda.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pl-PL-json-093569bfd3a5afeda0a3.d.ts → pl-PL-json-85d9c16b934129641849.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pt-BR-json-b2e52cb153719f9fcc21.d.ts → pt-BR-json-fc4b878ac107c23255dd.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pt-PT-json-37f6807c2e30c2c04e0a.d.ts → pt-PT-json-47032f63e88e79dd73f2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ro-RO-json-1cd4bc568653407afe44.d.ts → ro-RO-json-cbce5205231a582024d7.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ru-RU-json-6f16105f9e3a666bcca9.d.ts → ru-RU-json-99829b1ba9d5093b157b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{si-LK-json-69b88abfac862b65241d.d.ts → si-LK-json-def580f91ccb834e3c2a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{sk-SK-json-c53b73a632863f5f447f.d.ts → sk-SK-json-48d5acc83691a9e45243.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{sl-SI-json-571553f7ef1f32c44b9e.d.ts → sl-SI-json-2d3159666a9b694373e0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{sv-SE-json-29f8fd0f6fe182274d55.d.ts → sv-SE-json-81f406cec5a178dfc603.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ta-IN-json-3ffe4cded65c2f0ae4b6.d.ts → ta-IN-json-aa166453a01a662a3e07.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{th-TH-json-35e29f56952088017288.d.ts → th-TH-json-56e28d7ee80115f5dc07.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{tr-TR-json-18de81acaa52d2e0f6c6.d.ts → tr-TR-json-abd9e64817a5f1bf722a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{uk-UA-json-ddb1a218e27b6516f707.d.ts → uk-UA-json-f41664cf41fa0a75d303.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{vi-VN-json-d4b137a881014828d846.d.ts → vi-VN-json-79622fb3b0a457d8c17b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{zh-CN-json-006110a878ce56805814.d.ts → zh-CN-json-a4a9d3ae663b3dadfc4a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{zh-HK-json-1fb52905cf97d0b1c945.d.ts → zh-HK-json-b5ebaab9e5576589fd75.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{zh-TW-json-f4a4d2bf76e17e58994d.d.ts → zh-TW-json-666cdd14005847709d40.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ar-SA-json-e8e481885098e57829de.d.ts → ar-SA-json-70a5f1a783a785b7e93c.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{bg-BG-json-7d3264c2a5893345bf63.d.ts → bg-BG-json-13911f22e77da62aed30.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{bn-BD-json-699c6189a7d8085d681e.d.ts → bn-BD-json-46d393116092c755f0f3.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ca-ES-json-d981eba7a9f53160ff51.d.ts → ca-ES-json-3498504fc6da812b3058.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{cs-CZ-json-4d677ad1941def4e93fc.d.ts → cs-CZ-json-dde6031123de5441f318.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{da-DK-json-1da0ee18f6134ecc310e.d.ts → da-DK-json-1ad7d7f19aec114ebe50.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{de-DE-json-0be3ec99525c61bdcba3.d.ts → de-DE-json-a7a0a7a8f371bc7ba5c0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{el-GR-json-388edf089413073931eb.d.ts → el-GR-json-f4a6ef403e57a5227a3a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{es-ES-json-85cfca766fae1f406fd7.d.ts → es-ES-json-b8442d54aabef318e2dc.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{eu-ES-json-ac9c079dfafc1c496aa6.d.ts → eu-ES-json-43e4d2f5e87feec87329.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fa-IR-json-e5d56b7aca5dc354f7af.d.ts → fa-IR-json-51cdec085b5f875af21b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fi-FI-json-cb29a42edf8f5291f8c3.d.ts → fi-FI-json-f97e2e7d43641c0e840a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fr-FR-json-b0dbe7d058f2a1a49121.d.ts → fr-FR-json-8979cd243e0bbc81c99b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{gl-ES-json-d8d0f4cb2490aa386e7f.d.ts → gl-ES-json-36750301d902ad2b2806.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{he-IL-json-105198ac3a4c03bd8c4e.d.ts → he-IL-json-2093e314b87cdcfdd126.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{hi-IN-json-3a90a39ee45b0a25acf0.d.ts → hi-IN-json-cb93e43b65701ce90198.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{hu-HU-json-0b100a81d35a9fbacedc.d.ts → hu-HU-json-4239cb5f99d6fda36fbe.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{id-ID-json-ce0c7798d61b01b6de8e.d.ts → id-ID-json-40f01633ae6046a20158.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{it-IT-json-0bb94a9b829e3d7eae49.d.ts → it-IT-json-395bb09586a95a3c7a0c.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ja-JP-json-c3b89682cb079237d4b1.d.ts → ja-JP-json-a7e58b0f0528b0d9adee.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{kaa-json-022d123c622de36b2ffd.d.ts → kaa-json-8c158b975f7ac7595487.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{kab-KAB-json-1f7aa99a00c2764bbd6a.d.ts → kab-KAB-json-16bc09201bc75389e0c2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{kk-KZ-json-2f67b4e257c72ba296ea.d.ts → kk-KZ-json-9d3bab1e41bdd0593cba.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{km-KH-json-6044125ce86d33e4d013.d.ts → km-KH-json-5f033ad55694d12c770d.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ko-KR-json-7527e56cd2a14c8f4d38.d.ts → ko-KR-json-2d7d04482b8f94ac8f65.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ku-TR-json-37b6c9f37d164c0a8750.d.ts → ku-TR-json-0dfab20d9c6ac0da2776.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{lt-LT-json-6c724317d3a154ee0922.d.ts → lt-LT-json-f6b8a91c2d0af70bb40a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{lv-LV-json-d3456c9eed9db873851c.d.ts → lv-LV-json-200fd554e6f50cdb198f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{mr-IN-json-68c33362d2688cf9a86a.d.ts → mr-IN-json-3fd24dfc0b92db0ecaa3.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{my-MM-json-8bcf2c1106b41d299b22.d.ts → my-MM-json-622c3f7b4b996f4d9675.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nb-NO-json-1e91626c5141406d4171.d.ts → nb-NO-json-06218da2a78c0389ca45.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nl-NL-json-d59fb9cdb3694c05d4d3.d.ts → nl-NL-json-558c43ecce00b4f632ed.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nn-NO-json-2110d3022652857f0d4e.d.ts → nn-NO-json-b1cdc9fe9e3ef6661443.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{oc-FR-json-f59199dae5b5fd1cd73e.d.ts → oc-FR-json-aff7d8ffc8d29dcadf9f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pa-IN-json-eee62a309aa298c6a042.d.ts → pa-IN-json-1676618fa49328bc0ecc.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pl-PL-json-89fa28aabd2914fe0396.d.ts → pl-PL-json-52763bf24013775cc692.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pt-BR-json-3cbcf214f049d5e746fd.d.ts → pt-BR-json-cc1554e6671be344e008.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pt-PT-json-60936bdd0cb60fa61754.d.ts → pt-PT-json-0b332e1305fa14c732d0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ro-RO-json-f55c1fc1cc7a03bf14ec.d.ts → ro-RO-json-672a25ac3a7165011576.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ru-RU-json-32b411f319cb3486effb.d.ts → ru-RU-json-e88fc7d0b0022da65cd7.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{si-LK-json-b46d31c3231c1a5a9bef.d.ts → si-LK-json-988cd28b7f15bfd7b612.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sk-SK-json-d32509ca142ed0b8cdcd.d.ts → sk-SK-json-0b543a434ec1a4cc2831.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sl-SI-json-fa5755e107a0fd45fba1.d.ts → sl-SI-json-3e7849fcb1fe7ed8e146.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sv-SE-json-246b162a13d49e29a4da.d.ts → sv-SE-json-e594c928d13f0183f9bc.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ta-IN-json-ece6caa568e593236b8f.d.ts → ta-IN-json-97670b76df151af63fbe.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{th-TH-json-a157cfe4042b491f8a6a.d.ts → th-TH-json-750c74d47969f873875a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{tr-TR-json-66680580284c2db06be2.d.ts → tr-TR-json-55711d39e393bde4d8e1.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{uk-UA-json-a212f26f95b2989f0430.d.ts → uk-UA-json-1ad24b86d9998c472afe.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{vi-VN-json-508428e8e4c39aa390aa.d.ts → vi-VN-json-67cf288dc185122c6fbd.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-CN-json-63cf3f7b69e2e58cf7af.d.ts → zh-CN-json-8682588312662adaa170.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-HK-json-e69824cc96d688bf90d2.d.ts → zh-HK-json-f5a427054479f0a5781f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-TW-json-7dbf8aee365138759c72.d.ts → zh-TW-json-b4ebc4c389ccf204d77e.d.ts} +0 -0
|
@@ -5,7 +5,7 @@ export declare const actionChangeStrokeColor: {
|
|
|
5
5
|
name: "changeStrokeColor";
|
|
6
6
|
trackEvent: false;
|
|
7
7
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
8
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
8
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
9
9
|
} & {
|
|
10
10
|
keyTest?: undefined;
|
|
11
11
|
};
|
|
@@ -13,7 +13,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
13
13
|
name: "changeBackgroundColor";
|
|
14
14
|
trackEvent: false;
|
|
15
15
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
16
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
16
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
19
19
|
};
|
|
@@ -45,7 +45,7 @@ export declare const actionChangeFillStyle: {
|
|
|
45
45
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
46
46
|
locked: boolean;
|
|
47
47
|
} & ({
|
|
48
|
-
type: "
|
|
48
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
49
49
|
customType: null;
|
|
50
50
|
} | {
|
|
51
51
|
type: "custom";
|
|
@@ -81,7 +81,7 @@ export declare const actionChangeFillStyle: {
|
|
|
81
81
|
value: import("../../src/types").NormalizedZoomValue;
|
|
82
82
|
}>;
|
|
83
83
|
openMenu: "canvas" | "shape" | null;
|
|
84
|
-
openPopup: "
|
|
84
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
85
85
|
openSidebar: {
|
|
86
86
|
name: string;
|
|
87
87
|
tab?: string | undefined;
|
|
@@ -162,7 +162,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
162
162
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
163
163
|
locked: boolean;
|
|
164
164
|
} & ({
|
|
165
|
-
type: "
|
|
165
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
166
166
|
customType: null;
|
|
167
167
|
} | {
|
|
168
168
|
type: "custom";
|
|
@@ -198,7 +198,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
198
198
|
value: import("../../src/types").NormalizedZoomValue;
|
|
199
199
|
}>;
|
|
200
200
|
openMenu: "canvas" | "shape" | null;
|
|
201
|
-
openPopup: "
|
|
201
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
202
202
|
openSidebar: {
|
|
203
203
|
name: string;
|
|
204
204
|
tab?: string | undefined;
|
|
@@ -279,7 +279,7 @@ export declare const actionChangeSloppiness: {
|
|
|
279
279
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
280
280
|
locked: boolean;
|
|
281
281
|
} & ({
|
|
282
|
-
type: "
|
|
282
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
283
283
|
customType: null;
|
|
284
284
|
} | {
|
|
285
285
|
type: "custom";
|
|
@@ -315,7 +315,7 @@ export declare const actionChangeSloppiness: {
|
|
|
315
315
|
value: import("../../src/types").NormalizedZoomValue;
|
|
316
316
|
}>;
|
|
317
317
|
openMenu: "canvas" | "shape" | null;
|
|
318
|
-
openPopup: "
|
|
318
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
319
319
|
openSidebar: {
|
|
320
320
|
name: string;
|
|
321
321
|
tab?: string | undefined;
|
|
@@ -396,7 +396,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
396
396
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
397
397
|
locked: boolean;
|
|
398
398
|
} & ({
|
|
399
|
-
type: "
|
|
399
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
400
400
|
customType: null;
|
|
401
401
|
} | {
|
|
402
402
|
type: "custom";
|
|
@@ -432,7 +432,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
432
432
|
value: import("../../src/types").NormalizedZoomValue;
|
|
433
433
|
}>;
|
|
434
434
|
openMenu: "canvas" | "shape" | null;
|
|
435
|
-
openPopup: "
|
|
435
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
436
436
|
openSidebar: {
|
|
437
437
|
name: string;
|
|
438
438
|
tab?: string | undefined;
|
|
@@ -513,7 +513,7 @@ export declare const actionChangeOpacity: {
|
|
|
513
513
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
514
514
|
locked: boolean;
|
|
515
515
|
} & ({
|
|
516
|
-
type: "
|
|
516
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
517
517
|
customType: null;
|
|
518
518
|
} | {
|
|
519
519
|
type: "custom";
|
|
@@ -549,7 +549,7 @@ export declare const actionChangeOpacity: {
|
|
|
549
549
|
value: import("../../src/types").NormalizedZoomValue;
|
|
550
550
|
}>;
|
|
551
551
|
openMenu: "canvas" | "shape" | null;
|
|
552
|
-
openPopup: "
|
|
552
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
553
553
|
openSidebar: {
|
|
554
554
|
name: string;
|
|
555
555
|
tab?: string | undefined;
|
|
@@ -630,7 +630,7 @@ export declare const actionChangeFontSize: {
|
|
|
630
630
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
631
631
|
locked: boolean;
|
|
632
632
|
} & ({
|
|
633
|
-
type: "
|
|
633
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
634
634
|
customType: null;
|
|
635
635
|
} | {
|
|
636
636
|
type: "custom";
|
|
@@ -666,7 +666,7 @@ export declare const actionChangeFontSize: {
|
|
|
666
666
|
value: import("../../src/types").NormalizedZoomValue;
|
|
667
667
|
}>;
|
|
668
668
|
openMenu: "canvas" | "shape" | null;
|
|
669
|
-
openPopup: "
|
|
669
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
670
670
|
openSidebar: {
|
|
671
671
|
name: string;
|
|
672
672
|
tab?: string | undefined;
|
|
@@ -747,7 +747,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
747
747
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
748
748
|
locked: boolean;
|
|
749
749
|
} & ({
|
|
750
|
-
type: "
|
|
750
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
751
751
|
customType: null;
|
|
752
752
|
} | {
|
|
753
753
|
type: "custom";
|
|
@@ -783,7 +783,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
783
783
|
value: import("../../src/types").NormalizedZoomValue;
|
|
784
784
|
}>;
|
|
785
785
|
openMenu: "canvas" | "shape" | null;
|
|
786
|
-
openPopup: "
|
|
786
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
787
787
|
openSidebar: {
|
|
788
788
|
name: string;
|
|
789
789
|
tab?: string | undefined;
|
|
@@ -864,7 +864,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
864
864
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
865
865
|
locked: boolean;
|
|
866
866
|
} & ({
|
|
867
|
-
type: "
|
|
867
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
868
868
|
customType: null;
|
|
869
869
|
} | {
|
|
870
870
|
type: "custom";
|
|
@@ -900,7 +900,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
900
900
|
value: import("../../src/types").NormalizedZoomValue;
|
|
901
901
|
}>;
|
|
902
902
|
openMenu: "canvas" | "shape" | null;
|
|
903
|
-
openPopup: "
|
|
903
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
904
904
|
openSidebar: {
|
|
905
905
|
name: string;
|
|
906
906
|
tab?: string | undefined;
|
|
@@ -981,7 +981,7 @@ export declare const actionChangeFontFamily: {
|
|
|
981
981
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
982
982
|
locked: boolean;
|
|
983
983
|
} & ({
|
|
984
|
-
type: "
|
|
984
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
985
985
|
customType: null;
|
|
986
986
|
} | {
|
|
987
987
|
type: "custom";
|
|
@@ -1017,7 +1017,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1017
1017
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1018
1018
|
}>;
|
|
1019
1019
|
openMenu: "canvas" | "shape" | null;
|
|
1020
|
-
openPopup: "
|
|
1020
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1021
1021
|
openSidebar: {
|
|
1022
1022
|
name: string;
|
|
1023
1023
|
tab?: string | undefined;
|
|
@@ -1098,7 +1098,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1098
1098
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1099
1099
|
locked: boolean;
|
|
1100
1100
|
} & ({
|
|
1101
|
-
type: "
|
|
1101
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1102
1102
|
customType: null;
|
|
1103
1103
|
} | {
|
|
1104
1104
|
type: "custom";
|
|
@@ -1134,7 +1134,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1134
1134
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1135
1135
|
}>;
|
|
1136
1136
|
openMenu: "canvas" | "shape" | null;
|
|
1137
|
-
openPopup: "
|
|
1137
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1138
1138
|
openSidebar: {
|
|
1139
1139
|
name: string;
|
|
1140
1140
|
tab?: string | undefined;
|
|
@@ -1216,7 +1216,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1216
1216
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1217
1217
|
locked: boolean;
|
|
1218
1218
|
} & ({
|
|
1219
|
-
type: "
|
|
1219
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1220
1220
|
customType: null;
|
|
1221
1221
|
} | {
|
|
1222
1222
|
type: "custom";
|
|
@@ -1253,7 +1253,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1253
1253
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1254
1254
|
}>;
|
|
1255
1255
|
openMenu: "canvas" | "shape" | null;
|
|
1256
|
-
openPopup: "
|
|
1256
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1257
1257
|
openSidebar: {
|
|
1258
1258
|
name: string;
|
|
1259
1259
|
tab?: string | undefined;
|
|
@@ -1334,7 +1334,7 @@ export declare const actionChangeRoundness: {
|
|
|
1334
1334
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1335
1335
|
locked: boolean;
|
|
1336
1336
|
} & ({
|
|
1337
|
-
type: "
|
|
1337
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1338
1338
|
customType: null;
|
|
1339
1339
|
} | {
|
|
1340
1340
|
type: "custom";
|
|
@@ -1370,7 +1370,7 @@ export declare const actionChangeRoundness: {
|
|
|
1370
1370
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1371
1371
|
}>;
|
|
1372
1372
|
openMenu: "canvas" | "shape" | null;
|
|
1373
|
-
openPopup: "
|
|
1373
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1374
1374
|
openSidebar: {
|
|
1375
1375
|
name: string;
|
|
1376
1376
|
tab?: string | undefined;
|
|
@@ -1453,7 +1453,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1453
1453
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1454
1454
|
locked: boolean;
|
|
1455
1455
|
} & ({
|
|
1456
|
-
type: "
|
|
1456
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
1457
1457
|
customType: null;
|
|
1458
1458
|
} | {
|
|
1459
1459
|
type: "custom";
|
|
@@ -1490,7 +1490,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1490
1490
|
value: import("../../src/types").NormalizedZoomValue;
|
|
1491
1491
|
}>;
|
|
1492
1492
|
openMenu: "canvas" | "shape" | null;
|
|
1493
|
-
openPopup: "
|
|
1493
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1494
1494
|
openSidebar: {
|
|
1495
1495
|
name: string;
|
|
1496
1496
|
tab?: string | undefined;
|
|
@@ -31,7 +31,7 @@ export declare const actionCopyStyles: {
|
|
|
31
31
|
lastActiveTool: import("../types").LastActiveTool;
|
|
32
32
|
locked: boolean;
|
|
33
33
|
} & ({
|
|
34
|
-
type: "
|
|
34
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
35
35
|
customType: null;
|
|
36
36
|
} | {
|
|
37
37
|
type: "custom";
|
|
@@ -68,7 +68,7 @@ export declare const actionCopyStyles: {
|
|
|
68
68
|
value: import("../types").NormalizedZoomValue;
|
|
69
69
|
}>;
|
|
70
70
|
openMenu: "canvas" | "shape" | null;
|
|
71
|
-
openPopup: "
|
|
71
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
72
72
|
openSidebar: {
|
|
73
73
|
name: string;
|
|
74
74
|
tab?: string | undefined;
|
|
@@ -31,7 +31,7 @@ export declare const actionToggleGridMode: {
|
|
|
31
31
|
lastActiveTool: import("../types").LastActiveTool;
|
|
32
32
|
locked: boolean;
|
|
33
33
|
} & ({
|
|
34
|
-
type: "
|
|
34
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
35
35
|
customType: null;
|
|
36
36
|
} | {
|
|
37
37
|
type: "custom";
|
|
@@ -68,7 +68,7 @@ export declare const actionToggleGridMode: {
|
|
|
68
68
|
value: import("../types").NormalizedZoomValue;
|
|
69
69
|
}>;
|
|
70
70
|
openMenu: "canvas" | "shape" | null;
|
|
71
|
-
openPopup: "
|
|
71
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
72
72
|
openSidebar: {
|
|
73
73
|
name: string;
|
|
74
74
|
tab?: string | undefined;
|
|
@@ -29,7 +29,7 @@ export declare const actionToggleStats: {
|
|
|
29
29
|
lastActiveTool: import("../types").LastActiveTool;
|
|
30
30
|
locked: boolean;
|
|
31
31
|
} & ({
|
|
32
|
-
type: "
|
|
32
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
33
33
|
customType: null;
|
|
34
34
|
} | {
|
|
35
35
|
type: "custom";
|
|
@@ -66,7 +66,7 @@ export declare const actionToggleStats: {
|
|
|
66
66
|
value: import("../types").NormalizedZoomValue;
|
|
67
67
|
}>;
|
|
68
68
|
openMenu: "canvas" | "shape" | null;
|
|
69
|
-
openPopup: "
|
|
69
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
70
70
|
openSidebar: {
|
|
71
71
|
name: string;
|
|
72
72
|
tab?: string | undefined;
|
|
@@ -30,7 +30,7 @@ export declare const actionToggleViewMode: {
|
|
|
30
30
|
lastActiveTool: import("../types").LastActiveTool;
|
|
31
31
|
locked: boolean;
|
|
32
32
|
} & ({
|
|
33
|
-
type: "
|
|
33
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
34
34
|
customType: null;
|
|
35
35
|
} | {
|
|
36
36
|
type: "custom";
|
|
@@ -67,7 +67,7 @@ export declare const actionToggleViewMode: {
|
|
|
67
67
|
value: import("../types").NormalizedZoomValue;
|
|
68
68
|
}>;
|
|
69
69
|
openMenu: "canvas" | "shape" | null;
|
|
70
|
-
openPopup: "
|
|
70
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
71
71
|
openSidebar: {
|
|
72
72
|
name: string;
|
|
73
73
|
tab?: string | undefined;
|
|
@@ -30,7 +30,7 @@ export declare const actionToggleZenMode: {
|
|
|
30
30
|
lastActiveTool: import("../types").LastActiveTool;
|
|
31
31
|
locked: boolean;
|
|
32
32
|
} & ({
|
|
33
|
-
type: "
|
|
33
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
34
34
|
customType: null;
|
|
35
35
|
} | {
|
|
36
36
|
type: "custom";
|
|
@@ -67,7 +67,7 @@ export declare const actionToggleZenMode: {
|
|
|
67
67
|
value: import("../types").NormalizedZoomValue;
|
|
68
68
|
}>;
|
|
69
69
|
openMenu: "canvas" | "shape" | null;
|
|
70
|
-
openPopup: "
|
|
70
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
71
71
|
openSidebar: {
|
|
72
72
|
name: string;
|
|
73
73
|
tab?: string | undefined;
|
|
@@ -5,7 +5,7 @@ export declare const actionSendBackward: {
|
|
|
5
5
|
category: "element";
|
|
6
6
|
};
|
|
7
7
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
8
|
-
elements: (import("../element/types").
|
|
8
|
+
elements: (import("../element/types").ExcalidrawLinearElement | import("../element/types").ExcalidrawSelectionElement | import("../element/types").ExcalidrawRectangleElement | import("../element/types").ExcalidrawDiamondElement | import("../element/types").ExcalidrawEllipseElement | import("../element/types").ExcalidrawImageElement | import("../element/types").ExcalidrawTextElement | import("../element/types").ExcalidrawFreeDrawElement)[];
|
|
9
9
|
appState: Readonly<import("../types").AppState>;
|
|
10
10
|
commitToHistory: true;
|
|
11
11
|
};
|
|
@@ -22,7 +22,7 @@ export declare const actionBringForward: {
|
|
|
22
22
|
category: "element";
|
|
23
23
|
};
|
|
24
24
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
25
|
-
elements: (import("../element/types").
|
|
25
|
+
elements: (import("../element/types").ExcalidrawLinearElement | import("../element/types").ExcalidrawSelectionElement | import("../element/types").ExcalidrawRectangleElement | import("../element/types").ExcalidrawDiamondElement | import("../element/types").ExcalidrawEllipseElement | import("../element/types").ExcalidrawImageElement | import("../element/types").ExcalidrawTextElement | import("../element/types").ExcalidrawFreeDrawElement)[];
|
|
26
26
|
appState: Readonly<import("../types").AppState>;
|
|
27
27
|
commitToHistory: true;
|
|
28
28
|
};
|
package/types/actions/index.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export { actionToggleZenMode } from "./actionToggleZenMode";
|
|
|
20
20
|
export { actionToggleStats } from "./actionToggleStats";
|
|
21
21
|
export { actionUnbindText, actionBindText } from "./actionBoundText";
|
|
22
22
|
export { actionLink } from "../element/Hyperlink";
|
|
23
|
-
export {
|
|
23
|
+
export { actionToggleElementLock } from "./actionElementLock";
|
|
24
24
|
export { actionToggleLinearEditor } from "./actionLinearEditor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SubtypeOf } from "../utility-types";
|
|
2
2
|
import { ActionName } from "./types";
|
|
3
|
-
export
|
|
3
|
+
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "clearCanvas" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "copyAsSvg" | "group" | "ungroup" | "gridMode" | "zenMode" | "stats" | "addToLibrary" | "viewMode" | "flipHorizontal" | "flipVertical" | "hyperlink" | "toggleElementLock"> | "saveScene" | "imageExport";
|
|
4
4
|
export declare const getShortcutFromShortcutName: (name: ShortcutName) => string;
|
package/types/actions/types.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import React from "react";
|
|
|
2
2
|
import { ExcalidrawElement } from "../element/types";
|
|
3
3
|
import { AppClassProperties, AppState, ExcalidrawProps, BinaryFiles } from "../types";
|
|
4
4
|
import { MarkOptional } from "../utility-types";
|
|
5
|
-
export
|
|
5
|
+
export type ActionSource = "ui" | "keyboard" | "contextMenu" | "api";
|
|
6
6
|
/** if false, the action should be prevented */
|
|
7
|
-
export
|
|
7
|
+
export type ActionResult = {
|
|
8
8
|
elements?: readonly ExcalidrawElement[] | null;
|
|
9
9
|
appState?: MarkOptional<AppState, "offsetTop" | "offsetLeft" | "width" | "height"> | null;
|
|
10
10
|
files?: BinaryFiles | null;
|
|
@@ -12,11 +12,11 @@ export declare type ActionResult = {
|
|
|
12
12
|
syncHistory?: boolean;
|
|
13
13
|
replaceFiles?: boolean;
|
|
14
14
|
} | false;
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
15
|
+
type ActionFn = (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
|
|
16
|
+
export type UpdaterFn = (res: ActionResult) => void;
|
|
17
|
+
export type ActionFilterFn = (action: Action) => void;
|
|
18
|
+
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeOpacity" | "changeFontSize" | "toggleCanvasMenu" | "toggleEditMenu" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToSelection" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "addToLibrary" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "flipHorizontal" | "flipVertical" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "wrapTextInContainer";
|
|
19
|
+
export type PanelComponentProps = {
|
|
20
20
|
elements: readonly ExcalidrawElement[];
|
|
21
21
|
appState: AppState;
|
|
22
22
|
updateData: (formData?: any) => void;
|
package/types/appState.d.ts
CHANGED
|
@@ -3,17 +3,17 @@ export declare const getDefaultAppState: () => Omit<AppState, "offsetTop" | "off
|
|
|
3
3
|
export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>) => {
|
|
4
4
|
theme?: string | undefined;
|
|
5
5
|
name?: string | undefined;
|
|
6
|
-
showWelcomeScreen?: boolean | undefined;
|
|
7
6
|
activeTool?: ({
|
|
8
7
|
lastActiveTool: import("./types").LastActiveTool;
|
|
9
8
|
locked: boolean;
|
|
10
9
|
} & ({
|
|
11
|
-
type: "
|
|
10
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
12
11
|
customType: null;
|
|
13
12
|
} | {
|
|
14
13
|
type: "custom";
|
|
15
14
|
customType: string;
|
|
16
15
|
})) | undefined;
|
|
16
|
+
showWelcomeScreen?: boolean | undefined;
|
|
17
17
|
penMode?: boolean | undefined;
|
|
18
18
|
penDetected?: boolean | undefined;
|
|
19
19
|
exportBackground?: boolean | undefined;
|
package/types/charts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NonDeletedExcalidrawElement } from "./element/types";
|
|
2
|
-
export
|
|
2
|
+
export type ChartElements = readonly NonDeletedExcalidrawElement[];
|
|
3
3
|
export interface Spreadsheet {
|
|
4
4
|
title: string | null;
|
|
5
5
|
labels: string[] | null;
|
|
@@ -7,7 +7,7 @@ export interface Spreadsheet {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const NOT_SPREADSHEET = "NOT_SPREADSHEET";
|
|
9
9
|
export declare const VALID_SPREADSHEET = "VALID_SPREADSHEET";
|
|
10
|
-
|
|
10
|
+
type ParseSpreadsheetResult = {
|
|
11
11
|
type: typeof NOT_SPREADSHEET;
|
|
12
12
|
reason: string;
|
|
13
13
|
} | {
|
package/types/clients.d.ts
CHANGED
|
@@ -3,4 +3,7 @@ export declare const getClientColors: (clientId: string, appState: AppState) =>
|
|
|
3
3
|
background: string;
|
|
4
4
|
stroke: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* returns first char, capitalized
|
|
8
|
+
*/
|
|
9
|
+
export declare const getNameInitial: (name?: string | null) => string;
|
package/types/colors.d.ts
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import oc from "open-color";
|
|
2
|
+
import { Merge } from "./utility-types";
|
|
3
|
+
export type ColorPickerColor = Exclude<keyof oc, "indigo" | "lime"> | "transparent" | "bronze";
|
|
4
|
+
export type ColorTuple = readonly [string, string, string, string, string];
|
|
5
|
+
export type ColorPalette = Merge<Record<ColorPickerColor, ColorTuple>, {
|
|
6
|
+
black: string;
|
|
7
|
+
white: string;
|
|
8
|
+
transparent: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type ColorPaletteCustom = {
|
|
11
|
+
[key: string]: ColorTuple | string;
|
|
5
12
|
};
|
|
6
|
-
export
|
|
13
|
+
export type ColorShadesIndexes = [number, number, number, number, number];
|
|
14
|
+
export declare const MAX_CUSTOM_COLORS_USED_IN_CANVAS = 5;
|
|
15
|
+
export declare const COLORS_PER_ROW = 5;
|
|
16
|
+
export declare const DEFAULT_CHART_COLOR_INDEX = 4;
|
|
17
|
+
export declare const DEFAULT_ELEMENT_STROKE_COLOR_INDEX = 4;
|
|
18
|
+
export declare const DEFAULT_ELEMENT_BACKGROUND_COLOR_INDEX = 1;
|
|
19
|
+
export declare const ELEMENTS_PALETTE_SHADE_INDEXES: readonly [0, 2, 4, 6, 8];
|
|
20
|
+
export declare const CANVAS_PALETTE_SHADE_INDEXES: readonly [0, 1, 2, 3, 4];
|
|
21
|
+
export declare const getSpecificColorShades: (color: Exclude<ColorPickerColor, "transparent" | "white" | "black" | "bronze">, indexArr: readonly [number, number, number, number, number]) => ColorTuple;
|
|
22
|
+
export declare const COLOR_PALETTE: ColorPalette;
|
|
23
|
+
export declare const DEFAULT_ELEMENT_STROKE_PICKS: ColorTuple;
|
|
24
|
+
export declare const DEFAULT_ELEMENT_BACKGROUND_PICKS: ColorTuple;
|
|
25
|
+
export declare const DEFAULT_CANVAS_BACKGROUND_PICKS: ColorTuple;
|
|
26
|
+
export declare const DEFAULT_ELEMENT_STROKE_COLOR_PALETTE: {
|
|
27
|
+
readonly red: ColorTuple;
|
|
28
|
+
readonly pink: ColorTuple;
|
|
29
|
+
readonly grape: ColorTuple;
|
|
30
|
+
readonly violet: ColorTuple;
|
|
31
|
+
readonly blue: ColorTuple;
|
|
32
|
+
readonly cyan: ColorTuple;
|
|
33
|
+
readonly teal: ColorTuple;
|
|
34
|
+
readonly green: ColorTuple;
|
|
35
|
+
readonly yellow: ColorTuple;
|
|
36
|
+
readonly orange: ColorTuple;
|
|
37
|
+
readonly transparent: string;
|
|
38
|
+
readonly white: string;
|
|
39
|
+
readonly gray: ColorTuple;
|
|
40
|
+
readonly black: string;
|
|
41
|
+
readonly bronze: ColorTuple;
|
|
42
|
+
};
|
|
43
|
+
export declare const DEFAULT_ELEMENT_BACKGROUND_COLOR_PALETTE: {
|
|
44
|
+
readonly red: ColorTuple;
|
|
45
|
+
readonly pink: ColorTuple;
|
|
46
|
+
readonly grape: ColorTuple;
|
|
47
|
+
readonly violet: ColorTuple;
|
|
48
|
+
readonly blue: ColorTuple;
|
|
49
|
+
readonly cyan: ColorTuple;
|
|
50
|
+
readonly teal: ColorTuple;
|
|
51
|
+
readonly green: ColorTuple;
|
|
52
|
+
readonly yellow: ColorTuple;
|
|
53
|
+
readonly orange: ColorTuple;
|
|
54
|
+
readonly transparent: string;
|
|
55
|
+
readonly white: string;
|
|
56
|
+
readonly gray: ColorTuple;
|
|
57
|
+
readonly black: string;
|
|
58
|
+
readonly bronze: ColorTuple;
|
|
59
|
+
};
|
|
60
|
+
export declare const getAllColorsSpecificShade: (index: 0 | 1 | 2 | 3 | 4) => readonly [string, string, string, string, string, string, string, string, string, string];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { RoughCanvas } from "roughjs/bin/canvas";
|
|
3
3
|
import { ActionManager } from "../actions/manager";
|
|
4
|
+
import { EXPORT_IMAGE_TYPES } from "../constants";
|
|
4
5
|
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
5
6
|
import { ExcalidrawElement, NonDeletedExcalidrawElement } from "../element/types";
|
|
6
7
|
import History from "../history";
|
|
@@ -18,6 +19,7 @@ export declare const useDevice: () => Readonly<{
|
|
|
18
19
|
isMobile: boolean;
|
|
19
20
|
isTouchScreen: boolean;
|
|
20
21
|
canDeviceFitSidebar: boolean;
|
|
22
|
+
isLandscape: boolean;
|
|
21
23
|
}>;
|
|
22
24
|
export declare const useExcalidrawContainer: () => {
|
|
23
25
|
container: HTMLDivElement | null;
|
|
@@ -61,6 +63,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
61
63
|
getSceneElementsIncludingDeleted: () => readonly ExcalidrawElement[];
|
|
62
64
|
getSceneElements: () => readonly NonDeletedExcalidrawElement[];
|
|
63
65
|
onInsertElements: (elements: readonly ExcalidrawElement[]) => void;
|
|
66
|
+
onExportImage: (type: keyof typeof EXPORT_IMAGE_TYPES, elements: readonly NonDeletedExcalidrawElement[]) => Promise<void>;
|
|
64
67
|
private syncActionResult;
|
|
65
68
|
private onBlur;
|
|
66
69
|
private onUnload;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ExcalidrawElement } from "../../element/types";
|
|
2
|
+
import { AppState } from "../../types";
|
|
3
|
+
import { ColorPickerType } from "./colorPickerUtils";
|
|
4
|
+
import { ColorTuple, ColorPaletteCustom } from "../../colors";
|
|
5
|
+
import "./ColorPicker.scss";
|
|
6
|
+
export declare const getColor: (color: string) => string | null;
|
|
7
|
+
export interface ColorPickerProps {
|
|
8
|
+
type: ColorPickerType;
|
|
9
|
+
color: string | null;
|
|
10
|
+
onChange: (color: string) => void;
|
|
11
|
+
label: string;
|
|
12
|
+
elements: readonly ExcalidrawElement[];
|
|
13
|
+
appState: AppState;
|
|
14
|
+
palette?: ColorPaletteCustom | null;
|
|
15
|
+
topPicks?: ColorTuple;
|
|
16
|
+
updateData: (formData?: any) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const ColorPicker: ({ type, color, onChange, label, elements, palette, topPicks, updateData, appState, }: ColorPickerProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface HotkeyLabelProps {
|
|
2
|
+
color: string;
|
|
3
|
+
keyLabel: string | number;
|
|
4
|
+
isCustomColor?: boolean;
|
|
5
|
+
isShade?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const HotkeyLabel: ({ color, keyLabel, isCustomColor, isShade, }: HotkeyLabelProps) => JSX.Element;
|
|
8
|
+
export default HotkeyLabel;
|