Skip to content

Commit

Permalink
chore: move should clear clipboard shape
Browse files Browse the repository at this point in the history
  • Loading branch information
ybzky committed Dec 10, 2024
1 parent 6910f67 commit c7895ad
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ import {
InsertColMutation,
InsertRowMutation,
MAX_CELL_PER_SHEET_KEY,
MoveColsMutation,
MoveRangeMutation,
MoveRowsMutation,
RemoveColMutation,
RemoveRowMutation,
SetRangeValuesMutation,
Expand Down Expand Up @@ -110,7 +113,15 @@ import {
* service. You can create a similar clipboard controller to add logic for your own features.
*/

const shouldRemoveShapeIds = [InsertColMutation.id, InsertRowMutation.id, RemoveColMutation.id, RemoveRowMutation.id];
const shouldRemoveShapeIds = [
InsertColMutation.id,
InsertRowMutation.id,
RemoveColMutation.id,
RemoveRowMutation.id,
MoveRangeMutation.id,
MoveRowsMutation.id,
MoveColsMutation.id,
];

export class SheetClipboardController extends RxDisposable {
constructor(
Expand Down

0 comments on commit c7895ad

Please sign in to comment.