Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement TikZ/PGF baseline support #2477

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xworld21
Copy link
Contributor

@xworld21 xworld21 commented Jan 6, 2025

Fix #2462. Note that it does not fix the baseline issues in the 'unit tests by Silviu'. This is a good sign, because those tests do not modify the baseline, ever; they are broken for a different minx/miny related reason.

@@ -77,13 +77,15 @@ DefConstructor('\lxSVG@insertpicture{}', sub {
if ($document->getNodeQName($current) =~ /^svg:/) { # Already in svg:svg ?
# Seemingly this positioning is correct; otherwise inherit from context
my ($x, $y) = (-$props{minx}, -$props{miny});
$y -= $props{depth}->pxValue if $props{depth}->pxValue;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I haven't tested this, how do I do that?

@dginev dginev requested a review from brucemiller January 6, 2025 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TikZ: baseline attribute in tikzpicture
1 participant