mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Merge pull request #4740 from yurydelendik/pageviewportdoc
Adds pageviewport documentation
This commit is contained in:
commit
e359f0694f
2 changed files with 55 additions and 5 deletions
|
@ -370,8 +370,8 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
|
|||
*
|
||||
* @typedef {Object} RenderParameters
|
||||
* @property {Object} canvasContext - A 2D context of a DOM Canvas object.
|
||||
* @property {PageViewport} viewport - Rendering viewport obtained by
|
||||
* calling of PDFPage.getViewport method.
|
||||
* @property {PDFJS.PageViewport} viewport - Rendering viewport obtained by
|
||||
* calling of PDFPage.getViewport method.
|
||||
* @property {string} intent - Rendering intent, can be 'display' or 'print'
|
||||
* (default value is 'display').
|
||||
* @property {Object} imageLayer - (optional) An object that has beginLayout,
|
||||
|
@ -429,8 +429,8 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|||
* @param {number} scale The desired scale of the viewport.
|
||||
* @param {number} rotate Degrees to rotate the viewport. If omitted this
|
||||
* defaults to the page rotation.
|
||||
* @return {PageViewport} Contains 'width' and 'height' properties along
|
||||
* with transforms required for rendering.
|
||||
* @return {PDFJS.PageViewport} Contains 'width' and 'height' properties
|
||||
* along with transforms required for rendering.
|
||||
*/
|
||||
getViewport: function PDFPageProxy_getViewport(scale, rotate) {
|
||||
if (arguments.length < 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue