It appears that the special rectangle softpath tokens don't get offset correctly since they're not closed anymore.
The macros \pgfpathrectangle and \pgfpathrectanglecorners don't appear to be used by TikZ but the rectangle shapes' definitions use it. (Amongst others, they're used by patterns or plotmarks for example but I don't think they're going to be nfold-ed soon.)
It appears that the special rectangle softpath tokens don't get offset correctly since they're not closed anymore.
The macros
\pgfpathrectangle
and\pgfpathrectanglecorners
don't appear to be used by TikZ but the rectangle shapes' definitions use it. (Amongst others, they're used by patterns or plotmarks for example but I don't think they're going to be nfold-ed soon.)Compiling this document:
will give us these four softpaths.
Normal
rectangle
path operation:rectangle
node shape (uses\pgfpathrectanglecorners
)PGF:
\pgfpathrectangle
(lower left corner + diagonal vector)PGF:
\pgfpathrectanglecorners
(lower left corner + upper right corner)where all but the first render as![nfold-rect-test-1](https://github.com/jonschz/tikz-nfold/assets/4043967/9ded3ad8-591b-48b3-97e1-dda011c2fa74)