mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
Updated Data model (markdown)
parent
22cb6e2695
commit
c43c63e08e
1 changed files with 2 additions and 2 deletions
|
|
@ -234,11 +234,11 @@ Markers data is stored as an unordered array of objects (so element id is _not_
|
||||||
* `fill`: `string` - marker pin fill color. Optional, default is `#fff` (white)
|
* `fill`: `string` - marker pin fill color. Optional, default is `#fff` (white)
|
||||||
* `stroke`: `string` - marker pin stroke color. Optional, default is `#000` (black)
|
* `stroke`: `string` - marker pin stroke color. Optional, default is `#000` (black)
|
||||||
* `pin`: `string`: pin element type. Optional, default is `bubble`. Pin is not rendered if value is set to `no`
|
* `pin`: `string`: pin element type. Optional, default is `bubble`. Pin is not rendered if value is set to `no`
|
||||||
* `hidden`: `boolean`: `true` if marker should not be rendered. Optional, default is `false` (visible)
|
* `pinned`: `boolean`: if any marker is pinned, then only markers with `pinned = true` will be rendered. Optional
|
||||||
* `dx`: `number` - icon x shift percent. Optional, default is `50` (50%, center)
|
* `dx`: `number` - icon x shift percent. Optional, default is `50` (50%, center)
|
||||||
* `dy`: `number` - icon y shift percent. Optional, default s `50` (50%, center)
|
* `dy`: `number` - icon y shift percent. Optional, default s `50` (50%, center)
|
||||||
* `px`: `number` - icon font-size in pixels. Optional, default is `12` (12px)
|
* `px`: `number` - icon font-size in pixels. Optional, default is `12` (12px)
|
||||||
* `lock`: `boolean` - `true` if marker is locked (not affected by regeneration). Optional, default is `false`
|
* `lock`: `boolean` - `true` if marker is locked (not affected by regeneration). Optional
|
||||||
|
|
||||||
## Routes
|
## Routes
|
||||||
Routes data is not in data model, but can be retrieved directly from svg `routes` element and `pack.cells.roads` array.
|
Routes data is not in data model, but can be retrieved directly from svg `routes` element and `pack.cells.roads` array.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue