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