mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
add structuredClone
in pie getConfig
This commit is contained in:
parent
f01ad644e3
commit
cb5f70c139
@ -37,7 +37,7 @@ const setConfig = (conf: PieDiagramConfig): void => {
|
||||
config = cleanAndMerge(DEFAULT_PIE_CONFIG, conf);
|
||||
};
|
||||
|
||||
const getConfig = (): Required<PieDiagramConfig> => config;
|
||||
const getConfig = (): Required<PieDiagramConfig> => structuredClone(config);
|
||||
|
||||
const resetConfig = (): void => {
|
||||
config = structuredClone(DEFAULT_PIE_CONFIG);
|
||||
|
Loading…
x
Reference in New Issue
Block a user