mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 08:19:43 +02:00
Options are working.
This commit is contained in:
@@ -14,8 +14,9 @@ var config = {
|
||||
lineColor: "grey",
|
||||
leftMargin: 50
|
||||
}
|
||||
exports.setConf = function(config) {
|
||||
|
||||
var apiConfig = {};
|
||||
exports.setConf = function(c) {
|
||||
apiConfig = c;
|
||||
}
|
||||
|
||||
|
||||
@@ -175,6 +176,9 @@ exports.draw = function(txt, id, ver) {
|
||||
log.debug('in gitgraph renderer', txt, id, ver);
|
||||
// Parse the graph definition
|
||||
parser.parse(txt + "\n");
|
||||
|
||||
config = _.extend(config, apiConfig, db.getOptions());
|
||||
log.debug("effective options", config);
|
||||
var direction = db.getDirection();
|
||||
allCommitsDict = db.getCommits();
|
||||
var branches = db.getBranchesAsObjArray();
|
||||
|
Reference in New Issue
Block a user