Skip to content

feat: add additional css elements to drawio figures#52

Merged
tuunit merged 2 commits into
tuunit:mainfrom
antgres:main
Mar 14, 2026
Merged

feat: add additional css elements to drawio figures#52
tuunit merged 2 commits into
tuunit:mainfrom
antgres:main

Conversation

@antgres
Copy link
Copy Markdown
Contributor

@antgres antgres commented Mar 9, 2026

Heyo,

as mentioned in #51 here my implementation.

After some trying out I settled for two new keywords: style and zoom, because, as mentioned as a note in the doc of this PR,

Styles, which change the size of the diagram like `style="zoom: 0.5"`, are
not recommended to use with the style option because the minified drawio
javascript library creates and destroys the toolbar outside the mxgraph
diagram container. Meaning the toolbar does not get styled too.

@tuunit tuunit changed the title Add additional css elements to drawio figures feat: add additional css elements to drawio figures Mar 14, 2026
* Add style string to mxgraph via keyword "style"

Signed-off-by: Anton Gres <anton.gres@ifm.com>
@tuunit tuunit force-pushed the main branch 2 times, most recently from ed2f107 to b88a4ff Compare March 14, 2026 04:53
* Add zoom string to data-mxgraph via keyword "zoom"

Signed-off-by: Anton Gres <anton.gres@ifm.com>
Signed-off-by: Jan Larwig <jan@larwig.com>
@tuunit tuunit merged commit 8403cd6 into tuunit:main Mar 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants