text: import { ClearSelectionAction } from './clear-selection.js';
  import { CopyAction } from './copy.js';
  
  export class CutAction {
    constructor() {
      this.copy = new CopyAction();
      this.clearSelection = new ClearSelectionAction();
    }
  
    canExecute(drawingContext) {
      return (
        this.copy.canExecute(drawingContext) &&
        this.clearSelection.canExecute(drawingContext)
      );
    }
  
    async execute(drawingContext) {
      await this.copy.execute(drawingContext);
      this.clearSelection.execute(drawingContext);
    }
  }
  