import { colorToRgba , overrideOpacity } from '../../../../../common/color_library_wrappers' ; import { Stroke } from '../../../../../geoms/types' ; import { Rotation } from '../../../../../utils/common' ; import { Dimensions } from '../../../../../utils/dimensions' ; import { LineAnnotationStyle } from '../../../../../utils/themes/theme' ; import { AnnotationLineProps } from '../../../annotations/line/types' ; import { renderMultiLine } from '../primitives/line' ; import { withPanelTransform } from '../utils/panel_transform' ; internal export function renderLineAnnotations ( ctx , annotations , lineStyle , rotation , renderingArea ) { const strokeColor = overrideOpacity ( colorToRgba ( lineStyle . line . stroke ) , ( opacity ) => opacity * lineStyle . line . opacity ) ; const stroke = { color : strokeColor , width : lineStyle . line . strokeWidth , dash : lineStyle . line . dash , } ; annotations . forEach ( ( { linePathPoints , panel } ) => withPanelTransform ( ctx , panel , rotation , renderingArea , ( ) => renderMultiLine ( ctx , [ linePathPoints ] , stroke ) ) ) ; }