From 770e4edca716d923b865affe56b640f850dce5b0 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 18 Sep 2021 16:20:09 +0300 Subject: [PATCH] Updated Data model (markdown) --- Data-model.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Data-model.md b/Data-model.md index 6b97b3e..e6f7b15 100644 --- a/Data-model.md +++ b/Data-model.md @@ -229,12 +229,12 @@ Markers data is stored as an unordered array of objects (so element id is _not_ * `x`: `number` - marker x coordinate * `y`: `number` - marker y coordinate * `type`: `string` - marker type. If set, style changes will be applied to all markers of the same type. Optional -* `size`: `number` - marker size in pixels. Optional, default value is `30px` +* `size`: `number` - marker size in pixels. Optional, default value is `30` (30px) * `hidden`: `boolean`: `true` if marker should not be rendered. Optional, default is `false` (visible) * `bare`: `boolean`: `true` if marker should be rendered without pin (bubble). Optional, default is `false` (pinned) -* `dx`: `number` - icon x shift percent. Optional, default is `50%` (center) -* `dy`: `number` - icon y shift percent. Optional, default s `50%` (center) -* `px`: `number` - icon font-size in pixels. Optional, default is `12px` +* `dx`: `number` - icon x shift percent. Optional, default is `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) ## Routes Routes data is not in data model, but can be retrieved directly from svg `routes` element and `pack.cells.roads` array.