MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / createAnimationConfig

Function createAnimationConfig

examples/data-update-animation/main.ts:88–91  ·  view source on GitHub ↗
(enabled: boolean)

Source from the content-addressed store, hash-verified

86};
87
88const createAnimationConfig = (enabled: boolean): ChartGPUOptions['animation'] => {
89 if (!enabled) return false;
90 return { duration: 700, easing: 'cubicInOut', delay: 0 };
91};
92
93const createCartesianOptions = (data: Readonly<{ bars: ReadonlyArray<DataPoint>; line: ReadonlyArray<DataPoint> }>, animation: ChartGPUOptions['animation']): ChartGPUOptions => {
94 const n = data.line.length;

Callers 1

updateChartsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected