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

Function toggleStreaming

examples/candlestick-streaming/main.ts:241–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239}
240
241function toggleStreaming() {
242 isStreaming = !isStreaming;
243 if (isStreaming) {
244 tickSimulator.start();
245 document.getElementById('toggle-btn')!.textContent = '⏸ Pause';
246 document.getElementById('toggle-btn')!.classList.add('active');
247 } else {
248 tickSimulator.stop();
249 document.getElementById('toggle-btn')!.textContent = '▶ Start';
250 document.getElementById('toggle-btn')!.classList.remove('active');
251 }
252}
253
254function toggleAutoScroll() {
255 autoScrollEnabled = !autoScrollEnabled;

Callers 1

initFunction · 0.85

Calls 2

startMethod · 0.65
stopMethod · 0.65

Tested by

no test coverage detected