You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really appreciate this project as it is way simpler to customize the appearance of the diagrams. However, I noticed that on the exported SVG files, the anchor for text boxes is positioned in the middle. This is a problem since when converting the SVG to a PDF file with LaTeX text using Inkscape, the obtained text is positioned higher than it should be.
Here is an example of what I mean: SVG file
Produced LaTeX PDF with Inkscape export
It would be awesome if the text anchor was by default as it is in Inkscape, enabling fast integration of the diagrams in LaTeX documents.
Seems like the property that is in charge of this is: dominant-baseline="middle"
Here is the SVG code for the example SVG file used above
This dominant-baseline="middle" is very probably indeed the offender here. In this case the fix would be rather easy. We already have the pixel height of the text. Just replace the dominant-baseline=middle with a offset on the y coordinate.
Hi !
I really appreciate this project as it is way simpler to customize the appearance of the diagrams. However, I noticed that on the exported SVG files, the anchor for text boxes is positioned in the middle. This is a problem since when converting the SVG to a PDF file with LaTeX text using Inkscape, the obtained text is positioned higher than it should be.
Here is an example of what I mean:
SVG file
Produced LaTeX PDF with Inkscape export
It would be awesome if the text anchor was by default as it is in Inkscape, enabling fast integration of the diagrams in LaTeX documents.
Seems like the property that is in charge of this is:
dominant-baseline="middle"
Here is the SVG code for the example SVG file used above
The text was updated successfully, but these errors were encountered: