mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
23 lines
407 B
JavaScript
23 lines
407 B
JavaScript
import utils 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);
|
|
};
|
|
export const getConfig = () => config;
|
|
|
|
const configApi = {
|
|
setConfig,
|
|
getConfig
|
|
// get conf() {
|
|
// return config;
|
|
// }
|
|
};
|
|
export default configApi;
|