Refactored rendering sequence diagrams

Fixed default config clobbering issues
This commit is contained in:
Chris Moran
2020-06-17 18:12:01 -04:00
parent 5f257119d6
commit 67c2fe8005
9 changed files with 537 additions and 306 deletions

View File

@@ -1,14 +1,8 @@
import utils from './utils';
import { assignWithDepth } from './utils';
const config = {};
const setConf = function(cnf) {
// Top level initially mermaid, gflow, sequenceDiagram and gantt
utils.assignWithDepth(config, cnf);
};
export const setConfig = conf => {
setConf(conf);
assignWithDepth(config, conf);
};
export const getConfig = () => config;