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

Function getEl

examples/scatter-density-1m/main.ts:63–67  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

61};
62
63const getEl = <T extends HTMLElement>(id: string): T => {
64 const el = document.getElementById(id);
65 if (!el) throw new Error(`Missing element #${id}`);
66 return el as T;
67};
68
69const lowerBoundByX = (points: ReadonlyArray<ScatterPointTuple>, x: number): number => {
70 let lo = 0;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected