Function: cellPath()
cellPath(
shape,size):string
Defined in: packages/sdvplot/src/bins/squarebin.ts:146
A cell's relative SVG path, hexagonPath(size) or squarePath(size), drawn with a translate to each bin centre.
Parameters
shape
size
number
Returns
string
Example
import { cellPath } from "@sportsdataverse/sdvplot/bins";
cellPath("square", 10); // "m-5,-5h10v10h-10z"