mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 20:39:38 +02:00
Cleanup
This commit is contained in:
@@ -240,7 +240,6 @@ function executeInPage(data) {
|
|||||||
|
|
||||||
document.body.appendChild(sc)
|
document.body.appendChild(sc)
|
||||||
}else{
|
}else{
|
||||||
console.log('NO gantt config');
|
|
||||||
sc = document.createElement("script")
|
sc = document.createElement("script")
|
||||||
scContent = document.createTextNode('mermaid.ganttConfig = {useWidth:1200};')
|
scContent = document.createTextNode('mermaid.ganttConfig = {useWidth:1200};')
|
||||||
sc.appendChild(scContent)
|
sc.appendChild(scContent)
|
||||||
@@ -256,7 +255,5 @@ function executeInPage(data) {
|
|||||||
svg = document.querySelector('svg')
|
svg = document.querySelector('svg')
|
||||||
svgValue = xmlSerializer.serializeToString(svg)
|
svgValue = xmlSerializer.serializeToString(svg)
|
||||||
|
|
||||||
//console.log(document.body.outerHTML);
|
|
||||||
|
|
||||||
return svgValue
|
return svgValue
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
```mermaid
|
```
|
||||||
gantt
|
gantt
|
||||||
dateFormat yyyy-mm-dd
|
dateFormat yyyy-mm-dd
|
||||||
title Adding gantt diagram functionality to mermaid
|
title Adding gantt diagram functionality to mermaid
|
||||||
|
Reference in New Issue
Block a user