mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-14 22:09:29 +02:00
Bump @zenuml/core and update render options in mermaid-zenuml (#5257)
* Update dependencies and render options in mermaid-zenuml * update snpashots * Revert "update snpashots" This reverts commit e52022782b5565e3b95752bdf147cd8b2e0f03cd.
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@zenuml/core": "^3.0.6"
|
||||
"@zenuml/core": "^3.17.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mermaid": "workspace:^"
|
||||
|
@@ -56,7 +56,7 @@ export const draw = async function (text: string, id: string) {
|
||||
// @ts-expect-error @zenuml/core@3.0.0 exports the wrong type for ZenUml
|
||||
const zenuml = new ZenUml(app);
|
||||
// default is a theme name. More themes to be added and will be configurable in the future
|
||||
await zenuml.render(text, 'theme-mermaid');
|
||||
await zenuml.render(text, { theme: 'default', mode: 'static' });
|
||||
|
||||
const { width, height } = window.getComputedStyle(container);
|
||||
log.debug('zenuml diagram size', width, height);
|
||||
|
Reference in New Issue
Block a user