mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Update the canvasContext
parameter, in RenderParameters (issue 16133)
Hopefully this works correctly (since I don't know anything about TypeScript), given that `CanvasRenderingContext2D` is a standard name; please see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D
This commit is contained in:
parent
e981badb94
commit
103fda1d91
1 changed files with 2 additions and 1 deletions
|
@ -1169,7 +1169,8 @@ class PDFDocumentProxy {
|
|||
* Page render parameters.
|
||||
*
|
||||
* @typedef {Object} RenderParameters
|
||||
* @property {Object} canvasContext - A 2D context of a DOM Canvas object.
|
||||
* @property {CanvasRenderingContext2D} canvasContext - A 2D context of a DOM
|
||||
* Canvas object.
|
||||
* @property {PageViewport} viewport - Rendering viewport obtained by calling
|
||||
* the `PDFPageProxy.getViewport` method.
|
||||
* @property {string} [intent] - Rendering intent, can be 'display', 'print',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue