@zsviczian/excalidraw 0.17.1-obsidian-39 → 0.17.1-obsidian-41

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 (47) hide show
  1. package/dist/excalidraw.development.js +63 -30
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/styles.development.css +2 -1
  4. package/dist/styles.production.css +1 -1
  5. package/package.json +1 -1
  6. package/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -9
  7. package/types/excalidraw/actions/actionBoundText.d.ts +8 -6
  8. package/types/excalidraw/actions/actionCanvas.d.ts +56 -42
  9. package/types/excalidraw/actions/actionClipboard.d.ts +28 -21
  10. package/types/excalidraw/actions/actionDeleteSelected.d.ts +12 -9
  11. package/types/excalidraw/actions/actionElementLock.d.ts +8 -6
  12. package/types/excalidraw/actions/actionExport.d.ts +36 -27
  13. package/types/excalidraw/actions/actionFinalize.d.ts +8 -6
  14. package/types/excalidraw/actions/actionFrame.d.ts +16 -12
  15. package/types/excalidraw/actions/actionGroup.d.ts +8 -6
  16. package/types/excalidraw/actions/actionLinearEditor.d.ts +4 -3
  17. package/types/excalidraw/actions/actionLink.d.ts +4 -3
  18. package/types/excalidraw/actions/actionMenu.d.ts +12 -9
  19. package/types/excalidraw/actions/actionNavigate.d.ts +8 -6
  20. package/types/excalidraw/actions/actionProperties.d.ts +60 -45
  21. package/types/excalidraw/actions/actionSelectAll.d.ts +4 -3
  22. package/types/excalidraw/actions/actionStyles.d.ts +4 -3
  23. package/types/excalidraw/actions/actionToggleGridMode.d.ts +4 -3
  24. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -3
  25. package/types/excalidraw/actions/actionToggleStats.d.ts +4 -3
  26. package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -3
  27. package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -3
  28. package/types/excalidraw/appState.d.ts +9 -3
  29. package/types/excalidraw/components/App.d.ts +7 -1
  30. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -0
  31. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -0
  32. package/types/excalidraw/components/Stats/DragInput.d.ts +4 -1
  33. package/types/excalidraw/components/Stats/index.d.ts +4 -4
  34. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  35. package/types/excalidraw/constants.d.ts +2 -1
  36. package/types/excalidraw/element/dragElements.d.ts +2 -2
  37. package/types/excalidraw/element/embeddable.d.ts +4 -3
  38. package/types/excalidraw/element/linearElementEditor.d.ts +11 -10
  39. package/types/excalidraw/index.d.ts +1 -1
  40. package/types/excalidraw/math.d.ts +3 -2
  41. package/types/excalidraw/obsidianUtils.d.ts +2 -1
  42. package/types/excalidraw/scene/index.d.ts +1 -1
  43. package/types/excalidraw/scene/normalize.d.ts +4 -0
  44. package/types/excalidraw/scene/zoom.d.ts +0 -1
  45. package/types/excalidraw/snapping.d.ts +8 -7
  46. package/types/excalidraw/types.d.ts +13 -5
  47. package/types/utils/export.d.ts +1 -1
@@ -3761,7 +3761,8 @@
3761
3761
  flex-shrink: 0;
3762
3762
  border: 1px solid var(--default-border-color);
3763
3763
  border-right: 0;
3764
- width: 2rem;
3764
+ padding: 0 0.5rem 0 0.75rem;
3765
+ min-width: 1rem;
3765
3766
  height: 2rem;
3766
3767
  box-sizing: border-box;
3767
3768
  color: var(--popup-text-color);
