mermaid/src/config.js

23 lines
407 B
JavaScript
Raw Normal View History

2020-06-17 11:54:24 +02:00
import utils from './utils';
const config = {};
2019-07-14 07:50:53 +02:00
2019-09-12 21:58:57 +02:00
const setConf = function(cnf) {
// Top level initially mermaid, gflow, sequenceDiagram and gantt
2020-06-17 11:54:24 +02:00
utils.assignWithDepth(config, cnf);
2019-09-12 21:58:57 +02:00
};
2019-07-14 07:50:53 +02:00
export const setConfig = conf => {
2019-09-12 21:58:57 +02:00
setConf(conf);
};
export const getConfig = () => config;
const configApi = {
setConfig,
getConfig
// get conf() {
// return config;
// }
};
export default configApi;