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

Function disposeChart

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

Source from the content-addressed store, hash-verified

258 let ro: DisposableResizeObserver | null = null;
259
260 const disposeChart = (): void => {
261 ro?.disconnect();
262 ro = null;
263 chart?.dispose();
264 chart = null;
265 };
266
267 const createChart = async (useWorker: boolean): Promise<void> => {
268 // Prevent re-entrancy + accidental double-clicks during async init.

Callers 2

createChartFunction · 0.70
cleanupFunction · 0.70

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected