mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Fix for issue #259
This commit is contained in:
parent
a9f4f8e06c
commit
425a83c0da
28
dist/mermaid.js
vendored
28
dist/mermaid.js
vendored
@ -39909,7 +39909,8 @@ var config = {
|
||||
return d.getMonth();
|
||||
}]]
|
||||
},
|
||||
classDiagram: {}
|
||||
classDiagram: {},
|
||||
info: {}
|
||||
};
|
||||
|
||||
Logger.setLogLevel(config.logLevel);
|
||||
@ -40134,18 +40135,21 @@ var render = function render(id, txt, cb, container) {
|
||||
};
|
||||
|
||||
exports.render = function (id, text, cb, containerElement) {
|
||||
log.info('APA');
|
||||
if (arguments.length === 1) {
|
||||
text = id;
|
||||
id = 'mermaidId0';
|
||||
}
|
||||
|
||||
if (typeof document === 'undefined') {
|
||||
// Todo handle rendering serverside using phantomjs
|
||||
} else {
|
||||
// In browser
|
||||
return render(id, text, cb, containerElement);
|
||||
try {
|
||||
if (arguments.length === 1) {
|
||||
text = id;
|
||||
id = 'mermaidId0';
|
||||
}
|
||||
|
||||
if (typeof document === 'undefined') {
|
||||
// Todo handle rendering serverside using phantomjs
|
||||
} else {
|
||||
// In browser
|
||||
return render(id, text, cb, containerElement);
|
||||
}
|
||||
} catch (e) {
|
||||
log.warn(e);
|
||||
}
|
||||
};
|
||||
|
||||
var setConf = function setConf(cnf) {
|
||||
|
4
dist/mermaid.min.js
vendored
4
dist/mermaid.min.js
vendored
File diff suppressed because one or more lines are too long
28
dist/mermaid.slim.js
vendored
28
dist/mermaid.slim.js
vendored
@ -30404,7 +30404,8 @@ var config = {
|
||||
return d.getMonth();
|
||||
}]]
|
||||
},
|
||||
classDiagram: {}
|
||||
classDiagram: {},
|
||||
info: {}
|
||||
};
|
||||
|
||||
Logger.setLogLevel(config.logLevel);
|
||||
@ -30629,18 +30630,21 @@ var render = function render(id, txt, cb, container) {
|
||||
};
|
||||
|
||||
exports.render = function (id, text, cb, containerElement) {
|
||||
log.info('APA');
|
||||
if (arguments.length === 1) {
|
||||
text = id;
|
||||
id = 'mermaidId0';
|
||||
}
|
||||
|
||||
if (typeof document === 'undefined') {
|
||||
// Todo handle rendering serverside using phantomjs
|
||||
} else {
|
||||
// In browser
|
||||
return render(id, text, cb, containerElement);
|
||||
try {
|
||||
if (arguments.length === 1) {
|
||||
text = id;
|
||||
id = 'mermaidId0';
|
||||
}
|
||||
|
||||
if (typeof document === 'undefined') {
|
||||
// Todo handle rendering serverside using phantomjs
|
||||
} else {
|
||||
// In browser
|
||||
return render(id, text, cb, containerElement);
|
||||
}
|
||||
} catch (e) {
|
||||
log.warn(e);
|
||||
}
|
||||
};
|
||||
|
||||
var setConf = function setConf(cnf) {
|
||||
|
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
28
dist/mermaidAPI.js
vendored
28
dist/mermaidAPI.js
vendored
@ -39303,7 +39303,8 @@ var config = {
|
||||
return d.getMonth();
|
||||
}]]
|
||||
},
|
||||
classDiagram: {}
|
||||
classDiagram: {},
|
||||
info: {}
|
||||
};
|
||||
|
||||
Logger.setLogLevel(config.logLevel);
|
||||
@ -39528,18 +39529,21 @@ var render = function render(id, txt, cb, container) {
|
||||
};
|
||||
|
||||
exports.render = function (id, text, cb, containerElement) {
|
||||
log.info('APA');
|
||||
if (arguments.length === 1) {
|
||||
text = id;
|
||||
id = 'mermaidId0';
|
||||
}
|
||||
|
||||
if (typeof document === 'undefined') {
|
||||
// Todo handle rendering serverside using phantomjs
|
||||
} else {
|
||||
// In browser
|
||||
return render(id, text, cb, containerElement);
|
||||
try {
|
||||
if (arguments.length === 1) {
|
||||
text = id;
|
||||
id = 'mermaidId0';
|
||||
}
|
||||
|
||||
if (typeof document === 'undefined') {
|
||||
// Todo handle rendering serverside using phantomjs
|
||||
} else {
|
||||
// In browser
|
||||
return render(id, text, cb, containerElement);
|
||||
}
|
||||
} catch (e) {
|
||||
log.warn(e);
|
||||
}
|
||||
};
|
||||
|
||||
var setConf = function setConf(cnf) {
|
||||
|
2
dist/mermaidAPI.min.js
vendored
2
dist/mermaidAPI.min.js
vendored
File diff suppressed because one or more lines are too long
14
dist/mermaidAPI.slim.min.js
vendored
14
dist/mermaidAPI.slim.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user