mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Apply HCM filters on annotations which have their own canvas (bug 1830850)
This commit is contained in:
parent
797f8d3dca
commit
c07149a44f
3 changed files with 29 additions and 7 deletions
|
@ -3326,7 +3326,8 @@ class InternalRenderTask {
|
|||
this.canvasFactory,
|
||||
this.filterFactory,
|
||||
{ optionalContentConfig },
|
||||
this.annotationCanvasMap
|
||||
this.annotationCanvasMap,
|
||||
this.pageColors
|
||||
);
|
||||
this.gfx.beginDrawing({
|
||||
transform,
|
||||
|
@ -3342,7 +3343,7 @@ class InternalRenderTask {
|
|||
cancel(error = null, extraDelay = 0) {
|
||||
this.running = false;
|
||||
this.cancelled = true;
|
||||
this.gfx?.endDrawing(this.pageColors);
|
||||
this.gfx?.endDrawing();
|
||||
|
||||
if (this._canvas) {
|
||||
InternalRenderTask.#canvasInUse.delete(this._canvas);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue