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

Function setElementText

examples/worker-rendering/main.ts:150–153  ·  view source on GitHub ↗
(id: string, text: string)

Source from the content-addressed store, hash-verified

148// ============================================================================
149
150function setElementText(id: string, text: string): void {
151 const el = document.getElementById(id);
152 if (el) el.textContent = text;
153}
154
155function showStatus(message: string, type: 'success' | 'warning' | 'error' = 'success'): void {
156 const el = document.getElementById('statusMessage');

Callers 2

updateMetricsDisplayFunction · 0.85
clearMetricsDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected