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
{{ message }}
Repository navigation
Pattern: applying a transform breaks the pattern #17065
What is the expected behavior? (add screenshot)
It should show four distorted rectangles each with a single contiguous color gradient from red to blue to green to purple (the red part is clipped). The file has been tested in the following viewers: Acrobat, mupdf, evince, XPDF, Chrome, SummatraPDF, and the Apple one and works in all of them.
What went wrong? (add screenshot)
For the two rectangles on which a skew & rotation is applied, the pattern does not appear:
Activity
Snuffleupagus commentedon Oct 3, 2023
Dherse commentedon Oct 3, 2023
Snuffleupagus commentedon Oct 3, 2023
@calixteman Any ideas what could be wrong here?
calixteman commentedon Oct 3, 2023
Yes, it was a bit uneasy to find out what the issue is, but I found out:
https://github.com/mozilla/pdf.js/blob/master/src/display/canvas.js#L517-L524
We can't only consider the two opposite points to compute the bounding box.
Compute correctly the bounding box of a transformed rectangle (fixes m…
Dherse commentedon Oct 3, 2023
Wow @calixteman I am blown away, thank you so much!
Compute correctly the bounding box of a transformed rectangle (fixes m…
Merge pull request #17067 from calixteman/issue17065