mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-19 00:06:47 +02:00
Made changes based on jslint
This commit is contained in:
@@ -55,7 +55,8 @@ exports.addVertex = function (id, text, type, style) {
|
||||
exports.addLink = function (start, end, type, linktext) {
|
||||
//console.log('Got edge', start, end);
|
||||
var edge = {start: start, end: end, type: undefined, text: ''};
|
||||
var linktext = type.text;
|
||||
linktext = type.text;
|
||||
|
||||
if (typeof linktext !== 'undefined') {
|
||||
edge.text = linktext;
|
||||
}
|
||||
@@ -204,4 +205,3 @@ exports.clear = function () {
|
||||
exports.defaultStyle = function () {
|
||||
return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
|
||||
};
|
||||
|
||||
|
@@ -18,4 +18,4 @@ module.exports.detectType = function(text){
|
||||
}
|
||||
|
||||
return "graph";
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user