MCPcopy Create free account
hub / github.com/ChartGPU/ChartGPU / broadcast

Function broadcast

src/interaction/createChartSync.ts:19–25  ·  view source on GitHub ↗
(sourceChart: ChartGPU, x: number | null)

Source from the content-addressed store, hash-verified

17 const unsubscribeFns: Array<() => void> = [];
18
19 const broadcast = (sourceChart: ChartGPU, x: number | null): void => {
20 for (const chart of charts) {
21 if (chart === sourceChart) continue;
22 if (chart.disposed) continue;
23 chart.setCrosshairX(x, connectionToken);
24 }
25 };
26
27 for (const chart of charts) {
28 if (chart.disposed) continue;

Callers 1

onCrosshairMoveFunction · 0.85

Calls 1

setCrosshairXMethod · 0.65

Tested by

no test coverage detected