import { colorToRgba , overrideOpacity } from '../../../../../common/color_library_wrappers' ; import { Stroke } from '../../../../../geoms/types' ; import { getColorFromVariant } from '../../../../../utils/common' ; import { GeometryStateStyle , LineStyle } from '../../../../../utils/themes/theme' ; param baseColor param themeLineStyle param geometryStateStyle internal export function buildLineStyles ( baseColor , themeLineStyle , geometryStateStyle ) { const strokeColor = overrideOpacity ( colorToRgba ( getColorFromVariant ( baseColor , themeLineStyle . stroke ) ) , ( opacity ) => opacity * themeLineStyle . opacity * geometryStateStyle . opacity ) ; return { color : strokeColor , width : themeLineStyle . strokeWidth , dash : themeLineStyle . dash , } ; }