@@ -39,7 +39,7 @@
39
39
  :export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ExcButton{--text-color: transparent;--border-color: transparent;--back-color: transparent;color:var(--text-color);background-color:var(--back-color);border-color:var(--border-color);border-radius:.5rem;border-width:1px;border-style:solid;font-family:var(--font-family);-webkit-user-select:none;user-select:none}.excalidraw .ExcButton:hover{transition:all 150ms ease-out}.excalidraw .ExcButton .Spinner{--spinner-color: var(--color-surface-lowest);position:absolute;visibility:visible}.excalidraw .ExcButton[disabled]{pointer-events:none}.excalidraw .ExcButton[disabled] .ExcButton__contents{visibility:hidden}.excalidraw .ExcButton,.excalidraw .ExcButton__contents{display:flex;justify-content:center;align-items:center;flex-shrink:0;flex-wrap:nowrap;position:relative}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled{--text-color: var(--color-surface-lowest);--back-color: var(--color-primary)}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled .Spinner{--spinner-color: var(--text-color)}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled:hover{--back-color: var(--color-brand-hover)}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled:active{--back-color: var(--color-brand-active)}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon{--text-color: var(--color-primary);--border-color: var(--color-primary);--back-color: transparent}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined .Spinner,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon .Spinner{--spinner-color: var(--text-color)}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon:hover{--text-color: var(--color-brand-hover);--border-color: var(--color-brand-hover)}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon:active{--text-color: var(--color-brand-active);--border-color: var(--color-brand-active)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled{--text-color: var(--color-danger-text);--back-color: var(--color-danger-dark)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled .Spinner{--spinner-color: var(--text-color)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled:hover{--back-color: var(--color-danger-darker)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled:active{--back-color: var(--color-danger-darkest)}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon{--text-color: var(--color-danger);--border-color: var(--color-danger);--back-color: transparent}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined .Spinner,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon .Spinner{--spinner-color: var(--text-color)}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon:hover{--text-color: var(--color-danger-darkest);--border-color: var(--color-danger-darkest)}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon:active{--text-color: var(--color-danger-darker);--border-color: var(--color-danger-darker)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled{--text-color: var(--island-bg-color);--back-color: var(--color-gray-50)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled .Spinner{--spinner-color: var(--text-color)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled:hover{--back-color: var(--color-gray-60)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled:active{--back-color: var(--color-gray-80)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon{--text-color: var(--color-muted-background);--border-color: var(--color-muted);--back-color: var(--island-bg-color)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined .Spinner,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon .Spinner{--spinner-color: var(--text-color)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon:hover{--text-color: var(--color-muted-background-darker);--border-color: var(--color-muted-darker)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon:active{--text-color: var(--color-muted-background-darker);--border-color: var(--color-muted-darkest)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled{--text-color: black;--back-color: var(--color-warning-dark)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled .Spinner{--spinner-color: var(--text-color)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled:hover{--back-color: var(--color-warning-darker)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled:active{--back-color: var(--color-warning-darkest)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon{--text-color: var(--color-warning-dark);--border-color: var(--color-warning-dark);--back-color: var(--input-bg-color)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined .Spinner,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon .Spinner{--spinner-color: var(--text-color)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon:hover{--text-color: var(--color-warning-darker);--border-color: var(--color-warning-darker)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon:active{--text-color: var(--color-warning-darkest);--border-color: var(--color-warning-darkest)}.excalidraw .ExcButton--size-large{font-weight:600;font-size:.875rem;min-height:3rem;padding:.5rem 1.5rem;letter-spacing:.4px}.excalidraw .ExcButton--size-large .ExcButton__contents{gap:.75rem}.excalidraw .ExcButton--size-medium{font-weight:600;font-size:.75rem;min-height:2.5rem;padding:.5rem 1rem;letter-spacing:normal}.excalidraw .ExcButton--size-medium .ExcButton__contents{gap:.5rem}.excalidraw .ExcButton--variant-icon{padding:.5rem .75rem;width:3rem}.excalidraw .ExcButton--fullWidth{width:100%}.excalidraw .ExcButton__icon{width:1.25rem;height:1.25rem}
40
40
  :export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .FixedSideContainer{position:absolute;pointer-events:none}.excalidraw .FixedSideContainer>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .FixedSideContainer_side_top{left:var(--editor-container-padding);top:var(--editor-container-padding);right:var(--editor-container-padding);bottom:var(--editor-container-padding);z-index:2}.excalidraw .FixedSideContainer_side_top.zen-mode{right:42px}
41
41
  :export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HintViewer{pointer-events:none;box-sizing:border-box;position:absolute;display:flex;flex-direction:column;justify-content:center;left:0;top:100%;max-width:100%;width:100%;margin-top:.5rem;text-align:center;color:var(--text-primary-color);font-size:.75rem}.excalidraw--mobile.excalidraw .HintViewer{position:static;padding-right:2rem}.excalidraw .HintViewer>span{padding:.25rem}.excalidraw.theme--dark .HintViewer{color:var(--color-gray-60)}
42
- .excalidraw .drag-input-container{display:flex;width:100%}.excalidraw .drag-input-container:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-md)}.excalidraw .disabled{opacity:.5;pointer-events:none}.excalidraw .drag-input-label{flex-shrink:0;border:1px solid var(--default-border-color);border-right:0;width:2rem;height:2rem;box-sizing:border-box;color:var(--popup-text-color);display:flex;align-items:center;justify-content:center;position:relative}:root[dir=ltr] .excalidraw .drag-input-label{border-radius:var(--border-radius-md) 0 0 var(--border-radius-md)}:root[dir=rtl] .excalidraw .drag-input-label{border-radius:0 var(--border-radius-md) var(--border-radius-md) 0;border-right:1px solid var(--default-border-color);border-left:0}.excalidraw .drag-input{box-sizing:border-box;width:100%;margin:0;font-size:.875rem;font-family:inherit;background-color:rgba(0,0,0,0);color:var(--text-primary-color);border:0;outline:none;height:2rem;border:1px solid var(--default-border-color);border-left:0;letter-spacing:.4px;padding:.5rem;padding-left:.25rem;-webkit-appearance:none;appearance:none}:root[dir=ltr] .excalidraw .drag-input{border-radius:0 var(--border-radius-md) var(--border-radius-md) 0}:root[dir=rtl] .excalidraw .drag-input{border-radius:var(--border-radius-md) 0 0 var(--border-radius-md);border-left:1px solid var(--default-border-color);border-right:0}.excalidraw .drag-input:focus-visible{box-shadow:none}
42
+ .excalidraw .drag-input-container{display:flex;width:100%}.excalidraw .drag-input-container:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-md)}.excalidraw .disabled{opacity:.5;pointer-events:none}.excalidraw .drag-input-label{flex-shrink:0;border:1px solid var(--default-border-color);border-right:0;padding:0 .5rem 0 .75rem;min-width:1rem;height:2rem;box-sizing:border-box;color:var(--popup-text-color);display:flex;align-items:center;justify-content:center;position:relative}:root[dir=ltr] .excalidraw .drag-input-label{border-radius:var(--border-radius-md) 0 0 var(--border-radius-md)}:root[dir=rtl] .excalidraw .drag-input-label{border-radius:0 var(--border-radius-md) var(--border-radius-md) 0;border-right:1px solid var(--default-border-color);border-left:0}.excalidraw .drag-input{box-sizing:border-box;width:100%;margin:0;font-size:.875rem;font-family:inherit;background-color:rgba(0,0,0,0);color:var(--text-primary-color);border:0;outline:none;height:2rem;border:1px solid var(--default-border-color);border-left:0;letter-spacing:.4px;padding:.5rem;padding-left:.25rem;-webkit-appearance:none;appearance:none}:root[dir=ltr] .excalidraw .drag-input{border-radius:0 var(--border-radius-md) var(--border-radius-md) 0}:root[dir=rtl] .excalidraw .drag-input{border-radius:var(--border-radius-md) 0 0 var(--border-radius-md);border-left:1px solid var(--default-border-color);border-right:0}.excalidraw .drag-input:focus-visible{box-shadow:none}
43
43
  .exc-stats{width:204px;position:absolute;top:60px;font-size:12px;z-index:var(--zIndex-layerUI);pointer-events:var(--ui-pointerEvents)}:root[dir=rtl] .exc-stats{left:12px;right:initial}.exc-stats h2{font-size:1.5em;margin-block-start:.83em;margin-block-end:.83em;font-weight:bold}.exc-stats h3{white-space:nowrap;font-size:1.17em;margin:0;font-weight:bold}.exc-stats__rows{display:flex;flex-direction:column;gap:.3125rem}.exc-stats__row{display:flex;justify-content:space-between;align-items:center;display:grid;gap:4px}.exc-stats__row div+div{text-align:right}.exc-stats__row--heading{text-align:center;font-weight:bold;margin:.25rem 0}.exc-stats .title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.exc-stats .title h2{margin:0}.exc-stats .close{height:16px;width:16px;cursor:pointer}.exc-stats .close svg{width:100%;height:100%}
44
44
  :export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw--mobile.excalidraw .PasteChartDialog .Island{display:flex;flex-direction:column}.excalidraw .PasteChartDialog .container{display:flex;align-items:center;justify-content:space-around;flex-wrap:wrap}.excalidraw--mobile.excalidraw .PasteChartDialog .container{flex-direction:column;justify-content:center}.excalidraw .PasteChartDialog .ChartPreview{margin:8px;text-align:center;width:192px;height:128px;border-radius:2px;padding:1px;border:1px solid #ced4da;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0)}.excalidraw .PasteChartDialog .ChartPreview div{display:inline-block}.excalidraw .PasteChartDialog .ChartPreview svg{max-height:120px;max-width:186px}.excalidraw .PasteChartDialog .ChartPreview:hover{padding:0;border:2px solid #339af0}
45
45
  :export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HelpDialog .Modal__content{max-width:960px}.excalidraw .HelpDialog h3{margin:1.5rem 0;font-weight:700;font-size:1.125rem}.excalidraw .HelpDialog__header{display:flex;flex-wrap:wrap;gap:.75rem}.excalidraw .HelpDialog__btn{--background: var(--color-surface-mid);display:flex;column-gap:.5rem;align-items:center;background-color:var(--background);padding:.625rem 1rem;border:1px solid var(--background);border-radius:var(--border-radius-lg);color:var(--text-primary-color);font-weight:600;font-size:.75rem;letter-spacing:.4px}.excalidraw.theme--dark.excalidraw .HelpDialog__btn{--background: var(--color-surface-high)}.excalidraw.theme--dark.excalidraw .HelpDialog__btn:hover{--background: #363541}.excalidraw .HelpDialog__btn:hover{--background: var(--color-surface-high);text-decoration:none}.excalidraw .HelpDialog__btn:active{border-color:var(--color-primary)}.excalidraw .HelpDialog__link-icon{line-height:0}.excalidraw .HelpDialog__link-icon svg{width:1rem;height:1rem}.excalidraw .HelpDialog__islands-container{display:grid;grid-column-gap:1.5rem;grid-row-gap:2rem}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__islands-container{grid-template-columns:1fr 1fr}}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__island--tools{grid-area:1/1/2/2}.excalidraw .HelpDialog__island--view{grid-area:2/1/3/2}.excalidraw .HelpDialog__island--editor{grid-area:1/2/3/3}}.excalidraw .HelpDialog__island h4{font-size:1rem;font-weight:700;margin:0;margin-bottom:.625rem}.excalidraw .HelpDialog__island-content{border:1px solid var(--dialog-border-color);border-radius:var(--border-radius-lg)}.excalidraw .HelpDialog__shortcut{border-bottom:1px solid var(--dialog-border-color);padding:.375rem .75rem;display:flex;justify-content:space-between;align-items:center;font-size:.875rem;column-gap:.5rem}.excalidraw .HelpDialog__shortcut:last-child{border-bottom:none}.excalidraw .HelpDialog__key-container{display:flex;align-items:center;column-gap:.25rem;flex-shrink:0}.excalidraw .HelpDialog__key{display:flex;box-sizing:border-box;font-size:.625rem;background-color:var(--color-primary-light);border-radius:var(--border-radius-md);padding:.5rem;word-break:keep-all;align-items:center;font-family:inherit;line-height:1}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.17.1-obsidian-39",
3
+ "version": "0.17.1-obsidian-41",
4
4
  "main": "main.js",
5
5
  "types": "types/excalidraw/index.d.ts",
6
6
  "files": [
@@ -105,8 +105,9 @@ export declare const actionAddToLibrary: {
105
105
  shouldCacheIgnoreZoom: boolean;
106
106
  zenModeEnabled: boolean;
107
107
  theme: import("../element/types").Theme;
108
- gridSize: number | null;
109
- previousGridSize: number | null;
108
+ gridSize: number;
109
+ gridStep: number;
110
+ gridModeEnabled: boolean;
110
111
  viewModeEnabled: boolean;
111
112
  selectedGroupIds: {
112
113
  [groupId: string]: boolean;
@@ -172,8 +173,8 @@ export declare const actionAddToLibrary: {
172
173
  gridColor: {
173
174
  Bold: string;
174
175
  Regular: string;
175
- MajorGridFrequency?: number | undefined;
176
176
  };
177
+ highlightSearchResult: boolean;
177
178
  dynamicStyle: {
178
179
  [x: string]: string;
179
180
  };
@@ -297,8 +298,9 @@ export declare const actionAddToLibrary: {
297
298
  } | null;
298
299
  zenModeEnabled: boolean;
299
300
  theme: import("../element/types").Theme;
300
- gridSize: number | null;
301
- previousGridSize: number | null;
301
+ gridSize: number;
302
+ gridStep: number;
303
+ gridModeEnabled: boolean;
302
304
  viewModeEnabled: boolean;
303
305
  selectedGroupIds: {
304
306
  [groupId: string]: boolean;
@@ -364,8 +366,8 @@ export declare const actionAddToLibrary: {
364
366
  gridColor: {
365
367
  Bold: string;
366
368
  Regular: string;
367
- MajorGridFrequency?: number | undefined;
368
369
  };
370
+ highlightSearchResult: boolean;
369
371
  dynamicStyle: {
370
372
  [x: string]: string;
371
373
  };
@@ -489,8 +491,9 @@ export declare const actionAddToLibrary: {
489
491
  } | null;
490
492
  zenModeEnabled: boolean;
491
493
  theme: import("../element/types").Theme;
492
- gridSize: number | null;
493
- previousGridSize: number | null;
494
+ gridSize: number;
495
+ gridStep: number;
496
+ gridModeEnabled: boolean;
494
497
  viewModeEnabled: boolean;
495
498
  selectedGroupIds: {
496
499
  [groupId: string]: boolean;
@@ -556,8 +559,8 @@ export declare const actionAddToLibrary: {
556
559
  gridColor: {
557
560
  Bold: string;
558
561
  Regular: string;
559
- MajorGridFrequency?: number | undefined;
560
562
  };
563
+ highlightSearchResult: boolean;
561
564
  dynamicStyle: {
562
565
  [x: string]: string;
563
566
  };
@@ -127,8 +127,9 @@ export declare const actionBindText: {
127
127
  } | null;
128
128
  zenModeEnabled: boolean;
129
129
  theme: import("../element/types").Theme;
130
- gridSize: number | null;
131
- previousGridSize: number | null;
130
+ gridSize: number;
131
+ gridStep: number;
132
+ gridModeEnabled: boolean;
132
133
  viewModeEnabled: boolean;
133
134
  selectedGroupIds: {
134
135
  [groupId: string]: boolean;
@@ -194,8 +195,8 @@ export declare const actionBindText: {
194
195
  gridColor: {
195
196
  Bold: string;
196
197
  Regular: string;
197
- MajorGridFrequency?: number | undefined;
198
198
  };
199
+ highlightSearchResult: boolean;
199
200
  dynamicStyle: {
200
201
  [x: string]: string;
201
202
  };
@@ -331,8 +332,9 @@ export declare const actionWrapTextInContainer: {
331
332
  } | null;
332
333
  zenModeEnabled: boolean;
333
334
  theme: import("../element/types").Theme;
334
- gridSize: number | null;
335
- previousGridSize: number | null;
335
+ gridSize: number;
336
+ gridStep: number;
337
+ gridModeEnabled: boolean;
336
338
  viewModeEnabled: boolean;
337
339
  selectedGroupIds: {
338
340
  [groupId: string]: boolean;
@@ -398,8 +400,8 @@ export declare const actionWrapTextInContainer: {
398
400
  gridColor: {
399
401
  Bold: string;
400
402
  Regular: string;
401
- MajorGridFrequency?: number | undefined;
402
403
  };
404
+ highlightSearchResult: boolean;
403
405
  dynamicStyle: {
404
406
  [x: string]: string;
405
407
  };
@@ -33,7 +33,9 @@ export declare const actionClearCanvas: {
33
33
  penDetected: boolean;
34
34
  exportBackground: boolean;
35
35
  exportEmbedScene: boolean;
36
- gridSize: number | null;
36
+ gridSize: number;
37
+ gridStep: number;
38
+ gridModeEnabled: boolean;
37
39
  stats: {
38
40
  open: boolean;
39
41
  panels: number;
@@ -158,7 +160,6 @@ export declare const actionClearCanvas: {
158
160
  closable?: boolean | undefined;
159
161
  duration?: number | undefined;
160
162
  } | null;
161
- previousGridSize: number | null;
162
163
  selectedGroupIds: {
163
164
  [groupId: string]: boolean;
164
165
  };
@@ -193,8 +194,8 @@ export declare const actionClearCanvas: {
193
194
  gridColor: {
194
195
  Bold: string;
195
196
  Regular: string;
196
- MajorGridFrequency?: number | undefined;
197
197
  };
198
+ highlightSearchResult: boolean;
198
199
  dynamicStyle: {
199
200
  [x: string]: string;
200
201
  };
@@ -330,8 +331,9 @@ export declare const actionZoomIn: {
330
331
  } | null;
331
332
  zenModeEnabled: boolean;
332
333
  theme: import("../element/types").Theme;
333
- gridSize: number | null;
334
- previousGridSize: number | null;
334
+ gridSize: number;
335
+ gridStep: number;
336
+ gridModeEnabled: boolean;
335
337
  viewModeEnabled: boolean;
336
338
  selectedGroupIds: {
337
339
  [groupId: string]: boolean;
@@ -397,8 +399,8 @@ export declare const actionZoomIn: {
397
399
  gridColor: {
398
400
  Bold: string;
399
401
  Regular: string;
400
- MajorGridFrequency?: number | undefined;
401
402
  };
403
+ highlightSearchResult: boolean;
402
404
  dynamicStyle: {
403
405
  [x: string]: string;
404
406
  };
@@ -536,8 +538,9 @@ export declare const actionZoomOut: {
536
538
  } | null;
537
539
  zenModeEnabled: boolean;
538
540
  theme: import("../element/types").Theme;
539
- gridSize: number | null;
540
- previousGridSize: number | null;
541
+ gridSize: number;
542
+ gridStep: number;
543
+ gridModeEnabled: boolean;
541
544
  viewModeEnabled: boolean;
542
545
  selectedGroupIds: {
543
546
  [groupId: string]: boolean;
@@ -603,8 +606,8 @@ export declare const actionZoomOut: {
603
606
  gridColor: {
604
607
  Bold: string;
605
608
  Regular: string;
606
- MajorGridFrequency?: number | undefined;
607
609
  };
610
+ highlightSearchResult: boolean;
608
611
  dynamicStyle: {
609
612
  [x: string]: string;
610
613
  };
@@ -742,8 +745,9 @@ export declare const actionResetZoom: {
742
745
  } | null;
743
746
  zenModeEnabled: boolean;
744
747
  theme: import("../element/types").Theme;
745
- gridSize: number | null;
746
- previousGridSize: number | null;
748
+ gridSize: number;
749
+ gridStep: number;
750
+ gridModeEnabled: boolean;
747
751
  viewModeEnabled: boolean;
748
752
  selectedGroupIds: {
749
753
  [groupId: string]: boolean;
@@ -809,8 +813,8 @@ export declare const actionResetZoom: {
809
813
  gridColor: {
810
814
  Bold: string;
811
815
  Regular: string;
812
- MajorGridFrequency?: number | undefined;
813
816
  };
817
+ highlightSearchResult: boolean;
814
818
  dynamicStyle: {
815
819
  [x: string]: string;
816
820
  };
@@ -946,8 +950,9 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
946
950
  } | null;
947
951
  zenModeEnabled: boolean;
948
952
  theme: import("../element/types").Theme;
949
- gridSize: number | null;
950
- previousGridSize: number | null;
953
+ gridSize: number;
954
+ gridStep: number;
955
+ gridModeEnabled: boolean;
951
956
  viewModeEnabled: boolean;
952
957
  selectedGroupIds: {
953
958
  [groupId: string]: boolean;
@@ -1013,8 +1018,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
1013
1018
  gridColor: {
1014
1019
  Bold: string;
1015
1020
  Regular: string;
1016
- MajorGridFrequency?: number | undefined;
1017
1021
  };
1022
+ highlightSearchResult: boolean;
1018
1023
  dynamicStyle: {
1019
1024
  [x: string]: string;
1020
1025
  };
@@ -1146,8 +1151,9 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
1146
1151
  } | null;
1147
1152
  zenModeEnabled: boolean;
1148
1153
  theme: import("../element/types").Theme;
1149
- gridSize: number | null;
1150
- previousGridSize: number | null;
1154
+ gridSize: number;
1155
+ gridStep: number;
1156
+ gridModeEnabled: boolean;
1151
1157
  viewModeEnabled: boolean;
1152
1158
  selectedGroupIds: {
1153
1159
  [groupId: string]: boolean;
@@ -1213,8 +1219,8 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
1213
1219
  gridColor: {
1214
1220
  Bold: string;
1215
1221
  Regular: string;
1216
- MajorGridFrequency?: number | undefined;
1217
1222
  };
1223
+ highlightSearchResult: boolean;
1218
1224
  dynamicStyle: {
1219
1225
  [x: string]: string;
1220
1226
  };
@@ -1346,8 +1352,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1346
1352
  } | null;
1347
1353
  zenModeEnabled: boolean;
1348
1354
  theme: import("../element/types").Theme;
1349
- gridSize: number | null;
1350
- previousGridSize: number | null;
1355
+ gridSize: number;
1356
+ gridStep: number;
1357
+ gridModeEnabled: boolean;
1351
1358
  viewModeEnabled: boolean;
1352
1359
  selectedGroupIds: {
1353
1360
  [groupId: string]: boolean;
@@ -1413,8 +1420,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1413
1420
  gridColor: {
1414
1421
  Bold: string;
1415
1422
  Regular: string;
1416
- MajorGridFrequency?: number | undefined;
1417
1423
  };
1424
+ highlightSearchResult: boolean;
1418
1425
  dynamicStyle: {
1419
1426
  [x: string]: string;
1420
1427
  };
@@ -1550,8 +1557,9 @@ export declare const actionZoomToFitSelection: {
1550
1557
  } | null;
1551
1558
  zenModeEnabled: boolean;
1552
1559
  theme: import("../element/types").Theme;
1553
- gridSize: number | null;
1554
- previousGridSize: number | null;
1560
+ gridSize: number;
1561
+ gridStep: number;
1562
+ gridModeEnabled: boolean;
1555
1563
  viewModeEnabled: boolean;
1556
1564
  selectedGroupIds: {
1557
1565
  [groupId: string]: boolean;
@@ -1617,8 +1625,8 @@ export declare const actionZoomToFitSelection: {
1617
1625
  gridColor: {
1618
1626
  Bold: string;
1619
1627
  Regular: string;
1620
- MajorGridFrequency?: number | undefined;
1621
1628
  };
1629
+ highlightSearchResult: boolean;
1622
1630
  dynamicStyle: {
1623
1631
  [x: string]: string;
1624
1632
  };
@@ -1755,8 +1763,9 @@ export declare const actionZoomToFit: {
1755
1763
  } | null;
1756
1764
  zenModeEnabled: boolean;
1757
1765
  theme: import("../element/types").Theme;
1758
- gridSize: number | null;
1759
- previousGridSize: number | null;
1766
+ gridSize: number;
1767
+ gridStep: number;
1768
+ gridModeEnabled: boolean;
1760
1769
  viewModeEnabled: boolean;
1761
1770
  selectedGroupIds: {
1762
1771
  [groupId: string]: boolean;
@@ -1822,8 +1831,8 @@ export declare const actionZoomToFit: {
1822
1831
  gridColor: {
1823
1832
  Bold: string;
1824
1833
  Regular: string;
1825
- MajorGridFrequency?: number | undefined;
1826
1834
  };
1835
+ highlightSearchResult: boolean;
1827
1836
  dynamicStyle: {
1828
1837
  [x: string]: string;
1829
1838
  };
@@ -1961,8 +1970,9 @@ export declare const actionToggleTheme: {
1961
1970
  duration?: number | undefined;
1962
1971
  } | null;
1963
1972
  zenModeEnabled: boolean;
1964
- gridSize: number | null;
1965
- previousGridSize: number | null;
1973
+ gridSize: number;
1974
+ gridStep: number;
1975
+ gridModeEnabled: boolean;
1966
1976
  viewModeEnabled: boolean;
1967
1977
  selectedGroupIds: {
1968
1978
  [groupId: string]: boolean;
@@ -2028,8 +2038,8 @@ export declare const actionToggleTheme: {
2028
2038
  gridColor: {
2029
2039
  Bold: string;
2030
2040
  Regular: string;
2031
- MajorGridFrequency?: number | undefined;
2032
2041
  };
2042
+ highlightSearchResult: boolean;
2033
2043
  dynamicStyle: {
2034
2044
  [x: string]: string;
2035
2045
  };
@@ -2161,8 +2171,9 @@ export declare const actionToggleEraserTool: {
2161
2171
  } | null;
2162
2172
  zenModeEnabled: boolean;
2163
2173
  theme: import("../element/types").Theme;
2164
- gridSize: number | null;
2165
- previousGridSize: number | null;
2174
+ gridSize: number;
2175
+ gridStep: number;
2176
+ gridModeEnabled: boolean;
2166
2177
  viewModeEnabled: boolean;
2167
2178
  editingGroupId: string | null;
2168
2179
  width: number;
@@ -2225,8 +2236,8 @@ export declare const actionToggleEraserTool: {
2225
2236
  gridColor: {
2226
2237
  Bold: string;
2227
2238
  Regular: string;
2228
- MajorGridFrequency?: number | undefined;
2229
2239
  };
2240
+ highlightSearchResult: boolean;
2230
2241
  dynamicStyle: {
2231
2242
  [x: string]: string;
2232
2243
  };
@@ -2360,8 +2371,9 @@ export declare const actionToggleHandTool: {
2360
2371
  } | null;
2361
2372
  zenModeEnabled: boolean;
2362
2373
  theme: import("../element/types").Theme;
2363
- gridSize: number | null;
2364
- previousGridSize: number | null;
2374
+ gridSize: number;
2375
+ gridStep: number;
2376
+ gridModeEnabled: boolean;
2365
2377
  viewModeEnabled: boolean;
2366
2378
  editingGroupId: string | null;
2367
2379
  width: number;
@@ -2424,8 +2436,8 @@ export declare const actionToggleHandTool: {
2424
2436
  gridColor: {
2425
2437
  Bold: string;
2426
2438
  Regular: string;
2427
- MajorGridFrequency?: number | undefined;
2428
2439
  };
2440
+ highlightSearchResult: boolean;
2429
2441
  dynamicStyle: {
2430
2442
  [x: string]: string;
2431
2443
  };
@@ -2556,8 +2568,9 @@ export declare const actionToggleLaserPointer: {
2556
2568
  } | null;
2557
2569
  zenModeEnabled: boolean;
2558
2570
  theme: import("../element/types").Theme;
2559
- gridSize: number | null;
2560
- previousGridSize: number | null;
2571
+ gridSize: number;
2572
+ gridStep: number;
2573
+ gridModeEnabled: boolean;
2561
2574
  viewModeEnabled: boolean;
2562
2575
  editingGroupId: string | null;
2563
2576
  width: number;
@@ -2620,8 +2633,8 @@ export declare const actionToggleLaserPointer: {
2620
2633
  gridColor: {
2621
2634
  Bold: string;
2622
2635
  Regular: string;
2623
- MajorGridFrequency?: number | undefined;
2624
2636
  };
2637
+ highlightSearchResult: boolean;
2625
2638
  dynamicStyle: {
2626
2639
  [x: string]: string;
2627
2640
  };
@@ -2752,8 +2765,9 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2752
2765
  } | null;
2753
2766
  zenModeEnabled: boolean;
2754
2767
  theme: import("../element/types").Theme;
2755
- gridSize: number | null;
2756
- previousGridSize: number | null;
2768
+ gridSize: number;
2769
+ gridStep: number;
2770
+ gridModeEnabled: boolean;
2757
2771
  viewModeEnabled: boolean;
2758
2772
  selectedGroupIds: {
2759
2773
  [groupId: string]: boolean;
@@ -2819,8 +2833,8 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2819
2833
  gridColor: {
2820
2834
  Bold: string;
2821
2835
  Regular: string;
2822
- MajorGridFrequency?: number | undefined;
2823
2836
  };
2837
+ highlightSearchResult: boolean;
2824
2838
  dynamicStyle: {
2825
2839
  [x: string]: string;
2826
2840
  };
@@ -109,8 +109,9 @@ export declare const actionCopy: {
109
109
  } | null;
110
110
  zenModeEnabled: boolean;
111
111
  theme: import("../element/types").Theme;
112
- gridSize: number | null;
113
- previousGridSize: number | null;
112
+ gridSize: number;
113
+ gridStep: number;
114
+ gridModeEnabled: boolean;
114
115
  viewModeEnabled: boolean;
115
116
  selectedGroupIds: {
116
117
  [groupId: string]: boolean;
@@ -176,8 +177,8 @@ export declare const actionCopy: {
176
177
  gridColor: {
177
178
  Bold: string;
178
179
  Regular: string;
179
- MajorGridFrequency?: number | undefined;
180
180
  };
181
+ highlightSearchResult: boolean;
181
182
  dynamicStyle: {
182
183
  [x: string]: string;
183
184
  };
@@ -315,8 +316,9 @@ export declare const actionPaste: {
315
316
  } | null;
316
317
  zenModeEnabled: boolean;
317
318
  theme: import("../element/types").Theme;
318
- gridSize: number | null;
319
- previousGridSize: number | null;
319
+ gridSize: number;
320
+ gridStep: number;
321
+ gridModeEnabled: boolean;
320
322
  viewModeEnabled: boolean;
321
323
  selectedGroupIds: {
322
324
  [groupId: string]: boolean;
@@ -382,8 +384,8 @@ export declare const actionPaste: {
382
384
  gridColor: {
383
385
  Bold: string;
384
386
  Regular: string;
385
- MajorGridFrequency?: number | undefined;
386
387
  };
388
+ highlightSearchResult: boolean;
387
389
  dynamicStyle: {
388
390
  [x: string]: string;
389
391
  };
@@ -522,8 +524,9 @@ export declare const actionCut: {
522
524
  } | null;
523
525
  zenModeEnabled: boolean;
524
526
  theme: import("../element/types").Theme;
525
- gridSize: number | null;
526
- previousGridSize: number | null;
527
+ gridSize: number;
528
+ gridStep: number;
529
+ gridModeEnabled: boolean;
527
530
  viewModeEnabled: boolean;
528
531
  selectedGroupIds: {
529
532
  [groupId: string]: boolean;
@@ -589,8 +592,8 @@ export declare const actionCut: {
589
592
  gridColor: {
590
593
  Bold: string;
591
594
  Regular: string;
592
- MajorGridFrequency?: number | undefined;
593
595
  };
596
+ highlightSearchResult: boolean;
594
597
  dynamicStyle: {
595
598
  [x: string]: string;
596
599
  };
@@ -744,8 +747,9 @@ export declare const actionCut: {
744
747
  } | null;
745
748
  zenModeEnabled: boolean;
746
749
  theme: import("../element/types").Theme;
747
- gridSize: number | null;
748
- previousGridSize: number | null;
750
+ gridSize: number;
751
+ gridStep: number;
752
+ gridModeEnabled: boolean;
749
753
  viewModeEnabled: boolean;
750
754
  selectedGroupIds: {
751
755
  [groupId: string]: boolean;
@@ -811,8 +815,8 @@ export declare const actionCut: {
811
815
  gridColor: {
812
816
  Bold: string;
813
817
  Regular: string;
814
- MajorGridFrequency?: number | undefined;
815
818
  };
819
+ highlightSearchResult: boolean;
816
820
  dynamicStyle: {
817
821
  [x: string]: string;
818
822
  };
@@ -933,8 +937,9 @@ export declare const actionCut: {
933
937
  } | null;
934
938
  zenModeEnabled: boolean;
935
939
  theme: import("../element/types").Theme;
936
- gridSize: number | null;
937
- previousGridSize: number | null;
940
+ gridSize: number;
941
+ gridStep: number;
942
+ gridModeEnabled: boolean;
938
943
  viewModeEnabled: boolean;
939
944
  editingGroupId: string | null;
940
945
  width: number;
@@ -997,8 +1002,8 @@ export declare const actionCut: {
997
1002
  gridColor: {
998
1003
  Bold: string;
999
1004
  Regular: string;
1000
- MajorGridFrequency?: number | undefined;
1001
1005
  };
1006
+ highlightSearchResult: boolean;
1002
1007
  dynamicStyle: {
1003
1008
  [x: string]: string;
1004
1009
  };
@@ -1137,8 +1142,9 @@ export declare const actionCopyAsSvg: {
1137
1142
  } | null;
1138
1143
  zenModeEnabled: boolean;
1139
1144
  theme: import("../element/types").Theme;
1140
- gridSize: number | null;
1141
- previousGridSize: number | null;
1145
+ gridSize: number;
1146
+ gridStep: number;
1147
+ gridModeEnabled: boolean;
1142
1148
  viewModeEnabled: boolean;
1143
1149
  selectedGroupIds: {
1144
1150
  [groupId: string]: boolean;
@@ -1204,8 +1210,8 @@ export declare const actionCopyAsSvg: {
1204
1210
  gridColor: {
1205
1211
  Bold: string;
1206
1212
  Regular: string;
1207
- MajorGridFrequency?: number | undefined;
1208
1213
  };
1214
+ highlightSearchResult: boolean;
1209
1215
  dynamicStyle: {
1210
1216
  [x: string]: string;
1211
1217
  };
@@ -1345,8 +1351,9 @@ export declare const actionCopyAsPng: {
1345
1351
  } | null;
1346
1352
  zenModeEnabled: boolean;
1347
1353
  theme: import("../element/types").Theme;
1348
- gridSize: number | null;
1349
- previousGridSize: number | null;
1354
+ gridSize: number;
1355
+ gridStep: number;
1356
+ gridModeEnabled: boolean;
1350
1357
  viewModeEnabled: boolean;
1351
1358
  selectedGroupIds: {
1352
1359
  [groupId: string]: boolean;
@@ -1412,8 +1419,8 @@ export declare const actionCopyAsPng: {
1412
1419
  gridColor: {
1413
1420
  Bold: string;
1414
1421
  Regular: string;
1415
- MajorGridFrequency?: number | undefined;
1416
1422
  };
1423
+ highlightSearchResult: boolean;
1417
1424
  dynamicStyle: {
1418
1425
  [x: string]: string;
1419
1426
  };