parallax/jsPDF

Context2D does not implement clip() correctly

Aperta

#3408 aperta il 9 apr 2022

 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (4596 fork)batch import
Feature Requestdifficulty:mediumhelp wanted

Metriche repository

Star
 (28.280 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

clip() is supposed to take an argument to specify the clipping rule. Context2D drops this argument on the floor and implements the default clipping rule, I guess.

It can also be given two arguments where one argument is the path. This is also not implemented.

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip

Guida contributor