mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +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 {
|
||||
nodes.push({
|
||||
...item,
|
||||
labelText: item.id,
|
||||
id: item.id,
|
||||
labelText: item.descriptions?.length > 0 ? item.descriptions[0] : item.id,
|
||||
// description: item.id,
|
||||
labelType: 'text',
|
||||
labelStyle: '',
|
||||
|
Reference in New Issue
Block a user