mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
Refactored rendering sequence diagrams
Fixed default config clobbering issues
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user