drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Mathematical typesetting disabled by zooming

Open qking opened this issue 2 years ago • 1 comments

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:

  1. Go to https://www.dropbox.com/s/zc28rm1qtzaydk9/firing_regulation_v29.drawio?dl=1 to download the file.
  2. Start diagram.net in the browser. Click on File->Open from->Device and read in the downloaded file
  3. Switch to Notes page (this has more mathematical typesetting, but the Figure page also has the problem with the small number of typesetting examples)
  4. 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: image After zooming: image

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.

qking avatar Jul 27 '22 09:07 qking

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.

qking avatar Aug 05 '22 07:08 qking

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.

stale[bot] avatar Mar 25 '23 14:03 stale[bot]

Is this still an issue in 24.0.6?

davidjgraph avatar Mar 13 '24 21:03 davidjgraph

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:

  1. diagrams.net (24.0.6): No issue

  2. MacOS desktop app (24.0.4): No issue

  3. 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.

  4. 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.

qking avatar Mar 14 '24 08:03 qking

I just found in the history for Henning Dieterichs' VsCode plug-in that it is using an old version: 20.8.3

qking avatar Mar 14 '24 08:03 qking

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.

davidjgraph avatar Mar 14 '24 09:03 davidjgraph

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.

qking avatar Mar 14 '24 10:03 qking

You can set the image scaling for .drawio.png files in the desktop app via File, Properties:

Screenshot 2024-03-14 at 11 38 47

alderg avatar Mar 14 '24 10:03 alderg

Ah, good. I didn't see that last year, when I started using the app.

qking avatar Mar 14 '24 11:03 qking

That's strange... I'm looking at the File menu of the drawio desktop app on my Mac and there is no Properties option:

image

It's the latest version according the "Check for updates" option: v24.0.4.

qking avatar Mar 14 '24 13:03 qking

Oh wait, it's an SVG... so no scaling is needed. I'll switch to a PNG.

qking avatar Mar 14 '24 13:03 qking

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:

image

While on Chrome and Brave I see this:

image

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.

qking avatar Mar 14 '24 13:03 qking

That's strange... I'm looking at the File menu of the drawio desktop app on my Mac and there is no Properties option:

image

It's the latest version according the "Check for updates" option: v24.0.4.

What version do you see in the help menu?

Screenshot 2024-03-14 at 15 09 17

I see this file menu in v24.0.4 desktop on macOS:

Screenshot 2024-03-14 at 15 08 43

alderg avatar Mar 14 '24 14:03 alderg

Yes, it's fine. I was looking at an SVG file, which needs no scaling. With PNG files, I see the properties menu. :)

qking avatar Mar 14 '24 14:03 qking