mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
info diagram to show version of mermaid, bugfixes for gantt chart
This commit is contained in:
@@ -165,24 +165,22 @@ export const draw = function (text, id) {
|
||||
}
|
||||
}
|
||||
|
||||
let taskClass = classStr
|
||||
let taskClass = ''
|
||||
if (d.active) {
|
||||
if (d.crit) {
|
||||
taskClass += ' activeCrit'
|
||||
} else {
|
||||
taskClass = 'active'
|
||||
taskClass = ' active'
|
||||
}
|
||||
} else if (d.done) {
|
||||
if (d.crit) {
|
||||
taskClass = ' doneCrit'
|
||||
} else {
|
||||
taskClass = 'done'
|
||||
taskClass = ' done'
|
||||
}
|
||||
}
|
||||
|
||||
if (d.crit) {
|
||||
if (taskClass.length > 0) {
|
||||
taskClass += 'crit'
|
||||
} else {
|
||||
if (d.crit) {
|
||||
taskClass += ' crit'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,11 +189,13 @@ export const draw = function (text, id) {
|
||||
}
|
||||
|
||||
if (d.milestone) {
|
||||
taskClass = ' milestone' + taskClass
|
||||
taskClass = ' milestone ' + taskClass
|
||||
}
|
||||
|
||||
taskClass += secNum
|
||||
|
||||
taskClass += ' ' + classStr
|
||||
|
||||
return res + taskClass
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user