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
13
dist/mermaid-legacy.full.js
vendored
13
dist/mermaid-legacy.full.js
vendored
@ -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);
|
||||||
@ -22193,7 +22191,7 @@ var render = function(id, txt,cb){
|
|||||||
break;
|
break;
|
||||||
case 'sequenceDiagram':
|
case 'sequenceDiagram':
|
||||||
//if(typeof mermaid.sequenceConfig === 'object'){
|
//if(typeof mermaid.sequenceConfig === 'object'){
|
||||||
seq.setConf(config.sequenceDiagram);
|
seq.setConf(config.sequenceDiagram);
|
||||||
//}
|
//}
|
||||||
seq.draw(txt,id);
|
seq.draw(txt,id);
|
||||||
if(config.mermaid.cloneCssStyles) {
|
if(config.mermaid.cloneCssStyles) {
|
||||||
@ -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, []);
|
||||||
|
5
dist/mermaid.js
vendored
5
dist/mermaid.js
vendored
@ -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');
|
||||||
mermaidAPI.initialize(mermaid_config);
|
if(typeof mermaid_config !== 'undefined'){
|
||||||
|
mermaidAPI.initialize(mermaid_config);
|
||||||
|
}
|
||||||
|
|
||||||
var insertSvg = function(svgCode){
|
var insertSvg = function(svgCode){
|
||||||
element.innerHTML = 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
5
dist/mermaid.slim.js
vendored
5
dist/mermaid.slim.js
vendored
@ -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');
|
||||||
mermaidAPI.initialize(mermaid_config);
|
if(typeof mermaid_config !== 'undefined'){
|
||||||
|
mermaidAPI.initialize(mermaid_config);
|
||||||
|
}
|
||||||
|
|
||||||
var insertSvg = function(svgCode){
|
var insertSvg = function(svgCode){
|
||||||
element.innerHTML = 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();
|
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');
|
||||||
mermaidAPI.initialize(mermaid_config);
|
if(typeof mermaid_config !== 'undefined'){
|
||||||
|
mermaidAPI.initialize(mermaid_config);
|
||||||
|
}
|
||||||
|
|
||||||
var insertSvg = function(svgCode){
|
var insertSvg = function(svgCode){
|
||||||
element.innerHTML = svgCode;
|
element.innerHTML = svgCode;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user