diff --git a/src/Line.tsx b/src/Line.tsx index 169fa62..6eb9a9a 100644 --- a/src/Line.tsx +++ b/src/Line.tsx @@ -76,6 +76,7 @@ const Line: React.FC = ({ stroke={color as string} strokeWidth={strokeWidth} fillOpacity="0" + opacity={ptg === 0 ? 0 : 1} ref={(elem) => { // https://reactjs.org/docs/refs-and-the-dom.html#callback-refs // React will call the ref callback with the DOM element when the component mounts,