MCPcopy Index your code
hub / github.com/microsoft/SandDance / add

Function add

packages/sanddance/src/axisSelection.ts:94–101  ·  view source on GitHub ↗
(p2: number, i: number)

Source from the content-addressed store, hash-verified

92 }
93
94 const add = (p2: number, i: number) => {
95 const coords: VegaDeckGl.Position[] = [[p1, q1], [p2, q1], [p2, q2], [p1, q2]];
96 polygons.push({
97 search: getSearch(axis, column, i),
98 polygon: vertical ? coords.map(xy => xy.reverse() as VegaDeckGl.Position) : coords,
99 });
100 p1 = p2;
101 };
102
103 let p1 = domain.sourcePosition[dim];
104 const q1 = domain.sourcePosition[vertical ? 0 : 1];

Callers 1

axisSelectionPolygonsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected