MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getStrokeDasharray

Function getStrokeDasharray

apps/start/src/hooks/use-dashed-stroke.tsx:190–192  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

188 const [strokeDasharray, setStrokeDasharray] = useState([...strokes]);
189 const handleAnimationEnd = () => setStrokeDasharray([...strokes]);
190 const getStrokeDasharray = (name: string) => {
191 return strokeDasharray.find((s) => s?.name === name)?.strokeDasharray;
192 };
193
194 return {
195 calcStrokeDasharray,

Callers 2

ChartFunction · 0.85
ChartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected