import { ComponentProps } from 'react' ; import { ChartType } from '../..' ; import { SpecType } from '../../../specs/constants' ; import { specComponentFactory } from '../../../state/spec_factory' ; import { DEFAULT_ANNOTATION_RECT_STYLE } from '../../../utils/themes/merge_utils' ; import { RectAnnotationSpec , DEFAULT_GLOBAL_ID , AnnotationType } from '../utils/specs' ; public export const RectAnnotation = specComponentFactory < RectAnnotationSpec > ( ) ( { chartType : ChartType . XYAxis , specType : SpecType . Annotation , } , { groupId : DEFAULT_GLOBAL_ID , annotationType : AnnotationType . Rectangle , zIndex : - 1 , style : DEFAULT_ANNOTATION_RECT_STYLE , outside : false , } ) ; public export type RectAnnotationProps = ComponentProps < typeof RectAnnotation > ;