mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Fixed build issue
This commit is contained in:
parent
45f34d871b
commit
94e5177bb1
7
dist/mermaid-legacy.full.js
vendored
7
dist/mermaid-legacy.full.js
vendored
@ -21503,7 +21503,6 @@ module.exports.drawActors = function(diagram, actors, actorKeys,verticalPos){
|
||||
|
||||
|
||||
module.exports.setConf = function(cnf){
|
||||
console.log('Got conf:',JSON.stringify(cnf));
|
||||
var keys = Object.keys(cnf);
|
||||
|
||||
keys.forEach(function(key){
|
||||
@ -22174,9 +22173,7 @@ var render = function(id, txt,cb){
|
||||
var classes = {};
|
||||
switch(graphType){
|
||||
case 'graph':
|
||||
if(typeof mermaid.flowchartConfig === 'object'){
|
||||
flowRenderer.setConf(config.flowchart);
|
||||
}
|
||||
flowRenderer.draw(txt, id, false);
|
||||
if(config.mermaid.cloneCssStyles){
|
||||
classes = flowRenderer.getClasses(txt, false);
|
||||
@ -22185,6 +22182,7 @@ var render = function(id, txt,cb){
|
||||
graph.bindFunctions();
|
||||
break;
|
||||
case 'dotGraph':
|
||||
flowRenderer.setConf(config.flowchart);
|
||||
flowRenderer.draw(txt, id, true);
|
||||
if(config.mermaid.cloneCssStyles) {
|
||||
classes = flowRenderer.getClasses(txt, true);
|
||||
@ -22201,10 +22199,7 @@ var render = function(id, txt,cb){
|
||||
}
|
||||
break;
|
||||
case 'gantt':
|
||||
if(typeof mermaid.ganttConfig === 'object'){
|
||||
gantt.setConf(config.gantt);
|
||||
|
||||
}
|
||||
gantt.draw(txt,id);
|
||||
if(config.mermaid.cloneCssStyles) {
|
||||
utils.cloneCssStyles(element.firstChild, []);
|
||||
|
3
dist/mermaid.js
vendored
3
dist/mermaid.js
vendored
@ -31094,7 +31094,10 @@ var init = function () {
|
||||
|
||||
console.log('Found ',nodes.length,' nodes');
|
||||
console.log('Hooo hooo');
|
||||
if(typeof mermaid_config !== 'undefined'){
|
||||
mermaidAPI.initialize(mermaid_config);
|
||||
}
|
||||
|
||||
var insertSvg = function(svgCode){
|
||||
element.innerHTML = svgCode;
|
||||
};
|
||||
|
2
dist/mermaid.min.js
vendored
2
dist/mermaid.min.js
vendored
File diff suppressed because one or more lines are too long
3
dist/mermaid.slim.js
vendored
3
dist/mermaid.slim.js
vendored
@ -21878,7 +21878,10 @@ var init = function () {
|
||||
|
||||
console.log('Found ',nodes.length,' nodes');
|
||||
console.log('Hooo hooo');
|
||||
if(typeof mermaid_config !== 'undefined'){
|
||||
mermaidAPI.initialize(mermaid_config);
|
||||
}
|
||||
|
||||
var insertSvg = function(svgCode){
|
||||
element.innerHTML = svgCode;
|
||||
};
|
||||
|
2
dist/mermaid.slim.min.js
vendored
2
dist/mermaid.slim.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/mermaidAPI.slim.js
vendored
2
dist/mermaidAPI.slim.js
vendored
File diff suppressed because one or more lines are too long
@ -243,7 +243,6 @@ function executeInPage(data) {
|
||||
|
||||
|
||||
mermaid.init();
|
||||
console.log(document.body.outerHTML);
|
||||
|
||||
svg = document.querySelector('svg')
|
||||
svgValue = xmlSerializer.serializeToString(svg)
|
||||
|
@ -49,7 +49,10 @@ var init = function () {
|
||||
|
||||
console.log('Found ',nodes.length,' nodes');
|
||||
console.log('Hooo hooo');
|
||||
if(typeof mermaid_config !== 'undefined'){
|
||||
mermaidAPI.initialize(mermaid_config);
|
||||
}
|
||||
|
||||
var insertSvg = function(svgCode){
|
||||
element.innerHTML = svgCode;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user