@types/pdfjs-dist
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -65,6 +65,6 @@ // Type definitions for PDF.js v2.1 | ||
onDataProgress(loaded: number, total: number): void | ||
onDataProgressiveRead(chunk: unknown): void | ||
onDataProgressiveRead(chunk: unknown): void | ||
onDataProgressiveDone(): void | ||
transportReady() : void | ||
requestDataRange(begin: number, end: number): void | ||
transportReady() : void | ||
requestDataRange(begin: number, end: number): void | ||
abort(): void | ||
@@ -81,7 +81,7 @@ } | ||
constructor(params?: PDFWorkerParameters) | ||
readonly promise: Promise<unknown> | ||
readonly promise: Promise<unknown> | ||
readonly port: any |null | ||
readonly messageHandler: unknown | null | ||
destroy(): void | ||
static fromPort(params?: PDFWorkerParameters): PDFWorker | ||
static fromPort(params?: PDFWorkerParameters): PDFWorker | ||
static getWorkerSrc(): string | ||
@@ -110,3 +110,3 @@ } | ||
* use atob() to convert it to a binary string first. | ||
*/ | ||
*/ | ||
data?: Uint8Array | BufferSource | string; | ||
@@ -121,3 +121,3 @@ /** | ||
* For decrypting password-protected PDFs. | ||
*/ | ||
*/ | ||
password?: string; | ||
@@ -152,3 +152,3 @@ /** | ||
worker?: PDFWorker; | ||
/** | ||
/** | ||
* Controls the logging level; the | ||
@@ -177,3 +177,3 @@ * constants from {VerbosityLevel} should be used. | ||
* The URL where the predefined | ||
* Adobe CMaps are located. Include trailing slash. */ | ||
* Adobe CMaps are located. Include trailing slash. */ | ||
cMapUrl?: string | ||
@@ -189,3 +189,3 @@ /** | ||
* The default value is {DOMCMapReaderFactory}. | ||
*/ | ||
*/ | ||
CMapReaderFactory?: any | ||
@@ -197,3 +197,3 @@ /** | ||
* whatever possible of the data. The default value is `false`. | ||
*/ | ||
*/ | ||
stopAtErrors?: boolean | ||
@@ -204,3 +204,3 @@ /** | ||
* rendered. Use -1 for no limit, which is also the default value. | ||
*/ | ||
*/ | ||
maxImageSize?: number | ||
@@ -211,3 +211,3 @@ /** | ||
* and when parsing PDF functions. The default value is `true`. | ||
*/ | ||
*/ | ||
isEvalSupported?: boolean | ||
@@ -219,3 +219,3 @@ /** | ||
* glyphs with primitive path commands. The default value is `false`. | ||
*/ | ||
*/ | ||
disableFontFace?: boolean | ||
@@ -227,3 +227,3 @@ /** | ||
* The default value is `false`. | ||
*/ | ||
*/ | ||
disableRange?: boolean | ||
@@ -234,3 +234,3 @@ /** | ||
* The default value is `false`. | ||
*/ | ||
*/ | ||
disableStream?: boolean | ||
@@ -244,3 +244,3 @@ /** | ||
* in order for disabling of pre-fetching to work correctly. | ||
*/ | ||
*/ | ||
disableAutoFetch?: boolean | ||
@@ -251,3 +251,3 @@ /** | ||
* The default value is `false`. | ||
*/ | ||
*/ | ||
disableCreateObjectURL?: boolean | ||
@@ -257,3 +257,3 @@ /** | ||
* PDF.js (see `web/debugger.js`). The default value is `false`. | ||
*/ | ||
*/ | ||
pdfBug?: boolean | ||
@@ -423,2 +423,7 @@ } | ||
/** | ||
* Page index of the page. First page is 0. | ||
*/ | ||
pageIndex: number; | ||
/** | ||
* Page number of the page. First page is 1. | ||
@@ -425,0 +430,0 @@ **/ |
{ | ||
"name": "@types/pdfjs-dist", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "TypeScript definitions for PDF.js", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -28,4 +28,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "384a146c42ace9bc0a2fe6d7ee7cba79199b2af7313eb5ca5ff31c3ba344f97a", | ||
"typesPublisherContentHash": "2919339af2868956327d7181125a0090cb599052d171b81e77b017988dbb3662", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pdfjs-dist | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pdfjs-dist. | ||
Additional Details | ||
* Last updated: Wed, 02 Oct 2019 22:17:23 GMT | ||
### Additional Details | ||
* Last updated: Mon, 16 Dec 2019 14:30:19 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Josh Baldwin <https://github.com/jbaldwin>, and Dmitrii Sorin <https://github.com/1999>. | ||
These definitions were written by Josh Baldwin (https://github.com/jbaldwin), and Dmitrii Sorin (https://github.com/1999). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23317
597