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

Function apply

examples/sampling/main.ts:194–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192 chart.resize();
193
194 const apply = (): void => {
195 controls = {
196 mode: normalizeSamplingMode(modeEl.value),
197 threshold: normalizeThreshold(thresholdEl.value),
198 };
199
200 userOptions = createOptions(data, controls, xMax);
201 chart.setOption(userOptions);
202 updateReadouts(data.length, xMax, controls, chart.getZoomRange());
203 };
204
205 applyEl.addEventListener('click', apply);
206 thresholdEl.addEventListener('keydown', (e) => {

Callers 1

mainFunction · 0.70

Calls 6

normalizeSamplingModeFunction · 0.85
normalizeThresholdFunction · 0.85
updateReadoutsFunction · 0.85
createOptionsFunction · 0.70
setOptionMethod · 0.65
getZoomRangeMethod · 0.65

Tested by

no test coverage detected