@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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ExcalidrawElement } from "../../element/types";
|
|
3
|
+
import { ColorPickerType } from "./colorPickerUtils";
|
|
4
|
+
import { ColorPaletteCustom } from "../../colors";
|
|
5
|
+
interface PickerProps {
|
|
6
|
+
color: string | null;
|
|
7
|
+
onChange: (color: string) => void;
|
|
8
|
+
label: string;
|
|
9
|
+
type: ColorPickerType;
|
|
10
|
+
elements: readonly ExcalidrawElement[];
|
|
11
|
+
palette: ColorPaletteCustom;
|
|
12
|
+
updateData: (formData?: any) => void;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const Picker: ({ color, onChange, label, type, elements, palette, updateData, children, }: PickerProps) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColorPaletteCustom } from "../../colors";
|
|
2
|
+
interface PickerColorListProps {
|
|
3
|
+
palette: ColorPaletteCustom;
|
|
4
|
+
color: string | null;
|
|
5
|
+
onChange: (color: string) => void;
|
|
6
|
+
label: string;
|
|
7
|
+
activeShade: number;
|
|
8
|
+
}
|
|
9
|
+
declare const PickerColorList: ({ palette, color, onChange, label, activeShade, }: PickerColorListProps) => JSX.Element;
|
|
10
|
+
export default PickerColorList;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColorPaletteCustom } from "../../colors";
|
|
2
|
+
interface ShadeListProps {
|
|
3
|
+
hex: string | null;
|
|
4
|
+
onChange: (color: string) => void;
|
|
5
|
+
palette: ColorPaletteCustom;
|
|
6
|
+
}
|
|
7
|
+
export declare const ShadeList: ({ hex, onChange, palette }: ShadeListProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColorPickerType } from "./colorPickerUtils";
|
|
2
|
+
interface TopPicksProps {
|
|
3
|
+
onChange: (color: string) => void;
|
|
4
|
+
type: ColorPickerType;
|
|
5
|
+
activeColor: string | null;
|
|
6
|
+
topPicks?: readonly string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const TopPicks: ({ onChange, type, activeColor, topPicks, }: TopPicksProps) => JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ExcalidrawElement } from "../../element/types";
|
|
2
|
+
import { ColorPickerColor, ColorPaletteCustom } from "../../colors";
|
|
3
|
+
export declare const getColorNameAndShadeFromHex: ({ palette, hex, }: {
|
|
4
|
+
palette: ColorPaletteCustom;
|
|
5
|
+
hex: string;
|
|
6
|
+
}) => {
|
|
7
|
+
colorName: ColorPickerColor;
|
|
8
|
+
shade: number | null;
|
|
9
|
+
} | null;
|
|
10
|
+
export declare const colorPickerHotkeyBindings: string[];
|
|
11
|
+
export declare const isCustomColor: ({ color, palette, }: {
|
|
12
|
+
color: string | null;
|
|
13
|
+
palette: ColorPaletteCustom;
|
|
14
|
+
}) => boolean;
|
|
15
|
+
export declare const getMostUsedCustomColors: (elements: readonly ExcalidrawElement[], type: "elementBackground" | "elementStroke", palette: ColorPaletteCustom) => string[];
|
|
16
|
+
export type ActiveColorPickerSectionAtomType = "custom" | "baseColors" | "shades" | "hex" | null;
|
|
17
|
+
export declare const activeColorPickerSectionAtom: import("jotai").Atom<ActiveColorPickerSectionAtomType> & {
|
|
18
|
+
write: (get: {
|
|
19
|
+
<Value>(atom: import("jotai").Atom<Value | Promise<Value>>): Value;
|
|
20
|
+
<Value_1>(atom: import("jotai").Atom<Promise<Value_1>>): Value_1;
|
|
21
|
+
<Value_2>(atom: import("jotai").Atom<Value_2>): Value_2 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2;
|
|
22
|
+
} & {
|
|
23
|
+
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>, options: {
|
|
24
|
+
unstable_promise: true;
|
|
25
|
+
}): Value_3 | Promise<Value_3>;
|
|
26
|
+
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>, options: {
|
|
27
|
+
unstable_promise: true;
|
|
28
|
+
}): Value_4 | Promise<Value_4>;
|
|
29
|
+
<Value_5>(atom: import("jotai").Atom<Value_5>, options: {
|
|
30
|
+
unstable_promise: true;
|
|
31
|
+
}): (Value_5 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5) | Promise<Value_5 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5>;
|
|
32
|
+
}, set: {
|
|
33
|
+
<Value_6, Result extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_6, undefined, Result>): Result;
|
|
34
|
+
<Value_7, Update, Result_1 extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_7, Update, Result_1>, update: Update): Result_1;
|
|
35
|
+
}, update: ActiveColorPickerSectionAtomType | ((prev: ActiveColorPickerSectionAtomType) => ActiveColorPickerSectionAtomType)) => void;
|
|
36
|
+
onMount?: (<S extends (update: ActiveColorPickerSectionAtomType | ((prev: ActiveColorPickerSectionAtomType) => ActiveColorPickerSectionAtomType)) => void>(setAtom: S) => void | (() => void)) | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
init: ActiveColorPickerSectionAtomType;
|
|
39
|
+
};
|
|
40
|
+
export declare const getContrastYIQ: (bgHex: string, isCustomColor: boolean) => "white" | "black";
|
|
41
|
+
export type ColorPickerType = "canvasBackground" | "elementBackground" | "elementStroke";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColorPaletteCustom } from "../../colors";
|
|
3
|
+
import { ActiveColorPickerSectionAtomType } from "./colorPickerUtils";
|
|
4
|
+
interface ColorPickerKeyNavHandlerProps {
|
|
5
|
+
e: React.KeyboardEvent;
|
|
6
|
+
activeColorPickerSection: ActiveColorPickerSectionAtomType;
|
|
7
|
+
palette: ColorPaletteCustom;
|
|
8
|
+
hex: string | null;
|
|
9
|
+
onChange: (color: string) => void;
|
|
10
|
+
customColors: string[];
|
|
11
|
+
setActiveColorPickerSection: (update: React.SetStateAction<ActiveColorPickerSectionAtomType>) => void;
|
|
12
|
+
updateData: (formData?: any) => void;
|
|
13
|
+
activeShade: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const colorPickerKeyNavHandler: ({ e, activeColorPickerSection, palette, hex, onChange, customColors, setActiveColorPickerSection, updateData, activeShade, }: ColorPickerKeyNavHandlerProps) => void;
|
|
16
|
+
export {};
|
|
@@ -2,9 +2,9 @@ import "./ContextMenu.scss";
|
|
|
2
2
|
import { Action } from "../actions/types";
|
|
3
3
|
import { ActionManager } from "../actions/manager";
|
|
4
4
|
import React from "react";
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
|
|
5
|
+
export type ContextMenuItem = typeof CONTEXT_MENU_SEPARATOR | Action;
|
|
6
|
+
export type ContextMenuItems = (ContextMenuItem | false | null | undefined)[];
|
|
7
|
+
type ContextMenuProps = {
|
|
8
8
|
actionManager: ActionManager;
|
|
9
9
|
items: ContextMenuItems;
|
|
10
10
|
top: number;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
3
|
-
import { BinaryFiles, UIAppState } from "../types";
|
|
2
|
+
import { AppClassProperties, BinaryFiles, UIAppState } from "../types";
|
|
4
3
|
import { ActionManager } from "../actions/manager";
|
|
5
4
|
import "./ExportDialog.scss";
|
|
6
5
|
export declare const ErrorCanvasPreview: () => JSX.Element;
|
|
7
|
-
export
|
|
8
|
-
export declare const ImageExportDialog: ({ elements, appState,
|
|
6
|
+
export type ExportCB = (elements: readonly NonDeletedExcalidrawElement[], scale?: number) => void;
|
|
7
|
+
export declare const ImageExportDialog: ({ elements, appState, files, actionManager, onExportImage, onCloseRequest, }: {
|
|
9
8
|
appState: UIAppState;
|
|
10
|
-
setAppState: React.Component<any, UIAppState>["setState"];
|
|
11
9
|
elements: readonly NonDeletedExcalidrawElement[];
|
|
12
10
|
files: BinaryFiles;
|
|
13
|
-
exportPadding?: number | undefined;
|
|
14
11
|
actionManager: ActionManager;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}) => JSX.Element;
|
|
12
|
+
onExportImage: AppClassProperties["onExportImage"];
|
|
13
|
+
onCloseRequest: () => void;
|
|
14
|
+
}) => JSX.Element | null;
|
|
@@ -3,7 +3,7 @@ import { NonDeletedExcalidrawElement } from "../element/types";
|
|
|
3
3
|
import { ExportOpts, BinaryFiles, UIAppState } from "../types";
|
|
4
4
|
import "./ExportDialog.scss";
|
|
5
5
|
import { ActionManager } from "../actions/manager";
|
|
6
|
-
export
|
|
6
|
+
export type ExportCB = (elements: readonly NonDeletedExcalidrawElement[], scale?: number) => void;
|
|
7
7
|
export declare const JSONExportDialog: ({ elements, appState, files, actionManager, exportOpts, canvas, setAppState, }: {
|
|
8
8
|
elements: readonly NonDeletedExcalidrawElement[];
|
|
9
9
|
appState: UIAppState;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { ActionManager } from "../actions/manager";
|
|
3
3
|
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
4
4
|
import { Language } from "../i18n";
|
|
5
|
-
import { AppProps, AppState, ExcalidrawProps, BinaryFiles, UIAppState } from "../types";
|
|
5
|
+
import { AppProps, AppState, ExcalidrawProps, BinaryFiles, UIAppState, AppClassProperties } from "../types";
|
|
6
6
|
import "./LayerUI.scss";
|
|
7
7
|
import "./Toolbar.scss";
|
|
8
8
|
interface LayerUIProps {
|
|
@@ -23,8 +23,9 @@ interface LayerUIProps {
|
|
|
23
23
|
onImageAction: (data: {
|
|
24
24
|
insertOnCanvasDirectly: boolean;
|
|
25
25
|
}) => void;
|
|
26
|
+
onExportImage: AppClassProperties["onExportImage"];
|
|
26
27
|
renderWelcomeScreen: boolean;
|
|
27
28
|
children?: React.ReactNode;
|
|
28
29
|
}
|
|
29
|
-
declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopRightUI, renderCustomStats, UIOptions, onImageAction, renderWelcomeScreen, children, }: LayerUIProps) => JSX.Element>;
|
|
30
|
+
declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopRightUI, renderCustomStats, UIOptions, onImageAction, onExportImage, renderWelcomeScreen, children, }: LayerUIProps) => JSX.Element>;
|
|
30
31
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const LibraryMenuControlButtons: ({
|
|
3
|
-
selectedItems: LibraryItem["id"][];
|
|
4
|
-
onSelectItems: (id: LibraryItem["id"][]) => void;
|
|
1
|
+
import { ExcalidrawProps, UIAppState } from "../types";
|
|
2
|
+
export declare const LibraryMenuControlButtons: ({ libraryReturnUrl, theme, id, style, children, className, }: {
|
|
5
3
|
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
|
6
4
|
theme: UIAppState["theme"];
|
|
7
5
|
id: string;
|
|
8
6
|
style: React.CSSProperties;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
className?: string | undefined;
|
|
9
9
|
}) => JSX.Element;
|
|
@@ -9,8 +9,10 @@ export declare const LibraryDropdownMenuButton: React.FC<{
|
|
|
9
9
|
resetLibrary: () => void;
|
|
10
10
|
onSelectItems: (items: LibraryItem["id"][]) => void;
|
|
11
11
|
appState: UIAppState;
|
|
12
|
+
className?: string;
|
|
12
13
|
}>;
|
|
13
|
-
export declare const LibraryDropdownMenu: ({ selectedItems, onSelectItems, }: {
|
|
14
|
+
export declare const LibraryDropdownMenu: ({ selectedItems, onSelectItems, className, }: {
|
|
14
15
|
selectedItems: LibraryItem["id"][];
|
|
15
16
|
onSelectItems: (id: LibraryItem["id"][]) => void;
|
|
17
|
+
className?: string | undefined;
|
|
16
18
|
}) => JSX.Element;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { AppState, Device, ExcalidrawProps, UIAppState } from "../types";
|
|
3
3
|
import { ActionManager } from "../actions/manager";
|
|
4
4
|
import { NonDeletedExcalidrawElement } from "../element/types";
|
|
5
|
-
|
|
5
|
+
type MobileMenuProps = {
|
|
6
6
|
appState: UIAppState;
|
|
7
7
|
actionManager: ActionManager;
|
|
8
8
|
renderJSONExportDialog: () => React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AppState, SidebarName, SidebarTabName } from "../../types";
|
|
3
|
-
export
|
|
3
|
+
export type SidebarTriggerProps = {
|
|
4
4
|
name: SidebarName;
|
|
5
5
|
tab?: SidebarTabName;
|
|
6
6
|
icon?: JSX.Element;
|
|
@@ -10,7 +10,7 @@ export declare type SidebarTriggerProps = {
|
|
|
10
10
|
onToggle?: (open: boolean) => void;
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type SidebarProps<P = {}> = {
|
|
14
14
|
name: SidebarName;
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
/**
|
|
@@ -26,7 +26,7 @@ export declare type SidebarProps<P = {}> = {
|
|
|
26
26
|
/** @private internal */
|
|
27
27
|
__fallback?: boolean;
|
|
28
28
|
} & P;
|
|
29
|
-
export
|
|
29
|
+
export type SidebarPropsContextValue = Pick<SidebarProps, "onDock" | "docked"> & {
|
|
30
30
|
onCloseRequest: () => void;
|
|
31
31
|
shouldRenderDockButton: boolean;
|
|
32
32
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./ToolIcon.scss";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { PointerType } from "../element/types";
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export type ToolButtonSize = "small" | "medium";
|
|
5
|
+
type ToolButtonBaseProps = {
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
7
|
"aria-label": string;
|
|
8
8
|
"aria-keyshortcuts"?: string;
|
|
@@ -20,7 +20,7 @@ declare type ToolButtonBaseProps = {
|
|
|
20
20
|
className?: string;
|
|
21
21
|
isLoading?: boolean;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type ToolButtonProps = (ToolButtonBaseProps & {
|
|
24
24
|
type: "button";
|
|
25
25
|
children?: React.ReactNode;
|
|
26
26
|
onClick?(event: React.MouseEvent): void;
|
|
@@ -7,7 +7,7 @@ export declare const updateTooltipPosition: (tooltip: HTMLDivElement, item: {
|
|
|
7
7
|
width: number;
|
|
8
8
|
height: number;
|
|
9
9
|
}, position?: "bottom" | "top") => void;
|
|
10
|
-
|
|
10
|
+
type TooltipProps = {
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
label: string;
|
|
13
13
|
long?: boolean;
|
package/types/constants.d.ts
CHANGED
|
@@ -110,6 +110,11 @@ export declare const MIME_TYPES: {
|
|
|
110
110
|
readonly "excalidraw.png": "image/png";
|
|
111
111
|
readonly binary: "application/octet-stream";
|
|
112
112
|
};
|
|
113
|
+
export declare const EXPORT_IMAGE_TYPES: {
|
|
114
|
+
readonly png: "png";
|
|
115
|
+
readonly svg: "svg";
|
|
116
|
+
readonly clipboard: "clipboard";
|
|
117
|
+
};
|
|
113
118
|
export declare const EXPORT_DATA_TYPES: {
|
|
114
119
|
readonly excalidraw: "excalidraw";
|
|
115
120
|
readonly excalidrawClipboard: "excalidraw/clipboard";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import tunnel from "tunnel-rat";
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export type Tunnel = ReturnType<typeof tunnel>;
|
|
4
|
+
type TunnelsContextValue = {
|
|
5
5
|
MainMenuTunnel: Tunnel;
|
|
6
6
|
WelcomeScreenMenuHintTunnel: Tunnel;
|
|
7
7
|
WelcomeScreenToolbarHintTunnel: Tunnel;
|
package/types/data/encode.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const toByteString: (data: string | Uint8Array | ArrayBuffer) =>
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const stringToBase64: (str: string, isByteString?: boolean) => Promise<string>;
|
|
7
7
|
export declare const base64ToString: (base64: string, isByteString?: boolean) => Promise<string>;
|
|
8
|
-
|
|
8
|
+
type EncodedData = {
|
|
9
9
|
encoded: string;
|
|
10
10
|
encoding: "bstring";
|
|
11
11
|
/** whether text is compressed (zlib) */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileSystemHandle, supported as nativeFileSystemSupported } from "browser-fs-access";
|
|
2
2
|
import { MIME_TYPES } from "../constants";
|
|
3
|
-
|
|
3
|
+
type FILE_EXTENSION = Exclude<keyof typeof MIME_TYPES, "binary">;
|
|
4
4
|
export declare const fileOpen: <M extends boolean | undefined = false>(opts: {
|
|
5
5
|
extensions?: FILE_EXTENSION[] | undefined;
|
|
6
6
|
description: string;
|
package/types/data/restore.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "../element/types";
|
|
2
2
|
import { AppState, BinaryFiles, LibraryItem } from "../types";
|
|
3
3
|
import { ImportedDataState } from "./types";
|
|
4
|
-
|
|
4
|
+
type RestoredAppState = Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
5
5
|
export declare const AllowedExcalidrawActiveTools: Record<AppState["activeTool"]["type"], boolean>;
|
|
6
|
-
export
|
|
6
|
+
export type RestoredDataState = {
|
|
7
7
|
elements: ExcalidrawElement[];
|
|
8
8
|
appState: RestoredAppState;
|
|
9
9
|
files: BinaryFiles;
|
package/types/data/types.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ExcalidrawElement
|
|
1
|
+
import { ExcalidrawElement } from "../element/types";
|
|
2
2
|
import { AppState, BinaryFiles, LibraryItems, LibraryItems_anyVersion } from "../types";
|
|
3
3
|
import type { cleanAppStateForExport } from "../appState";
|
|
4
4
|
import { VERSIONS } from "../constants";
|
|
5
|
-
import { MarkOptional } from "../utility-types";
|
|
6
|
-
import { ElementConstructorOpts } from "../element/newElement";
|
|
7
5
|
export interface ExportedDataState {
|
|
8
6
|
type: string;
|
|
9
7
|
version: number;
|
|
@@ -19,7 +17,7 @@ export interface ExportedDataState {
|
|
|
19
17
|
* This is a helper type used in downstream abstractions.
|
|
20
18
|
* Don't consume on its own.
|
|
21
19
|
*/
|
|
22
|
-
export
|
|
20
|
+
export type LegacyAppState = {
|
|
23
21
|
/** @deprecated #6213 TODO remove 23-06-01 */
|
|
24
22
|
isSidebarDocked: [boolean, "defaultSidebarDockedPreference"];
|
|
25
23
|
};
|
|
@@ -27,16 +25,7 @@ export interface ImportedDataState {
|
|
|
27
25
|
type?: string;
|
|
28
26
|
version?: number;
|
|
29
27
|
source?: string;
|
|
30
|
-
elements?: readonly
|
|
31
|
-
label?: {
|
|
32
|
-
text: string;
|
|
33
|
-
} & MarkOptional<ElementConstructorOpts, "x" | "y">;
|
|
34
|
-
}) | {
|
|
35
|
-
type: Exclude<ExcalidrawGenericElement["type"], "selection">;
|
|
36
|
-
label?: {
|
|
37
|
-
text: string;
|
|
38
|
-
} & MarkOptional<ElementConstructorOpts, "x" | "y">;
|
|
39
|
-
})[] | null;
|
|
28
|
+
elements?: readonly ExcalidrawElement[] | null;
|
|
40
29
|
appState?: Readonly<Partial<AppState & {
|
|
41
30
|
[T in keyof LegacyAppState]: LegacyAppState[T][0];
|
|
42
31
|
}>> | null;
|
|
@@ -39,7 +39,7 @@ export declare const actionLink: {
|
|
|
39
39
|
lastActiveTool: import("../types").LastActiveTool;
|
|
40
40
|
locked: boolean;
|
|
41
41
|
} & ({
|
|
42
|
-
type: "
|
|
42
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
43
43
|
customType: null;
|
|
44
44
|
} | {
|
|
45
45
|
type: "custom";
|
|
@@ -75,7 +75,7 @@ export declare const actionLink: {
|
|
|
75
75
|
zoom: Readonly<{
|
|
76
76
|
value: import("../types").NormalizedZoomValue;
|
|
77
77
|
}>;
|
|
78
|
-
openPopup: "
|
|
78
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
79
79
|
openSidebar: {
|
|
80
80
|
name: string;
|
|
81
81
|
tab?: string | undefined;
|
|
@@ -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[];
|
|
@@ -143,7 +143,7 @@ export declare class LinearElementEditor {
|
|
|
143
143
|
lastActiveTool: import("../types").LastActiveTool;
|
|
144
144
|
locked: boolean;
|
|
145
145
|
} & ({
|
|
146
|
-
type: "
|
|
146
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
147
147
|
customType: null;
|
|
148
148
|
} | {
|
|
149
149
|
type: "custom";
|
|
@@ -180,7 +180,7 @@ export declare class LinearElementEditor {
|
|
|
180
180
|
value: import("../types").NormalizedZoomValue;
|
|
181
181
|
}>;
|
|
182
182
|
openMenu: "canvas" | "shape" | null;
|
|
183
|
-
openPopup: "
|
|
183
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
184
184
|
openSidebar: {
|
|
185
185
|
name: string;
|
|
186
186
|
tab?: string | undefined;
|
|
@@ -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,8 +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
|
-
|
|
5
|
-
export declare 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">;
|
|
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">;
|
|
6
5
|
export declare const newElement: (opts: {
|
|
7
6
|
type: ExcalidrawGenericElement["type"];
|
|
8
7
|
} & ElementConstructorOpts) => NonDeleted<ExcalidrawGenericElement>;
|
|
@@ -36,8 +35,8 @@ export declare const newFreeDrawElement: (opts: {
|
|
|
36
35
|
} & ElementConstructorOpts) => NonDeleted<ExcalidrawFreeDrawElement>;
|
|
37
36
|
export declare const newLinearElement: (opts: {
|
|
38
37
|
type: ExcalidrawLinearElement["type"];
|
|
39
|
-
startArrowhead
|
|
40
|
-
endArrowhead
|
|
38
|
+
startArrowhead: Arrowhead | null;
|
|
39
|
+
endArrowhead: Arrowhead | null;
|
|
41
40
|
points?: ExcalidrawLinearElement["points"];
|
|
42
41
|
} & ElementConstructorOpts) => NonDeleted<ExcalidrawLinearElement>;
|
|
43
42
|
export declare const newImageElement: (opts: {
|
|
@@ -85,4 +84,4 @@ export declare const duplicateElements: (elements: readonly ExcalidrawElement[],
|
|
|
85
84
|
/** NOTE also updates version flags and `updated` */
|
|
86
85
|
randomizeSeed: boolean;
|
|
87
86
|
}) => ExcalidrawElement[];
|
|
88
|
-
export
|
|
87
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ExcalidrawElement,
|
|
1
|
+
import { ExcalidrawElement, ExcalidrawTextContainer, ExcalidrawTextElement, ExcalidrawTextElementWithContainer, FontFamilyValues, FontString, NonDeletedExcalidrawElement } from "./types";
|
|
2
2
|
import { MaybeTransformHandleType } from "./transformHandles";
|
|
3
3
|
import { AppState } from "../types";
|
|
4
|
-
import { ExtractSetType
|
|
5
|
-
import { ElementConstructorOpts } from "./newElement";
|
|
4
|
+
import { ExtractSetType } from "../utility-types";
|
|
6
5
|
export declare const normalizeText: (text: string) => string;
|
|
7
6
|
export declare const splitIntoLines: (text: string) => string[];
|
|
8
7
|
export declare const redrawTextBoundingBox: (textElement: ExcalidrawTextElement, container: ExcalidrawElement | null) => void;
|
|
@@ -70,9 +69,7 @@ export declare const shouldAllowVerticalAlign: (selectedElements: NonDeletedExca
|
|
|
70
69
|
export declare const suppportsHorizontalAlign: (selectedElements: NonDeletedExcalidrawElement[]) => boolean;
|
|
71
70
|
export declare const getTextBindableContainerAtPosition: (elements: readonly ExcalidrawElement[], appState: AppState, x: number, y: number) => ExcalidrawTextContainer | null;
|
|
72
71
|
declare const VALID_CONTAINER_TYPES: Set<string>;
|
|
73
|
-
export declare const isValidTextContainer: (element:
|
|
74
|
-
type: ExcalidrawElement["type"];
|
|
75
|
-
}) => boolean;
|
|
72
|
+
export declare const isValidTextContainer: (element: ExcalidrawElement) => boolean;
|
|
76
73
|
export declare const computeContainerDimensionForBoundText: (dimension: number, containerType: ExtractSetType<typeof VALID_CONTAINER_TYPES>) => number;
|
|
77
74
|
export declare const getBoundTextMaxWidth: (container: ExcalidrawElement) => number;
|
|
78
75
|
export declare const getBoundTextMaxHeight: (container: ExcalidrawElement, boundTextElement: ExcalidrawTextElementWithContainer) => number;
|
|
@@ -80,9 +77,4 @@ export declare const isMeasureTextSupported: () => boolean;
|
|
|
80
77
|
export declare const getDefaultLineHeight: (fontFamily: FontFamilyValues) => number & {
|
|
81
78
|
_brand: "unitlessLineHeight";
|
|
82
79
|
};
|
|
83
|
-
export declare const bindTextToContainer: (containerProps: ({
|
|
84
|
-
type: Exclude<ExcalidrawGenericElement["type"], "selection"> | ExcalidrawLinearElement["type"];
|
|
85
|
-
} & MarkOptional<ElementConstructorOpts, "x" | "y">), textProps: {
|
|
86
|
-
text: string;
|
|
87
|
-
} & MarkOptional<ElementConstructorOpts, "x" | "y">) => (ExcalidrawTextElement | import("./types").NonDeleted<ExcalidrawLinearElement> | import("./types").NonDeleted<ExcalidrawGenericElement>)[];
|
|
88
80
|
export {};
|
|
@@ -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;
|