mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-13 11:09:39 +02:00
fix: failing argos for mindmap , kanban diagrams
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
@@ -62,6 +62,7 @@ const getData = function () {
|
|||||||
const node = {
|
const node = {
|
||||||
id: section.id,
|
id: section.id,
|
||||||
label: sanitizeText(section.label ?? '', conf),
|
label: sanitizeText(section.label ?? '', conf),
|
||||||
|
labelType: 'markdown',
|
||||||
isGroup: true,
|
isGroup: true,
|
||||||
ticket: section.ticket,
|
ticket: section.ticket,
|
||||||
shape: 'kanbanSection',
|
shape: 'kanbanSection',
|
||||||
@@ -76,6 +77,7 @@ const getData = function () {
|
|||||||
id: item.id,
|
id: item.id,
|
||||||
parentId: section.id,
|
parentId: section.id,
|
||||||
label: sanitizeText(item.label ?? '', conf),
|
label: sanitizeText(item.label ?? '', conf),
|
||||||
|
labelType: 'markdown',
|
||||||
isGroup: false,
|
isGroup: false,
|
||||||
ticket: item?.ticket,
|
ticket: item?.ticket,
|
||||||
priority: item?.priority,
|
priority: item?.priority,
|
||||||
|
@@ -260,6 +260,7 @@ export class MindmapDB {
|
|||||||
id: node.id.toString(),
|
id: node.id.toString(),
|
||||||
domId: 'node_' + node.id.toString(),
|
domId: 'node_' + node.id.toString(),
|
||||||
label: node.descr,
|
label: node.descr,
|
||||||
|
labelType: 'markdown',
|
||||||
isGroup: false,
|
isGroup: false,
|
||||||
shape: getShapeFromType(node.type),
|
shape: getShapeFromType(node.type),
|
||||||
width: node.width,
|
width: node.width,
|
||||||
|
@@ -16,6 +16,7 @@ export interface MindmapNode {
|
|||||||
x?: number;
|
x?: number;
|
||||||
y?: number;
|
y?: number;
|
||||||
isRoot?: boolean;
|
isRoot?: boolean;
|
||||||
|
labelType?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type FilledMindMapNode = RequiredDeep<MindmapNode>;
|
export type FilledMindMapNode = RequiredDeep<MindmapNode>;
|
||||||
|
Reference in New Issue
Block a user