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

Function setText

examples/sampling/main.ts:13–17  ·  view source on GitHub ↗
(id: string, text: string)

Source from the content-addressed store, hash-verified

11const formatInt = (n: number): string => new Intl.NumberFormat(undefined).format(Math.max(0, Math.floor(n)));
12
13const setText = (id: string, text: string): void => {
14 const el = document.getElementById(id);
15 if (!el) return;
16 el.textContent = text;
17};
18
19const createZoomyLineData = (count: number): ReadonlyArray<DataPoint> => {
20 const n = Math.max(2, Math.floor(count));

Callers 1

updateReadoutsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected