Function
buildLine
(spinner: SpinnerConfig, duration: number, index: number, total: number)
Source from the content-addressed store, hash-verified
| 100 | }; |
| 101 | |
| 102 | const buildLine = (spinner: SpinnerConfig, duration: number, index: number, total: number) => { |
| 103 | const data = spinner.fn(duration, index, total); |
| 104 | data.style['animation-duration'] = duration + 'ms'; |
| 105 | |
| 106 | return ( |
| 107 | <svg viewBox={data.viewBox || '0 0 64 64'} style={data.style}> |
| 108 | <line transform="translate(32,32)" y1={data.y1} y2={data.y2} /> |
| 109 | </svg> |
| 110 | ); |
| 111 | }; |
Tested by
no test coverage detected