MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / buildLine

Function buildLine

core/src/components/spinner/spinner.tsx:102–111  ·  view source on GitHub ↗
(spinner: SpinnerConfig, duration: number, index: number, total: number)

Source from the content-addressed store, hash-verified

100};
101
102const 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};

Callers 1

renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected