@types/pdfjs-dist
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for PDF.js v2.0 | ||
// Type definitions for PDF.js v2.1 | ||
// Project: https://github.com/mozilla/pdf.js | ||
@@ -134,3 +134,3 @@ // Definitions by: Josh Baldwin <https://github.com/jbaldwin>, Dmitrii Sorin <https://github.com/1999> | ||
height: number; | ||
fontScale: number; | ||
scale: number; | ||
transforms: number[]; | ||
@@ -144,2 +144,7 @@ | ||
interface ViewportParameters { | ||
scale: number; // The desired scale of the viewport. | ||
rotation?: number; // (optional) The desired rotation, in degrees, of the viewport. If omitted it defaults to the page rotation. | ||
dontFlip?: boolean; // (optional) If true, the y-axis will not be flipped. The default value is `false`. | ||
} | ||
interface PDFAnnotationData { | ||
@@ -224,8 +229,6 @@ subtype: string; | ||
/** | ||
* @param scale The desired scale of the viewport. | ||
* @param rotate Degrees to rotate the viewport. If omitted this defaults to the page rotation. | ||
* @param dontFlip | ||
* @param params viewport options | ||
* @return | ||
**/ | ||
getViewport(scale: number, rotate?: number, dontFlip?: boolean): PDFPageViewport; | ||
getViewport(params: ViewportParameters): PDFPageViewport; | ||
@@ -232,0 +235,0 @@ /** |
{ | ||
"name": "@types/pdfjs-dist", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "TypeScript definitions for PDF.js", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "2e64822c2196066f90de17a626f9ccf023f48470bc075a426b54bd51152cb7f4", | ||
"typesPublisherContentHash": "4a6c834999d99cfa8e612563c3d781ee9e282146fe4f78936a2813f146f0a670", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 11 Jul 2019 00:11:53 GMT | ||
* Last updated: Mon, 05 Aug 2019 18:29:07 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
16291
400