mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 17:29:54 +02:00
Gantt: Configurable format for dates on x-axis
Flowchart: Default styles for links as discussed in issue #31
This commit is contained in:
@@ -75,7 +75,12 @@ exports.addLink = function (start, end, type, linktext) {
|
||||
*/
|
||||
exports.updateLink = function (pos, style) {
|
||||
var position = pos.substr(1);
|
||||
edges[pos].style = style;
|
||||
|
||||
if(pos === 'default'){
|
||||
edges.defaultStyle = style;
|
||||
}else{
|
||||
edges[pos].style = style;
|
||||
}
|
||||
};
|
||||
|
||||
exports.addClass = function (id, style) {
|
||||
|
Reference in New Issue
Block a user