kisonecat / tikzjax

TikZJax is TikZ running under WebAssembly in the browser
LaTeX Project Public License v1.3c
437 stars 36 forks source link

Can't diagnose the cause, but since yesterday, every generated SVG has the wrong viewbox coordinates #27

Closed Applethal closed 2 months ago

Applethal commented 2 months ago

image

This is true for every big tikz figure, I tested with small ones and apparently they are correctly framed. This wasn't the case prior to the making of this post.

kisonecat commented 2 months ago

I made an update yesterday to add support for additional TikZ packages which presumably broke this.

This is a site that is using the version on tikzjax.com ?

Applethal commented 2 months ago

I made an update yesterday to add support for additional TikZ packages which presumably broke this.

This is a site that is using the version on tikzjax.com ?

Thanks for clarifications. Yes I am using the actual version. notable examples: https://www.applethal.com/recommendations/recipes/pasta_onions https://www.applethal.com/recommendations/recipes/ricethunfish/ https://www.applethal.com/sandbox/scheduling/ https://www.applethal.com/blog/divided_by_zero_2/

I am using no extra packages, just vanilla Tikz btw.

kisonecat commented 2 months ago

I think I have a fix: https://github.com/kisonecat/dvi2html/commit/b97a579444fea0494f2439d9748435a128bd1713 adds a <g transform> to every <svg>. Let me know if this repairs the regression.

Applethal commented 2 months ago

Hello, yes it worked!

kisonecat commented 2 months ago

Great! I'm glad to hear it.