-
Notifications
You must be signed in to change notification settings - Fork 111
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
Local bounding box seems to ignore overlay option #858
Comments
This is a documented breaking change of PGF 3.1.5. Quoting from the release notes:
|
Try this: \makeatletter
\tikzset{
overlay/true/.code={%
\pgf@relevantforpicturesizefalse
\pgf@size@hookedfalse
},
overlay/false/.code={%
\pgf@relevantforpicturesizetrue
\pgf@size@hookedtrue
},
}
\makeatother |
@hmenke Thanks! I think it would make sense to add this information also to the manual. One could write just above the code example before section 107.5 Declaring New Shapes
|
Fixed in ca1f30e |
I hope that this is just me seeing ghosts, or there is a reason for this behavior. According to what I find, the
local bounding box
now includes paths that are drawn in the overlay mode. I believe that this was not the case before version 3.1.5.Let us look at the example
The result is as expected. The overlay circle at
(1,2)
gets (partially) clipped away.However, when I draw the boundary of the local bounding box, i.e. when I uncomment
\draw (test.south west) rectangle (test.north east);
I get
and with
\draw[overlay] (test.south west) rectangle (test.north east);
That is, the
local bounding box
captures the second circle even though it is drawn in theoverlay
mode.I do see that this behavior can make sense, yet it seems to be different from the previous behavior. So if this is now the new "correct" behavior one may want to add this information to the manual.
The text was updated successfully, but these errors were encountered: