MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getLinePathXs

Function getLinePathXs

test/unit/core/ui-react/ui-react-dom-charts.test.tsx:38–44  ·  view source on GitHub ↗
(container: HTMLElement)

Source from the content-addressed store, hash-verified

36 );
37
38const getLinePathXs = (container: HTMLElement): number[][] =>
39 Array.from(container.querySelectorAll('.plot .line-series .line'), (path) =>
40 Array.from(
41 path.getAttribute('d')?.matchAll(/[ML]([^,]+)/g) ?? [],
42 ([, x]) => Number(x),
43 ),
44 );
45
46const getBarCenters = (container: HTMLElement): number[] =>
47 Array.from(container.querySelectorAll('.plot .bar'), (bar) => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…