mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
chore: move handDrawnSeed to mermaidUrl function
This commit is contained in:
parent
e5a28de26e
commit
6e0fe03552
@ -29,6 +29,7 @@ export const mermaidUrl = (
|
|||||||
options: CypressMermaidConfig,
|
options: CypressMermaidConfig,
|
||||||
api: boolean
|
api: boolean
|
||||||
): string => {
|
): string => {
|
||||||
|
options.handDrawnSeed = 1;
|
||||||
const codeObject: CodeObject = {
|
const codeObject: CodeObject = {
|
||||||
code: graphStr,
|
code: graphStr,
|
||||||
mermaid: options,
|
mermaid: options,
|
||||||
@ -65,7 +66,6 @@ export const imgSnapshotTest = (
|
|||||||
: 'courier',
|
: 'courier',
|
||||||
messageFontFamily: 'courier',
|
messageFontFamily: 'courier',
|
||||||
},
|
},
|
||||||
handDrawnSeed: 1,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const url: string = mermaidUrl(graphStr, options, api);
|
const url: string = mermaidUrl(graphStr, options, api);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user