@excalidraw/excalidraw 0.14.2-c9d18ec → 0.14.2-ca3be2c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/excalidraw-assets/locales/ar-SA-json-6c06adbd0d9d02eac2b2.js +1 -0
- package/dist/excalidraw-assets/locales/bg-BG-json-53f3c1f9f00040cafd2c.js +1 -0
- package/dist/excalidraw-assets/locales/bn-BD-json-f7ee4adf1477b5385c0b.js +1 -0
- package/dist/excalidraw-assets/locales/ca-ES-json-d5ae178e89b6c667f9a0.js +1 -0
- package/dist/excalidraw-assets/locales/{cs-CZ-json-33e80baabf3fa015d562.js → cs-CZ-json-03e03422bf616825e4de.js} +1 -1
- package/dist/excalidraw-assets/locales/da-DK-json-52be03e18f1bc98be9c8.js +1 -0
- package/dist/excalidraw-assets/locales/de-DE-json-1335b7dc7abe28365271.js +1 -0
- package/dist/excalidraw-assets/locales/el-GR-json-1e030118d23307b7ca92.js +1 -0
- package/dist/excalidraw-assets/locales/es-ES-json-eee803809b86a9619a29.js +1 -0
- package/dist/excalidraw-assets/locales/eu-ES-json-31f3b78ca505730777ed.js +1 -0
- package/dist/excalidraw-assets/locales/fa-IR-json-10a870520551a183f2d7.js +1 -0
- package/dist/excalidraw-assets/locales/fi-FI-json-6353e444c17d44bae461.js +1 -0
- package/dist/excalidraw-assets/locales/fr-FR-json-68052da0ebafb9f1909f.js +1 -0
- package/dist/excalidraw-assets/locales/gl-ES-json-152d0b099ec8f3e92986.js +1 -0
- package/dist/excalidraw-assets/locales/he-IL-json-3c35f4b2962e3609017e.js +1 -0
- package/dist/excalidraw-assets/locales/hi-IN-json-39b76db3f7abc53a54d2.js +1 -0
- package/dist/excalidraw-assets/locales/hu-HU-json-636059732ee89c1c92d7.js +1 -0
- package/dist/excalidraw-assets/locales/id-ID-json-7aae0423987e3f6e37c9.js +1 -0
- package/dist/excalidraw-assets/locales/it-IT-json-9423dbb2f3510f7a9e78.js +1 -0
- package/dist/excalidraw-assets/locales/ja-JP-json-5ad34302e890d7e34a47.js +1 -0
- package/dist/excalidraw-assets/locales/kab-KAB-json-7941c7649f7cf319f9fa.js +1 -0
- package/dist/excalidraw-assets/locales/kk-KZ-json-34a913b2b552691de36c.js +1 -0
- package/dist/excalidraw-assets/locales/ko-KR-json-34efab5d47b95406706a.js +1 -0
- package/dist/excalidraw-assets/locales/ku-TR-json-7f8c5abdd3f7ea7fc945.js +1 -0
- package/dist/excalidraw-assets/locales/lt-LT-json-b7e9188e36f165b5bb4a.js +1 -0
- package/dist/excalidraw-assets/locales/lv-LV-json-6ff0f96956a0ab6a1af7.js +1 -0
- package/dist/excalidraw-assets/locales/mr-IN-json-25f7150363e7c782986e.js +1 -0
- package/dist/excalidraw-assets/locales/my-MM-json-694823d3bc2b0943a916.js +1 -0
- package/dist/excalidraw-assets/locales/nb-NO-json-bf819e799f3bcbcd0f6b.js +1 -0
- package/dist/excalidraw-assets/locales/nl-NL-json-01fa3b9dd189861e48db.js +1 -0
- package/dist/excalidraw-assets/locales/nn-NO-json-c8fc60cb596ea118bcee.js +1 -0
- package/dist/excalidraw-assets/locales/oc-FR-json-5774a39c1b0c4c676b1d.js +1 -0
- package/dist/excalidraw-assets/locales/pa-IN-json-08abbf2590eb9e585c48.js +1 -0
- package/dist/excalidraw-assets/locales/pl-PL-json-5180dc575281ed9d5e15.js +1 -0
- package/dist/excalidraw-assets/locales/pt-BR-json-2b79e2f8dfc749f13152.js +1 -0
- package/dist/excalidraw-assets/locales/pt-PT-json-5235c5f4796f2fab31ae.js +1 -0
- package/dist/excalidraw-assets/locales/ro-RO-json-d7e41ef2638d95584d14.js +1 -0
- package/dist/excalidraw-assets/locales/ru-RU-json-cf20180d869889c9e654.js +1 -0
- package/dist/excalidraw-assets/locales/{si-LK-json-df248f9acc0c0d95d522.js → si-LK-json-5b0bbe1d22e2d6e37d35.js} +1 -1
- package/dist/excalidraw-assets/locales/sk-SK-json-05a75d43e4bffa53061d.js +1 -0
- package/dist/excalidraw-assets/locales/sl-SI-json-7fff7355941d29976813.js +1 -0
- package/dist/excalidraw-assets/locales/sv-SE-json-bdf45471677387a015b6.js +1 -0
- package/dist/excalidraw-assets/locales/ta-IN-json-42f4d7224c772d6e2bfd.js +1 -0
- package/dist/excalidraw-assets/locales/tr-TR-json-a0b61deedb90f078aa01.js +1 -0
- package/dist/excalidraw-assets/locales/uk-UA-json-170d7a0da69417b02ba9.js +1 -0
- package/dist/excalidraw-assets/locales/{vi-VN-json-1bba247d99ac850c2170.js → vi-VN-json-2d39986eb03760539582.js} +1 -1
- package/dist/excalidraw-assets/locales/zh-CN-json-0ae042d21bb1d8c961da.js +1 -0
- package/dist/excalidraw-assets/locales/{zh-HK-json-e98204d966427c330469.js → zh-HK-json-24ae5342eb038f3b0f4a.js} +1 -1
- package/dist/excalidraw-assets/locales/zh-TW-json-0a3f9065ffa97f4146ce.js +1 -0
- package/dist/excalidraw-assets-dev/locales/ar-SA-json-ab6a9216e129bbba9b1a.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{bg-BG-json-3ddf603baef95925bf64.js → bg-BG-json-3d8cfccdb2df6bf180ac.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{bn-BD-json-e48765d29bfae7097993.js → bn-BD-json-fcc8b944b3acc1c55753.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/ca-ES-json-76499e62393c03007178.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{cs-CZ-json-dba87702a1ad60028065.js → cs-CZ-json-3c34245696c3fa41b731.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/{da-DK-json-594c6e3be5ea7aef50ef.js → da-DK-json-68847d6e62bc249abbec.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/de-DE-json-53038367422db181d67c.js +22 -0
- package/dist/excalidraw-assets-dev/locales/el-GR-json-4a570378e97ad31b9d10.js +22 -0
- package/dist/excalidraw-assets-dev/locales/es-ES-json-007f93b37e43a42fcf84.js +22 -0
- package/dist/excalidraw-assets-dev/locales/eu-ES-json-b1d18c7b4bd1d54d5dfd.js +22 -0
- package/dist/excalidraw-assets-dev/locales/fa-IR-json-23a53581031622df43cb.js +22 -0
- package/dist/excalidraw-assets-dev/locales/fi-FI-json-7de4002b4d7f24054a84.js +22 -0
- package/dist/excalidraw-assets-dev/locales/fr-FR-json-337cdd5043bb5c6a174c.js +22 -0
- package/dist/excalidraw-assets-dev/locales/gl-ES-json-4e4f84a35e936b9ca6f6.js +22 -0
- package/dist/excalidraw-assets-dev/locales/he-IL-json-a54ad386ceb9b48ccc84.js +22 -0
- package/dist/excalidraw-assets-dev/locales/hi-IN-json-a46793165036aac854c6.js +22 -0
- package/dist/excalidraw-assets-dev/locales/hu-HU-json-c84969170aeddccc8e84.js +22 -0
- package/dist/excalidraw-assets-dev/locales/id-ID-json-699249ec43c0d419134b.js +22 -0
- package/dist/excalidraw-assets-dev/locales/it-IT-json-0e799ccdafb272e65046.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ja-JP-json-044db93261d04ea64e6f.js +22 -0
- package/dist/excalidraw-assets-dev/locales/kab-KAB-json-3eb03ea3bf8e5247387a.js +22 -0
- package/dist/excalidraw-assets-dev/locales/kk-KZ-json-b788f0957735d7e6cf09.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ko-KR-json-ff6664051cb7d2f50fb0.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ku-TR-json-36f8d2a4b09be400f869.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{lt-LT-json-8f38d56f469bda54c435.js → lt-LT-json-7f27a7b2adcd586b55e8.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/lv-LV-json-57a16241f5e7412fbaa8.js +22 -0
- package/dist/excalidraw-assets-dev/locales/mr-IN-json-6ba2b497881dcd6a3874.js +22 -0
- package/dist/excalidraw-assets-dev/locales/my-MM-json-64e7f48498773cc79d25.js +22 -0
- package/dist/excalidraw-assets-dev/locales/nb-NO-json-6acf941b2b6d5a982730.js +22 -0
- package/dist/excalidraw-assets-dev/locales/nl-NL-json-afccd2db9c47f6a66cf5.js +22 -0
- package/dist/excalidraw-assets-dev/locales/nn-NO-json-aeb6613de563968f6d62.js +22 -0
- package/dist/excalidraw-assets-dev/locales/oc-FR-json-e0e1a7000404bafe6fd7.js +22 -0
- package/dist/excalidraw-assets-dev/locales/pa-IN-json-29d4806d6fa46f846df7.js +22 -0
- package/dist/excalidraw-assets-dev/locales/pl-PL-json-4b55b15e99350eeae02f.js +22 -0
- package/dist/excalidraw-assets-dev/locales/pt-BR-json-32d105b423af2efd99bc.js +22 -0
- package/dist/excalidraw-assets-dev/locales/pt-PT-json-2df486888ab37d6c0765.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ro-RO-json-afba8739d17043e44853.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ru-RU-json-51faee1b80ed8a59b81c.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{si-LK-json-47970cb06908fa0e9ced.js → si-LK-json-ea88723100210c4a4f50.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/sk-SK-json-ead9c71815507529bd9f.js +22 -0
- package/dist/excalidraw-assets-dev/locales/sl-SI-json-10c5ba653479b04d3ba8.js +22 -0
- package/dist/excalidraw-assets-dev/locales/sv-SE-json-8a96e0b5538383ba0644.js +22 -0
- package/dist/excalidraw-assets-dev/locales/ta-IN-json-80c52510c4c5fad8cbee.js +22 -0
- package/dist/excalidraw-assets-dev/locales/tr-TR-json-5297403ca60a39d7f7a2.js +22 -0
- package/dist/excalidraw-assets-dev/locales/uk-UA-json-402769714cfefd83da2c.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{vi-VN-json-129462f3eccec64d872f.js → vi-VN-json-91051a67195b4c7f2dc2.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/zh-CN-json-4762509f4cfefbc0e504.js +22 -0
- package/dist/excalidraw-assets-dev/locales/{zh-HK-json-c195a7863b24bd91c144.js → zh-HK-json-9e65481cf4e01edf7ee9.js} +1 -1
- package/dist/excalidraw-assets-dev/locales/zh-TW-json-077dac2df525c01b947c.js +22 -0
- package/dist/excalidraw.development.js +64 -54
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +2 -2
- package/types/actions/actionAddToLibrary.d.ts +2 -1
- package/types/actions/actionBoundText.d.ts +129 -9
- package/types/actions/actionCanvas.d.ts +115 -9
- package/types/actions/actionClipboard.d.ts +3 -3
- package/types/actions/actionDeleteSelected.d.ts +3 -3
- package/types/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/actions/actionExport.d.ts +8 -8
- package/types/actions/actionFinalize.d.ts +2 -2
- package/types/actions/actionLinearEditor.d.ts +2 -1
- package/types/actions/actionMenu.d.ts +3 -3
- package/types/actions/actionProperties.d.ts +14 -14
- package/types/actions/actionStyles.d.ts +1 -1
- package/types/actions/actionToggleGridMode.d.ts +1 -1
- package/types/actions/actionToggleLock.d.ts +1 -1
- package/types/actions/actionToggleStats.d.ts +1 -1
- package/types/actions/actionToggleViewMode.d.ts +1 -1
- package/types/actions/actionToggleZenMode.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -0
- package/types/actions/types.d.ts +2 -1
- package/types/components/App.d.ts +12 -1
- package/types/components/BraveMeasureTextError.d.ts +2 -0
- package/types/components/ButtonIconSelect.d.ts +11 -3
- package/types/components/ErrorDialog.d.ts +3 -2
- package/types/components/HelpButton.d.ts +0 -1
- package/types/components/icons.d.ts +1 -0
- package/types/constants.d.ts +3 -0
- package/types/data/blob.d.ts +1 -0
- package/types/data/restore.d.ts +8 -2
- package/types/element/Hyperlink.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +1 -1
- package/types/element/mutateElement.d.ts +1 -0
- package/types/element/newElement.d.ts +3 -3
- package/types/element/textElement.d.ts +38 -11
- package/types/element/typeChecks.d.ts +2 -1
- package/types/element/types.d.ts +9 -1
- package/types/i18n.d.ts +6 -0
- package/types/jotai.d.ts +5 -5
- package/types/packages/excalidraw/index.d.ts +1 -1
- package/types/renderer/renderElement.d.ts +2 -2
- package/types/types.d.ts +3 -2
- package/types/utility-types.d.ts +22 -0
- package/types/utils.d.ts +20 -1
- package/dist/excalidraw-assets/locales/ar-SA-json-c79127d5d2490c5212db.js +0 -1
- package/dist/excalidraw-assets/locales/bg-BG-json-91ef1fb55b3fc4a5c8dd.js +0 -1
- package/dist/excalidraw-assets/locales/bn-BD-json-62541e1593edd0d97feb.js +0 -1
- package/dist/excalidraw-assets/locales/ca-ES-json-0df5c3155126ab692616.js +0 -1
- package/dist/excalidraw-assets/locales/da-DK-json-06289d3fbf52c88e4b2a.js +0 -1
- package/dist/excalidraw-assets/locales/de-DE-json-993627a68607d0c4130b.js +0 -1
- package/dist/excalidraw-assets/locales/el-GR-json-f264643213adb3213447.js +0 -1
- package/dist/excalidraw-assets/locales/es-ES-json-8048e09954f692f0a3c7.js +0 -1
- package/dist/excalidraw-assets/locales/eu-ES-json-e3090fce86fd0066785a.js +0 -1
- package/dist/excalidraw-assets/locales/fa-IR-json-473f6ac9a650848b93a8.js +0 -1
- package/dist/excalidraw-assets/locales/fi-FI-json-aabdf77972326d7fb898.js +0 -1
- package/dist/excalidraw-assets/locales/fr-FR-json-480234c67083709dd3d8.js +0 -1
- package/dist/excalidraw-assets/locales/gl-ES-json-f0684824acb663ab1211.js +0 -1
- package/dist/excalidraw-assets/locales/he-IL-json-70c33993273338bd4f33.js +0 -1
- package/dist/excalidraw-assets/locales/hi-IN-json-5a6b9665b2e4ba63b853.js +0 -1
- package/dist/excalidraw-assets/locales/hu-HU-json-d8db69cdd686de03b37a.js +0 -1
- package/dist/excalidraw-assets/locales/id-ID-json-e5537e7a297d84c70f8d.js +0 -1
- package/dist/excalidraw-assets/locales/it-IT-json-b448e4e3b29c233c004e.js +0 -1
- package/dist/excalidraw-assets/locales/ja-JP-json-fa253f0bd6a7b8f01675.js +0 -1
- package/dist/excalidraw-assets/locales/kab-KAB-json-1f677ec13814533d0544.js +0 -1
- package/dist/excalidraw-assets/locales/kk-KZ-json-6065596a887135e9cc09.js +0 -1
- package/dist/excalidraw-assets/locales/ko-KR-json-cfce3f58ff37c90e68db.js +0 -1
- package/dist/excalidraw-assets/locales/ku-TR-json-939503d607cc891385b7.js +0 -1
- package/dist/excalidraw-assets/locales/lt-LT-json-2f5c7415be51fada7b1e.js +0 -1
- package/dist/excalidraw-assets/locales/lv-LV-json-0371209c78c46612e711.js +0 -1
- package/dist/excalidraw-assets/locales/mr-IN-json-31d231ec7ad5c356f80c.js +0 -1
- package/dist/excalidraw-assets/locales/my-MM-json-2f2c9dc37e678d0c422a.js +0 -1
- package/dist/excalidraw-assets/locales/nb-NO-json-75c9c4ce68cb22686bb9.js +0 -1
- package/dist/excalidraw-assets/locales/nl-NL-json-049f7ad818738426df19.js +0 -1
- package/dist/excalidraw-assets/locales/nn-NO-json-10be537af5e506a5ca90.js +0 -1
- package/dist/excalidraw-assets/locales/oc-FR-json-298085759b18bfb2156b.js +0 -1
- package/dist/excalidraw-assets/locales/pa-IN-json-ace42e8a73c5211a7118.js +0 -1
- package/dist/excalidraw-assets/locales/pl-PL-json-5e75eb7f7a08039ba439.js +0 -1
- package/dist/excalidraw-assets/locales/pt-BR-json-49ef91552144b0184b75.js +0 -1
- package/dist/excalidraw-assets/locales/pt-PT-json-4fccdc2fb8070fa9e1aa.js +0 -1
- package/dist/excalidraw-assets/locales/ro-RO-json-445dcc496554187b3d97.js +0 -1
- package/dist/excalidraw-assets/locales/ru-RU-json-4cc4115f0699906213ee.js +0 -1
- package/dist/excalidraw-assets/locales/sk-SK-json-cfc900b54582f4449d81.js +0 -1
- package/dist/excalidraw-assets/locales/sl-SI-json-8fbc81884976303c462d.js +0 -1
- package/dist/excalidraw-assets/locales/sv-SE-json-15c48e491b7a6a2ccd6a.js +0 -1
- package/dist/excalidraw-assets/locales/ta-IN-json-c7f534c8db15d23581e1.js +0 -1
- package/dist/excalidraw-assets/locales/tr-TR-json-177ab167ae9fd58ecc14.js +0 -1
- package/dist/excalidraw-assets/locales/uk-UA-json-5380777f1bc4d2dffe77.js +0 -1
- package/dist/excalidraw-assets/locales/zh-CN-json-17c5705d108c3f7dc824.js +0 -1
- package/dist/excalidraw-assets/locales/zh-TW-json-93522c4455b155e1fad0.js +0 -1
- package/dist/excalidraw-assets-dev/locales/ar-SA-json-2cf8dafe9c36e0736014.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ca-ES-json-ba55c6da6979baf148d7.js +0 -22
- package/dist/excalidraw-assets-dev/locales/de-DE-json-22de906264c3405961fd.js +0 -22
- package/dist/excalidraw-assets-dev/locales/el-GR-json-5ca9d9d1846939ef7331.js +0 -22
- package/dist/excalidraw-assets-dev/locales/es-ES-json-c6da198f969fd47de990.js +0 -22
- package/dist/excalidraw-assets-dev/locales/eu-ES-json-25bd11624ca577b5996c.js +0 -22
- package/dist/excalidraw-assets-dev/locales/fa-IR-json-077de589532f8f775cb2.js +0 -22
- package/dist/excalidraw-assets-dev/locales/fi-FI-json-cd168eb40a27e41dc1a1.js +0 -22
- package/dist/excalidraw-assets-dev/locales/fr-FR-json-fd33f954c3b9c8404289.js +0 -22
- package/dist/excalidraw-assets-dev/locales/gl-ES-json-82d28fc7fc743b819b12.js +0 -22
- package/dist/excalidraw-assets-dev/locales/he-IL-json-211d4ace442e97ed6433.js +0 -22
- package/dist/excalidraw-assets-dev/locales/hi-IN-json-1953dee3e884f2a14503.js +0 -22
- package/dist/excalidraw-assets-dev/locales/hu-HU-json-bf6d281d24a0329d505e.js +0 -22
- package/dist/excalidraw-assets-dev/locales/id-ID-json-d64e1d71519a393c07c2.js +0 -22
- package/dist/excalidraw-assets-dev/locales/it-IT-json-89cf4d3670fdefa58b33.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ja-JP-json-6d0a638b601b1b096df5.js +0 -22
- package/dist/excalidraw-assets-dev/locales/kab-KAB-json-38eb1915eaa7689e8f60.js +0 -22
- package/dist/excalidraw-assets-dev/locales/kk-KZ-json-4b3b005a4ba36138b1cd.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ko-KR-json-0badfce71188335e37b1.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ku-TR-json-bbd13a63d8689d2e9a43.js +0 -22
- package/dist/excalidraw-assets-dev/locales/lv-LV-json-0796f8d0c4460c9a3a8f.js +0 -22
- package/dist/excalidraw-assets-dev/locales/mr-IN-json-fa0151f7e82a67b49ae5.js +0 -22
- package/dist/excalidraw-assets-dev/locales/my-MM-json-263f1911e509369b66e1.js +0 -22
- package/dist/excalidraw-assets-dev/locales/nb-NO-json-e64d1bcf0a27bfe13b8b.js +0 -22
- package/dist/excalidraw-assets-dev/locales/nl-NL-json-fb41d4d35cee4bc4adbe.js +0 -22
- package/dist/excalidraw-assets-dev/locales/nn-NO-json-d90bddd9490fbfc518f1.js +0 -22
- package/dist/excalidraw-assets-dev/locales/oc-FR-json-4ef96d3826cd2d7fea8e.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pa-IN-json-7a22f9e27124e510c600.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pl-PL-json-096b56489357a31971e1.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pt-BR-json-73c27490b8c38977327a.js +0 -22
- package/dist/excalidraw-assets-dev/locales/pt-PT-json-feeafbca9b29b98e6e1e.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ro-RO-json-39f9b5c3663e33992857.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ru-RU-json-c0ee37648be3cb8bc997.js +0 -22
- package/dist/excalidraw-assets-dev/locales/sk-SK-json-48b1be2121c59ea5fd38.js +0 -22
- package/dist/excalidraw-assets-dev/locales/sl-SI-json-63fc43634c085a0fbe35.js +0 -22
- package/dist/excalidraw-assets-dev/locales/sv-SE-json-01836e53c828fe330fe6.js +0 -22
- package/dist/excalidraw-assets-dev/locales/ta-IN-json-4a04f7c408102174d465.js +0 -22
- package/dist/excalidraw-assets-dev/locales/tr-TR-json-d40048b0c66b49aff8dc.js +0 -22
- package/dist/excalidraw-assets-dev/locales/uk-UA-json-003d91ddb276ec4263a2.js +0 -22
- package/dist/excalidraw-assets-dev/locales/zh-CN-json-64bd4e2cbddc6f712c05.js +0 -22
- package/dist/excalidraw-assets-dev/locales/zh-TW-json-26929e082f30eb69de76.js +0 -22
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ar-SA-json-c79127d5d2490c5212db.d.ts → ar-SA-json-6c06adbd0d9d02eac2b2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{bg-BG-json-91ef1fb55b3fc4a5c8dd.d.ts → bg-BG-json-53f3c1f9f00040cafd2c.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{bn-BD-json-62541e1593edd0d97feb.d.ts → bn-BD-json-f7ee4adf1477b5385c0b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ca-ES-json-0df5c3155126ab692616.d.ts → ca-ES-json-d5ae178e89b6c667f9a0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{cs-CZ-json-33e80baabf3fa015d562.d.ts → cs-CZ-json-03e03422bf616825e4de.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{da-DK-json-06289d3fbf52c88e4b2a.d.ts → da-DK-json-52be03e18f1bc98be9c8.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{de-DE-json-993627a68607d0c4130b.d.ts → de-DE-json-1335b7dc7abe28365271.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{el-GR-json-f264643213adb3213447.d.ts → el-GR-json-1e030118d23307b7ca92.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{es-ES-json-8048e09954f692f0a3c7.d.ts → es-ES-json-eee803809b86a9619a29.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{eu-ES-json-e3090fce86fd0066785a.d.ts → eu-ES-json-31f3b78ca505730777ed.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{fa-IR-json-473f6ac9a650848b93a8.d.ts → fa-IR-json-10a870520551a183f2d7.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{fi-FI-json-aabdf77972326d7fb898.d.ts → fi-FI-json-6353e444c17d44bae461.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{fr-FR-json-480234c67083709dd3d8.d.ts → fr-FR-json-68052da0ebafb9f1909f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{gl-ES-json-f0684824acb663ab1211.d.ts → gl-ES-json-152d0b099ec8f3e92986.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{he-IL-json-70c33993273338bd4f33.d.ts → he-IL-json-3c35f4b2962e3609017e.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hi-IN-json-5a6b9665b2e4ba63b853.d.ts → hi-IN-json-39b76db3f7abc53a54d2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hu-HU-json-d8db69cdd686de03b37a.d.ts → hu-HU-json-636059732ee89c1c92d7.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{id-ID-json-e5537e7a297d84c70f8d.d.ts → id-ID-json-7aae0423987e3f6e37c9.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{it-IT-json-b448e4e3b29c233c004e.d.ts → it-IT-json-9423dbb2f3510f7a9e78.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ja-JP-json-fa253f0bd6a7b8f01675.d.ts → ja-JP-json-5ad34302e890d7e34a47.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kab-KAB-json-1f677ec13814533d0544.d.ts → kab-KAB-json-7941c7649f7cf319f9fa.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kk-KZ-json-6065596a887135e9cc09.d.ts → kk-KZ-json-34a913b2b552691de36c.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ko-KR-json-cfce3f58ff37c90e68db.d.ts → ko-KR-json-34efab5d47b95406706a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ku-TR-json-939503d607cc891385b7.d.ts → ku-TR-json-7f8c5abdd3f7ea7fc945.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{lt-LT-json-2f5c7415be51fada7b1e.d.ts → lt-LT-json-b7e9188e36f165b5bb4a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{lv-LV-json-0371209c78c46612e711.d.ts → lv-LV-json-6ff0f96956a0ab6a1af7.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{mr-IN-json-31d231ec7ad5c356f80c.d.ts → mr-IN-json-25f7150363e7c782986e.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{my-MM-json-2f2c9dc37e678d0c422a.d.ts → my-MM-json-694823d3bc2b0943a916.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{nb-NO-json-75c9c4ce68cb22686bb9.d.ts → nb-NO-json-bf819e799f3bcbcd0f6b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{nl-NL-json-049f7ad818738426df19.d.ts → nl-NL-json-01fa3b9dd189861e48db.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{nn-NO-json-10be537af5e506a5ca90.d.ts → nn-NO-json-c8fc60cb596ea118bcee.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{oc-FR-json-298085759b18bfb2156b.d.ts → oc-FR-json-5774a39c1b0c4c676b1d.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pa-IN-json-ace42e8a73c5211a7118.d.ts → pa-IN-json-08abbf2590eb9e585c48.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pl-PL-json-5e75eb7f7a08039ba439.d.ts → pl-PL-json-5180dc575281ed9d5e15.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pt-BR-json-49ef91552144b0184b75.d.ts → pt-BR-json-2b79e2f8dfc749f13152.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pt-PT-json-4fccdc2fb8070fa9e1aa.d.ts → pt-PT-json-5235c5f4796f2fab31ae.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ro-RO-json-445dcc496554187b3d97.d.ts → ro-RO-json-d7e41ef2638d95584d14.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ru-RU-json-4cc4115f0699906213ee.d.ts → ru-RU-json-cf20180d869889c9e654.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{si-LK-json-df248f9acc0c0d95d522.d.ts → si-LK-json-5b0bbe1d22e2d6e37d35.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{sk-SK-json-cfc900b54582f4449d81.d.ts → sk-SK-json-05a75d43e4bffa53061d.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{sl-SI-json-8fbc81884976303c462d.d.ts → sl-SI-json-7fff7355941d29976813.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{sv-SE-json-15c48e491b7a6a2ccd6a.d.ts → sv-SE-json-bdf45471677387a015b6.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{ta-IN-json-c7f534c8db15d23581e1.d.ts → ta-IN-json-42f4d7224c772d6e2bfd.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{tr-TR-json-177ab167ae9fd58ecc14.d.ts → tr-TR-json-a0b61deedb90f078aa01.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{uk-UA-json-5380777f1bc4d2dffe77.d.ts → uk-UA-json-170d7a0da69417b02ba9.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{vi-VN-json-1bba247d99ac850c2170.d.ts → vi-VN-json-2d39986eb03760539582.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{zh-CN-json-17c5705d108c3f7dc824.d.ts → zh-CN-json-0ae042d21bb1d8c961da.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{zh-HK-json-e98204d966427c330469.d.ts → zh-HK-json-24ae5342eb038f3b0f4a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{zh-TW-json-93522c4455b155e1fad0.d.ts → zh-TW-json-0a3f9065ffa97f4146ce.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ar-SA-json-2cf8dafe9c36e0736014.d.ts → ar-SA-json-ab6a9216e129bbba9b1a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{bg-BG-json-3ddf603baef95925bf64.d.ts → bg-BG-json-3d8cfccdb2df6bf180ac.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{bn-BD-json-e48765d29bfae7097993.d.ts → bn-BD-json-fcc8b944b3acc1c55753.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ca-ES-json-ba55c6da6979baf148d7.d.ts → ca-ES-json-76499e62393c03007178.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{cs-CZ-json-dba87702a1ad60028065.d.ts → cs-CZ-json-3c34245696c3fa41b731.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{da-DK-json-594c6e3be5ea7aef50ef.d.ts → da-DK-json-68847d6e62bc249abbec.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{de-DE-json-22de906264c3405961fd.d.ts → de-DE-json-53038367422db181d67c.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{el-GR-json-5ca9d9d1846939ef7331.d.ts → el-GR-json-4a570378e97ad31b9d10.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{es-ES-json-c6da198f969fd47de990.d.ts → es-ES-json-007f93b37e43a42fcf84.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{eu-ES-json-25bd11624ca577b5996c.d.ts → eu-ES-json-b1d18c7b4bd1d54d5dfd.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fa-IR-json-077de589532f8f775cb2.d.ts → fa-IR-json-23a53581031622df43cb.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fi-FI-json-cd168eb40a27e41dc1a1.d.ts → fi-FI-json-7de4002b4d7f24054a84.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fr-FR-json-fd33f954c3b9c8404289.d.ts → fr-FR-json-337cdd5043bb5c6a174c.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{gl-ES-json-82d28fc7fc743b819b12.d.ts → gl-ES-json-4e4f84a35e936b9ca6f6.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{he-IL-json-211d4ace442e97ed6433.d.ts → he-IL-json-a54ad386ceb9b48ccc84.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{hi-IN-json-1953dee3e884f2a14503.d.ts → hi-IN-json-a46793165036aac854c6.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{hu-HU-json-bf6d281d24a0329d505e.d.ts → hu-HU-json-c84969170aeddccc8e84.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{id-ID-json-d64e1d71519a393c07c2.d.ts → id-ID-json-699249ec43c0d419134b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{it-IT-json-89cf4d3670fdefa58b33.d.ts → it-IT-json-0e799ccdafb272e65046.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ja-JP-json-6d0a638b601b1b096df5.d.ts → ja-JP-json-044db93261d04ea64e6f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{kab-KAB-json-38eb1915eaa7689e8f60.d.ts → kab-KAB-json-3eb03ea3bf8e5247387a.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{kk-KZ-json-4b3b005a4ba36138b1cd.d.ts → kk-KZ-json-b788f0957735d7e6cf09.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ko-KR-json-0badfce71188335e37b1.d.ts → ko-KR-json-ff6664051cb7d2f50fb0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ku-TR-json-bbd13a63d8689d2e9a43.d.ts → ku-TR-json-36f8d2a4b09be400f869.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{lt-LT-json-8f38d56f469bda54c435.d.ts → lt-LT-json-7f27a7b2adcd586b55e8.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{lv-LV-json-0796f8d0c4460c9a3a8f.d.ts → lv-LV-json-57a16241f5e7412fbaa8.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{mr-IN-json-fa0151f7e82a67b49ae5.d.ts → mr-IN-json-6ba2b497881dcd6a3874.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{my-MM-json-263f1911e509369b66e1.d.ts → my-MM-json-64e7f48498773cc79d25.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nb-NO-json-e64d1bcf0a27bfe13b8b.d.ts → nb-NO-json-6acf941b2b6d5a982730.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nl-NL-json-fb41d4d35cee4bc4adbe.d.ts → nl-NL-json-afccd2db9c47f6a66cf5.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nn-NO-json-d90bddd9490fbfc518f1.d.ts → nn-NO-json-aeb6613de563968f6d62.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{oc-FR-json-4ef96d3826cd2d7fea8e.d.ts → oc-FR-json-e0e1a7000404bafe6fd7.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pa-IN-json-7a22f9e27124e510c600.d.ts → pa-IN-json-29d4806d6fa46f846df7.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pl-PL-json-096b56489357a31971e1.d.ts → pl-PL-json-4b55b15e99350eeae02f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pt-BR-json-73c27490b8c38977327a.d.ts → pt-BR-json-32d105b423af2efd99bc.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pt-PT-json-feeafbca9b29b98e6e1e.d.ts → pt-PT-json-2df486888ab37d6c0765.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ro-RO-json-39f9b5c3663e33992857.d.ts → ro-RO-json-afba8739d17043e44853.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ru-RU-json-c0ee37648be3cb8bc997.d.ts → ru-RU-json-51faee1b80ed8a59b81c.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{si-LK-json-47970cb06908fa0e9ced.d.ts → si-LK-json-ea88723100210c4a4f50.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sk-SK-json-48b1be2121c59ea5fd38.d.ts → sk-SK-json-ead9c71815507529bd9f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sl-SI-json-63fc43634c085a0fbe35.d.ts → sl-SI-json-10c5ba653479b04d3ba8.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sv-SE-json-01836e53c828fe330fe6.d.ts → sv-SE-json-8a96e0b5538383ba0644.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ta-IN-json-4a04f7c408102174d465.d.ts → ta-IN-json-80c52510c4c5fad8cbee.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{tr-TR-json-d40048b0c66b49aff8dc.d.ts → tr-TR-json-5297403ca60a39d7f7a2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{uk-UA-json-003d91ddb276ec4263a2.d.ts → uk-UA-json-402769714cfefd83da2c.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{vi-VN-json-129462f3eccec64d872f.d.ts → vi-VN-json-91051a67195b4c7f2dc2.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-CN-json-64bd4e2cbddc6f712c05.d.ts → zh-CN-json-4762509f4cfefbc0e504.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-HK-json-c195a7863b24bd91c144.d.ts → zh-HK-json-9e65481cf4e01edf7ee9.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-TW-json-26929e082f30eb69de76.d.ts → zh-TW-json-077dac2df525c01b947c.d.ts} +0 -0
|
@@ -20,7 +20,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
20
20
|
export declare const actionChangeFillStyle: {
|
|
21
21
|
name: "changeFillStyle";
|
|
22
22
|
trackEvent: false;
|
|
23
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
23
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../../src/types").AppClassProperties) => {
|
|
24
24
|
elements: ExcalidrawElement[];
|
|
25
25
|
appState: {
|
|
26
26
|
currentItemFillStyle: any;
|
|
@@ -31,7 +31,7 @@ export declare const actionChangeFillStyle: {
|
|
|
31
31
|
} | null;
|
|
32
32
|
showWelcomeScreen: boolean;
|
|
33
33
|
isLoading: boolean;
|
|
34
|
-
errorMessage:
|
|
34
|
+
errorMessage: import("react").ReactNode;
|
|
35
35
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
36
36
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
37
37
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -145,7 +145,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
145
145
|
} | null;
|
|
146
146
|
showWelcomeScreen: boolean;
|
|
147
147
|
isLoading: boolean;
|
|
148
|
-
errorMessage:
|
|
148
|
+
errorMessage: import("react").ReactNode;
|
|
149
149
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
150
150
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
151
151
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -259,7 +259,7 @@ export declare const actionChangeSloppiness: {
|
|
|
259
259
|
} | null;
|
|
260
260
|
showWelcomeScreen: boolean;
|
|
261
261
|
isLoading: boolean;
|
|
262
|
-
errorMessage:
|
|
262
|
+
errorMessage: import("react").ReactNode;
|
|
263
263
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
264
264
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
265
265
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -373,7 +373,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
373
373
|
} | null;
|
|
374
374
|
showWelcomeScreen: boolean;
|
|
375
375
|
isLoading: boolean;
|
|
376
|
-
errorMessage:
|
|
376
|
+
errorMessage: import("react").ReactNode;
|
|
377
377
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
378
378
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
379
379
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -487,7 +487,7 @@ export declare const actionChangeOpacity: {
|
|
|
487
487
|
} | null;
|
|
488
488
|
showWelcomeScreen: boolean;
|
|
489
489
|
isLoading: boolean;
|
|
490
|
-
errorMessage:
|
|
490
|
+
errorMessage: import("react").ReactNode;
|
|
491
491
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
492
492
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
493
493
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -601,7 +601,7 @@ export declare const actionChangeFontSize: {
|
|
|
601
601
|
} | null;
|
|
602
602
|
showWelcomeScreen: boolean;
|
|
603
603
|
isLoading: boolean;
|
|
604
|
-
errorMessage:
|
|
604
|
+
errorMessage: import("react").ReactNode;
|
|
605
605
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
606
606
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
607
607
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -715,7 +715,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
715
715
|
} | null;
|
|
716
716
|
showWelcomeScreen: boolean;
|
|
717
717
|
isLoading: boolean;
|
|
718
|
-
errorMessage:
|
|
718
|
+
errorMessage: import("react").ReactNode;
|
|
719
719
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
720
720
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
721
721
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -829,7 +829,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
829
829
|
} | null;
|
|
830
830
|
showWelcomeScreen: boolean;
|
|
831
831
|
isLoading: boolean;
|
|
832
|
-
errorMessage:
|
|
832
|
+
errorMessage: import("react").ReactNode;
|
|
833
833
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
834
834
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
835
835
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -943,7 +943,7 @@ export declare const actionChangeFontFamily: {
|
|
|
943
943
|
} | null;
|
|
944
944
|
showWelcomeScreen: boolean;
|
|
945
945
|
isLoading: boolean;
|
|
946
|
-
errorMessage:
|
|
946
|
+
errorMessage: import("react").ReactNode;
|
|
947
947
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
948
948
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
949
949
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -1057,7 +1057,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1057
1057
|
} | null;
|
|
1058
1058
|
showWelcomeScreen: boolean;
|
|
1059
1059
|
isLoading: boolean;
|
|
1060
|
-
errorMessage:
|
|
1060
|
+
errorMessage: import("react").ReactNode;
|
|
1061
1061
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1062
1062
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1063
1063
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -1172,7 +1172,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1172
1172
|
} | null;
|
|
1173
1173
|
showWelcomeScreen: boolean;
|
|
1174
1174
|
isLoading: boolean;
|
|
1175
|
-
errorMessage:
|
|
1175
|
+
errorMessage: import("react").ReactNode;
|
|
1176
1176
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1177
1177
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1178
1178
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -1287,7 +1287,7 @@ export declare const actionChangeRoundness: {
|
|
|
1287
1287
|
} | null;
|
|
1288
1288
|
showWelcomeScreen: boolean;
|
|
1289
1289
|
isLoading: boolean;
|
|
1290
|
-
errorMessage:
|
|
1290
|
+
errorMessage: import("react").ReactNode;
|
|
1291
1291
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1292
1292
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1293
1293
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -1403,7 +1403,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1403
1403
|
} | null;
|
|
1404
1404
|
showWelcomeScreen: boolean;
|
|
1405
1405
|
isLoading: boolean;
|
|
1406
|
-
errorMessage:
|
|
1406
|
+
errorMessage: import("react").ReactNode;
|
|
1407
1407
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1408
1408
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1409
1409
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -17,7 +17,7 @@ export declare const actionCopyStyles: {
|
|
|
17
17
|
} | null;
|
|
18
18
|
showWelcomeScreen: boolean;
|
|
19
19
|
isLoading: boolean;
|
|
20
|
-
errorMessage:
|
|
20
|
+
errorMessage: import("react").ReactNode;
|
|
21
21
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
22
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
23
23
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -17,7 +17,7 @@ export declare const actionToggleGridMode: {
|
|
|
17
17
|
} | null;
|
|
18
18
|
showWelcomeScreen: boolean;
|
|
19
19
|
isLoading: boolean;
|
|
20
|
-
errorMessage:
|
|
20
|
+
errorMessage: import("react").ReactNode;
|
|
21
21
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
22
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
23
23
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -16,7 +16,7 @@ export declare const actionToggleLock: {
|
|
|
16
16
|
} | null;
|
|
17
17
|
showWelcomeScreen: boolean;
|
|
18
18
|
isLoading: boolean;
|
|
19
|
-
errorMessage:
|
|
19
|
+
errorMessage: import("react").ReactNode;
|
|
20
20
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
21
21
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
22
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -15,7 +15,7 @@ export declare const actionToggleStats: {
|
|
|
15
15
|
} | null;
|
|
16
16
|
showWelcomeScreen: boolean;
|
|
17
17
|
isLoading: boolean;
|
|
18
|
-
errorMessage:
|
|
18
|
+
errorMessage: import("react").ReactNode;
|
|
19
19
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
20
20
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
21
21
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -16,7 +16,7 @@ export declare const actionToggleViewMode: {
|
|
|
16
16
|
} | null;
|
|
17
17
|
showWelcomeScreen: boolean;
|
|
18
18
|
isLoading: boolean;
|
|
19
|
-
errorMessage:
|
|
19
|
+
errorMessage: import("react").ReactNode;
|
|
20
20
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
21
21
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
22
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -16,7 +16,7 @@ export declare const actionToggleZenMode: {
|
|
|
16
16
|
} | null;
|
|
17
17
|
showWelcomeScreen: boolean;
|
|
18
18
|
isLoading: boolean;
|
|
19
|
-
errorMessage:
|
|
19
|
+
errorMessage: import("react").ReactNode;
|
|
20
20
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
21
21
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
22
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SubtypeOf } from "../utility-types";
|
|
1
2
|
import { ActionName } from "./types";
|
|
2
3
|
export declare 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" | "toggleLock"> | "saveScene" | "imageExport";
|
|
3
4
|
export declare const getShortcutFromShortcutName: (name: ShortcutName) => string;
|
package/types/actions/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ExcalidrawElement } from "../element/types";
|
|
3
3
|
import { AppClassProperties, AppState, ExcalidrawProps, BinaryFiles } from "../types";
|
|
4
|
+
import { MarkOptional } from "../utility-types";
|
|
4
5
|
export declare type ActionSource = "ui" | "keyboard" | "contextMenu" | "api";
|
|
5
6
|
/** if false, the action should be prevented */
|
|
6
7
|
export declare type ActionResult = {
|
|
@@ -14,7 +15,7 @@ export declare type ActionResult = {
|
|
|
14
15
|
declare type ActionFn = (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
|
|
15
16
|
export declare type UpdaterFn = (res: ActionResult) => void;
|
|
16
17
|
export declare type ActionFilterFn = (action: Action) => void;
|
|
17
|
-
export declare 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" | "toggleLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool";
|
|
18
|
+
export declare 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" | "toggleLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "createContainerFromText";
|
|
18
19
|
export declare type PanelComponentProps = {
|
|
19
20
|
elements: readonly ExcalidrawElement[];
|
|
20
21
|
appState: AppState;
|
|
@@ -93,7 +93,18 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
93
93
|
toggleLock: (source?: "keyboard" | "ui") => void;
|
|
94
94
|
togglePenMode: () => void;
|
|
95
95
|
onHandToolToggle: () => void;
|
|
96
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Zooms on canvas viewport center
|
|
98
|
+
*/
|
|
99
|
+
zoomCanvas: (value: number) => void;
|
|
100
|
+
private cancelInProgresAnimation;
|
|
101
|
+
scrollToContent: (target?: ExcalidrawElement | readonly ExcalidrawElement[], opts?: {
|
|
102
|
+
fitToContent?: boolean;
|
|
103
|
+
animate?: boolean;
|
|
104
|
+
duration?: number;
|
|
105
|
+
}) => void;
|
|
106
|
+
/** use when changing scrollX/scrollY/zoom based on user interaction */
|
|
107
|
+
private translateCanvas;
|
|
97
108
|
setToast: (toast: {
|
|
98
109
|
message: string;
|
|
99
110
|
closable?: boolean;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
export declare const ButtonIconSelect: <T extends Object>(
|
|
1
|
+
export declare const ButtonIconSelect: <T extends Object>(props: {
|
|
2
2
|
options: {
|
|
3
3
|
value: T;
|
|
4
4
|
text: string;
|
|
5
5
|
icon: JSX.Element;
|
|
6
6
|
testId?: string | undefined;
|
|
7
|
+
/** if not supplied, defaults to value identity check */
|
|
8
|
+
active?: boolean | undefined;
|
|
7
9
|
}[];
|
|
8
10
|
value: T | null;
|
|
9
|
-
|
|
11
|
+
type?: "button" | "radio" | undefined;
|
|
12
|
+
} & ({
|
|
13
|
+
type?: "radio" | undefined;
|
|
10
14
|
group: string;
|
|
11
|
-
|
|
15
|
+
onChange: (value: T) => void;
|
|
16
|
+
} | {
|
|
17
|
+
type: "button";
|
|
18
|
+
onClick: (value: T, event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
19
|
+
})) => JSX.Element;
|
|
@@ -87,6 +87,7 @@ export declare const GroupIcon: React.MemoExoticComponent<({ theme }: {
|
|
|
87
87
|
export declare const UngroupIcon: React.MemoExoticComponent<({ theme }: {
|
|
88
88
|
theme: Theme;
|
|
89
89
|
}) => JSX.Element>;
|
|
90
|
+
export declare const FillZigZagIcon: JSX.Element;
|
|
90
91
|
export declare const FillHachureIcon: JSX.Element;
|
|
91
92
|
export declare const FillCrossHatchIcon: JSX.Element;
|
|
92
93
|
export declare const FillSolidIcon: JSX.Element;
|
package/types/constants.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export declare const isDarwin: boolean;
|
|
|
4
4
|
export declare const isWindows: boolean;
|
|
5
5
|
export declare const isAndroid: boolean;
|
|
6
6
|
export declare const isFirefox: boolean;
|
|
7
|
+
export declare const isChrome: boolean;
|
|
8
|
+
export declare const isSafari: boolean;
|
|
9
|
+
export declare const isBrave: () => boolean;
|
|
7
10
|
export declare const APP_NAME = "Excalidraw";
|
|
8
11
|
export declare const DRAGGING_THRESHOLD = 10;
|
|
9
12
|
export declare const LINE_CONFIRM_THRESHOLD = 8;
|
package/types/data/blob.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ALLOWED_IMAGE_MIME_TYPES, MIME_TYPES } from "../constants";
|
|
2
2
|
import { ExcalidrawElement, FileId } from "../element/types";
|
|
3
3
|
import { AppState, DataURL, LibraryItem } from "../types";
|
|
4
|
+
import { ValueOf } from "../utility-types";
|
|
4
5
|
import { FileSystemHandle } from "./filesystem";
|
|
5
6
|
import { ImportedLibraryData } from "./types";
|
|
6
7
|
export declare const getMimeType: (blob: Blob | string) => string;
|
package/types/data/restore.d.ts
CHANGED
|
@@ -8,8 +8,14 @@ export declare type RestoredDataState = {
|
|
|
8
8
|
appState: RestoredAppState;
|
|
9
9
|
files: BinaryFiles;
|
|
10
10
|
};
|
|
11
|
-
export declare const restoreElements: (elements: ImportedDataState["elements"], localElements: readonly ExcalidrawElement[] | null | undefined,
|
|
11
|
+
export declare const restoreElements: (elements: ImportedDataState["elements"], localElements: readonly ExcalidrawElement[] | null | undefined, opts?: {
|
|
12
|
+
refreshDimensions?: boolean;
|
|
13
|
+
repairBindings?: boolean;
|
|
14
|
+
} | undefined) => ExcalidrawElement[];
|
|
12
15
|
export declare const restoreAppState: (appState: ImportedDataState["appState"], localAppState: Partial<AppState> | null | undefined) => RestoredAppState;
|
|
13
|
-
export declare const restore: (data: Pick<ImportedDataState, "appState" | "elements" | "files"> | null, localAppState: Partial<AppState> | null | undefined, localElements: readonly ExcalidrawElement[] | null | undefined
|
|
16
|
+
export declare const restore: (data: Pick<ImportedDataState, "appState" | "elements" | "files"> | null, localAppState: Partial<AppState> | null | undefined, localElements: readonly ExcalidrawElement[] | null | undefined, elementsConfig?: {
|
|
17
|
+
refreshDimensions?: boolean;
|
|
18
|
+
repairBindings?: boolean;
|
|
19
|
+
}) => RestoredDataState;
|
|
14
20
|
export declare const restoreLibraryItems: (libraryItems: ImportedDataState["libraryItems"], defaultStatus: LibraryItem["status"]) => LibraryItem[];
|
|
15
21
|
export {};
|
|
@@ -25,7 +25,7 @@ export declare const actionLink: {
|
|
|
25
25
|
} | null;
|
|
26
26
|
showWelcomeScreen: boolean;
|
|
27
27
|
isLoading: boolean;
|
|
28
|
-
errorMessage:
|
|
28
|
+
errorMessage: import("react").ReactNode;
|
|
29
29
|
draggingElement: NonDeletedExcalidrawElement | null;
|
|
30
30
|
resizingElement: NonDeletedExcalidrawElement | null;
|
|
31
31
|
multiElement: import("./types").NonDeleted<import("./types").ExcalidrawLinearElement> | null;
|
|
@@ -130,7 +130,7 @@ export declare class LinearElementEditor {
|
|
|
130
130
|
} | null;
|
|
131
131
|
showWelcomeScreen: boolean;
|
|
132
132
|
isLoading: boolean;
|
|
133
|
-
errorMessage:
|
|
133
|
+
errorMessage: import("react").ReactNode;
|
|
134
134
|
draggingElement: import("./types").NonDeletedExcalidrawElement | null;
|
|
135
135
|
resizingElement: import("./types").NonDeletedExcalidrawElement | null;
|
|
136
136
|
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "./types";
|
|
2
|
+
import { Mutable } from "../utility-types";
|
|
2
3
|
declare type ElementUpdate<TElement extends ExcalidrawElement> = Omit<Partial<TElement>, "id" | "version" | "versionNonce">;
|
|
3
4
|
export declare const mutateElement: <TElement extends Mutable<ExcalidrawElement>>(element: TElement, updates: ElementUpdate<TElement>, informMutation?: boolean) => TElement;
|
|
4
5
|
export declare const newElementWith: <TElement extends ExcalidrawElement>(element: TElement, updates: ElementUpdate<TElement>) => TElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
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
|
+
import { MarkOptional, Mutable } from "../utility-types";
|
|
3
4
|
declare type ElementConstructorOpts = MarkOptional<Omit<ExcalidrawGenericElement, "id" | "type" | "isDeleted" | "updated">, "width" | "height" | "angle" | "groupIds" | "boundElements" | "seed" | "version" | "versionNonce" | "link">;
|
|
4
5
|
export declare const newElement: (opts: {
|
|
5
6
|
type: ExcalidrawGenericElement["type"];
|
|
@@ -11,6 +12,7 @@ export declare const newTextElement: (opts: {
|
|
|
11
12
|
textAlign: TextAlign;
|
|
12
13
|
verticalAlign: VerticalAlign;
|
|
13
14
|
containerId?: ExcalidrawTextContainer["id"];
|
|
15
|
+
lineHeight?: ExcalidrawTextElement["lineHeight"];
|
|
14
16
|
} & ElementConstructorOpts) => NonDeleted<ExcalidrawTextElement>;
|
|
15
17
|
export declare const refreshTextDimensions: (textElement: ExcalidrawTextElement, text?: string) => {
|
|
16
18
|
x: number;
|
|
@@ -19,9 +21,7 @@ export declare const refreshTextDimensions: (textElement: ExcalidrawTextElement,
|
|
|
19
21
|
height: number;
|
|
20
22
|
baseline: number;
|
|
21
23
|
text: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const getMaxContainerWidth: (container: ExcalidrawElement) => number;
|
|
24
|
-
export declare const getMaxContainerHeight: (container: ExcalidrawElement) => number;
|
|
24
|
+
} | undefined;
|
|
25
25
|
export declare const updateTextElement: (textElement: ExcalidrawTextElement, { text, isDeleted, originalText, }: {
|
|
26
26
|
text: string;
|
|
27
27
|
isDeleted?: boolean | undefined;
|
|
@@ -1,30 +1,43 @@
|
|
|
1
|
-
import { ExcalidrawElement, ExcalidrawTextContainer, ExcalidrawTextElement, ExcalidrawTextElementWithContainer, FontString, NonDeletedExcalidrawElement } from "./types";
|
|
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 } from "../utility-types";
|
|
4
5
|
export declare const normalizeText: (text: string) => string;
|
|
6
|
+
export declare const splitIntoLines: (text: string) => string[];
|
|
5
7
|
export declare const redrawTextBoundingBox: (textElement: ExcalidrawTextElement, container: ExcalidrawElement | null) => void;
|
|
6
8
|
export declare const bindTextToShapeAfterDuplication: (sceneElements: ExcalidrawElement[], oldElements: ExcalidrawElement[], oldIdToDuplicatedId: Map<ExcalidrawElement["id"], ExcalidrawElement["id"]>) => void;
|
|
7
9
|
export declare const handleBindTextResize: (container: NonDeletedExcalidrawElement, transformHandleType: MaybeTransformHandleType) => void;
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} | {
|
|
10
|
+
export declare const computeBoundTextPosition: (container: ExcalidrawElement, boundTextElement: ExcalidrawTextElementWithContainer) => {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const measureText: (text: string, font: FontString, lineHeight: ExcalidrawTextElement["lineHeight"]) => {
|
|
14
15
|
width: number;
|
|
15
16
|
height: number;
|
|
16
17
|
baseline: number;
|
|
17
|
-
container?: undefined;
|
|
18
18
|
};
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const measureBaseline: (text: string, font: FontString, lineHeight: ExcalidrawTextElement["lineHeight"], wrapInContainer?: boolean) => number;
|
|
20
|
+
/**
|
|
21
|
+
* To get unitless line-height (if unknown) we can calculate it by dividing
|
|
22
|
+
* height-per-line by fontSize.
|
|
23
|
+
*/
|
|
24
|
+
export declare const detectLineHeight: (textElement: ExcalidrawTextElement) => number & {
|
|
25
|
+
_brand: "unitlessLineHeight";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* We calculate the line height from the font size and the unitless line height,
|
|
29
|
+
* aligning with the W3C spec.
|
|
30
|
+
*/
|
|
31
|
+
export declare const getLineHeightInPx: (fontSize: ExcalidrawTextElement["fontSize"], lineHeight: ExcalidrawTextElement["lineHeight"]) => number;
|
|
32
|
+
export declare const getApproxMinLineHeight: (fontSize: ExcalidrawTextElement["fontSize"], lineHeight: ExcalidrawTextElement["lineHeight"]) => number;
|
|
20
33
|
export declare const getTextWidth: (text: string, font: FontString) => number;
|
|
34
|
+
export declare const getTextHeight: (text: string, fontSize: number, lineHeight: ExcalidrawTextElement["lineHeight"]) => number;
|
|
21
35
|
export declare const wrapText: (text: string, font: FontString, maxWidth: number) => string;
|
|
22
36
|
export declare const charWidth: {
|
|
23
37
|
calculate: (char: string, font: FontString) => number;
|
|
24
38
|
getCache: (font: FontString) => number[];
|
|
25
39
|
};
|
|
26
|
-
export declare const getApproxMinLineWidth: (font: FontString) => number;
|
|
27
|
-
export declare const getApproxMinLineHeight: (font: FontString) => number;
|
|
40
|
+
export declare const getApproxMinLineWidth: (font: FontString, lineHeight: ExcalidrawTextElement["lineHeight"]) => number;
|
|
28
41
|
export declare const getMinCharWidth: (font: FontString) => number;
|
|
29
42
|
export declare const getMaxCharWidth: (font: FontString) => number;
|
|
30
43
|
export declare const getApproxCharsToFitInWidth: (font: FontString, width: number) => number;
|
|
@@ -41,6 +54,10 @@ export declare const getContainerCenter: (container: ExcalidrawElement, appState
|
|
|
41
54
|
x: number;
|
|
42
55
|
y: number;
|
|
43
56
|
};
|
|
57
|
+
export declare const getContainerCoords: (container: NonDeletedExcalidrawElement) => {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
};
|
|
44
61
|
export declare const getTextElementAngle: (textElement: ExcalidrawTextElement) => number;
|
|
45
62
|
export declare const getBoundTextElementOffset: (boundTextElement: ExcalidrawTextElement | null) => number;
|
|
46
63
|
export declare const getBoundTextElementPosition: (container: ExcalidrawElement, boundTextElement: ExcalidrawTextElementWithContainer) => {
|
|
@@ -48,5 +65,15 @@ export declare const getBoundTextElementPosition: (container: ExcalidrawElement,
|
|
|
48
65
|
y: number;
|
|
49
66
|
} | undefined;
|
|
50
67
|
export declare const shouldAllowVerticalAlign: (selectedElements: NonDeletedExcalidrawElement[]) => boolean;
|
|
68
|
+
export declare const suppportsHorizontalAlign: (selectedElements: NonDeletedExcalidrawElement[]) => boolean;
|
|
51
69
|
export declare const getTextBindableContainerAtPosition: (elements: readonly ExcalidrawElement[], appState: AppState, x: number, y: number) => ExcalidrawTextContainer | null;
|
|
70
|
+
declare const VALID_CONTAINER_TYPES: Set<string>;
|
|
52
71
|
export declare const isValidTextContainer: (element: ExcalidrawElement) => boolean;
|
|
72
|
+
export declare const computeContainerDimensionForBoundText: (dimension: number, containerType: ExtractSetType<typeof VALID_CONTAINER_TYPES>) => number;
|
|
73
|
+
export declare const getMaxContainerWidth: (container: ExcalidrawElement) => number;
|
|
74
|
+
export declare const getMaxContainerHeight: (container: ExcalidrawElement) => number;
|
|
75
|
+
export declare const isMeasureTextSupported: () => boolean;
|
|
76
|
+
export declare const getDefaultLineHeight: (fontFamily: FontFamilyValues) => number & {
|
|
77
|
+
_brand: "unitlessLineHeight";
|
|
78
|
+
};
|
|
79
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AppState } from "../types";
|
|
2
|
+
import { MarkNonNullable } from "../utility-types";
|
|
2
3
|
import { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawGenericElement, ExcalidrawFreeDrawElement, InitializedExcalidrawImageElement, ExcalidrawImageElement, ExcalidrawTextElementWithContainer, ExcalidrawTextContainer, RoundnessType } from "./types";
|
|
3
4
|
export declare const isGenericElement: (element: ExcalidrawElement | null) => element is ExcalidrawGenericElement;
|
|
4
5
|
export declare const isInitializedImageElement: (element: ExcalidrawElement | null) => element is InitializedExcalidrawImageElement;
|
|
@@ -14,7 +15,7 @@ export declare const isBindingElementType: (elementType: AppState["activeTool"][
|
|
|
14
15
|
export declare const isBindableElement: (element: ExcalidrawElement | null, includeLocked?: boolean) => element is ExcalidrawBindableElement;
|
|
15
16
|
export declare const isTextBindableContainer: (element: ExcalidrawElement | null, includeLocked?: boolean) => element is ExcalidrawTextContainer;
|
|
16
17
|
export declare const isExcalidrawElement: (element: any) => boolean;
|
|
17
|
-
export declare const hasBoundTextElement: (element: ExcalidrawElement | null) => element is ExcalidrawBindableElement
|
|
18
|
+
export declare const hasBoundTextElement: (element: ExcalidrawElement | null) => element is MarkNonNullable<ExcalidrawBindableElement, "boundElements">;
|
|
18
19
|
export declare const isBoundToContainer: (element: ExcalidrawElement | null) => element is ExcalidrawTextElementWithContainer;
|
|
19
20
|
export declare const isUsingAdaptiveRadius: (type: string) => boolean;
|
|
20
21
|
export declare const isUsingProportionalRadius: (type: string) => boolean;
|
package/types/element/types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Point } from "../types";
|
|
2
2
|
import { FONT_FAMILY, ROUNDNESS, TEXT_ALIGN, THEME, VERTICAL_ALIGN } from "../constants";
|
|
3
|
+
import { MarkNonNullable, ValueOf } from "../utility-types";
|
|
3
4
|
export declare type ChartType = "bar" | "line";
|
|
4
|
-
export declare type FillStyle = "hachure" | "cross-hatch" | "solid";
|
|
5
|
+
export declare type FillStyle = "hachure" | "cross-hatch" | "solid" | "zigzag";
|
|
5
6
|
export declare type FontFamilyKeys = keyof typeof FONT_FAMILY;
|
|
6
7
|
export declare type FontFamilyValues = typeof FONT_FAMILY[FontFamilyKeys];
|
|
7
8
|
export declare type Theme = typeof THEME[keyof typeof THEME];
|
|
@@ -104,6 +105,13 @@ export declare type ExcalidrawTextElement = _ExcalidrawElementBase & Readonly<{
|
|
|
104
105
|
verticalAlign: VerticalAlign;
|
|
105
106
|
containerId: ExcalidrawGenericElement["id"] | null;
|
|
106
107
|
originalText: string;
|
|
108
|
+
/**
|
|
109
|
+
* Unitless line height (aligned to W3C). To get line height in px, multiply
|
|
110
|
+
* with font size (using `getLineHeightInPx` helper).
|
|
111
|
+
*/
|
|
112
|
+
lineHeight: number & {
|
|
113
|
+
_brand: "unitlessLineHeight";
|
|
114
|
+
};
|
|
107
115
|
}>;
|
|
108
116
|
export declare type ExcalidrawBindableElement = ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawEllipseElement | ExcalidrawTextElement | ExcalidrawImageElement;
|
|
109
117
|
export declare type ExcalidrawTextContainer = ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawEllipseElement | ExcalidrawImageElement | ExcalidrawArrowElement;
|
package/types/i18n.d.ts
CHANGED
|
@@ -13,3 +13,9 @@ export declare const getLanguage: () => Language;
|
|
|
13
13
|
export declare const t: (path: string, replacement?: {
|
|
14
14
|
[key: string]: string | number;
|
|
15
15
|
} | undefined) => string;
|
|
16
|
+
export declare const useI18n: () => {
|
|
17
|
+
t: (path: string, replacement?: {
|
|
18
|
+
[key: string]: string | number;
|
|
19
|
+
} | undefined) => string;
|
|
20
|
+
langCode: string;
|
|
21
|
+
};
|
package/types/jotai.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PrimitiveAtom } from "jotai";
|
|
2
2
|
export declare const jotaiScope: unique symbol;
|
|
3
3
|
export declare const jotaiStore: {
|
|
4
4
|
get: <Value>(atom: import("jotai").Atom<Value>) => (Value 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) | undefined;
|
|
5
5
|
asyncGet: <Value_1>(atom: import("jotai").Atom<Value_1>) => Promise<Value_1 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_1>;
|
|
6
|
-
set: <Value_2, Update, Result extends void | Promise<void>>(atom: WritableAtom<Value_2, Update, Result>, update: Update) => Result;
|
|
6
|
+
set: <Value_2, Update, Result extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_2, Update, Result>, update: Update) => Result;
|
|
7
7
|
sub: (atom: {
|
|
8
8
|
toString: () => string;
|
|
9
9
|
debugLabel?: string | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const jotaiStore: {
|
|
|
15
15
|
}, callback: () => void) => () => void;
|
|
16
16
|
SECRET_INTERNAL_store: {
|
|
17
17
|
r: <Value_6>(readingAtom: import("jotai").Atom<Value_6>, version?: import("jotai/core/store").VersionObject | undefined) => import("jotai/core/store").AtomState<Value_6>;
|
|
18
|
-
w: <Value_1_1, Update_1, Result_1 extends void | Promise<void>>(writingAtom: WritableAtom<Value_1_1, Update_1, Result_1>, update: Update_1, version?: import("jotai/core/store").VersionObject | undefined) => Result_1;
|
|
18
|
+
w: <Value_1_1, Update_1, Result_1 extends void | Promise<void>>(writingAtom: import("jotai").WritableAtom<Value_1_1, Update_1, Result_1>, update: Update_1, version?: import("jotai/core/store").VersionObject | undefined) => Result_1;
|
|
19
19
|
c: (_atom: {
|
|
20
20
|
toString: () => string;
|
|
21
21
|
debugLabel?: string | undefined;
|
|
@@ -85,7 +85,7 @@ export declare const jotaiStore: {
|
|
|
85
85
|
} | undefined;
|
|
86
86
|
} | {
|
|
87
87
|
r: <Value_7>(readingAtom: import("jotai").Atom<Value_7>, version?: import("jotai/core/store").VersionObject | undefined) => import("jotai/core/store").AtomState<Value_7>;
|
|
88
|
-
w: <Value_1_2, Update_2, Result_2 extends void | Promise<void>>(writingAtom: WritableAtom<Value_1_2, Update_2, Result_2>, update: Update_2, version?: import("jotai/core/store").VersionObject | undefined) => Result_2;
|
|
88
|
+
w: <Value_1_2, Update_2, Result_2 extends void | Promise<void>>(writingAtom: import("jotai").WritableAtom<Value_1_2, Update_2, Result_2>, update: Update_2, version?: import("jotai/core/store").VersionObject | undefined) => Result_2;
|
|
89
89
|
c: (_atom: {
|
|
90
90
|
toString: () => string;
|
|
91
91
|
debugLabel?: string | undefined;
|
|
@@ -119,4 +119,4 @@ export declare const jotaiStore: {
|
|
|
119
119
|
m?: undefined;
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
export declare const useAtomWithInitialValue: <T extends unknown, A extends
|
|
122
|
+
export declare const useAtomWithInitialValue: <T extends unknown, A extends PrimitiveAtom<T>>(atom: A, initialValue: T | (() => T)) => readonly [T 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 : T, import("jotai/core/atom").SetAtom<T | ((prev: T) => T), void>];
|
|
@@ -9,7 +9,7 @@ import LiveCollaborationTrigger from "../../components/live-collaboration/LiveCo
|
|
|
9
9
|
declare type PublicExcalidrawProps = Omit<ExcalidrawProps, "forwardedRef">;
|
|
10
10
|
export declare const Excalidraw: React.MemoExoticComponent<React.ForwardRefExoticComponent<PublicExcalidrawProps & React.RefAttributes<ExcalidrawAPIRefValue>>>;
|
|
11
11
|
export { getSceneVersion, isInvisiblySmallElement, getNonDeletedElements, } from "../../element";
|
|
12
|
-
export { defaultLang, languages } from "../../i18n";
|
|
12
|
+
export { defaultLang, useI18n, languages } from "../../i18n";
|
|
13
13
|
export { restore, restoreAppState, restoreElements, restoreLibraryItems, } from "../../data/restore";
|
|
14
14
|
export { exportToCanvas, exportToBlob, exportToSvg, serializeAsJSON, serializeLibraryAsJSON, loadLibraryFromBlob, loadFromBlob, loadSceneOrLibraryFromBlob, getFreeDrawSvgPath, exportToClipboard, mergeLibraryItems, } from "../../packages/utils";
|
|
15
15
|
export { isLinearElement } from "../../element/typeChecks";
|
|
@@ -3,12 +3,12 @@ import { RoughCanvas } from "roughjs/bin/canvas";
|
|
|
3
3
|
import { Drawable, Options } from "roughjs/bin/core";
|
|
4
4
|
import { RoughSVG } from "roughjs/bin/svg";
|
|
5
5
|
import { RenderConfig } from "../scene/types";
|
|
6
|
-
import { AppState, BinaryFiles
|
|
6
|
+
import { AppState, BinaryFiles } from "../types";
|
|
7
7
|
export interface ExcalidrawElementWithCanvas {
|
|
8
8
|
element: ExcalidrawElement | ExcalidrawTextElement;
|
|
9
9
|
canvas: HTMLCanvasElement;
|
|
10
10
|
theme: RenderConfig["theme"];
|
|
11
|
-
|
|
11
|
+
scale: number;
|
|
12
12
|
canvasOffsetX: number;
|
|
13
13
|
canvasOffsetY: number;
|
|
14
14
|
boundTextElementVersion: number | null;
|
package/types/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, FileId, ExcalidrawImageElement, Theme, StrokeRoundness } from "./element/types";
|
|
3
2
|
import { SHAPES } from "./shapes";
|
|
4
3
|
import { Point as RoughPoint } from "roughjs/bin/geometry";
|
|
@@ -16,6 +15,8 @@ import Library from "./data/library";
|
|
|
16
15
|
import type { FileSystemHandle } from "./data/filesystem";
|
|
17
16
|
import type { ALLOWED_IMAGE_MIME_TYPES, MIME_TYPES } from "./constants";
|
|
18
17
|
import { ContextMenuItems } from "./components/ContextMenu";
|
|
18
|
+
import { Merge, ForwardRef } from "./utility-types";
|
|
19
|
+
import React from "react";
|
|
19
20
|
export declare type Point = Readonly<RoughPoint>;
|
|
20
21
|
export declare type Collaborator = {
|
|
21
22
|
pointer?: {
|
|
@@ -70,7 +71,7 @@ export declare type AppState = {
|
|
|
70
71
|
} | null;
|
|
71
72
|
showWelcomeScreen: boolean;
|
|
72
73
|
isLoading: boolean;
|
|
73
|
-
errorMessage:
|
|
74
|
+
errorMessage: React.ReactNode;
|
|
74
75
|
draggingElement: NonDeletedExcalidrawElement | null;
|
|
75
76
|
resizingElement: NonDeletedExcalidrawElement | null;
|
|
76
77
|
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|