import { CellPropertiesEventHandler } from './cell-properties';
/**
 * Cancel Event handler for the cell properties.
 */
export class CellPropertiesCancelEventHandler extends CellPropertiesEventHandler {
  /**
   * Cancel cell properties changes
   *
   * @param {RTETableExtensionContext} extensionContext - The table extension context.
   * @param {Record<string, RTETablePropertiesType>} data - The origin of the properties.
   * @param {RTENode} focusNode - The focus node.
   */
  handle(extensionContext, data, focusNode) {
    this.applyProperties(extensionContext, data, true);
    this.updateCursorPosition(extensionContext, focusNode);
  }
}
