From 67b43ca800d22d682e2695c4dc8a92b8d4cb73ed Mon Sep 17 00:00:00 2001 From: Insality Date: Mon, 28 Sep 2020 22:01:55 +0300 Subject: [PATCH] Fix new lines in markdown --- README.md | 1 + docs_md/01-components.md | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 71ba46a..b50d678 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ druid.on_window_callback(event) - **[Drag](https://github.com/Insality/druid/blob/master/docs_md/01-components.md#drag)** - System Druid component, handle drag input on node **Druid** also provides next *extended* components: + ***Note**: In future, to use extended components, you should register them first. It's required for make **Druid** modular - to exclude unused components from build* - **[Checkbox](https://github.com/Insality/druid/blob/master/docs_md/01-components.md#checkbox)** - Checkbox component diff --git a/docs_md/01-components.md b/docs_md/01-components.md index 0624c5d..11322f7 100644 --- a/docs_md/01-components.md +++ b/docs_md/01-components.md @@ -248,7 +248,9 @@ Create timer component with druid: `timer = druid:new_timer(text_node, from_seco [Static Grid API here](https://insality.github.io/druid/modules/druid.static_grid.html) ### Overview -Component for manage node positions. Static grid have constant node size, so it possible to calculate node positions before placement. Nodes can be placed with gaps. Static grid can shift elements on add/remove functions. +Component for manage node positions. +Static grid have constant node size, so it possible to calculate node positions before placement. Nodes can be placed with gaps. +Static grid can shift elements on add/remove functions. ### Setup Create component with druid: `grid = druid:new_static_grid(parent_node, prefab_node, max_in_row_elements)` @@ -267,7 +269,10 @@ Create component with druid: `grid = druid:new_static_grid(parent_node, prefab_ [Dynamic Grid API here](https://insality.github.io/druid/modules/druid.dynamic_grid.html) ### Overview -Component for manage node positions with different node sizes. Unlike Static Grid, Dynamic Grid can place nodes only in one row or in one column. Dynamic Grid can't have gaps between elements - you will get error, if try spawn element far away from others. Dynamic Grid should have __West__, __East__, __South__ or __North__ pivot (vertical or horizontal element placement) +Component for manage node positions with different node sizes. +Unlike Static Grid, Dynamic Grid can place nodes only in one row or in one column. +Dynamic Grid can't have gaps between elements - you will get error, if try spawn element far away from others. +Dynamic Grid should have __West__, __East__, __South__ or __North__ pivot (vertical or horizontal element placement) ### Setup Create component with druid: `grid = druid:new_dynamic_grid(parent_node)`