@myoc/excalidraw 0.19.519 → 0.19.521

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.
Files changed (89) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/dist/dev/{chunk-ZGRXNVW4.js → chunk-IU2VFRFU.js} +4 -1
  3. package/dist/dev/chunk-IU2VFRFU.js.map +7 -0
  4. package/dist/dev/{chunk-RIK6B6HD.js → chunk-MN6E45MP.js} +62 -26
  5. package/dist/dev/chunk-MN6E45MP.js.map +7 -0
  6. package/dist/dev/{chunk-MCPNWEHU.js → chunk-P7I4FGOG.js} +2 -2
  7. package/dist/dev/data/{image-IRC25PM5.js → image-ZYGVHYLC.js} +3 -3
  8. package/dist/dev/index.css +12 -0
  9. package/dist/dev/index.css.map +2 -2
  10. package/dist/dev/index.js +1454 -452
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-RQFAMS2U.js → en-25BPHB4T.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/{chunk-VHQT4IVX.js → chunk-3UXKIWVY.js} +2 -2
  16. package/dist/prod/chunk-BNYGVLQX.js +4 -0
  17. package/dist/prod/{chunk-QW7MIEK6.js → chunk-ZYOK2JIN.js} +1 -1
  18. package/dist/prod/data/image-OFIWDJ6Z.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +20 -20
  21. package/dist/prod/locales/{en-6UCVDQQ7.js → en-AH5BYWXT.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +8 -5
  25. package/dist/types/common/src/utils.d.ts +0 -42
  26. package/dist/types/element/src/comparisons.d.ts +1 -0
  27. package/dist/types/element/src/image.d.ts +5 -0
  28. package/dist/types/element/src/newElement.d.ts +2 -0
  29. package/dist/types/element/src/types.d.ts +8 -0
  30. package/dist/types/excalidraw/actions/actionBoundText.d.ts +4 -2
  31. package/dist/types/excalidraw/actions/actionCanvas.d.ts +22 -11
  32. package/dist/types/excalidraw/actions/actionClipboard.d.ts +4 -2
  33. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +2 -1
  34. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +6 -3
  35. package/dist/types/excalidraw/actions/actionDeselect.d.ts +2 -1
  36. package/dist/types/excalidraw/actions/actionElementLink.d.ts +2 -1
  37. package/dist/types/excalidraw/actions/actionElementLock.d.ts +4 -2
  38. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +2 -1
  39. package/dist/types/excalidraw/actions/actionExport.d.ts +4 -2
  40. package/dist/types/excalidraw/actions/actionFrame.d.ts +10 -4
  41. package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -2
  42. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +4 -1
  43. package/dist/types/excalidraw/actions/actionLink.d.ts +2 -1
  44. package/dist/types/excalidraw/actions/actionMenu.d.ts +2 -1
  45. package/dist/types/excalidraw/actions/actionProperties.d.ts +16 -5
  46. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +2 -1
  47. package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -1
  48. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +2 -1
  49. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +2 -1
  50. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +2 -1
  51. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +2 -1
  52. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -1
  53. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -1
  54. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +2 -1
  55. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -1
  56. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  57. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  58. package/dist/types/excalidraw/appState.d.ts +2 -1
  59. package/dist/types/excalidraw/clipboard.d.ts +34 -0
  60. package/dist/types/excalidraw/components/App.d.ts +12 -28
  61. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  62. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
  63. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  64. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  65. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  66. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  67. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +2 -1
  68. package/dist/types/excalidraw/components/icons.d.ts +2 -0
  69. package/dist/types/excalidraw/data/blob.d.ts +2 -1
  70. package/dist/types/excalidraw/data/json.d.ts +2 -1
  71. package/dist/types/excalidraw/index.d.ts +4 -2
  72. package/dist/types/excalidraw/renderer/animation.d.ts +1 -0
  73. package/dist/types/excalidraw/scene/Renderer.d.ts +2 -0
  74. package/dist/types/excalidraw/scene/index.d.ts +1 -1
  75. package/dist/types/excalidraw/scene/types.d.ts +1 -0
  76. package/dist/types/excalidraw/scroll.d.ts +46 -0
  77. package/dist/types/excalidraw/types.d.ts +18 -3
  78. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  79. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  80. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  81. package/dist/types/laser-pointer/src/state.d.ts +35 -0
  82. package/package.json +4 -4
  83. package/dist/dev/chunk-RIK6B6HD.js.map +0 -7
  84. package/dist/dev/chunk-ZGRXNVW4.js.map +0 -7
  85. package/dist/prod/chunk-FL5QOM6C.js +0 -4
  86. package/dist/prod/data/image-7LG744DI.js +0 -1
  87. /package/dist/dev/{chunk-MCPNWEHU.js.map → chunk-P7I4FGOG.js.map} +0 -0
  88. /package/dist/dev/data/{image-IRC25PM5.js.map → image-ZYGVHYLC.js.map} +0 -0
  89. /package/dist/dev/locales/{en-RQFAMS2U.js.map → en-25BPHB4T.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -4873,4 +4873,110 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
4873
4873
  - Incorrect import for color (was moved to common)
4874
4874
 
4875
4875
  ---
4876
+ ## Excalidraw Library
4877
+
4878
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
4879
+
4880
+ ### Features
4881
+
4882
+ - Add ability to turn off compression for files that are smaller than a given size
4883
+
4884
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
4885
+
4886
+ - Add view mode button
4887
+
4888
+ - Add multiple image copy paste or drag and drop
4889
+
4890
+ - Multiple image additions from clipboard
4891
+
4892
+ - Add arrange elements action
4893
+
4894
+ - Add top picks to appProps for both stoke color and background color
4895
+
4896
+ ### Fixes
4897
+
4898
+ - Issues
4899
+
4900
+ - Make mobile mode more myoc looking
4901
+
4902
+ - Add normalise functionality
4903
+
4904
+ - Update with excalidraw
4905
+
4906
+ - Fix imports
4907
+
4908
+ - Fix mutateGroup to use scene.mutateGroup
4909
+
4910
+ - Imports
4911
+
4912
+ - Ensure that fileId is different for compressed vs uncompressed file
4913
+
4914
+ - Remove not working prop for dontResizeLimitMBs
4915
+
4916
+ - Add smartview for mobile
4917
+
4918
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
4919
+
4920
+ - Use css vars already provided instead of hard coding directly from oc-gray
4921
+
4922
+ - Remove unused variables
4923
+
4924
+ - Pass the new top pick color props properly
4925
+
4926
+ - Incorrect import for color (was moved to common)
4927
+
4928
+ ---
4929
+ ## Excalidraw Library
4930
+
4931
+ **_This section lists the updates made to the excalidraw library and will not affect the integration._**
4932
+
4933
+ ### Features
4934
+
4935
+ - Add ability to turn off compression for files that are smaller than a given size
4936
+
4937
+ - Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
4938
+
4939
+ - Add view mode button
4940
+
4941
+ - Add multiple image copy paste or drag and drop
4942
+
4943
+ - Multiple image additions from clipboard
4944
+
4945
+ - Add arrange elements action
4946
+
4947
+ - Add top picks to appProps for both stoke color and background color
4948
+
4949
+ ### Fixes
4950
+
4951
+ - Issues
4952
+
4953
+ - Make mobile mode more myoc looking
4954
+
4955
+ - Add normalise functionality
4956
+
4957
+ - Update with excalidraw
4958
+
4959
+ - Fix imports
4960
+
4961
+ - Fix mutateGroup to use scene.mutateGroup
4962
+
4963
+ - Imports
4964
+
4965
+ - Ensure that fileId is different for compressed vs uncompressed file
4966
+
4967
+ - Remove not working prop for dontResizeLimitMBs
4968
+
4969
+ - Add smartview for mobile
4970
+
4971
+ - Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
4972
+
4973
+ - Use css vars already provided instead of hard coding directly from oc-gray
4974
+
4975
+ - Remove unused variables
4976
+
4977
+ - Pass the new top pick color props properly
4978
+
4979
+ - Incorrect import for color (was moved to common)
4980
+
4981
+ ---
4876
4982
 
@@ -36,6 +36,9 @@ var labels = {
36
36
  strokeStyle_dashed: "Dashed",
37
37
  strokeStyle_dotted: "Dotted",
38
38
  sloppiness: "Sloppiness",
39
+ pressure: "Pressure",
40
+ pressure_constant: "Constant",
41
+ pressure_variable: "Variable",
39
42
  opacity: "Opacity",
40
43
  textAlign: "Text align",
41
44
  edges: "Edges",
@@ -671,4 +674,4 @@ export {
671
674
  keys,
672
675
  en_default
673
676
  };
674
- //# sourceMappingURL=chunk-ZGRXNVW4.js.map
677
+ //# sourceMappingURL=chunk-IU2VFRFU.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../locales/en.json"],
4
+ "sourcesContent": ["{\n \"labels\": {\n \"paste\": \"Paste\",\n \"pasteAsPlaintext\": \"Paste as plaintext\",\n \"pasteCharts\": \"Paste charts\",\n \"chartType_bar\": \"Bar chart\",\n \"chartType_line\": \"Line chart\",\n \"chartType_radar\": \"Radar chart\",\n \"chartType_plaintext\": \"Plain text\",\n \"selectAll\": \"Select all\",\n \"multiSelect\": \"Add element to selection\",\n \"moveCanvas\": \"Move canvas\",\n \"cut\": \"Cut\",\n \"copy\": \"Copy\",\n \"copyAsPng\": \"Copy to clipboard as PNG\",\n \"copyAsSvg\": \"Copy to clipboard as SVG\",\n \"copyText\": \"Copy to clipboard as text\",\n \"copySource\": \"Copy source to clipboard\",\n \"convertToCode\": \"Convert to code\",\n \"bringForward\": \"Bring forward\",\n \"sendToBack\": \"Send to back\",\n \"bringToFront\": \"Bring to front\",\n \"sendBackward\": \"Send backward\",\n \"delete\": \"Delete\",\n \"copyStyles\": \"Copy styles\",\n \"pasteStyles\": \"Paste styles\",\n \"stroke\": \"Stroke\",\n \"changeStroke\": \"Change stroke color\",\n \"background\": \"Background\",\n \"changeBackground\": \"Change background color\",\n \"fill\": \"Fill\",\n \"smartZoom\": \"Smart Zoom\",\n \"strokeWidth\": \"Stroke width\",\n \"strokeStyle\": \"Stroke style\",\n \"strokeStyle_solid\": \"Solid\",\n \"strokeStyle_dashed\": \"Dashed\",\n \"strokeStyle_dotted\": \"Dotted\",\n \"sloppiness\": \"Sloppiness\",\n \"pressure\": \"Pressure\",\n \"pressure_constant\": \"Constant\",\n \"pressure_variable\": \"Variable\",\n \"opacity\": \"Opacity\",\n \"textAlign\": \"Text align\",\n \"edges\": \"Edges\",\n \"sharp\": \"Sharp\",\n \"round\": \"Round\",\n \"arrowheads\": \"Arrowheads\",\n \"arrowhead_none\": \"None\",\n \"arrowhead_arrow\": \"Arrow\",\n \"arrowhead_bar\": \"Bar\",\n \"arrowhead_circle\": \"Circle\",\n \"arrowhead_circle_outline\": \"Circle (outline)\",\n \"arrowhead_triangle\": \"Triangle\",\n \"arrowhead_triangle_outline\": \"Triangle (outline)\",\n \"arrowhead_diamond\": \"Diamond\",\n \"arrowhead_diamond_outline\": \"Diamond (outline)\",\n \"arrowhead_crowfoot_many\": \"Crow's foot (many)\",\n \"arrowhead_crowfoot_one\": \"Crow's foot (one)\",\n \"arrowhead_crowfoot_one_or_many\": \"Crow's foot (one or many)\",\n \"arrowhead_cardinality_one\": \"Cardinality (one)\",\n \"arrowhead_cardinality_many\": \"Cardinality (many)\",\n \"arrowhead_cardinality_one_or_many\": \"Cardinality (one or many)\",\n \"arrowhead_cardinality_exactly_one\": \"Cardinality (exactly one)\",\n \"arrowhead_cardinality_zero_or_one\": \"Cardinality (zero or one)\",\n \"arrowhead_cardinality_zero_or_many\": \"Cardinality (zero or many)\",\n \"more_options\": \"More options\",\n \"cardinality\": \"Cardinality\",\n \"arrowtypes\": \"Arrow type\",\n \"arrowtype_sharp\": \"Sharp arrow\",\n \"arrowtype_round\": \"Curved arrow\",\n \"arrowtype_elbowed\": \"Elbow arrow\",\n \"fontSize\": \"Font size\",\n \"fontFamily\": \"Font family\",\n \"addWatermark\": \"Add \\\"Made with Excalidraw\\\"\",\n \"handDrawn\": \"Hand-drawn\",\n \"normal\": \"Normal\",\n \"code\": \"Code\",\n \"small\": \"Small\",\n \"medium\": \"Medium\",\n \"large\": \"Large\",\n \"veryLarge\": \"Very large\",\n \"solid\": \"Solid\",\n \"hachure\": \"Hachure\",\n \"zigzag\": \"Zigzag\",\n \"crossHatch\": \"Cross-hatch\",\n \"thin\": \"Thin\",\n \"bold\": \"Bold\",\n \"left\": \"Left\",\n \"center\": \"Center\",\n \"right\": \"Right\",\n \"extraBold\": \"Extra bold\",\n \"architect\": \"Architect\",\n \"artist\": \"Artist\",\n \"cartoonist\": \"Cartoonist\",\n \"fileTitle\": \"File name\",\n \"colorPicker\": \"Color picker\",\n \"canvasColors\": \"Used on canvas\",\n \"canvasBackground\": \"Canvas background\",\n \"drawingCanvas\": \"Drawing canvas\",\n \"clearCanvas\": \"Clear canvas\",\n \"layers\": \"Layers\",\n \"actions\": \"Actions\",\n \"language\": \"Language\",\n \"liveCollaboration\": \"Live collaboration...\",\n \"duplicateSelection\": \"Duplicate\",\n \"untitled\": \"Untitled\",\n \"name\": \"Name\",\n \"yourName\": \"Your name\",\n \"madeWithExcalidraw\": \"Made with Excalidraw\",\n \"group\": \"Group selection\",\n \"ungroup\": \"Ungroup selection\",\n \"collaborators\": \"Collaborators\",\n \"toggleGrid\": \"Toggle grid\",\n \"loadingScene\": \"Loading scene\u2026\",\n \"loadScene\": \"Load scene from file\",\n \"align\": \"Align\",\n \"alignTop\": \"Align top\",\n \"alignBottom\": \"Align bottom\",\n \"alignLeft\": \"Align left\",\n \"alignRight\": \"Align right\",\n \"centerVertically\": \"Center vertically\",\n \"centerHorizontally\": \"Center horizontally\",\n \"distributeHorizontally\": \"Distribute horizontally\",\n \"distributeVertically\": \"Distribute vertically\",\n \"flipHorizontal\": \"Flip horizontal\",\n \"flipVertical\": \"Flip vertical\",\n \"viewMode\": \"View mode\",\n \"share\": \"Share\",\n \"showStroke\": \"Show stroke color picker\",\n \"showBackground\": \"Show background color picker\",\n \"showFonts\": \"Show font picker\",\n \"toggleTheme\": \"Toggle light/dark theme\",\n \"arrangeElements\": \"Arrange elements\",\n \"normaliseElements\": \"Normalize images\",\n \"theme\": \"Theme\",\n \"decreaseFontSize\": \"Decrease font size\",\n \"increaseFontSize\": \"Increase font size\",\n \"unbindText\": \"Unbind text\",\n \"bindText\": \"Bind text to the container\",\n \"createContainerFromText\": \"Wrap text in a container\",\n \"link\": {\n \"edit\": \"Edit link\",\n \"editEmbed\": \"Edit embeddable link\",\n \"create\": \"Add link\",\n \"label\": \"Link\",\n \"labelEmbed\": \"Link & embed\",\n \"empty\": \"No link is set\",\n \"hint\": \"Type or paste your link here\",\n \"goToElement\": \"Go to target element\"\n },\n \"lineEditor\": {\n \"edit\": \"Edit line\",\n \"editArrow\": \"Edit arrow\"\n },\n \"polygon\": {\n \"breakPolygon\": \"Break polygon\",\n \"convertToPolygon\": \"Convert to polygon\"\n },\n \"elementLock\": {\n \"lock\": \"Lock\",\n \"unlock\": \"Unlock\",\n \"lockAll\": \"Lock all\",\n \"unlockAll\": \"Unlock all\"\n },\n \"sidebarLock\": \"Keep sidebar open\",\n \"selectAllElementsInFrame\": \"Select all elements in frame\",\n \"removeAllElementsFromFrame\": \"Remove all elements from frame\",\n \"eyeDropper\": \"Pick color from canvas\",\n \"textToDiagram\": \"Text to diagram\",\n \"prompt\": \"Prompt\",\n \"followUs\": \"Follow us\",\n \"discordChat\": \"Discord chat\",\n \"zoomToFitViewport\": \"Zoom to fit in viewport\",\n \"zoomToFitSelection\": \"Zoom to fit selection\",\n \"zoomToFit\": \"Zoom to fit all elements\",\n \"installPWA\": \"Install Excalidraw locally (PWA)\",\n \"autoResize\": \"Enable text auto-resizing\",\n \"imageCropping\": \"Image cropping\",\n \"unCroppedDimension\": \"Uncropped dimension\",\n \"copyElementLink\": \"Copy link to object\",\n \"linkToElement\": \"Link to object\",\n \"wrapSelectionInFrame\": \"Wrap selection in frame\",\n \"tab\": \"Tab\",\n \"shapeSwitch\": \"Switch shape\",\n \"preferences\": \"Preferences\",\n \"preferences_toolLock\": \"Tool lock\",\n \"boxSelectionMode\": \"Select on\",\n \"boxSelectionContain\": \"Wrap\",\n \"boxSelectionOverlap\": \"Overlap\",\n \"arrowBinding\": \"Arrow binding\",\n \"midpointSnapping\": \"Snap to midpoints\"\n },\n \"elementLink\": {\n \"title\": \"Link to object\",\n \"desc\": \"Click on a shape on canvas or paste a link.\",\n \"notFound\": \"Linked object wasn't found on canvas.\"\n },\n \"search\": {\n \"title\": \"Find on canvas\",\n \"noMatch\": \"No matches found...\",\n \"singleResult\": \"result\",\n \"multipleResults\": \"results\",\n \"placeholder\": \"Find text on canvas...\",\n \"frames\": \"Frames\",\n \"texts\": \"Texts\"\n },\n \"buttons\": {\n \"clearReset\": \"Reset the canvas\",\n \"exportJSON\": \"Export to file\",\n \"exportImage\": \"Export image...\",\n \"export\": \"Save to...\",\n \"copyToClipboard\": \"Copy to clipboard\",\n \"copyLink\": \"Copy link\",\n \"save\": \"Save to current file\",\n \"saveAs\": \"Save as\",\n \"load\": \"Open\",\n \"getShareableLink\": \"Get shareable link\",\n \"close\": \"Close\",\n \"selectLanguage\": \"Select language\",\n \"scrollBackToContent\": \"Scroll back to content\",\n \"zoomIn\": \"Zoom in\",\n \"zoomOut\": \"Zoom out\",\n \"resetZoom\": \"Reset zoom\",\n \"menu\": \"Menu\",\n \"done\": \"Done\",\n \"edit\": \"Edit\",\n \"undo\": \"Undo\",\n \"redo\": \"Redo\",\n \"createNewRoom\": \"Create new room\",\n \"fullScreen\": \"Full screen\",\n \"darkMode\": \"Dark mode\",\n \"lightMode\": \"Light mode\",\n \"systemMode\": \"System mode\",\n \"zenMode\": \"Zen mode\",\n \"objectsSnapMode\": \"Snap to objects\",\n \"exitZenMode\": \"Exit zen mode\",\n \"cancel\": \"Cancel\",\n \"clear\": \"Clear\",\n \"remove\": \"Remove\",\n \"embed\": \"Toggle embedding\",\n \"submit\": \"Submit\",\n \"confirm\": \"Confirm\",\n \"embeddableInteractionButton\": \"Click to interact\",\n \"smartZoom\": \"Smart Zoom\"\n },\n \"alerts\": {\n \"clearReset\": \"This will clear the whole canvas. Are you sure?\",\n \"couldNotCreateShareableLink\": \"Couldn't create shareable link.\",\n \"couldNotCreateShareableLinkTooBig\": \"Couldn't create shareable link: the scene is too big\",\n \"couldNotLoadInvalidFile\": \"Couldn't load invalid file\",\n \"importBackendFailed\": \"Importing from backend failed.\",\n \"cannotExportEmptyCanvas\": \"Cannot export empty canvas.\",\n \"couldNotCopyToClipboard\": \"Couldn't copy to clipboard.\",\n \"decryptFailed\": \"Couldn't decrypt data.\",\n \"uploadedSecurly\": \"The upload has been secured with end-to-end encryption, which means that Excalidraw server and third parties can't read the content.\",\n \"loadSceneOverridePrompt\": \"Loading external drawing will replace your existing content. Do you wish to continue?\",\n \"collabStopOverridePrompt\": \"Stopping the session will overwrite your previous, locally stored drawing. Are you sure?\\n\\n(If you want to keep your local drawing, simply close the browser tab instead.)\",\n \"imageDoesNotContainScene\": \"This image does not seem to contain any scene data. Have you enabled scene embedding during export?\",\n \"cannotRestoreFromImage\": \"Scene couldn't be restored from this image file\",\n \"invalidSceneUrl\": \"Couldn't import scene from the supplied URL. It's either malformed, or doesn't contain valid Excalidraw JSON data.\",\n \"invalidEncryptionKey\": \"Encryption key must be of 22 characters. Live collaboration is disabled.\",\n \"collabOfflineWarning\": \"No internet connection available.\\nYour changes will not be saved!\",\n \"localStorageQuotaExceeded\": \"Browser storage quota exceeded. Changes will not be saved.\"\n },\n \"errors\": {\n \"unsupportedFileType\": \"Unsupported file type.\",\n \"imageInsertError\": \"Couldn't insert image. Try again later...\",\n \"fileTooBig\": \"File is too big. Maximum allowed size is {{maxSize}}.\",\n \"svgImageInsertError\": \"Couldn't insert SVG image. The SVG markup looks invalid.\",\n \"failedToFetchImage\": \"Failed to fetch image.\",\n \"cannotResolveCollabServer\": \"Couldn't connect to the collab server. Please reload the page and try again.\",\n \"collabSaveFailed\": \"Couldn't save to the backend database. If problems persist, you should save your file locally to ensure you don't lose your work.\",\n \"collabSaveFailed_sizeExceeded\": \"Couldn't save to the backend database, the canvas seems to be too big. You should save the file locally to ensure you don't lose your work.\",\n \"imageToolNotSupported\": \"Images are disabled.\",\n \"brave_measure_text_error\": {\n \"line1\": \"Looks like you are using Brave browser with the <bold>Aggressively Block Fingerprinting</bold> setting enabled.\",\n \"line2\": \"This could result in breaking the <bold>Text Elements</bold> in your drawings.\",\n \"line3\": \"We strongly recommend disabling this setting. You can follow <link>these steps</link> on how to do so.\",\n \"line4\": \"If disabling this setting doesn't fix the display of text elements, please open an <issueLink>issue</issueLink> on our GitHub, or write us on <discordLink>Discord</discordLink>\"\n },\n \"asyncPasteFailedOnRead\": \"Couldn't paste (couldn't read from system clipboard).\",\n \"asyncPasteFailedOnParse\": \"Couldn't paste.\",\n \"copyToSystemClipboardFailed\": \"Couldn't copy to clipboard.\"\n },\n \"toolBar\": {\n \"selection\": \"Selection\",\n \"lasso\": \"Lasso selection\",\n \"image\": \"Insert image\",\n \"rectangle\": \"Rectangle\",\n \"diamond\": \"Diamond\",\n \"ellipse\": \"Ellipse\",\n \"arrow\": \"Arrow\",\n \"line\": \"Line\",\n \"freedraw\": \"Draw\",\n \"text\": \"Text\",\n \"lock-short\": \"Lock Active Tool\",\n \"lock\": \"Keep selected tool active after drawing\",\n \"penMode\": \"Pen mode - prevent touch\",\n \"link\": \"Add / Update link for a selected shape\",\n \"eraser\": \"Eraser\",\n \"frame\": \"Frame tool\",\n \"magicframe\": \"Wireframe to code\",\n \"embeddable\": \"Web Embed\",\n \"laser\": \"Laser pointer\",\n \"hand\": \"Hand (panning tool)\",\n \"extraTools\": \"More tools\",\n \"smartZoom\": \"Smart Zoom\",\n \"convertElementType\": \"Toggle shape type\"\n },\n \"element\": {\n \"rectangle\": \"Rectangle\",\n \"diamond\": \"Diamond\",\n \"ellipse\": \"Ellipse\",\n \"arrow\": \"Arrow\",\n \"line\": \"Line\",\n \"freedraw\": \"Freedraw\",\n \"text\": \"Text\",\n \"image\": \"Image\",\n \"group\": \"Group\",\n \"frame\": \"Frame\",\n \"magicframe\": \"Wireframe to code\",\n \"embeddable\": \"Web Embed\",\n \"selection\": \"Selection\",\n \"iframe\": \"IFrame\"\n },\n \"headings\": {\n \"canvasActions\": \"Canvas actions\",\n \"selectedShapeActions\": \"Selected shape actions\",\n \"shapes\": \"Shapes\"\n },\n \"hints\": {\n \"dismissSearch\": \"{{shortcut}} to dismiss search\",\n \"canvasPanning\": \"To move canvas, hold {{shortcut_1}} or {{shortcut_2}} while dragging, or use the hand tool\",\n \"linearElement\": \"Click to start multiple points, drag for single line\",\n \"arrowTool\": \"Click to start multiple points, drag for single line. Press {{shortcut}} again to change arrow type.\",\n \"arrowBindModifiers\": \"Hold {{shortcut_1}} to disable binding, or {{shortcut_2}} to bind at a fixed point\",\n \"freeDraw\": \"Click and drag, release when you're finished\",\n \"text\": \"Tip: you can also add text by double-clicking anywhere with the selection tool\",\n \"embeddable\": \"Click-drag to create a website embed\",\n \"text_selected\": \"Double-click or press {{shortcut}} to edit text\",\n \"text_editing\": \"Press {{shortcut_1}} or {{shortcut_2}} to finish editing\",\n \"linearElementMulti\": \"Click on last point or press {{shortcut_1}} or {{shortcut_2}} to finish\",\n \"lockAngle\": \"You can constrain angle by holding {{shortcut}}\",\n \"resize\": \"You can constrain proportions by holding {{shortcut_1}} while resizing,\\nhold {{shortcut_2}} to resize from the center\",\n \"resizeImage\": \"You can resize freely by holding {{shortcut_1}},\\nhold {{shortcut_2}} to resize from the center\",\n \"rotate\": \"You can constrain angles by holding {{shortcut}} while rotating\",\n \"lineEditor_info\": \"Hold {{shortcut_1}} and Double-click or press {{shortcut_2}} to edit points\",\n \"lineEditor_line_info\": \"Double-click or press {{shortcut}} to edit points\",\n \"lineEditor_pointSelected\": \"Press {{shortcut_1}} to remove point(s),\\n{{shortcut_2}} to duplicate, or drag to move\",\n \"lineEditor_nothingSelected\": \"Select a point to edit (hold {{shortcut_1}} to select multiple),\\nor hold {{shortcut_2}} and click to add new points\",\n \"bindTextToElement\": \"{{shortcut}} to add text\",\n \"createFlowchart\": \"{{shortcut}} to create a flowchart\",\n \"deepBoxSelect\": \"Hold {{shortcut}} to deep select, and to prevent dragging\",\n \"eraserRevert\": \"Hold {{shortcut}} to revert the elements marked for deletion\",\n \"firefox_clipboard_write\": \"This feature can likely be enabled by setting the \\\"dom.events.asyncClipboard.clipboardItem\\\" flag to \\\"true\\\". To change the browser flags in Firefox, visit the \\\"about:config\\\" page.\",\n \"disableSnapping\": \"Hold {{shortcut}} to disable snapping\",\n \"enterCropEditor\": \"Double click the image or press {{shortcut}} to crop the image\",\n \"leaveCropEditor\": \"Click outside the image or press {{shortcut_1}} or {{shortcut_2}} to finish cropping\"\n },\n \"canvasError\": {\n \"cannotShowPreview\": \"Cannot show preview\",\n \"canvasTooBig\": \"The canvas may be too big.\",\n \"canvasTooBigTip\": \"Tip: try moving the farthest elements a bit closer together.\"\n },\n \"errorSplash\": {\n \"headingMain\": \"Encountered an error. Try <button>reloading the page</button>.\",\n \"clearCanvasMessage\": \"If reloading doesn't work, try <button>clearing the canvas</button>.\",\n \"clearCanvasCaveat\": \" This will result in loss of work \",\n \"trackedToSentry\": \"The error with identifier {{eventId}} was tracked on our system.\",\n \"openIssueMessage\": \"We were very cautious not to include your scene information on the error. If your scene is not private, please consider following up on our <button>bug tracker</button>. Please include information below by copying and pasting into the GitHub issue.\",\n \"sceneContent\": \"Scene content:\"\n },\n \"shareDialog\": {\n \"or\": \"Or\"\n },\n \"roomDialog\": {\n \"desc_intro\": \"Invite people to collaborate on your drawing.\",\n \"desc_privacy\": \"Don't worry, the session is end-to-end encrypted, and fully private. Not even our server can see what you draw.\",\n \"button_startSession\": \"Start session\",\n \"button_stopSession\": \"Stop session\",\n \"desc_inProgressIntro\": \"Live-collaboration session is now in progress.\",\n \"desc_shareLink\": \"Share this link with anyone you want to collaborate with:\",\n \"desc_exitSession\": \"Stopping the session will disconnect you from the room, but you'll be able to continue working with the scene, locally. Note that this won't affect other people, and they'll still be able to collaborate on their version.\",\n \"shareTitle\": \"Join a live collaboration session on Excalidraw\"\n },\n \"errorDialog\": {\n \"title\": \"Error\"\n },\n \"progressDialog\": {\n \"title\": \"Saving\",\n \"defaultMessage\": \"Preparing to save...\"\n },\n \"exportDialog\": {\n \"disk_title\": \"Save to disk\",\n \"disk_details\": \"Export the scene data to a file from which you can import later.\",\n \"disk_button\": \"Save to file\",\n \"link_title\": \"Shareable link\",\n \"link_details\": \"Export as a read-only link.\",\n \"link_button\": \"Export to Link\",\n \"excalidrawplus_description\": \"Save the scene to your Excalidraw+ workspace.\",\n \"excalidrawplus_button\": \"Export\",\n \"excalidrawplus_exportError\": \"Couldn't export to Excalidraw+ at this moment...\"\n },\n \"helpDialog\": {\n \"myoc\": {\n \"showingAll\": \"Showing all controls\",\n \"showingBasic\": \"Showing basic controls\"\n },\n \"blog\": \"Read our blog\",\n \"click\": \"click\",\n \"deepSelect\": \"Deep select\",\n \"deepBoxSelect\": \"Deep select within box, and prevent dragging\",\n \"createFlowchart\": \"Create a flowchart from a generic element\",\n \"navigateFlowchart\": \"Navigate a flowchart\",\n \"curvedArrow\": \"Curved arrow\",\n \"curvedLine\": \"Curved line\",\n \"documentation\": \"Documentation\",\n \"doubleClick\": \"double-click\",\n \"drag\": \"drag\",\n \"editor\": \"Editor\",\n \"editLineArrowPoints\": \"Edit line/arrow points\",\n \"editText\": \"Edit text / add label\",\n \"github\": \"Found an issue? Submit\",\n \"howto\": \"Follow our guides\",\n \"or\": \"or\",\n \"preventBinding\": \"Prevent arrow binding\",\n \"tools\": \"Tools\",\n \"shortcuts\": \"Keyboard shortcuts\",\n \"textFinish\": \"Finish editing (text editor)\",\n \"textNewLine\": \"Add new line (text editor)\",\n \"title\": \"Help\",\n \"view\": \"View\",\n \"smartZoom\": \"Smart Zoom (Fit selection or all elements if none selected)\",\n \"dragToZoom\": \"Drag to zoom\",\n \"zoomToFit\": \"Zoom to fit all elements\",\n \"zoomToSelection\": \"Zoom to selection\",\n \"toggleElementLock\": \"Lock/unlock selection\",\n \"movePageUpDown\": \"Move page up/down\",\n \"movePageLeftRight\": \"Move page left/right\",\n \"cropStart\": \"Crop image\",\n \"cropFinish\": \"Finish image cropping\"\n },\n \"clearCanvasDialog\": {\n \"title\": \"Clear canvas\"\n },\n \"imageExportDialog\": {\n \"header\": \"Export image\",\n \"label\": {\n \"withBackground\": \"Background\",\n \"onlySelected\": \"Only selected\",\n \"darkMode\": \"Dark mode\",\n \"embedScene\": \"Embed scene\",\n \"scale\": \"Scale\",\n \"padding\": \"Padding\"\n },\n \"tooltip\": {\n \"embedScene\": \"Scene data will be saved into the exported PNG/SVG file so that the scene can be restored from it.\\nWill increase exported file size.\"\n },\n \"title\": {\n \"exportToPng\": \"Export to PNG\",\n \"exportToSvg\": \"Export to SVG\",\n \"copyPngToClipboard\": \"Copy PNG to clipboard\"\n },\n \"button\": {\n \"exportToPng\": \"PNG\",\n \"exportToSvg\": \"SVG\",\n \"copyPngToClipboard\": \"Copy to clipboard\"\n }\n },\n \"encrypted\": {\n \"tooltip\": \"Your drawings are end-to-end encrypted so Excalidraw's servers will never see them.\",\n \"link\": \"Blog post on end-to-end encryption in Excalidraw\"\n },\n \"stats\": {\n \"angle\": \"Angle\",\n \"shapes\": \"Shapes\",\n \"height\": \"Height\",\n \"scene\": \"Scene\",\n \"selected\": \"Selected\",\n \"storage\": \"Storage\",\n \"fullTitle\": \"Canvas & Shape properties\",\n \"title\": \"Properties\",\n \"generalStats\": \"General\",\n \"elementProperties\": \"Shape properties\",\n \"total\": \"Total\",\n \"version\": \"Version\",\n \"versionCopy\": \"Click to copy\",\n \"versionNotAvailable\": \"Version not available\",\n \"width\": \"Width\"\n },\n \"toast\": {\n \"copyStyles\": \"Copied styles.\",\n \"copyToClipboard\": \"Copied to clipboard.\",\n \"copyToClipboardAsPng\": \"Copied {{exportSelection}} to clipboard as PNG\\n({{exportColorScheme}})\",\n \"copyToClipboardAsSvg\": \"Copied {{exportSelection}} to clipboard as SVG\\n({{exportColorScheme}})\",\n \"fileSaved\": \"File saved.\",\n \"fileSavedToFilename\": \"Saved to {filename}\",\n \"canvas\": \"canvas\",\n \"selection\": \"selection\",\n \"pasteAsSingleElement\": \"Use {{shortcut}} to paste as a single element,\\nor paste into an existing text editor\",\n \"unableToEmbed\": \"Embedding this url is currently not allowed. Raise an issue on GitHub to request the url whitelisted\",\n \"unrecognizedLinkFormat\": \"The link you embedded does not match the expected format. Please try to paste the 'embed' string provided by the source site\",\n \"elementLinkCopied\": \"Link copied to clipboard\"\n },\n \"colors\": {\n \"transparent\": \"Transparent\",\n \"black\": \"Black\",\n \"white\": \"White\",\n \"red\": \"Red\",\n \"pink\": \"Pink\",\n \"grape\": \"Grape\",\n \"violet\": \"Violet\",\n \"gray\": \"Gray\",\n \"blue\": \"Blue\",\n \"cyan\": \"Cyan\",\n \"teal\": \"Teal\",\n \"green\": \"Green\",\n \"yellow\": \"Yellow\",\n \"orange\": \"Orange\",\n \"bronze\": \"Bronze\"\n },\n \"welcomeScreen\": {\n \"app\": {\n \"center_heading\": \"Your drawings are saved in your browser's storage.\",\n \"center_heading_line2\": \"Browser storage can be cleared unexpectedly.\",\n \"center_heading_line3\": \"Save your work to a file regularly to avoid losing it.\",\n \"center_heading_plus\": \"Did you want to go to the Excalidraw+ instead?\",\n \"menuHint\": \"Export, preferences, languages, ...\"\n },\n \"defaults\": {\n \"menuHint\": \"Export, preferences, and more...\",\n \"center_heading\": \"Diagrams. Made. Simple.\",\n \"toolbarHint\": \"Pick a tool & Start drawing!\",\n \"helpHint\": \"Shortcuts & help\"\n }\n },\n \"colorPicker\": {\n \"color\": \"Color\",\n \"mostUsedCustomColors\": \"Most used custom colors\",\n \"colors\": \"Colors\",\n \"shades\": \"Shades\",\n \"hexCode\": \"Hex code\",\n \"noShades\": \"No shades available for this color\"\n },\n \"overwriteConfirm\": {\n \"action\": {\n \"exportToImage\": {\n \"title\": \"Export as image\",\n \"button\": \"Export as image\",\n \"description\": \"Export the scene data as an image from which you can import later.\"\n },\n \"saveToDisk\": {\n \"title\": \"Save to disk\",\n \"button\": \"Save to disk\",\n \"description\": \"Export the scene data to a file from which you can import later.\"\n },\n \"excalidrawPlus\": {\n \"title\": \"Excalidraw+\",\n \"button\": \"Export to Excalidraw+\",\n \"description\": \"Save the scene to your Excalidraw+ workspace.\"\n }\n },\n \"modal\": {\n \"loadFromFile\": {\n \"title\": \"Load from file\",\n \"button\": \"Load from file\",\n \"description\": \"Loading from a file will <bold>replace your existing content</bold>.<br></br>You can back up your drawing first using one of the options below.\"\n },\n \"shareableLink\": {\n \"title\": \"Load from link\",\n \"button\": \"Replace my content\",\n \"description\": \"Loading external drawing will <bold>replace your existing content</bold>.<br></br>You can back up your drawing first by using one of the options below.\"\n }\n }\n },\n \"quickSearch\": {\n \"placeholder\": \"Quick search\"\n },\n \"fontList\": {\n \"badge\": {\n \"old\": \"old\"\n },\n \"sceneFonts\": \"In this scene\",\n \"availableFonts\": \"Available fonts\",\n \"empty\": \"No fonts found\"\n },\n \"userList\": {\n \"empty\": \"No users found\",\n \"hint\": {\n \"text\": \"Click on user to follow\",\n \"followStatus\": \"You're currently following this user\",\n \"inCall\": \"User is in a voice call\",\n \"micMuted\": \"User's microphone is muted\",\n \"isSpeaking\": \"User is speaking\"\n }\n },\n \"keys\": {\n \"ctrl\": \"Ctrl\",\n \"option\": \"Option\",\n \"cmd\": \"Cmd\",\n \"alt\": \"Alt\",\n \"escape\": \"Esc\",\n \"enter\": \"Enter\",\n \"shift\": \"Shift\",\n \"spacebar\": \"Space\",\n \"delete\": \"Delete\",\n \"mmb\": \"Scroll wheel\"\n }\n}\n"],
5
+ "mappings": ";AACE,aAAU;AAAA,EACR,OAAS;AAAA,EACT,kBAAoB;AAAA,EACpB,aAAe;AAAA,EACf,eAAiB;AAAA,EACjB,gBAAkB;AAAA,EAClB,iBAAmB;AAAA,EACnB,qBAAuB;AAAA,EACvB,WAAa;AAAA,EACb,aAAe;AAAA,EACf,YAAc;AAAA,EACd,KAAO;AAAA,EACP,MAAQ;AAAA,EACR,WAAa;AAAA,EACb,WAAa;AAAA,EACb,UAAY;AAAA,EACZ,YAAc;AAAA,EACd,eAAiB;AAAA,EACjB,cAAgB;AAAA,EAChB,YAAc;AAAA,EACd,cAAgB;AAAA,EAChB,cAAgB;AAAA,EAChB,QAAU;AAAA,EACV,YAAc;AAAA,EACd,aAAe;AAAA,EACf,QAAU;AAAA,EACV,cAAgB;AAAA,EAChB,YAAc;AAAA,EACd,kBAAoB;AAAA,EACpB,MAAQ;AAAA,EACR,WAAa;AAAA,EACb,aAAe;AAAA,EACf,aAAe;AAAA,EACf,mBAAqB;AAAA,EACrB,oBAAsB;AAAA,EACtB,oBAAsB;AAAA,EACtB,YAAc;AAAA,EACd,UAAY;AAAA,EACZ,mBAAqB;AAAA,EACrB,mBAAqB;AAAA,EACrB,SAAW;AAAA,EACX,WAAa;AAAA,EACb,OAAS;AAAA,EACT,OAAS;AAAA,EACT,OAAS;AAAA,EACT,YAAc;AAAA,EAC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;AAAA,EA+BA;AAAA,EAGA;AAAA,EAQA;AAAA,EAUA;AAYF;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  define_import_meta_env_default
3
- } from "./chunk-MCPNWEHU.js";
3
+ } from "./chunk-P7I4FGOG.js";
4
4
  import {
5
5
  __publicField
6
6
  } from "./chunk-XDFCUUT6.js";
@@ -27,6 +27,7 @@ import {
27
27
  DEFAULT_ELEMENT_PROPS,
28
28
  DEFAULT_FONT_FAMILY,
29
29
  DEFAULT_FONT_SIZE,
30
+ DEFAULT_ELEMENT_STROKE_WIDTH_KEY,
30
31
  DEFAULT_TEXT_ALIGN,
31
32
  DEFAULT_GRID_SIZE,
32
33
  EXPORT_SCALES,
@@ -59,12 +60,13 @@ var getDefaultAppState = () => {
59
60
  currentItemFontSize: DEFAULT_FONT_SIZE,
60
61
  currentItemOpacity: DEFAULT_ELEMENT_PROPS.opacity,
61
62
  currentItemRoughness: DEFAULT_ELEMENT_PROPS.roughness,
63
+ currentItemStrokeVariability: "constant",
62
64
  currentItemStartArrowhead: null,
63
65
  currentItemStrokeColor: DEFAULT_ELEMENT_PROPS.strokeColor,
64
66
  currentItemRoundness: isTestEnv() ? "sharp" : "round",
65
67
  currentItemArrowType: ARROW_TYPE.round,
66
68
  currentItemStrokeStyle: DEFAULT_ELEMENT_PROPS.strokeStyle,
67
- currentItemStrokeWidth: DEFAULT_ELEMENT_PROPS.strokeWidth,
69
+ currentItemStrokeWidthKey: DEFAULT_ELEMENT_STROKE_WIDTH_KEY,
68
70
  currentItemTextAlign: DEFAULT_TEXT_ALIGN,
69
71
  currentHoveredFontFamily: null,
70
72
  cursorButton: "up",
@@ -183,10 +185,15 @@ var APP_STATE_STORAGE_CONF = /* @__PURE__ */ ((config) => config)({
183
185
  },
184
186
  currentItemOpacity: { browser: true, export: false, server: false },
185
187
  currentItemRoughness: { browser: true, export: false, server: false },
188
+ currentItemStrokeVariability: {
189
+ browser: true,
190
+ export: false,
191
+ server: false
192
+ },
186
193
  currentItemStartArrowhead: { browser: true, export: false, server: false },
187
194
  currentItemStrokeColor: { browser: true, export: false, server: false },
188
195
  currentItemStrokeStyle: { browser: true, export: false, server: false },
189
- currentItemStrokeWidth: { browser: true, export: false, server: false },
196
+ currentItemStrokeWidthKey: { browser: true, export: false, server: false },
190
197
  currentItemTextAlign: { browser: true, export: false, server: false },
191
198
  currentHoveredFontFamily: { browser: false, export: false, server: false },
192
199
  cursorButton: { browser: true, export: false, server: false },
@@ -417,6 +424,7 @@ import {
417
424
  hasBackground,
418
425
  hasStrokeWidth,
419
426
  hasStrokeStyle,
427
+ hasFreedrawMode,
420
428
  canHaveArrowheads,
421
429
  canChangeRoundness
422
430
  } from "@excalidraw/element";
@@ -4459,6 +4467,7 @@ var getExportSize = (elements, exportPadding, scale) => {
4459
4467
  import { isFiniteNumber, isValidPoint, pointFrom as pointFrom2 } from "@excalidraw/math";
4460
4468
  import {
4461
4469
  DEFAULT_FONT_FAMILY as DEFAULT_FONT_FAMILY2,
4470
+ DEFAULT_STROKE_STREAMLINE,
4462
4471
  DEFAULT_TEXT_ALIGN as DEFAULT_TEXT_ALIGN2,
4463
4472
  DEFAULT_VERTICAL_ALIGN,
4464
4473
  FONT_FAMILY as FONT_FAMILY3,
@@ -4473,7 +4482,9 @@ import {
4473
4482
  arrayToMap as arrayToMap2,
4474
4483
  getSizeFromPoints,
4475
4484
  normalizeLink as normalizeLink2,
4476
- getLineHeight
4485
+ getLineHeight,
4486
+ STROKE_WIDTH,
4487
+ STROKE_WIDTH_KEYS
4477
4488
  } from "@excalidraw/common";
4478
4489
  import {
4479
4490
  calculateFixedPointForNonElbowArrowBinding,
@@ -4504,7 +4515,25 @@ import { syncInvalidIndices as syncInvalidIndices2 } from "@excalidraw/element";
4504
4515
  import { refreshTextDimensions } from "@excalidraw/element";
4505
4516
  import { getNormalizedDimensions } from "@excalidraw/element";
4506
4517
  import { isInvisiblySmallElement } from "@excalidraw/element";
4507
- var MAX_ARROW_PX = 75e3;
4518
+ var MAX_LINEAR_PX = 75e3;
4519
+ var handleOversizedLinearElements = (element) => {
4520
+ if (element.width <= MAX_LINEAR_PX && element.height <= MAX_LINEAR_PX) {
4521
+ return element;
4522
+ }
4523
+ const label = element.type === "arrow" ? `${isElbowArrow(element) ? "elbow" : "simple"} arrow` : element.type;
4524
+ console.error(
4525
+ `Removing extremely large ${label} ${element.id} (width: ${element.width}, height: ${element.height}, x: ${element.x}, y: ${element.y})`
4526
+ );
4527
+ return {
4528
+ ...element,
4529
+ x: 0,
4530
+ y: 0,
4531
+ width: 100,
4532
+ height: 100,
4533
+ points: [pointFrom2(0, 0), pointFrom2(100, 100)],
4534
+ isDeleted: true
4535
+ };
4536
+ };
4508
4537
  var restoreLinearElementPoints = (points, width, height) => {
4509
4538
  const restoredPoints = Array.isArray(points) ? points.reduce((acc, point) => {
4510
4539
  if (isValidPoint(point)) {
@@ -4563,6 +4592,23 @@ var AllowedExcalidrawActiveTools = {
4563
4592
  laser: false,
4564
4593
  magicframe: false
4565
4594
  };
4595
+ var ALLOWED_STROKE_VARIABILITIES = /* @__PURE__ */ new Set([
4596
+ "constant",
4597
+ "variable"
4598
+ ]);
4599
+ var restoreStrokeVariability = (variability, defaultValue) => {
4600
+ return typeof variability === "string" && ALLOWED_STROKE_VARIABILITIES.has(variability) ? variability : defaultValue;
4601
+ };
4602
+ var getStrokeWidthKey = (strokeWidth) => {
4603
+ return isFiniteNumber(strokeWidth) ? STROKE_WIDTH_KEYS.find((key) => STROKE_WIDTH[key] === strokeWidth) ?? null : null;
4604
+ };
4605
+ var restoreFreedrawStrokeOptions = (strokeOptions) => {
4606
+ const options = strokeOptions && typeof strokeOptions === "object" ? strokeOptions : null;
4607
+ return {
4608
+ variability: restoreStrokeVariability(options?.variability, "variable"),
4609
+ streamline: isFiniteNumber(options?.streamline) ? options?.streamline : DEFAULT_STROKE_STREAMLINE
4610
+ };
4611
+ };
4566
4612
  var getFontFamilyByName = (fontFamilyName) => {
4567
4613
  if (Object.keys(FONT_FAMILY3).includes(fontFamilyName)) {
4568
4614
  return FONT_FAMILY3[fontFamilyName];
@@ -4740,6 +4786,7 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4740
4786
  return restoreElementWithProperties(element, {
4741
4787
  points: points2,
4742
4788
  simulatePressure: element.simulatePressure,
4789
+ strokeOptions: restoreFreedrawStrokeOptions(element.strokeOptions),
4743
4790
  pressures
4744
4791
  });
4745
4792
  }
@@ -4748,6 +4795,7 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4748
4795
  status: element.status || "pending",
4749
4796
  fileId: element.fileId,
4750
4797
  fileName: element.fileName ?? null,
4798
+ thumbHash: typeof element.thumbHash === "string" ? element.thumbHash : null,
4751
4799
  scale: element.scale || [1, 1],
4752
4800
  crop: element.crop ?? null
4753
4801
  });
@@ -4770,7 +4818,7 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4770
4818
  y: y ?? 0
4771
4819
  }));
4772
4820
  }
4773
- return restoreElementWithProperties(element, {
4821
+ const restoredLine = restoreElementWithProperties(element, {
4774
4822
  type: "line",
4775
4823
  startBinding: null,
4776
4824
  endBinding: null,
@@ -4784,6 +4832,7 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4784
4832
  } : {},
4785
4833
  ...getSizeFromPoints(points)
4786
4834
  });
4835
+ return handleOversizedLinearElements(restoredLine);
4787
4836
  case "arrow": {
4788
4837
  const startArrowhead2 = normalizeArrowhead(element.startArrowhead);
4789
4838
  const endArrowhead2 = element.endArrowhead === void 0 ? "arrow" : normalizeArrowhead(element.endArrowhead);
@@ -4837,24 +4886,7 @@ var restoreElement = (element, targetElementsMap, existingElementsMap, opts) =>
4837
4886
  restoredElement
4838
4887
  )
4839
4888
  };
4840
- if (normalizedRestoredElement.width > MAX_ARROW_PX || normalizedRestoredElement.height > MAX_ARROW_PX) {
4841
- console.error(
4842
- `Removing extremely large arrow ${normalizedRestoredElement.id} (type: ${isElbowArrow(normalizedRestoredElement) ? "elbow" : "simple"}, width: ${normalizedRestoredElement.width}, height: ${normalizedRestoredElement.height}, x: ${normalizedRestoredElement.x}, y: ${normalizedRestoredElement.y})`
4843
- );
4844
- return {
4845
- ...normalizedRestoredElement,
4846
- x: 0,
4847
- y: 0,
4848
- width: 100,
4849
- height: 100,
4850
- points: [
4851
- pointFrom2(0, 0),
4852
- pointFrom2(100, 100)
4853
- ],
4854
- isDeleted: true
4855
- };
4856
- }
4857
- return normalizedRestoredElement;
4889
+ return handleOversizedLinearElements(normalizedRestoredElement);
4858
4890
  }
4859
4891
  case "ellipse":
4860
4892
  case "rectangle":
@@ -5083,6 +5115,9 @@ var restoreAppState = (appState, localAppState) => {
5083
5115
  if (boxSelectionMode !== void 0) {
5084
5116
  nextAppState.boxSelectionMode = boxSelectionMode;
5085
5117
  }
5118
+ if (appState.currentItemStrokeWidth !== void 0) {
5119
+ nextAppState.currentItemStrokeWidthKey = getStrokeWidthKey(appState.currentItemStrokeWidth) ?? defaultAppState.currentItemStrokeWidthKey;
5120
+ }
5086
5121
  return {
5087
5122
  ...nextAppState,
5088
5123
  cursorButton: localAppState?.cursorButton || "up",
@@ -5121,7 +5156,7 @@ var parseFileContents = async (blob) => {
5121
5156
  let contents;
5122
5157
  if (blob.type === MIME_TYPES6.png) {
5123
5158
  try {
5124
- return await (await import("./data/image-IRC25PM5.js")).decodePngMetadata(blob);
5159
+ return await (await import("./data/image-ZYGVHYLC.js")).decodePngMetadata(blob);
5125
5160
  } catch (error) {
5126
5161
  if (error.message === "INVALID") {
5127
5162
  throw new ImageSceneDataError(
@@ -5432,6 +5467,7 @@ export {
5432
5467
  hasBackground,
5433
5468
  hasStrokeWidth,
5434
5469
  hasStrokeStyle,
5470
+ hasFreedrawMode,
5435
5471
  canHaveArrowheads,
5436
5472
  canChangeRoundness,
5437
5473
  AbortError,
@@ -5482,4 +5518,4 @@ export {
5482
5518
  createFile,
5483
5519
  normalizeFile
5484
5520
  };
5485
- //# sourceMappingURL=chunk-RIK6B6HD.js.map
5521
+ //# sourceMappingURL=chunk-MN6E45MP.js.map