mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: actionCropEditor not working
This commit is contained in:
parent
c498247e0f
commit
8701a5f843
2 changed files with 1 additions and 7 deletions
|
@ -10,7 +10,6 @@ export const actionToggleCropEditor = register({
|
|||
name: "cropEditor",
|
||||
label: "helpDialog.cropStart",
|
||||
icon: cropIcon,
|
||||
paletteName: "Finish image cropping",
|
||||
viewMode: true,
|
||||
trackEvent: { category: "menu" },
|
||||
keywords: ["image", "crop"],
|
||||
|
@ -24,7 +23,7 @@ export const actionToggleCropEditor = register({
|
|||
appState: {
|
||||
...appState,
|
||||
isCropping: false,
|
||||
croppingElement: selectedElement,
|
||||
croppingElementId: selectedElement.id,
|
||||
},
|
||||
storeAction: StoreAction.CAPTURE,
|
||||
};
|
||||
|
|
|
@ -152,7 +152,6 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
|
|||
],
|
||||
"label": "helpDialog.cropStart",
|
||||
"name": "cropEditor",
|
||||
"paletteName": "Finish image cropping",
|
||||
"perform": [Function],
|
||||
"predicate": [Function],
|
||||
"trackEvent": {
|
||||
|
@ -4738,7 +4737,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
|
|||
],
|
||||
"label": "helpDialog.cropStart",
|
||||
"name": "cropEditor",
|
||||
"paletteName": "Finish image cropping",
|
||||
"perform": [Function],
|
||||
"predicate": [Function],
|
||||
"trackEvent": {
|
||||
|
@ -5912,7 +5910,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
|
|||
],
|
||||
"label": "helpDialog.cropStart",
|
||||
"name": "cropEditor",
|
||||
"paletteName": "Finish image cropping",
|
||||
"perform": [Function],
|
||||
"predicate": [Function],
|
||||
"trackEvent": {
|
||||
|
@ -7808,7 +7805,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
|
|||
],
|
||||
"label": "helpDialog.cropStart",
|
||||
"name": "cropEditor",
|
||||
"paletteName": "Finish image cropping",
|
||||
"perform": [Function],
|
||||
"predicate": [Function],
|
||||
"trackEvent": {
|
||||
|
@ -8749,7 +8745,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
|
|||
],
|
||||
"label": "helpDialog.cropStart",
|
||||
"name": "cropEditor",
|
||||
"paletteName": "Finish image cropping",
|
||||
"perform": [Function],
|
||||
"predicate": [Function],
|
||||
"trackEvent": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue