mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
#5237 added support for node with label/description
This commit is contained in:
@@ -589,7 +589,8 @@ const dataFetcher = (parentId, doc, nodes, edges) => {
|
|||||||
} else {
|
} else {
|
||||||
nodes.push({
|
nodes.push({
|
||||||
...item,
|
...item,
|
||||||
labelText: item.id,
|
id: item.id,
|
||||||
|
labelText: item.descriptions?.length > 0 ? item.descriptions[0] : item.id,
|
||||||
// description: item.id,
|
// description: item.id,
|
||||||
labelType: 'text',
|
labelType: 'text',
|
||||||
labelStyle: '',
|
labelStyle: '',
|
||||||
|
Reference in New Issue
Block a user