Updated Data model (markdown)

Azgaar 2021-09-18 15:24:25 +03:00
parent 059628d209
commit c5f0929322

@ -222,6 +222,17 @@ Rivers data is stored as an unordered array of objects (so element id is _not_ t
* `width`: `number` - river mouth width in km
* `sourceWidth`: `number` - additional width added to river source on rendering. Used to make lake outlets start with some width depending on flux. Can be also used to manually create channels
## Markers [WIP]
Markers data is stored as an unordered array of objects (so element id is _not_ the array index). Object structure:
* `i`: `number` - marker id. `'markerElement' + i` is used as marker element id and reference in `notes` object
* `icon`: `number` - unicode character
* `type`: `string` - optional, used only for auto-generated markers
* `x`: `number` - marker x coordinate
* `y`: `number` - marker y coordinate
* `dx`: `number` - marker icon x shift
* `dy`: `number` - marker icon y shift
* `size`: `number` - marker icon size
## Routes
Routes data is not in data model, but can be retrieved directly from svg `routes` element and `pack.cells.roads` array.