mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
11 lines
258 B
TypeScript
11 lines
258 B
TypeScript
let interactionFunctions: (() => {})[] = [];
|
|
export const addFunction = (func: () => {}) => {
|
|
interactionFunctions.push(func);
|
|
};
|
|
export const attachFunctions = () => {
|
|
interactionFunctions.forEach((f) => {
|
|
f();
|
|
});
|
|
interactionFunctions = [];
|
|
};
|