From c5f0929322701c159a985cf44b25e5b2a4e181d7 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 18 Sep 2021 15:24:25 +0300 Subject: [PATCH] Updated Data model (markdown) --- Data-model.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Data-model.md b/Data-model.md index bf40b59..52efb91 100644 --- a/Data-model.md +++ b/Data-model.md @@ -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.