From 9625cd5de6ac249436f08875de9354e4ef43e823 Mon Sep 17 00:00:00 2001 From: Masha_Rudenko Date: Wed, 20 Mar 2024 16:39:57 +0300 Subject: [PATCH] [update] minor corrections --- .../shapebar/config/css_property.md | 2 +- .../shapebar/config/preview_property.md | 12 +++++----- .../shapebar/config/sections_property.md | 24 +++++++++---------- .../shapebar/config/show_property.md | 2 +- .../shapebar/config/width_property.md | 2 +- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/api/diagram_editor/shapebar/config/css_property.md b/docs/api/diagram_editor/shapebar/config/css_property.md index 706a7c980..5a4e0274c 100644 --- a/docs/api/diagram_editor/shapebar/config/css_property.md +++ b/docs/api/diagram_editor/shapebar/config/css_property.md @@ -24,7 +24,7 @@ css?: string; type: "default", view: { shapebar: { - css: "custom_style", + css: "custom_style" } } }); diff --git a/docs/api/diagram_editor/shapebar/config/preview_property.md b/docs/api/diagram_editor/shapebar/config/preview_property.md index 1a1739e5c..d72e5c702 100644 --- a/docs/api/diagram_editor/shapebar/config/preview_property.md +++ b/docs/api/diagram_editor/shapebar/config/preview_property.md @@ -43,9 +43,9 @@ const editor = new dhx.DiagramEditor("editor_container", { shapebar: { preview: { scale: 0.65, - gap: 8, - }, - }, + gap: 8 + } + } } }); ~~~ @@ -70,11 +70,11 @@ const editor = new dhx.DiagramEditor("editor_container", { shapebar: { preview: { scale: 0.65, - gap: 2, - }, + gap: 2 + } } }, - defaults, + defaults }); ~~~ diff --git a/docs/api/diagram_editor/shapebar/config/sections_property.md b/docs/api/diagram_editor/shapebar/config/sections_property.md index df854fcfd..43983da84 100644 --- a/docs/api/diagram_editor/shapebar/config/sections_property.md +++ b/docs/api/diagram_editor/shapebar/config/sections_property.md @@ -25,9 +25,9 @@ sections?: { ### Parameters -The **sections** object can contain a set of *key:value* pairs where: -- **key** - the name of a section specified by a user -- **value** - an array which can include: +The `sections` object can contain a set of *key:value* pairs where: +- `key` - the name of a section specified by a user +- `value` - an array which can include: - an object with one *key:value* pair for rendering a basic set of shapes. The list of available pairs is given below: - `{flowShapes: true}` - (optional) displays all available types of the [Flow-chart](../../../../../shapes/default_shapes/#shapes-overview) shapes - `{org: true}` - (optional) displays Org shapes: the "card" and "img-card" shape types @@ -45,7 +45,7 @@ const editor = new dhx.DiagramEditor("editor_container", { "Groups": [{ group: true }], "Flowchart shapes": [{ flowShapes: true }], "Org shapes, text, topic": [{ org: true }, "text", "topic"] - }, + } }); ~~~ @@ -105,19 +105,19 @@ const editor = new dhx.DiagramEditor("editor_container", { { type: "circle", fill: "#fcba03", - text: "Orange", + text: "Orange" }, { type: "circle", fill: "#03d7fc", - text: "Blue", + text: "Blue" }, { type: "circle", fill: "#03fc88", - text: "Green", + text: "Green" } - ], + ] } } } @@ -142,19 +142,19 @@ const editor = new dhx.DiagramEditor("editor_container", { { type: "circle", fill: "#fcba03", - text: "Orange", + text: "Orange" }, { type: "circle", fill: "#03d7fc", - text: "Blue", + text: "Blue" }, { type: "circle", fill: "#03fc88", - text: "Green", + text: "Green" } - ], + ] } } } diff --git a/docs/api/diagram_editor/shapebar/config/show_property.md b/docs/api/diagram_editor/shapebar/config/show_property.md index dca7ff645..c824a521d 100644 --- a/docs/api/diagram_editor/shapebar/config/show_property.md +++ b/docs/api/diagram_editor/shapebar/config/show_property.md @@ -30,7 +30,7 @@ const editor = new dhx.DiagramEditor("editor_container", { view: { shapebar: { show: false, // true by default - }, + } } }); ~~~ diff --git a/docs/api/diagram_editor/shapebar/config/width_property.md b/docs/api/diagram_editor/shapebar/config/width_property.md index 2916aac1b..a85f6e064 100644 --- a/docs/api/diagram_editor/shapebar/config/width_property.md +++ b/docs/api/diagram_editor/shapebar/config/width_property.md @@ -30,7 +30,7 @@ const editor = new dhx.DiagramEditor("editor_container", { view: { shapebar: { width: 400, // 300 by default - }, + } } }); ~~~