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
Changing y=16 to y=15 fixes the problem for me. But perhaps there is a way to do this through your fitter function?? Otherwise I would have to call a custom function to modify this value on all elements.
Thanks.
=== update ===
I probably should have looked into your code before posting a question. Changing the following fixed things for me. Hopefully others find it useful.
i = e.baseline || 15, //baseline original code was 16
The text was updated successfully, but these errors were encountered:
Great code, thanks for making it. Everything works well, but the text will not vertically align centre.
All of my text is slightly lower than centre, and I have confirmed there is no other css markup effecting the element.
Is there a way to modify or set an off-set to adjust vertical alignment?
For example
<text x="50%" y="16" font-family="inherit" font-size="1rem" font-weight="inherit" style="text-anchor:middle">test</text>
Changing y=16 to y=15 fixes the problem for me. But perhaps there is a way to do this through your fitter function?? Otherwise I would have to call a custom function to modify this value on all elements.
Thanks.
=== update ===
I probably should have looked into your code before posting a question. Changing the following fixed things for me. Hopefully others find it useful.
i = e.baseline || 15, //baseline original code was 16
The text was updated successfully, but these errors were encountered: