@zsviczian/excalidraw 0.17.1-obsidian-20 → 0.17.1-obsidian-21

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 (82) hide show
  1. package/dist/excalidraw.development.js +190 -80
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/styles.development.css +78 -50
  4. package/dist/styles.production.css +5 -5
  5. package/package.json +2 -1
  6. package/types/excalidraw/actions/actionAddToLibrary.d.ts +4 -4
  7. package/types/excalidraw/actions/actionAlign.d.ts +20 -20
  8. package/types/excalidraw/actions/actionBoundText.d.ts +7 -7
  9. package/types/excalidraw/actions/actionCanvas.d.ts +65 -65
  10. package/types/excalidraw/actions/actionClipboard.d.ts +24 -24
  11. package/types/excalidraw/actions/actionDeleteSelected.d.ts +8 -8
  12. package/types/excalidraw/actions/actionDistribute.d.ts +8 -8
  13. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +5 -6
  14. package/types/excalidraw/actions/actionElementLock.d.ts +8 -8
  15. package/types/excalidraw/actions/actionExport.d.ts +32 -32
  16. package/types/excalidraw/actions/actionFinalize.d.ts +8 -8
  17. package/types/excalidraw/actions/actionFlip.d.ts +9 -9
  18. package/types/excalidraw/actions/actionFrame.d.ts +14 -202
  19. package/types/excalidraw/actions/actionGroup.d.ts +11 -387
  20. package/types/excalidraw/actions/actionHistory.d.ts +3 -2
  21. package/types/excalidraw/actions/actionLinearEditor.d.ts +2 -2
  22. package/types/excalidraw/actions/actionLink.d.ts +5 -5
  23. package/types/excalidraw/actions/actionMenu.d.ts +8 -8
  24. package/types/excalidraw/actions/actionNavigate.d.ts +3 -3
  25. package/types/excalidraw/actions/actionProperties.d.ts +32 -32
  26. package/types/excalidraw/actions/actionSelectAll.d.ts +4 -4
  27. package/types/excalidraw/actions/actionStyles.d.ts +9 -12
  28. package/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -4
  29. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -4
  30. package/types/excalidraw/actions/actionToggleStats.d.ts +4 -4
  31. package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -4
  32. package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -4
  33. package/types/excalidraw/actions/actionZindex.d.ts +18 -19
  34. package/types/excalidraw/actions/manager.d.ts +3 -3
  35. package/types/excalidraw/actions/types.d.ts +4 -4
  36. package/types/excalidraw/appState.d.ts +4 -4
  37. package/types/excalidraw/change.d.ts +191 -0
  38. package/types/excalidraw/components/App.d.ts +22 -8
  39. package/types/excalidraw/components/RadioGroup.d.ts +2 -1
  40. package/types/excalidraw/components/ToolButton.d.ts +1 -0
  41. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
  42. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -0
  43. package/types/excalidraw/components/icons.d.ts +4 -0
  44. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -2
  45. package/types/excalidraw/constants.d.ts +3 -0
  46. package/types/excalidraw/data/reconcile.d.ts +6 -0
  47. package/types/excalidraw/data/restore.d.ts +3 -3
  48. package/types/excalidraw/data/transform.d.ts +1 -1
  49. package/types/excalidraw/data/url.d.ts +1 -0
  50. package/types/excalidraw/element/binding.d.ts +52 -9
  51. package/types/excalidraw/element/bounds.d.ts +0 -1
  52. package/types/excalidraw/element/collision.d.ts +14 -19
  53. package/types/excalidraw/element/embeddable.d.ts +7 -4
  54. package/types/excalidraw/element/index.d.ts +0 -1
  55. package/types/excalidraw/element/linearElementEditor.d.ts +12 -12
  56. package/types/excalidraw/element/mutateElement.d.ts +1 -2
  57. package/types/excalidraw/element/newElement.d.ts +1 -1
  58. package/types/excalidraw/element/resizeElements.d.ts +1 -1
  59. package/types/excalidraw/element/resizeTest.d.ts +4 -4
  60. package/types/excalidraw/element/textElement.d.ts +1 -2
  61. package/types/excalidraw/element/transformHandles.d.ts +22 -4
  62. package/types/excalidraw/element/typeChecks.d.ts +2 -2
  63. package/types/excalidraw/element/types.d.ts +22 -6
  64. package/types/excalidraw/errors.d.ts +3 -0
  65. package/types/excalidraw/fractionalIndex.d.ts +40 -0
  66. package/types/excalidraw/frame.d.ts +1 -1
  67. package/types/excalidraw/groups.d.ts +2 -0
  68. package/types/excalidraw/history.d.ts +34 -46
  69. package/types/excalidraw/hooks/useEmitter.d.ts +2 -0
  70. package/types/excalidraw/index.d.ts +2 -0
  71. package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  72. package/types/excalidraw/scene/Scene.d.ts +7 -6
  73. package/types/excalidraw/scene/types.d.ts +2 -1
  74. package/types/excalidraw/store.d.ts +99 -0
  75. package/types/excalidraw/types.d.ts +18 -4
  76. package/types/excalidraw/utils.d.ts +7 -0
  77. package/types/excalidraw/webpack.prod.config.d.ts +1 -1
  78. package/types/excalidraw/zindex.d.ts +2 -2
  79. package/types/utils/collision.d.ts +4 -0
  80. package/types/utils/export.d.ts +2 -2
  81. package/types/utils/geometry/geometry.d.ts +71 -0
  82. package/types/utils/geometry/shape.d.ts +56 -0
@@ -179,6 +179,7 @@
179
179
  --color-gray-85: #242424;
180
180
  --color-gray-90: #1e1e1e;
181
181
  --color-gray-100: #121212;
182
+ --color-disabled: var(--color-gray-40);
182
183
  --color-warning: #fceeca;
183
184
  --color-warning-dark: #f5c354;
184
185
  --color-warning-darker: #f3ab2c;
@@ -278,6 +279,7 @@
278
279
  --color-primary-light: #4f4d6f;
279
280
  --color-primary-light-darker: #43415e;
280
281
  --color-primary-hover: #bbb8ff;
282
+ --color-disabled: var(--color-gray-70);
281
283
  --color-text-warning: var(--color-gray-80);
282
284
  --color-danger: #ffa8a5;
283
285
  --color-danger-dark: #672120;
@@ -368,8 +370,7 @@
368
370
  position: relative;
369
371
  cursor: pointer;
370
372
  -webkit-tap-highlight-color: transparent;
371
- -webkit-user-select: none;
372
- user-select: none;
373
+ user-select: none;
373
374
  }
374
375
  .excalidraw .ToolIcon__hidden {
375
376
  display: none !important;
@@ -406,6 +407,13 @@
406
407
  .excalidraw .ToolIcon .ToolIcon__icon:active svg {
407
408
  color: var(--color-on-primary-container);
408
409
  }
410
+ .excalidraw .ToolIcon .ToolIcon__icon[aria-disabled=true] {
411
+ background: initial;
412
+ border: none;
413
+ }
414
+ .excalidraw .ToolIcon .ToolIcon__icon[aria-disabled=true] svg {
415
+ color: var(--color-disabled);
416
+ }
409
417
  .excalidraw .ToolIcon--plain {
410
418
  background-color: transparent;
411
419
  }
@@ -455,8 +463,7 @@
455
463
  font-size: 0.8em;
456
464
  }
457
465
  .excalidraw .ToolIcon_type_button,
