drawio
drawio copied to clipboard
Mathematical typesetting disabled by zooming
Preflight Checklist
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Describe the bug I have a figure that includes mathematical typesetting using ``. When I zoom in or out, the typesetting switches off and I see the source. If I toggle between pages (there are two), it is reactivated, so this is my workaround.
To Reproduce Steps to reproduce the behavior:
- Go to https://www.dropbox.com/s/zc28rm1qtzaydk9/firing_regulation_v29.drawio?dl=1 to download the file.
- Start diagram.net in the browser. Click on File->Open from->Device and read in the downloaded file
- Switch to Notes page (this has more mathematical typesetting, but the Figure page also has the problem with the small number of typesetting examples)
- Zoom in or out to see the mathematical typesetting turn off. Toggle between pages to reactivate it.
Expected behavior Mathematical typesetting should not be affected by zooming.
Screenshots
Before zooming:
After zooming:
draw.io version (In the Help->About menu of the draw.io editor):
- 20.2.1... I have tested it on the latest Brave and Safari browsers on the latest MacOS.
Additional context I noticed this first about two weeks ago, but I hadn't worked with diagrams.net for a few months before that, so I don't know when it first appeared.
I can add a further observation concerning this issue. If I move an object with mathematical typesetting in it, it also switches to source view for that one object.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.
Is this still an issue in 24.0.6?
Hi @davidjgraph ,
I’ve used four different versions of drawio, starting with diagrams.net, where I first experienced the issue back in 2022. This appeared to finally be fixed in late 2023.
This is the situation this morning:
-
diagrams.net (24.0.6): No issue
-
MacOS desktop app (24.0.4): No issue
-
Confluence drawio app (no version information visible to me): No issue with zooming, but mathematical typesetting doesn’t work with the lightbox viewer, only renders equations when viewing a page if the simple viewer option is selected.
-
Unofficial drawio extension to VsCode by Henning Dieterichs (v1.6.6): Zooming issue is present. This is a recent regression. It was working until a few weeks ago and now has the zoom issue 100% of the time. The same workaround I mentioned still works – toggling between pages renders the equations until the next zooming action.
Maybe Henning needs to rebuild his extension with the latest version of drawio, to get the fix.
I just found in the history for Henning Dieterichs' VsCode plug-in that it is using an old version: 20.8.3
Thanks for the clarifications. We're happy we understand why this was fixed, I'll close it up.
For the confluence app, please either post version details here, in a new ticket or file a support ticket at the help desk.
This should have been dealt with faster, the issue signal to noise ratio has been a little low in this repo, I will fix that.
Thanks a lot.
I've reported to the Confluence support here at CERN about the drawio app issues and they have apparently reported it, but I've no news so far. It seems to be a different variation to the issue, since it doesn't affect editing, but viewing afterwards.
The VsCode extension issue is frustrating, since it is really good apart from this one point. It's even better than the desktop app in some ways, because you can set the image scaling and it's applied whenever you save. Which isn't the case with the desktop app.
You can set the image scaling for .drawio.png
files in the desktop app via File, Properties:
Ah, good. I didn't see that last year, when I started using the app.
That's strange... I'm looking at the File menu of the drawio desktop app on my Mac and there is no Properties option:
It's the latest version according the "Check for updates" option: v24.0.4.
Oh wait, it's an SVG... so no scaling is needed. I'll switch to a PNG.
So scaling with png works correctly. :)
I got some progress on the Confluence drawio app issue. It turns out to be browser dependent. On Safari I see this:
While on Chrome and Brave I see this:
The first equation is show without "Simple viewer" enabled, while the second is enabled. The second has the Lightbox option enabled, but on Brave and Chrome, the equation isn't rendered in the lightbox, while it is on Safari.
That's strange... I'm looking at the File menu of the drawio desktop app on my Mac and there is no Properties option:
It's the latest version according the "Check for updates" option: v24.0.4.
What version do you see in the help menu?
I see this file menu in v24.0.4 desktop on macOS:
Yes, it's fine. I was looking at an SVG file, which needs no scaling. With PNG files, I see the properties menu. :)