pdfjs-dist
Advanced tools
Comparing version 4.3.136 to 4.4.168
{ | ||
"name": "pdfjs-dist", | ||
"version": "4.3.136", | ||
"version": "4.4.168", | ||
"main": "build/pdf.mjs", | ||
@@ -28,7 +28,8 @@ "types": "types/src/pdf.d.ts", | ||
"type": "git", | ||
"url": "https://github.com/mozilla/pdfjs-dist" | ||
"url": "git+https://github.com/mozilla/pdf.js.git" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
} | ||
}, | ||
"scripts": {} | ||
} |
@@ -52,3 +52,3 @@ export type PDFPageProxy = import("./api").PDFPageProxy; | ||
accessibilityManager?: import("../../web/text_accessibility.js").TextAccessibilityManager | undefined; | ||
annotationEditorUIManager?: any; | ||
annotationEditorUIManager?: AnnotationEditorUIManager; | ||
}; | ||
@@ -55,0 +55,0 @@ /** |
@@ -51,3 +51,3 @@ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; | ||
* - Specify maximum number of bytes fetched | ||
* per range request. The default value is {@link DEFAULT_RANGE_CHUNK_SIZE }. | ||
* per range request. The default value is {@link DEFAULT_RANGE_CHUNK_SIZE}. | ||
*/ | ||
@@ -62,3 +62,3 @@ rangeChunkSize?: number | undefined; | ||
* - Controls the logging level; the constants | ||
* from {@link VerbosityLevel } should be used. | ||
* from {@link VerbosityLevel} should be used. | ||
*/ | ||
@@ -212,2 +212,7 @@ verbosity?: number | undefined; | ||
filterFactory?: Object | undefined; | ||
/** | ||
* - Enables hardware acceleration for | ||
* rendering. The default value is `false`. | ||
*/ | ||
enableHWA?: boolean | undefined; | ||
}; | ||
@@ -274,3 +279,3 @@ export type OnProgressParameters = { | ||
* - Array of | ||
* {@link TextItem } and {@link TextMarkedContent } objects. TextMarkedContent | ||
* {@link TextItem} and {@link TextMarkedContent} objects. TextMarkedContent | ||
* items are included when includeMarkedContent is true. | ||
@@ -280,3 +285,3 @@ */ | ||
/** | ||
* - {@link TextStyle } objects, | ||
* - {@link TextStyle} objects, | ||
* indexed by font name. | ||
@@ -395,3 +400,3 @@ */ | ||
* onto the canvas, for annotations with appearance-data; the values from | ||
* {@link AnnotationMode } should be used. The following values are supported: | ||
* {@link AnnotationMode} should be used. The following values are supported: | ||
* - `AnnotationMode.DISABLE`, which disables all annotations. | ||
@@ -404,3 +409,3 @@ * - `AnnotationMode.ENABLE`, which includes all possible annotations (thus | ||
* (as above) but where interactive form elements are updated with data | ||
* from the {@link AnnotationStorage }-instance; useful e.g. for printing. | ||
* from the {@link AnnotationStorage}-instance; useful e.g. for printing. | ||
* The default value is `AnnotationMode.ENABLE`. | ||
@@ -434,3 +439,3 @@ */ | ||
* - | ||
* A promise that should resolve with an {@link OptionalContentConfig }created from `PDFDocumentProxy.getOptionalContentConfig`. If `null`, | ||
* A promise that should resolve with an {@link OptionalContentConfig}created from `PDFDocumentProxy.getOptionalContentConfig`. If `null`, | ||
* the configuration will be fetched automatically with the default visibility | ||
@@ -459,3 +464,3 @@ * states set. | ||
* in the operatorList, for annotations with appearance-data; the values from | ||
* {@link AnnotationMode } should be used. The following values are supported: | ||
* {@link AnnotationMode} should be used. The following values are supported: | ||
* - `AnnotationMode.DISABLE`, which disables all annotations. | ||
@@ -468,3 +473,3 @@ * - `AnnotationMode.ENABLE`, which includes all possible annotations (thus | ||
* (as above) but where interactive form elements are updated with data | ||
* from the {@link AnnotationStorage }-instance; useful e.g. for printing. | ||
* from the {@link AnnotationStorage}-instance; useful e.g. for printing. | ||
* The default value is `AnnotationMode.ENABLE`. | ||
@@ -481,3 +486,3 @@ */ | ||
* - Array of | ||
* {@link StructTreeNode } and {@link StructTreeContent } objects. | ||
* {@link StructTreeNode} and {@link StructTreeContent} objects. | ||
*/ | ||
@@ -530,3 +535,3 @@ children: Array<StructTreeNode | StructTreeContent>; | ||
* - Controls the logging level; | ||
* the constants from {@link VerbosityLevel } should be used. | ||
* the constants from {@link VerbosityLevel} should be used. | ||
*/ | ||
@@ -537,3 +542,3 @@ verbosity?: number | undefined; | ||
export const build: string; | ||
export const DefaultCanvasFactory: typeof DOMCanvasFactory | typeof NodeCanvasFactory; | ||
export const DefaultCanvasFactory: typeof NodeCanvasFactory; | ||
export const DefaultCMapReaderFactory: typeof NodeCMapReaderFactory; | ||
@@ -659,2 +664,4 @@ export const DefaultFilterFactory: typeof DOMFilterFactory | typeof NodeFilterFactory; | ||
* to create SVG filters when rendering some images on the main canvas. | ||
* @property {boolean} [enableHWA] - Enables hardware acceleration for | ||
* rendering. The default value is `false`. | ||
*/ | ||
@@ -673,3 +680,3 @@ /** | ||
*/ | ||
export function getDocument(src: string | URL | TypedArray | ArrayBuffer | DocumentInitParameters): PDFDocumentLoadingTask; | ||
export function getDocument(src?: string | URL | TypedArray | ArrayBuffer | DocumentInitParameters): PDFDocumentLoadingTask; | ||
export class LoopbackPort { | ||
@@ -756,3 +763,3 @@ postMessage(obj: any, transfer: any): void; | ||
export class PDFDocumentLoadingTask { | ||
static "__#45@#docId": number; | ||
static "__#46@#docId": number; | ||
_capability: any; | ||
@@ -921,3 +928,3 @@ _transport: any; | ||
*/ | ||
getOutline(): Promise<{ | ||
getOutline(): Promise<Array<{ | ||
title: string; | ||
@@ -936,4 +943,4 @@ bold: boolean; | ||
count: number | undefined; | ||
items: any[]; | ||
}[]>; | ||
items: Array<any>; | ||
}>>; | ||
/** | ||
@@ -1384,3 +1391,3 @@ * @typedef {Object} GetOptionalContentConfigParameters | ||
export class PDFWorker { | ||
static "__#48@#workerPorts": any; | ||
static "__#49@#workerPorts": any; | ||
/** | ||
@@ -1395,3 +1402,3 @@ * @param {PDFWorkerParameters} params - The worker initialization parameters. | ||
static get workerSrc(): string; | ||
static get "__#48@#mainThreadWorkerMessageHandler"(): any; | ||
static get "__#49@#mainThreadWorkerMessageHandler"(): any; | ||
static get _setupFakeWorkerGlobal(): any; | ||
@@ -1432,2 +1439,3 @@ constructor({ name, port, verbosity, }?: { | ||
destroy(): void; | ||
#private; | ||
} | ||
@@ -1475,3 +1483,2 @@ export namespace PDFWorkerUtil { | ||
import { PrintAnnotationStorage } from "./annotation_storage.js"; | ||
import { DOMCanvasFactory } from "./display_utils.js"; | ||
import { NodeCanvasFactory } from "./node_utils"; | ||
@@ -1478,0 +1485,0 @@ import { NodeCMapReaderFactory } from "./node_utils"; |
export class BaseCanvasFactory { | ||
constructor({ enableHWA }?: { | ||
enableHWA?: boolean | undefined; | ||
}); | ||
create(width: any, height: any): { | ||
@@ -12,2 +15,3 @@ canvas: void; | ||
_createCanvas(width: any, height: any): void; | ||
#private; | ||
} | ||
@@ -14,0 +18,0 @@ export class BaseCMapReaderFactory { |
@@ -60,4 +60,5 @@ export type PageViewportParameters = { | ||
export class DOMCanvasFactory extends BaseCanvasFactory { | ||
constructor({ ownerDocument }?: { | ||
constructor({ ownerDocument, enableHWA }?: { | ||
ownerDocument?: Document | undefined; | ||
enableHWA?: boolean | undefined; | ||
}); | ||
@@ -64,0 +65,0 @@ _document: Document; |
@@ -8,3 +8,3 @@ /** | ||
static get _svgFactory(): any; | ||
static "__#26@#setBox"(element: any, { x, y, width, height }?: { | ||
static "__#27@#setBox"(element: any, { x, y, width, height }?: { | ||
x?: number | undefined; | ||
@@ -11,0 +11,0 @@ y?: number | undefined; |
@@ -46,3 +46,3 @@ export type AnnotationEditorUIManager = import("./tools.js").AnnotationEditorUIManager; | ||
static _initialized: boolean; | ||
static "__#27@#editorTypes": Map<number, typeof FreeTextEditor | typeof HighlightEditor | typeof InkEditor | typeof StampEditor>; | ||
static "__#28@#editorTypes": Map<number, typeof FreeTextEditor | typeof HighlightEditor | typeof InkEditor | typeof StampEditor>; | ||
/** | ||
@@ -135,2 +135,3 @@ * @param {AnnotationEditorLayerOptions} options | ||
getNextId(): string; | ||
get _signal(): AbortSignal; | ||
canCreateNewEmptyEditor(): boolean | undefined; | ||
@@ -137,0 +138,0 @@ /** |
@@ -73,3 +73,3 @@ export type AnnotationEditorLayer = import("./annotation_editor_layer.js").AnnotationEditorLayer; | ||
static paste(item: DataTransferItem, parent: AnnotationEditorLayer): void; | ||
static "__#34@#rotatePoint"(x: any, y: any, angle: any): any[]; | ||
static "__#35@#rotatePoint"(x: any, y: any, angle: any): any[]; | ||
/** | ||
@@ -76,0 +76,0 @@ * Deserialize the editor. |
@@ -19,4 +19,4 @@ export type AnnotationEditorLayer = import("./annotation_editor_layer.js").AnnotationEditorLayer; | ||
static get defaultPropertiesToUpdate(): any[][]; | ||
static "__#17@#getNodeContent"(node: any): any; | ||
static "__#17@#deserializeContent"(content: any): any; | ||
static "__#18@#getNodeContent"(node: any): any; | ||
static "__#18@#deserializeContent"(content: any): any; | ||
/** @inheritdoc */ | ||
@@ -23,0 +23,0 @@ static deserialize(data: any, parent: any, uiManager: any): AnnotationEditor | null; |
@@ -23,3 +23,3 @@ /** | ||
static get defaultPropertiesToUpdate(): (number | null)[][]; | ||
static "__#23@#rotateBbox"({ x, y, width, height }: { | ||
static "__#24@#rotateBbox"({ x, y, width, height }: { | ||
x: any; | ||
@@ -40,4 +40,4 @@ y: any; | ||
}): void; | ||
static "__#23@#highlightMove"(parent: any, event: any): void; | ||
static "__#23@#endHighlight"(parent: any, event: any): void; | ||
static "__#24@#highlightMove"(parent: any, event: any): void; | ||
static "__#24@#endHighlight"(parent: any, event: any): void; | ||
/** @inheritdoc */ | ||
@@ -81,3 +81,3 @@ static deserialize(data: any, parent: any, uiManager: any): AnnotationEditor | null; | ||
thickness: any; | ||
quadPoints: any[] | null; | ||
quadPoints: Float32Array | null; | ||
outlines: any; | ||
@@ -84,0 +84,0 @@ pageIndex: number; |
@@ -21,5 +21,5 @@ /** | ||
*/ | ||
static "__#24@#buildPath2D"(bezier: Array<Array<number>>): Path2D; | ||
static "__#24@#toPDFCoordinates"(points: any, rect: any, rotation: any): any; | ||
static "__#24@#fromPDFCoordinates"(points: any, rect: any, rotation: any): any; | ||
static "__#25@#buildPath2D"(bezier: Array<Array<number>>): Path2D; | ||
static "__#25@#toPDFCoordinates"(points: any, rect: any, rotation: any): any; | ||
static "__#25@#fromPDFCoordinates"(points: any, rect: any, rotation: any): any; | ||
/** @inheritdoc */ | ||
@@ -26,0 +26,0 @@ static deserialize(data: any, parent: any, uiManager: any): AnnotationEditor | null; |
export class FreeOutliner { | ||
static "__#20@#MIN_DIST": number; | ||
static "__#20@#MIN_DIFF": number; | ||
static "__#20@#MIN": number; | ||
static "__#21@#MIN_DIST": number; | ||
static "__#21@#MIN_DIFF": number; | ||
static "__#21@#MIN": number; | ||
constructor({ x, y }: { | ||
@@ -6,0 +6,0 @@ x: any; |
export class EditorToolbar { | ||
static "__#3@#pointerDown"(e: any): void; | ||
static "__#4@#pointerDown"(e: any): void; | ||
constructor(editor: any); | ||
@@ -4,0 +4,0 @@ render(): HTMLDivElement; |
@@ -16,2 +16,3 @@ export type AnnotationEditor = import("./editor.js").AnnotationEditor; | ||
constructor(container: any, viewer: any, altTextManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, mlManager: any); | ||
_signal: AbortSignal; | ||
_eventBus: any; | ||
@@ -56,3 +57,9 @@ viewParameters: { | ||
removeEditListeners(): void; | ||
dragOver(event: any): void; | ||
/** | ||
* Drop callback. | ||
* @param {DragEvent} event | ||
*/ | ||
drop(event: DragEvent): void; | ||
/** | ||
* Copy callback. | ||
@@ -265,3 +272,3 @@ * @param {ClipboardEvent} event | ||
*/ | ||
isActive(editor: AnnotationEditor): boolean; | ||
isActive(editor: AnnotationEditor): editor is never; | ||
/** | ||
@@ -268,0 +275,0 @@ * Get the current active editor. |
@@ -39,5 +39,6 @@ export type PageViewport = import("./display_utils").PageViewport; | ||
export class TextLayer { | ||
static "__#44@#ascentCache": Map<any, any>; | ||
static "__#44@#canvasContexts": Map<any, any>; | ||
static "__#44@#pendingTextLayers": Set<any>; | ||
static "__#45@#ascentCache": Map<any, any>; | ||
static "__#45@#canvasContexts": Map<any, any>; | ||
static "__#45@#minFontSize": null; | ||
static "__#45@#pendingTextLayers": Set<any>; | ||
/** | ||
@@ -48,5 +49,9 @@ * Clean-up global textLayer data. | ||
static cleanup(): undefined; | ||
static "__#44@#getCtx"(lang?: null): any; | ||
static "__#44@#getAscent"(fontFamily: any, lang: any): any; | ||
static "__#45@#getCtx"(lang?: null): any; | ||
/** | ||
* Compute the minimum font size enforced by the browser. | ||
*/ | ||
static "__#45@#ensureMinFontSizeComputed"(): void; | ||
static "__#45@#getAscent"(fontFamily: any, lang: any): any; | ||
/** | ||
* @param {TextLayerParameters} options | ||
@@ -53,0 +58,0 @@ */ |
export class GlobalWorkerOptions { | ||
static "__#39@#port": null; | ||
static "__#39@#src": string; | ||
static "__#40@#port": null; | ||
static "__#40@#src": string; | ||
/** | ||
@@ -5,0 +5,0 @@ * @param {Worker | null} workerPort - Defines global port for worker process. |
@@ -6,3 +6,2 @@ export type IDownloadManager = import("./interfaces").IDownloadManager; | ||
export class DownloadManager implements IDownloadManager { | ||
downloadUrl(url: any, filename: any, _options: any): void; | ||
downloadData(data: any, filename: any, contentType: any): void; | ||
@@ -13,4 +12,4 @@ /** | ||
openOrDownloadData(data: any, filename: any, dest?: null): boolean; | ||
download(blob: any, url: any, filename: any, _options: any): void; | ||
download(data: any, url: any, filename: any, _options: any): void; | ||
#private; | ||
} |
@@ -18,8 +18,2 @@ export type WaitOnEventOrTimeoutParameters = { | ||
/** | ||
* NOTE: Only used to support various PDF viewer tests in `mozilla-central`. | ||
*/ | ||
export class AutomationEventBus extends EventBus { | ||
dispatch(eventName: any, data: any): void; | ||
} | ||
/** | ||
* Simple event bus for an application. Listeners are attached using the `on` | ||
@@ -57,2 +51,10 @@ * and `off` methods. To raise an event, the `dispatch` method shall be used. | ||
/** | ||
* NOTE: Only used in the Firefox build-in pdf viewer. | ||
*/ | ||
export class FirefoxEventBus extends EventBus { | ||
constructor(globalEventNames: any, externalServices: any, isInAutomation: any); | ||
dispatch(eventName: any, data: any): void; | ||
#private; | ||
} | ||
/** | ||
* @typedef {Object} WaitOnEventOrTimeoutParameters | ||
@@ -59,0 +61,0 @@ * @property {Object} target - The event target, can for example be: |
@@ -12,12 +12,12 @@ export type IL10n = import("./interfaces").IL10n; | ||
*/ | ||
static "__#59@#generateBundles"(defaultLang: string, baseLang: string): AsyncGenerator<any, void, unknown>; | ||
static "__#59@#createBundle"(lang: any, baseURL: any, paths: any): Promise<any>; | ||
static "__#59@#getPaths"(): Promise<{ | ||
static "__#61@#generateBundles"(defaultLang: string, baseLang: string): AsyncGenerator<any, void, unknown>; | ||
static "__#61@#createBundle"(lang: any, baseURL: any, paths: any): Promise<any>; | ||
static "__#61@#getPaths"(): Promise<{ | ||
baseURL: any; | ||
paths: any; | ||
}>; | ||
static "__#59@#generateBundlesFallback"(lang: any): AsyncGenerator<any, void, unknown>; | ||
static "__#59@#createBundleFallback"(lang: any): Promise<any>; | ||
static "__#61@#generateBundlesFallback"(lang: any): AsyncGenerator<any, void, unknown>; | ||
static "__#61@#createBundleFallback"(lang: any): Promise<any>; | ||
constructor(lang: any); | ||
} | ||
import { L10n } from "./l10n.js"; |
@@ -9,8 +9,2 @@ export type PDFPageProxy = import("../src/display/api").PDFPageProxy; | ||
/** | ||
* @param {string} url | ||
* @param {string} filename | ||
* @param {Object} [options] | ||
*/ | ||
downloadUrl(url: string, filename: string, options?: Object | undefined): void; | ||
/** | ||
* @param {Uint8Array} data | ||
@@ -29,3 +23,3 @@ * @param {string} filename | ||
/** | ||
* @param {Blob} blob | ||
* @param {Uint8Array} data | ||
* @param {string} url | ||
@@ -35,3 +29,3 @@ * @param {string} filename | ||
*/ | ||
download(blob: Blob, url: string, filename: string, options?: Object | undefined): void; | ||
download(data: Uint8Array, url: string, filename: string, options?: Object | undefined): void; | ||
} | ||
@@ -38,0 +32,0 @@ /** |
@@ -10,4 +10,4 @@ export type IL10n = import("./interfaces").IL10n; | ||
export class L10n implements IL10n { | ||
static "__#58@#fixupLangCode"(langCode: any): any; | ||
static "__#58@#isRTL"(lang: any): boolean; | ||
static "__#60@#fixupLangCode"(langCode: any): any; | ||
static "__#60@#isRTL"(lang: any): boolean; | ||
constructor({ lang, isRTL }: { | ||
@@ -27,2 +27,4 @@ lang: any; | ||
/** @inheritdoc */ | ||
destroy(): Promise<void>; | ||
/** @inheritdoc */ | ||
pause(): void; | ||
@@ -29,0 +31,0 @@ /** @inheritdoc */ |
@@ -51,3 +51,3 @@ export type EventBus = import("./event_utils").EventBus; | ||
export class PDFLinkService implements IPDFLinkService { | ||
static "__#55@#isValidExplicitDest"(dest: any): boolean; | ||
static "__#57@#isValidExplicitDest"(dest: any): boolean; | ||
/** | ||
@@ -54,0 +54,0 @@ * @param {PDFLinkServiceOptions} options |
@@ -30,3 +30,3 @@ export type PageViewport = import("../src/display/display_utils").PageViewport; | ||
* - | ||
* A promise that is resolved with an {@link OptionalContentConfig } instance. | ||
* A promise that is resolved with an {@link OptionalContentConfig} instance. | ||
* The default value is `null`. | ||
@@ -48,4 +48,4 @@ */ | ||
* created, and if interactive form elements or `AnnotationStorage`-data are | ||
* being rendered. The constants from {@link AnnotationMode } should be used; | ||
* see also {@link RenderParameters } and {@link GetOperatorListParameters }. | ||
* being rendered. The constants from {@link AnnotationMode} should be used; | ||
* see also {@link RenderParameters} and {@link GetOperatorListParameters}. | ||
* The default value is `AnnotationMode.ENABLE_FORMS`. | ||
@@ -80,2 +80,7 @@ */ | ||
layerProperties?: Object | undefined; | ||
/** | ||
* - Enables hardware acceleration for | ||
* rendering. The default value is `false`. | ||
*/ | ||
enableHWA?: boolean | undefined; | ||
}; | ||
@@ -157,3 +162,3 @@ /** | ||
/** | ||
* A promise that is resolved with an {@link OptionalContentConfig }instance. The default value is `null`. | ||
* A promise that is resolved with an {@link OptionalContentConfig}instance. The default value is `null`. | ||
*/ | ||
@@ -160,0 +165,0 @@ optionalContentConfigPromise?: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | undefined; |
@@ -26,3 +26,3 @@ export type OptionalContentConfig = import("../src/display/optional_content_config").OptionalContentConfig; | ||
* - | ||
* A promise that is resolved with an {@link OptionalContentConfig } instance. | ||
* A promise that is resolved with an {@link OptionalContentConfig} instance. | ||
* The default value is `null`. | ||
@@ -45,2 +45,7 @@ */ | ||
pageColors?: Object | undefined; | ||
/** | ||
* - Enables hardware acceleration for | ||
* rendering. The default value is `false`. | ||
*/ | ||
enableHWA?: boolean | undefined; | ||
}; | ||
@@ -54,3 +59,3 @@ /** | ||
*/ | ||
constructor({ container, eventBus, id, defaultViewport, optionalContentConfigPromise, linkService, renderingQueue, pageColors, }: PDFThumbnailViewOptions); | ||
constructor({ container, eventBus, id, defaultViewport, optionalContentConfigPromise, linkService, renderingQueue, pageColors, enableHWA, }: PDFThumbnailViewOptions); | ||
id: number; | ||
@@ -65,2 +70,3 @@ renderingId: string; | ||
pageColors: Object | null; | ||
enableHWA: boolean; | ||
eventBus: import("./event_utils").EventBus; | ||
@@ -111,7 +117,9 @@ linkService: import("./interfaces").IPDFLinkService; | ||
* mode. | ||
* @property {boolean} [enableHWA] - Enables hardware acceleration for | ||
* rendering. The default value is `false`. | ||
*/ | ||
export class TempImageFactory { | ||
static "__#69@#tempCanvas": null; | ||
static "__#71@#tempCanvas": null; | ||
static getCanvas(width: any, height: any): (HTMLCanvasElement | CanvasRenderingContext2D | null)[]; | ||
static destroyCanvas(): void; | ||
} |
@@ -30,2 +30,12 @@ export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy; | ||
pageColors?: Object | undefined; | ||
/** | ||
* - The AbortSignal for the window | ||
* events. | ||
*/ | ||
abortSignal?: AbortSignal | undefined; | ||
/** | ||
* - Enables hardware acceleration for | ||
* rendering. The default value is `false`. | ||
*/ | ||
enableHWA?: boolean | undefined; | ||
}; | ||
@@ -42,2 +52,6 @@ /** | ||
* mode. | ||
* @property {AbortSignal} [abortSignal] - The AbortSignal for the window | ||
* events. | ||
* @property {boolean} [enableHWA] - Enables hardware acceleration for | ||
* rendering. The default value is `false`. | ||
*/ | ||
@@ -51,3 +65,3 @@ /** | ||
*/ | ||
constructor({ container, eventBus, linkService, renderingQueue, pageColors, }: PDFThumbnailViewerOptions); | ||
constructor({ container, eventBus, linkService, renderingQueue, pageColors, abortSignal, enableHWA, }: PDFThumbnailViewerOptions); | ||
container: HTMLDivElement; | ||
@@ -58,2 +72,3 @@ eventBus: import("./event_utils").EventBus; | ||
pageColors: Object | null; | ||
enableHWA: boolean; | ||
scroll: { | ||
@@ -60,0 +75,0 @@ right: boolean; |
@@ -61,4 +61,4 @@ export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy; | ||
* created, and if interactive form elements or `AnnotationStorage`-data are | ||
* being rendered. The constants from {@link AnnotationMode } should be used; | ||
* see also {@link RenderParameters } and {@link GetOperatorListParameters }. | ||
* being rendered. The constants from {@link AnnotationMode} should be used; | ||
* see also {@link RenderParameters} and {@link GetOperatorListParameters}. | ||
* The default value is `AnnotationMode.ENABLE_FORMS`. | ||
@@ -69,3 +69,3 @@ */ | ||
* - Enables the creation and editing | ||
* of new Annotations. The constants from {@link AnnotationEditorType } should | ||
* of new Annotations. The constants from {@link AnnotationEditorType} should | ||
* be used. The default value is `AnnotationEditorType.NONE`. | ||
@@ -110,2 +110,7 @@ */ | ||
pageColors?: Object | undefined; | ||
/** | ||
* - Enables hardware acceleration for | ||
* rendering. The default value is `false`. | ||
*/ | ||
enableHWA?: boolean | undefined; | ||
}; | ||
@@ -158,2 +163,4 @@ export namespace PagesCountLimit { | ||
* mode. | ||
* @property {boolean} [enableHWA] - Enables hardware acceleration for | ||
* rendering. The default value is `false`. | ||
*/ | ||
@@ -238,3 +245,3 @@ export class PDFPageViewBuffer { | ||
*/ | ||
set currentPageLabel(val: string | null); | ||
set currentPageLabel(val: string); | ||
/** | ||
@@ -376,3 +383,3 @@ * @type {string|null} Returns the current page label, or `null` if no page | ||
*/ | ||
set optionalContentConfigPromise(promise: Promise<import("../src/display/optional_content_config").OptionalContentConfig | null>); | ||
set optionalContentConfigPromise(promise: Promise<import("../src/display/optional_content_config").OptionalContentConfig>); | ||
/** | ||
@@ -498,2 +505,5 @@ * @type {Promise<OptionalContentConfig | null>} | ||
*/ | ||
/** | ||
* - The editor mode (none, FreeText, ink, ...). | ||
*/ | ||
mode: number; | ||
@@ -503,2 +513,5 @@ /** | ||
*/ | ||
/** | ||
* - ID of the existing annotation to edit. | ||
*/ | ||
editId?: string | null | undefined; | ||
@@ -509,2 +522,6 @@ /** | ||
*/ | ||
/** | ||
* - True if the mode change is due to a | ||
* keyboard action. | ||
*/ | ||
isFromKeyboard?: boolean | undefined; | ||
@@ -511,0 +528,0 @@ }; |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
static "__#6@#compareElementPositions"(e1: HTMLElement, e2: HTMLElement): number; | ||
static "__#7@#compareElementPositions"(e1: HTMLElement, e2: HTMLElement): number; | ||
setTextMapping(textDivs: any): void; | ||
@@ -20,0 +20,0 @@ /** |
@@ -29,6 +29,6 @@ export type PDFPageProxy = import("../src/display/api").PDFPageProxy; | ||
export class TextLayerBuilder { | ||
static "__#65@#textLayers": Map<any, any>; | ||
static "__#65@#selectionChangeAbortController": null; | ||
static "__#65@#removeGlobalSelectionListener"(textLayerDiv: any): void; | ||
static "__#65@#enableGlobalSelectionListener"(): void; | ||
static "__#67@#textLayers": Map<any, any>; | ||
static "__#67@#selectionChangeAbortController": null; | ||
static "__#67@#removeGlobalSelectionListener"(textLayerDiv: any): void; | ||
static "__#67@#enableGlobalSelectionListener"(): void; | ||
constructor({ pdfPage, highlighter, accessibilityManager, enablePermissions, onAppend, }: { | ||
@@ -35,0 +35,0 @@ pdfPage: any; |
@@ -69,2 +69,3 @@ export type GetPageSizeInchesParameters = { | ||
* the second one is a denominator. | ||
* They are both natural numbers. | ||
*/ | ||
@@ -105,2 +106,7 @@ export function approximateFraction(x: number): any[]; | ||
/** | ||
* @param {number} x - A positive number to round to a multiple of `div`. | ||
* @param {number} div - A natural number. | ||
*/ | ||
export function floorToDivide(x: number, div: number): number; | ||
/** | ||
* Get the active or focused element in current DOM. | ||
@@ -225,3 +231,2 @@ * | ||
} | ||
export function roundToDivide(x: any, div: any): any; | ||
export const SCROLLBAR_PADDING: 40; | ||
@@ -281,3 +286,3 @@ /** | ||
*/ | ||
export function watchScroll(viewAreaElement: any, callback: any): { | ||
export function watchScroll(viewAreaElement: any, callback: any, abortSignal?: undefined): { | ||
right: boolean; | ||
@@ -284,0 +289,0 @@ down: boolean; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
36414903
219549
18