Skip to content

Optimize path decoration with redundancy check#1

Open
peaR-red wants to merge 1 commit intomasterfrom
peaR-red-patch-1
Open

Optimize path decoration with redundancy check#1
peaR-red wants to merge 1 commit intomasterfrom
peaR-red-patch-1

Conversation

@peaR-red
Copy link
Copy Markdown
Owner

Instruct the decoration automaton to drop any moveto that is purely redundant by updating \pgf@path@last... to \pgfpoint@decorate@existingpathlast and evaluates the x and y coordinates against \pgf@path@lastx... to suppress unnecessary moveto operations.

Motivation for this change
First reported in https://tex.stackexchange.com/q/761240/399147, nested decorations in the decorate subpath disconnect them from the rest of the path. The effect is most visible with --cycle.

Checklist

Please signoff your commits to explicitly state your agreement to the Developer Certificate of Origin. If that is not possible you may check the boxes below instead:

Added redundancy check to avoid unnecessary moveto commands. (see https://tex.stackexchange.com/q/761240/399147)
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.

1 participant