Skip to content

Commit

Permalink
[update] minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
mafanya23 committed Mar 20, 2024
1 parent 0a5ecc4 commit 9625cd5
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/api/diagram_editor/shapebar/config/css_property.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ css?: string;
type: "default",
view: {
shapebar: {
css: "custom_style",
css: "custom_style"
}
}
});
Expand Down
12 changes: 6 additions & 6 deletions docs/api/diagram_editor/shapebar/config/preview_property.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const editor = new dhx.DiagramEditor("editor_container", {
shapebar: {
preview: {
scale: 0.65,
gap: 8,
},
},
gap: 8
}
}
}
});
~~~
Expand All @@ -70,11 +70,11 @@ const editor = new dhx.DiagramEditor("editor_container", {
shapebar: {
preview: {
scale: 0.65,
gap: 2,
},
gap: 2
}
}
},
defaults,
defaults
});
~~~

Expand Down
24 changes: 12 additions & 12 deletions docs/api/diagram_editor/shapebar/config/sections_property.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <span id="basic">basic set of shapes</span>. 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
Expand All @@ -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"]
},
}
});
~~~

Expand Down Expand Up @@ -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"
}
],
]
}
}
}
Expand All @@ -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"
}
],
]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/api/diagram_editor/shapebar/config/show_property.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const editor = new dhx.DiagramEditor("editor_container", {
view: {
shapebar: {
show: false, // true by default
},
}
}
});
~~~
Expand Down
2 changes: 1 addition & 1 deletion docs/api/diagram_editor/shapebar/config/width_property.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const editor = new dhx.DiagramEditor("editor_container", {
view: {
shapebar: {
width: 400, // 300 by default
},
}
}
});
~~~
Expand Down

0 comments on commit 9625cd5

Please sign in to comment.