@@ -6,7 +6,7 @@ import GenericChartComponent from "../GenericChartComponent";
66import { getAxisCanvas } from "../GenericComponent" ;
77import { AxisZoomCapture } from "./AxisZoomCapture" ;
88
9- import { first , getStrokeDasharray , hexToRGBA , identity , isDefined , isNotDefined , last , strokeDashTypes , zipper } from "../utils" ;
9+ import { colorToRGBA , first , getStrokeDasharray , identity , isDefined , isNotDefined , last , strokeDashTypes , zipper } from "../utils" ;
1010
1111interface AxisProps {
1212 readonly flexTicks ?: boolean ;
@@ -300,7 +300,7 @@ function drawAxisLine(ctx, props, range) {
300300 const xAxis = ( orient === "bottom" || orient === "top" ) ;
301301
302302 ctx . lineWidth = strokeWidth ;
303- ctx . strokeStyle = hexToRGBA ( stroke , opacity ) ;
303+ ctx . strokeStyle = colorToRGBA ( stroke , opacity ) ;
304304
305305 ctx . beginPath ( ) ;
306306
@@ -414,7 +414,7 @@ function drawTicks(ctx, result) {
414414 const { tickStroke, tickStrokeOpacity, tickLabelFill } = result ;
415415 const { textAnchor, fontSize, fontFamily, fontWeight, ticks, showTickLabel } = result ;
416416
417- ctx . strokeStyle = hexToRGBA ( tickStroke , tickStrokeOpacity ) ;
417+ ctx . strokeStyle = colorToRGBA ( tickStroke , tickStrokeOpacity ) ;
418418
419419 ctx . fillStyle = tickStroke ;
420420
0 commit comments