MCPcopy
hub / github.com/msgbyte/tianji / getStrokeDasharray

Function getStrokeDasharray

src/client/components/chart/TimeEventChart.tsx:81–84  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

79 const [strokeDasharray, setStrokeDasharray] = useState([...strokes]);
80 const handleAnimationEnd = () => setStrokeDasharray([...strokes]);
81 const getStrokeDasharray = (name: string) => {
82 const lineDasharray = strokeDasharray.find((s) => s.name === name);
83 return lineDasharray ? lineDasharray.strokeDasharray : undefined;
84 };
85 const [selectedItem, setSelectedItem] = useState<string[]>(() =>
86 Object.keys(chartConfig)
87 );

Callers 1

TimeEventChart.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected