mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-10 02:49:40 +02:00
add structuredClone
in pie getConfig
This commit is contained in:
@@ -37,7 +37,7 @@ const setConfig = (conf: PieDiagramConfig): void => {
|
|||||||
config = cleanAndMerge(DEFAULT_PIE_CONFIG, conf);
|
config = cleanAndMerge(DEFAULT_PIE_CONFIG, conf);
|
||||||
};
|
};
|
||||||
|
|
||||||
const getConfig = (): Required<PieDiagramConfig> => config;
|
const getConfig = (): Required<PieDiagramConfig> => structuredClone(config);
|
||||||
|
|
||||||
const resetConfig = (): void => {
|
const resetConfig = (): void => {
|
||||||
config = structuredClone(DEFAULT_PIE_CONFIG);
|
config = structuredClone(DEFAULT_PIE_CONFIG);
|
||||||
|
Reference in New Issue
Block a user