458
- .excalidraw .Modal .ToolIcon_type_button,
459
- .excalidraw .ToolIcon_type_button {
466
+ .excalidraw .Modal .ToolIcon_type_button {
460
467
  padding: 0;
461
468
  border: none;
462
469
  margin: 0;
@@ -464,33 +471,43 @@
464
471
  background-color: initial;
465
472
  }
466
473
  .excalidraw .ToolIcon_type_button:focus-visible,
467
- .excalidraw .Modal .ToolIcon_type_button:focus-visible,
468
- .excalidraw .ToolIcon_type_button:focus-visible {
474
+ .excalidraw .Modal .ToolIcon_type_button:focus-visible {
469
475
  box-shadow: 0 0 0 2px var(--focus-highlight-color);
470
476
  }
471
477
  .excalidraw .ToolIcon_type_button.ToolIcon--selected,
472
- .excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected,
473
- .excalidraw .ToolIcon_type_button.ToolIcon--selected {
478
+ .excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected {
474
479
  background-color: var(--button-gray-2);
475
480
  }
476
481
  .excalidraw .ToolIcon_type_button.ToolIcon--selected:active,
477
- .excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected:active,
478
- .excalidraw .ToolIcon_type_button.ToolIcon--selected:active {
482
+ .excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected:active {
479
483
  background-color: var(--button-gray-3);
480
484
  }
481
485
  .excalidraw .ToolIcon_type_button:active,
482
- .excalidraw .Modal .ToolIcon_type_button:active,
483
- .excalidraw .ToolIcon_type_button:active {
486
+ .excalidraw .Modal .ToolIcon_type_button:active {
484
487
  background-color: var(--button-gray-3);
485
488
  }
489
+ .excalidraw .ToolIcon_type_button:disabled,
490
+ .excalidraw .Modal .ToolIcon_type_button:disabled {
491
+ cursor: default;
492
+ }
493
+ .excalidraw .ToolIcon_type_button:disabled:active, .excalidraw .ToolIcon_type_button:disabled:focus-visible, .excalidraw .ToolIcon_type_button:disabled:hover,
494
+ .excalidraw .Modal .ToolIcon_type_button:disabled:active,
495
+ .excalidraw .Modal .ToolIcon_type_button:disabled:focus-visible,
496
+ .excalidraw .Modal .ToolIcon_type_button:disabled:hover {
497
+ background-color: initial;
498
+ border: none;
499
+ box-shadow: none;
500
+ }
501
+ .excalidraw .ToolIcon_type_button:disabled svg,
502
+ .excalidraw .Modal .ToolIcon_type_button:disabled svg {
503
+ color: var(--color-disabled);
504
+ }
486
505
  .excalidraw .ToolIcon_type_button--show,
487
- .excalidraw .Modal .ToolIcon_type_button--show,
488
- .excalidraw .ToolIcon_type_button--show {
506
+ .excalidraw .Modal .ToolIcon_type_button--show {
489
507
  visibility: visible;
490
508
  }
491
509
  .excalidraw .ToolIcon_type_button--hide,
492
- .excalidraw .Modal .ToolIcon_type_button--hide,
493
- .excalidraw .ToolIcon_type_button--hide {
510
+ .excalidraw .Modal .ToolIcon_type_button--hide {
494
511
  display: none !important;
495
512
  }
496
513
  .excalidraw .ToolIcon_type_floating {
@@ -520,8 +537,7 @@
520
537
  font-size: 0.625rem;
521
538
  color: var(--keybinding-color);
522
539
  font-family: var(--ui-font);
523
- -webkit-user-select: none;
524
- user-select: none;
540
+ user-select: none;
525
541
  }
526
542
  :root[dir=ltr] .excalidraw .unlocked-icon {
527
543
  left: 2px;
@@ -1237,8 +1253,7 @@
1237
1253
  display: flex;
1238
1254
  align-items: center;
1239
1255
  cursor: pointer;
1240
- -webkit-user-select: none;
1241
- user-select: none;
1256
+ user-select: none;
1242
1257
  -webkit-tap-highlight-color: transparent;
1243
1258
  }
1244
1259
  .excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus) {
@@ -1417,8 +1432,7 @@
1417
1432
  }
1418
1433
 
1419
1434
  .excalidraw .Dialog {
1420
- -webkit-user-select: text;
1421
- user-select: text;
1435
+ user-select: text;
1422
1436
  cursor: auto;
1423
1437
  }
1424
1438
  .excalidraw .Dialog__title {
@@ -1640,8 +1654,7 @@
1640
1654
  font-family: inherit;
1641
1655
  font-size: 0.875rem;
1642
1656
  font-weight: 600;
1643
- -webkit-user-select: none;
1644
- user-select: none;
1657
+ user-select: none;
1645
1658
  }
1646
1659
  .excalidraw .Dialog__action-button svg {
1647
1660
  display: block;
@@ -1895,6 +1908,11 @@
1895
1908
  margin-inline-start: auto;
1896
1909
  opacity: 0.5;
1897
1910
  }
1911
+ .excalidraw .dropdown-menu .dropdown-menu-item__shortcut--orphaned {
1912
+ text-align: right;
1913
+ font-size: 0.875rem;
1914
+ padding: 0 0.625rem;
1915
+ }
1898
1916
  .excalidraw .dropdown-menu .dropdown-menu-item:hover {
1899
1917
  background-color: var(--button-hover) !important;
1900
1918
  text-decoration: none;
@@ -1908,6 +1926,21 @@
1908
1926
  height: 1rem;
1909
1927
  display: block;
1910
1928
  }
1929
+ .excalidraw .dropdown-menu .dropdown-menu-item-bare {
1930
+ align-items: center;
1931
+ height: 2rem;
1932
+ justify-content: space-between;
1933
+ }
1934
+ @media screen and (min-width: 1921px) {
1935
+ .excalidraw .dropdown-menu .dropdown-menu-item-bare {
1936
+ height: 2.25rem;
1937
+ }
1938
+ }
1939
+ .excalidraw .dropdown-menu .dropdown-menu-item-bare svg {
1940
+ width: 1rem;
1941
+ height: 1rem;
1942
+ display: block;
1943
+ }
1911
1944
  .excalidraw .dropdown-menu .dropdown-menu-item-custom {
1912
1945
  margin-top: 0.5rem;
1913
1946
  }
@@ -2376,8 +2409,7 @@
2376
2409
  line-height: 150%;
2377
2410
  color: var(--ExcTextField--label-color);
2378
2411
  margin-bottom: 0.25rem;
2379
- -webkit-user-select: none;
2380
- user-select: none;
2412
+ user-select: none;
2381
2413
  }
2382
2414
  .excalidraw .ExcTextField__input {
2383
2415
  box-sizing: border-box;
@@ -2525,8 +2557,7 @@
2525
2557
  }
2526
2558
 
2527
2559
  .excalidraw .command-palette-dialog {
2528
- -webkit-user-select: none;
2529
- user-select: none;
2560
+ user-select: none;
2530
2561
  }
2531
2562
  .excalidraw .command-palette-dialog .Modal__content {
2532
2563
  height: auto;
@@ -2586,8 +2617,7 @@
2586
2617
  box-sizing: border-box;
2587
2618
  margin-top: 12px;
2588
2619
  color: var(--popup-text-color);
2589
- -webkit-user-select: none;
2590
- user-select: none;
2620
+ user-select: none;
2591
2621
  }
2592
2622
  .excalidraw .command-palette-dialog .commands .command-category {
2593
2623
  display: flex;
@@ -2654,8 +2684,7 @@
2654
2684
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
2655
2685
  padding: 0;
2656
2686
  list-style: none;
2657
- -webkit-user-select: none;
2658
- user-select: none;
2687
+ user-select: none;
2659
2688
  margin: -0.25rem 0 0 0.125rem;
2660
2689
  padding: 0.5rem 0;
2661
2690
  background-color: var(--popup-secondary-bg-color);
@@ -2772,8 +2801,7 @@
2772
2801
  font-weight: 600;
2773
2802
  font-size: 0.75rem;
2774
2803
  line-height: 100%;
2775
- -webkit-user-select: none;
2776
- user-select: none;
2804
+ user-select: none;
2777
2805
  letter-spacing: 0.4px;
2778
2806
  transition: all 75ms ease-out;
2779
2807
  }
@@ -2919,8 +2947,7 @@
2919
2947
  display: flex;
2920
2948
  flex-direction: row;
2921
2949
  justify-content: space-between;
2922
- -webkit-user-select: none;
2923
- user-select: none;
2950
+ user-select: none;
2924
2951
  }
2925
2952
  .excalidraw .ImageExportModal h3 {
2926
2953
  font-family: "Assistant";
@@ -3074,8 +3101,7 @@
3074
3101
  border-width: 1px;
3075
3102
  border-style: solid;
3076
3103
  font-family: var(--font-family);
3077
- -webkit-user-select: none;
3078
- user-select: none;
3104
+ user-select: none;
3079
3105
  }
3080
3106
  .excalidraw .ExcButton:hover {
3081
3107
  transition: all 150ms ease-out;
@@ -3889,7 +3915,6 @@
3889
3915
  }
3890
3916
  }
3891
3917
  .excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName {
3892
- width: -moz-fit-content;
3893
3918
  width: fit-content;
3894
3919
  margin: 1em auto;
3895
3920
  align-items: flex-start;
@@ -4787,6 +4812,11 @@
4787
4812
  /*!*****************************************************************************************************************************************************************************************************!*\
4788
4813
  !*** css ../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../node_modules/sass-loader/dist/cjs.js!./components/SVGLayer.scss ***!
4789
4814
  \*****************************************************************************************************************************************************************************************************/
4815
+ :export {
4816
+ themeFilter: invert(93%) hue-rotate(180deg);
4817
+ rightSidebarWidth: 302px;
4818
+ }
4819
+
4790
4820
  .excalidraw .SVGLayer {
4791
4821
  pointer-events: none;
4792
4822
  width: 100vw;
@@ -4794,7 +4824,7 @@
4794
4824
  position: fixed;
4795
4825
  top: 0;
4796
4826
  left: 0;
4797
- z-index: 2;
4827
+ z-index: var(--zIndex-svgLayer);
4798
4828
  }
4799
4829
  .excalidraw .SVGLayer svg {
4800
4830
  image-rendering: auto;
@@ -4882,8 +4912,7 @@
4882
4912
  clip: rect(1px, 1px, 1px, 1px);
4883
4913
  white-space: nowrap;
4884
4914
  /* added line */
4885
- -webkit-user-select: none;
4886
- user-select: none;
4915
+ user-select: none;
4887
4916
  }
4888
4917
 
4889
4918
  .LoadingMessage {
@@ -5004,6 +5033,7 @@
5004
5033
  --color-gray-85: #242424;
5005
5034
  --color-gray-90: #1e1e1e;
5006
5035
  --color-gray-100: #121212;
5036
+ --color-disabled: var(--color-gray-40);
5007
5037
  --color-warning: #fceeca;
5008
5038
  --color-warning-dark: #f5c354;
5009
5039
  --color-warning-darker: #f3ab2c;
@@ -5103,6 +5133,7 @@
5103
5133
  --color-primary-light: #4f4d6f;
5104
5134
  --color-primary-light-darker: #43415e;
5105
5135
  --color-primary-hover: #bbb8ff;
5136
+ --color-disabled: var(--color-gray-70);
5106
5137
  --color-text-warning: var(--color-gray-80);
5107
5138
  --color-danger: #ffa8a5;
5108
5139
  --color-danger-dark: #672120;
@@ -5141,6 +5172,7 @@
5141
5172
  :root {
5142
5173
  --zIndex-canvas: 1;
5143
5174
  --zIndex-interactiveCanvas: 2;
5175
+ --zIndex-svgLayer: 3;
5144
5176
  --zIndex-wysiwyg: 3;
5145
5177
  --zIndex-canvasButtons: 3;
5146
5178
  --zIndex-layerUI: 4;
@@ -5170,14 +5202,12 @@
5170
5202
  right: 0;
5171
5203
  height: 100%;
5172
5204
  width: 100%;
5173
- -webkit-user-select: none;
5174
- user-select: none;
5205
+ user-select: none;
5175
5206
  /*zsviczian*/
5176
5207
  }
5177
5208
  .excalidraw button {
5178
5209
  cursor: pointer;
5179
- -webkit-user-select: none;
5180
- user-select: none;
5210
+ user-select: none;
5181
5211
  }
5182
5212
  .excalidraw:focus {
5183
5213
  outline: none;
@@ -5187,8 +5217,7 @@
5187
5217
  font-weight: 500;
5188
5218
  text-decoration: none;
5189
5219
  color: var(--link-color);
5190
- -webkit-user-select: none;
5191
- user-select: none;
5220
+ user-select: none;
5192
5221
  cursor: pointer;
5193
5222
  }
5194
5223
  .excalidraw .excalidraw-link:hover,
@@ -5789,8 +5818,7 @@
5789
5818
  display: flex;
5790
5819
  align-items: center;
5791
5820
  justify-content: center;
5792
- -webkit-user-select: text;
5793
- user-select: text;
5821
+ user-select: text;
5794
5822
  }
5795
5823
  .ErrorSplash.excalidraw .ErrorSplash-messageContainer {
5796
5824
  display: flex;