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

Function onToggleChange

examples/annotations/main.ts:288–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286 await createChart(false);
287
288 const onToggleChange = (): void => {
289 // Fire-and-forget; errors are surfaced to the error panel.
290 createChart(modeToggle.checkbox.checked).catch((err) => {
291 console.error(err);
292 showError(err instanceof Error ? err.message : String(err));
293 });
294 };
295
296 modeToggle.checkbox.addEventListener('change', onToggleChange);
297

Callers

nothing calls this directly

Calls 2

createChartFunction · 0.70
showErrorFunction · 0.70

Tested by

no test coverage detected