import { ActionHandleStrategy } from '../action-handle-strategy.abstract';
/**
 * Update the text block and image block horizontal alignment strategy.
 */
export class BlockUpdateIndentStrategy extends ActionHandleStrategy {
  /**
   * Updating the indent of a block requires cascading updates to the custom style.
   *
   * @param {IndentAnnotationAction} _action - The indent annotation action.
   * @param {RTETextBlock} target - The current text block.
   */
  handleAction(_action, target) {
    this.updateCustomStyleAnnotation(target, ['marginLeft']);
  }
}
