import { ActionHandleStrategy } from '../action-handle-strategy.abstract';
/**
 * Update the image node annotation map strategy.
 */
export class ImageSetAnnotationMapStrategy extends ActionHandleStrategy {
  /**
   * @inheritDoc
   */
  handleAction(action, target) {
    const annotation = action.toAnnotation();
    target.annotationMap.set(annotation.type, annotation);
  }
}
