@excalidraw/excalidraw 0.18.0-9036812b6 → 0.18.0-91c7748
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/{chunk-FRLWKCNE.js → chunk-LJB4UXX2.js} +37 -31
- package/dist/dev/chunk-LJB4UXX2.js.map +7 -0
- package/dist/dev/data/{image-T2LJEHDP.js → image-OLV524AK.js} +2 -2
- package/dist/dev/index.css +126 -1
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +2365 -1295
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/chunk-PYEQN4AH.js +4 -0
- package/dist/prod/data/{image-53OPA26C.js → image-IFOCRD4I.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +22 -22
- package/dist/types/common/src/constants.d.ts +19 -4
- package/dist/types/common/src/utils.d.ts +1 -0
- package/dist/types/element/src/Scene.d.ts +6 -2
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +6 -3
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/store.d.ts +6 -1
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +29 -15
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +18 -9
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +8 -4
- package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +3 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +48 -24
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -1
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +1 -0
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +8 -1
- package/dist/types/excalidraw/components/App.d.ts +11 -8
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/icons.d.ts +6 -0
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +1 -5
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +6 -1
- package/dist/types/math/src/segment.d.ts +1 -0
- package/history.ts +1 -1
- package/package.json +5 -5
- package/dist/dev/chunk-FRLWKCNE.js.map +0 -7
- package/dist/prod/chunk-YZO7PSYQ.js +0 -4
- /package/dist/dev/data/{image-T2LJEHDP.js.map → image-OLV524AK.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-LJB4UXX2.js";
|
|
6
6
|
import "../chunk-CP5DND7P.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
@@ -10,4 +10,4 @@ export {
|
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-OLV524AK.js.map
|
package/dist/dev/index.css
CHANGED
|
@@ -608,6 +608,11 @@
|
|
|
608
608
|
.excalidraw--mobile.excalidraw .color-picker-container {
|
|
609
609
|
max-width: 11rem;
|
|
610
610
|
}
|
|
611
|
+
.excalidraw .color-picker-container.color-picker-container--no-top-picks {
|
|
612
|
+
display: flex;
|
|
613
|
+
justify-content: center;
|
|
614
|
+
grid-template-columns: unset;
|
|
615
|
+
}
|
|
611
616
|
.excalidraw .color-picker__top-picks {
|
|
612
617
|
display: flex;
|
|
613
618
|
justify-content: space-between;
|
|
@@ -656,6 +661,15 @@
|
|
|
656
661
|
width: 1.25rem;
|
|
657
662
|
height: 1.25rem;
|
|
658
663
|
}
|
|
664
|
+
.excalidraw .color-picker__button .color-picker__button-background {
|
|
665
|
+
display: flex;
|
|
666
|
+
align-items: center;
|
|
667
|
+
justify-content: center;
|
|
668
|
+
}
|
|
669
|
+
.excalidraw .color-picker__button .color-picker__button-background svg {
|
|
670
|
+
width: 100%;
|
|
671
|
+
height: 100%;
|
|
672
|
+
}
|
|
659
673
|
.excalidraw .color-picker__button.active .color-picker__button-outline {
|
|
660
674
|
position: absolute;
|
|
661
675
|
--offset: -1px;
|
|
@@ -1078,6 +1092,10 @@
|
|
|
1078
1092
|
.excalidraw--mobile.excalidraw .FontPicker__container {
|
|
1079
1093
|
max-width: calc(2rem + 4 * var(--default-button-size));
|
|
1080
1094
|
}
|
|
1095
|
+
.excalidraw .FontPicker__container--compact {
|
|
1096
|
+
display: block;
|
|
1097
|
+
grid-template-columns: none;
|
|
1098
|
+
}
|
|
1081
1099
|
|
|
1082
1100
|
/* components/IconPicker.scss */
|
|
1083
1101
|
.excalidraw .picker {
|
|
@@ -2866,6 +2884,98 @@
|
|
|
2866
2884
|
border-top-left-radius: 0 !important;
|
|
2867
2885
|
border-bottom-left-radius: 0 !important;
|
|
2868
2886
|
}
|
|
2887
|
+
.compact-shape-actions {
|
|
2888
|
+
display: flex;
|
|
2889
|
+
flex-direction: column;
|
|
2890
|
+
gap: 0.5rem;
|
|
2891
|
+
max-height: calc(100vh - 200px);
|
|
2892
|
+
overflow-y: auto;
|
|
2893
|
+
padding: 0.5rem;
|
|
2894
|
+
}
|
|
2895
|
+
.compact-shape-actions .compact-action-item {
|
|
2896
|
+
position: relative;
|
|
2897
|
+
display: flex;
|
|
2898
|
+
justify-content: center;
|
|
2899
|
+
align-items: center;
|
|
2900
|
+
min-height: 2.5rem;
|
|
2901
|
+
--default-button-size: 2rem;
|
|
2902
|
+
}
|
|
2903
|
+
.compact-shape-actions .compact-action-item .compact-action-button {
|
|
2904
|
+
width: 2rem;
|
|
2905
|
+
height: 2rem;
|
|
2906
|
+
border: none;
|
|
2907
|
+
border-radius: var(--border-radius-lg);
|
|
2908
|
+
background: transparent;
|
|
2909
|
+
color: var(--color-on-surface);
|
|
2910
|
+
cursor: pointer;
|
|
2911
|
+
display: flex;
|
|
2912
|
+
align-items: center;
|
|
2913
|
+
justify-content: center;
|
|
2914
|
+
transition: all 0.2s ease;
|
|
2915
|
+
}
|
|
2916
|
+
.compact-shape-actions .compact-action-item .compact-action-button svg {
|
|
2917
|
+
width: 1rem;
|
|
2918
|
+
height: 1rem;
|
|
2919
|
+
flex: 0 0 auto;
|
|
2920
|
+
}
|
|
2921
|
+
.compact-shape-actions .compact-action-item .compact-action-button:hover {
|
|
2922
|
+
background: var(--button-hover-bg, var(--island-bg-color));
|
|
2923
|
+
border-color: var(--button-hover-border, var(--button-border, var(--default-border-color)));
|
|
2924
|
+
}
|
|
2925
|
+
.compact-shape-actions .compact-action-item .compact-action-button:active {
|
|
2926
|
+
background: var(--button-active-bg, var(--island-bg-color));
|
|
2927
|
+
border-color: var(--button-active-border, var(--color-primary-darkest));
|
|
2928
|
+
}
|
|
2929
|
+
.compact-shape-actions .compact-action-item .compact-popover-content .popover-section {
|
|
2930
|
+
margin-bottom: 1rem;
|
|
2931
|
+
}
|
|
2932
|
+
.compact-shape-actions .compact-action-item .compact-popover-content .popover-section:last-child {
|
|
2933
|
+
margin-bottom: 0;
|
|
2934
|
+
}
|
|
2935
|
+
.compact-shape-actions .compact-action-item .compact-popover-content .popover-section .popover-section-title {
|
|
2936
|
+
font-size: 0.75rem;
|
|
2937
|
+
font-weight: 600;
|
|
2938
|
+
color: var(--color-text-secondary);
|
|
2939
|
+
margin-bottom: 0.5rem;
|
|
2940
|
+
text-transform: uppercase;
|
|
2941
|
+
letter-spacing: 0.5px;
|
|
2942
|
+
}
|
|
2943
|
+
.compact-shape-actions .compact-action-item .compact-popover-content .popover-section .buttonList {
|
|
2944
|
+
display: flex;
|
|
2945
|
+
flex-wrap: wrap;
|
|
2946
|
+
gap: 0.25rem;
|
|
2947
|
+
}
|
|
2948
|
+
.compact-shape-actions-island {
|
|
2949
|
+
width: fit-content;
|
|
2950
|
+
overflow-x: hidden;
|
|
2951
|
+
}
|
|
2952
|
+
.compact-popover-content .popover-section {
|
|
2953
|
+
margin-bottom: 1rem;
|
|
2954
|
+
}
|
|
2955
|
+
.compact-popover-content .popover-section:last-child {
|
|
2956
|
+
margin-bottom: 0;
|
|
2957
|
+
}
|
|
2958
|
+
.compact-popover-content .popover-section .popover-section-title {
|
|
2959
|
+
font-size: 0.75rem;
|
|
2960
|
+
font-weight: 600;
|
|
2961
|
+
color: var(--color-text-secondary);
|
|
2962
|
+
margin-bottom: 0.5rem;
|
|
2963
|
+
text-transform: uppercase;
|
|
2964
|
+
letter-spacing: 0.5px;
|
|
2965
|
+
}
|
|
2966
|
+
.compact-popover-content .popover-section .buttonList {
|
|
2967
|
+
display: flex;
|
|
2968
|
+
flex-wrap: wrap;
|
|
2969
|
+
gap: 0.25rem;
|
|
2970
|
+
}
|
|
2971
|
+
.shape-actions-theme-scope {
|
|
2972
|
+
--button-border: transparent;
|
|
2973
|
+
--button-bg: var(--color-surface-mid);
|
|
2974
|
+
}
|
|
2975
|
+
:root.theme--dark .shape-actions-theme-scope {
|
|
2976
|
+
--button-hover-bg: #363541;
|
|
2977
|
+
--button-bg: var(--color-surface-high);
|
|
2978
|
+
}
|
|
2869
2979
|
|
|
2870
2980
|
/* components/CommandPalette/CommandPalette.scss */
|
|
2871
2981
|
.excalidraw .command-palette-dialog {
|
|
@@ -5157,6 +5267,9 @@
|
|
|
5157
5267
|
gap: 0.75rem;
|
|
5158
5268
|
pointer-events: none !important;
|
|
5159
5269
|
}
|
|
5270
|
+
.excalidraw .layer-ui__wrapper__top-right--compact {
|
|
5271
|
+
gap: 0.5rem;
|
|
5272
|
+
}
|
|
5160
5273
|
.excalidraw .layer-ui__wrapper__top-right > * {
|
|
5161
5274
|
pointer-events: var(--ui-pointerEvents);
|
|
5162
5275
|
}
|
|
@@ -5235,6 +5348,12 @@
|
|
|
5235
5348
|
.excalidraw .App-toolbar.zen-mode .HintViewer {
|
|
5236
5349
|
display: none;
|
|
5237
5350
|
}
|
|
5351
|
+
.excalidraw .App-toolbar--compact .ToolIcon__keybinding {
|
|
5352
|
+
display: none;
|
|
5353
|
+
}
|
|
5354
|
+
.excalidraw .App-toolbar--compact .App-toolbar__divider {
|
|
5355
|
+
margin: 0;
|
|
5356
|
+
}
|
|
5238
5357
|
.excalidraw .App-toolbar__divider {
|
|
5239
5358
|
width: 1px;
|
|
5240
5359
|
height: 1.5rem;
|
|
@@ -6258,7 +6377,7 @@ body.excalidraw-cursor-resize * {
|
|
|
6258
6377
|
}
|
|
6259
6378
|
.excalidraw .App-menu_top {
|
|
6260
6379
|
grid-template-columns: 1fr 2fr 1fr;
|
|
6261
|
-
grid-gap:
|
|
6380
|
+
grid-gap: 1rem;
|
|
6262
6381
|
align-items: flex-start;
|
|
6263
6382
|
cursor: default;
|
|
6264
6383
|
pointer-events: none !important;
|
|
@@ -6275,6 +6394,12 @@ body.excalidraw-cursor-resize * {
|
|
|
6275
6394
|
.excalidraw .App-menu_top > *:first-child {
|
|
6276
6395
|
justify-self: flex-start;
|
|
6277
6396
|
}
|
|
6397
|
+
.excalidraw .selected-shape-actions-container {
|
|
6398
|
+
width: fit-content;
|
|
6399
|
+
}
|
|
6400
|
+
.excalidraw .selected-shape-actions-container--compact {
|
|
6401
|
+
min-width: 48px;
|
|
6402
|
+
}
|
|
6278
6403
|
.excalidraw .App-menu_top > *:last-child {
|
|
6279
6404
|
justify-self: flex-end;
|
|
6280
6405
|
}
|