mermaid/src/config.js

23 lines
407 B
JavaScript
Raw Normal View History

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