Skip to content

Commit

Permalink
Bump @zenuml/core and update render options in mermaid-zenuml (#5257)
Browse files Browse the repository at this point in the history
* Update dependencies and render options in mermaid-zenuml

* update snpashots

* Revert "update snpashots"

This reverts commit e520227.
  • Loading branch information
dontry authored Feb 4, 2024
1 parent 3b5cb02 commit b043d79
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/mermaid-zenuml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],
"license": "MIT",
"dependencies": {
"@zenuml/core": "^3.0.6"
"@zenuml/core": "^3.17.2"
},
"devDependencies": {
"mermaid": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid-zenuml/src/zenumlRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const draw = async function (text: string, id: string) {
// @ts-expect-error @zenuml/[email protected] 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);
Expand Down
122 changes: 109 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b043d79

Please sign in to comment.