Updated Object Model (markdown)

Azgaar 2021-08-18 00:31:00 +03:00
parent c44b94abe3
commit 4e31f6eac7

@ -18,7 +18,7 @@ Both `grid` and `pack` objects include data representing voronoi diagrams and th
* `grid.cellsY`: `number` - number of cells in column * `grid.cellsY`: `number` - number of cells in column
* `grid.cellsX`: `number` - number of cells in row * `grid.cellsX`: `number` - number of cells in row
* `grid.points`: `number[][]` - initial coordinates `[x, y]` based on jittered square grid. Numbers rounded to 2 decimals * `grid.points`: `number[][]` - initial coordinates `[x, y]` based on jittered square grid. Numbers rounded to 2 decimals
* `grid.boundary`: `number[][]` - coordinates or out-of-canvas points used to cut the diagram approximately by canvas edges. Integers * `grid.boundary`: `number[][]` - coordinates of out-of-canvas points used to cut the diagram approximately by canvas edges. Integers
* `grid.cells`: `{}` - cells data object, including voronoi data: * `grid.cells`: `{}` - cells data object, including voronoi data:
* * `grid.cells.i`: `number[]` - cell indexes `Uint16Array` or `Uint32Array` (depending on cells number) * * `grid.cells.i`: `number[]` - cell indexes `Uint16Array` or `Uint32Array` (depending on cells number)
* * `grid.cells.c`: `number[][]` - indexes of cells adjacent to each cell (neighboring cells) * * `grid.cells.c`: `number[][]` - indexes of cells adjacent to each cell (neighboring cells)