mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-20 19:11:23 +01:00
Updated Object Model (markdown)
parent
c44b94abe3
commit
4e31f6eac7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue