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
@ -1169,7 +1169,8 @@ class PDFDocumentProxy {
|
|||||||
* Page render parameters.
|
* Page render parameters.
|
||||||
*
|
*
|
||||||
* @typedef {Object} RenderParameters
|
* @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
|
* @property {PageViewport} viewport - Rendering viewport obtained by calling
|
||||||
* the `PDFPageProxy.getViewport` method.
|
* the `PDFPageProxy.getViewport` method.
|
||||||
* @property {string} [intent] - Rendering intent, can be 'display', 'print',
|
* @property {string} [intent] - Rendering intent, can be 'display', 'print',
|
||||||
|
Loading…
Reference in New Issue
Block a user