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

Function getBarCenters

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

Source from the content-addressed store, hash-verified

44 );
45
46const getBarCenters = (container: HTMLElement): number[] =>
47 Array.from(container.querySelectorAll('.plot .bar'), (bar) => {
48 return (
49 Number(bar.getAttribute('x')) + Number(bar.getAttribute('width')) / 2
50 );
51 });
52
53const getBarWidths = (container: HTMLElement): number[] =>
54 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…