Socket
Socket
Sign inDemoInstall

pdfjs-dist

Package Overview
Dependencies
68
Maintainers
3
Versions
1537
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.141 to 3.6.172

4

package.json
{
"name": "pdfjs-dist",
"version": "3.5.141",
"version": "3.6.172",
"main": "build/pdf.js",

@@ -16,3 +16,3 @@ "types": "types/src/pdf.d.ts",

"optionalDependencies": {
"canvas": "^2.11.0"
"canvas": "^2.11.2"
},

@@ -19,0 +19,0 @@ "dependencies": {

@@ -73,3 +73,3 @@ export type PDFPageProxy = import("./api").PDFPageProxy;

export class AnnotationLayer {
static "__#26@#appendElement"(element: any, id: any, div: any, accessibilityManager: any): void;
static "__#28@#appendElement"(element: any, id: any, div: any, accessibilityManager: any): void;
/**

@@ -89,4 +89,4 @@ * Render a new annotation layer with all annotation elements.

static update(params: AnnotationLayerParameters): void;
static "__#26@#setAnnotationCanvasMap"(div: any, annotationCanvasMap: any): void;
static "__#28@#setAnnotationCanvasMap"(div: any, annotationCanvasMap: any): void;
}
import { AnnotationStorage } from "./annotation_storage.js";

@@ -259,2 +259,7 @@ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;

includeMarkedContent?: boolean | undefined;
/**
* - When true the text is *not*
* normalized in the worker-thread. The default is `false`.
*/
disableNormalization?: boolean | undefined;
};

@@ -684,3 +689,3 @@ /**

_progressiveDoneListeners: any[];
_readyCapability: import("../shared/util.js").PromiseCapability;
_readyCapability: PromiseCapability;
/**

@@ -736,4 +741,4 @@ * @param {function} listener

export class PDFDocumentLoadingTask {
static "__#16@#docId": number;
_capability: import("../shared/util.js").PromiseCapability;
static "__#18@#docId": number;
_capability: PromiseCapability;
_transport: any;

@@ -1047,2 +1052,4 @@ _worker: any;

* content items in the items array of TextContent. The default is `false`.
* @property {boolean} [disableNormalization] - When true the text is *not*
* normalized in the worker-thread. The default is `false`.
*/

@@ -1275,3 +1282,3 @@ /**

*/
streamTextContent({ includeMarkedContent }?: getTextContentParameters): ReadableStream;
streamTextContent({ includeMarkedContent, disableNormalization, }?: getTextContentParameters): ReadableStream;
/**

@@ -1337,3 +1344,3 @@ * NOTE: All occurrences of whitespace will be replaced by

export class PDFWorker {
static "__#19@#workerPorts": WeakMap<object, any>;
static "__#21@#workerPorts": WeakMap<object, any>;
/**

@@ -1358,3 +1365,3 @@ * @param {PDFWorkerParameters} params - The worker initialization parameters.

verbosity: number;
_readyCapability: import("../shared/util.js").PromiseCapability;
_readyCapability: PromiseCapability;
_port: any;

@@ -1432,2 +1439,3 @@ _webWorker: Worker | null;

import { DOMStandardFontDataFactory } from "./display_utils.js";
import { PromiseCapability } from "../shared/util.js";
import { AnnotationStorage } from "./annotation_storage.js";

@@ -1434,0 +1442,0 @@ import { info } from "../shared/util.js";

@@ -0,0 +0,0 @@ export class BaseCanvasFactory {

@@ -5,3 +5,3 @@ export class CanvasGraphics {

markedContentStack?: null | undefined;
}, annotationCanvasMap: any);
}, annotationCanvasMap: any, pageColors: any);
ctx: any;

@@ -36,2 +36,3 @@ current: CanvasExtraState;

outputScaleY: number;
pageColors: any;
_cachedScaleForStroking: number[] | null;

@@ -50,3 +51,3 @@ _cachedGetSinglePixelWidth: number | null;

executeOperatorList(operatorList: any, executionStartIdx: any, continueCallback: any, stepper: any): any;
endDrawing(pageColors?: null): void;
endDrawing(): void;
_scaleImage(img: any, inverseTransform: any): {

@@ -53,0 +54,0 @@ img: any;

@@ -0,0 +0,0 @@ export type PageViewportParameters = {

@@ -0,0 +0,0 @@ export type AnnotationEditor = import("./editor.js").AnnotationEditor;

@@ -63,2 +63,3 @@ export type AnnotationEditorLayer = import("./annotation_editor_layer.js").AnnotationEditorLayer;

rotation: any;
pageRotation: number;
pageDimensions: any[];

@@ -127,3 +128,3 @@ pageTranslation: any[];

get parentScale(): any;
get parentRotation(): any;
get parentRotation(): number;
get parentDimensions(): number[];

@@ -130,0 +131,0 @@ /**

@@ -0,0 +0,0 @@ export type AnnotationEditorLayer = import("./annotation_editor_layer.js").AnnotationEditorLayer;

@@ -18,3 +18,3 @@ /**

*/
static "__#3@#buildPath2D"(bezier: Arra<number[]>): Path2D;
static "__#4@#buildPath2D"(bezier: Arra<number[]>): Path2D;
/** @inheritdoc */

@@ -21,0 +21,0 @@ static deserialize(data: any, parent: any, uiManager: any): AnnotationEditor;

@@ -0,0 +0,0 @@ export type AnnotationEditor = import("./editor.js").AnnotationEditor;

@@ -23,3 +23,3 @@ /** @implements {IPDFStream} */

_contentLength: any;
_headersCapability: import("../shared/util.js").PromiseCapability;
_headersCapability: PromiseCapability;
_disableRange: any;

@@ -53,3 +53,3 @@ _rangeChunkSize: any;

_withCredentials: any;
_readCapability: import("../shared/util.js").PromiseCapability;
_readCapability: PromiseCapability;
_isStreamingSupported: boolean;

@@ -69,2 +69,3 @@ _abortController: AbortController;

}
import { PromiseCapability } from "../shared/util.js";
export {};

@@ -0,0 +0,0 @@ export class FontFaceObject {

@@ -0,0 +0,0 @@ export class Metadata {

@@ -0,0 +0,0 @@ export function createResponseStatusError(status: any, url: any): MissingPDFException | UnexpectedResponseException;

@@ -20,3 +20,2 @@ /** @implements {IPDFStream} */

withCredentials: any;
getXhr: any;
currXhrId: number;

@@ -39,3 +38,3 @@ pendingRequests: any;

_fullRequestId: any;
_headersReceivedCapability: import("../shared/util.js").PromiseCapability;
_headersReceivedCapability: PromiseCapability;
_disableRange: any;

@@ -85,2 +84,3 @@ _contentLength: any;

}
import { PromiseCapability } from "../shared/util.js";
export {};

@@ -42,4 +42,4 @@ export class PDFNodeStream {

_readableStream: any;
_readCapability: import("../shared/util.js").PromiseCapability;
_headersCapability: import("../shared/util.js").PromiseCapability;
_readCapability: PromiseCapability;
_headersCapability: PromiseCapability;
get headersReady(): Promise<any>;

@@ -63,3 +63,3 @@ get filename(): any;

_readableStream: any;
_readCapability: import("../shared/util.js").PromiseCapability;
_readCapability: PromiseCapability;
_isStreamingSupported: boolean;

@@ -72,2 +72,3 @@ get isStreamingSupported(): boolean;

}
import { PromiseCapability } from "../shared/util.js";
export {};

@@ -0,0 +0,0 @@ export class NodeCanvasFactory extends BaseCanvasFactory {

@@ -0,0 +0,0 @@ export class OptionalContentConfig {

@@ -8,3 +8,3 @@ export function getShadingPattern(IR: any): RadialAxialShadingPattern | MeshShadingPattern | DummyShadingPattern;

export class TilingPattern {
static get MAX_PATTERN_SIZE(): any;
static MAX_PATTERN_SIZE: number;
constructor(IR: any, color: any, ctx: any, canvasGraphicsFactory: any, baseTransform: any);

@@ -11,0 +11,0 @@ operatorList: any;

/** @type {any} */
export let SVGGraphics: any;

@@ -112,3 +112,3 @@ export type PageViewport = import("./display_utils").PageViewport;

_canceled: boolean;
_capability: import("../shared/util.js").PromiseCapability;
_capability: PromiseCapability;
_layoutTextParams: {

@@ -120,3 +120,3 @@ prevFontSize: null;

properties: null;
ctx: CanvasRenderingContext2D | OffscreenRenderingContext | null;
ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D | null;
};

@@ -153,1 +153,2 @@ _transform: any[];

export function updateTextLayer({ container, viewport, textDivs, textDivProperties, isOffscreenCanvasSupported, mustRotate, mustRescale, }: TextLayerUpdateParameters): undefined;
import { PromiseCapability } from "../shared/util.js";

@@ -0,0 +0,0 @@ /** @implements {IPDFStream} */

@@ -0,0 +0,0 @@ export type GlobalWorkerOptionsType = {

@@ -0,0 +0,0 @@ export type PageViewport = import("./display_utils").PageViewport;

@@ -0,0 +0,0 @@ export class XfaText {

@@ -17,3 +17,2 @@ export type OnProgressParameters = import("./display/api").OnProgressParameters;

import { CMapCompressionType } from "./shared/util.js";
import { createPromiseCapability } from "./shared/util.js";
import { createValidAbsoluteUrl } from "./shared/util.js";

@@ -31,2 +30,3 @@ import { FeatureTest } from "./shared/util.js";

import { MissingPDFException } from "./shared/util.js";
import { normalizeUnicode } from "./shared/util.js";
import { OPS } from "./shared/util.js";

@@ -39,2 +39,3 @@ import { PasswordResponses } from "./shared/util.js";

import { PixelsPerInch } from "./display/display_utils.js";
import { PromiseCapability } from "./shared/util.js";
import { RenderingCancelledException } from "./display/display_utils.js";

@@ -51,2 +52,2 @@ import { renderTextLayer } from "./display/text_layer.js";

import { XfaLayer } from "./display/xfa_layer.js";
export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, build, CMapCompressionType, createPromiseCapability, createValidAbsoluteUrl, FeatureTest, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getXfaPageViewport, GlobalWorkerOptions, InvalidPDFException, isDataScheme, isPdfFile, loadScript, MissingPDFException, OPS, PasswordResponses, PDFDataRangeTransport, PDFDateString, PDFWorker, PermissionFlag, PixelsPerInch, RenderingCancelledException, renderTextLayer, setLayerDimensions, shadow, SVGGraphics, UnexpectedResponseException, updateTextLayer, Util, VerbosityLevel, version, XfaLayer };
export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, build, CMapCompressionType, createValidAbsoluteUrl, FeatureTest, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getXfaPageViewport, GlobalWorkerOptions, InvalidPDFException, isDataScheme, isPdfFile, loadScript, MissingPDFException, normalizeUnicode, OPS, PasswordResponses, PDFDataRangeTransport, PDFDateString, PDFWorker, PermissionFlag, PixelsPerInch, PromiseCapability, RenderingCancelledException, renderTextLayer, setLayerDimensions, shadow, SVGGraphics, UnexpectedResponseException, updateTextLayer, Util, VerbosityLevel, version, XfaLayer };

@@ -0,0 +0,0 @@ export function convertBlackAndWhiteToRGBA({ src, srcPos, dest, width, height, nonBlackColor, inverseDecode, }: {

export const isNodeJS: any;

@@ -41,15 +41,4 @@ export class MessageHandler {

sendWithStream(actionName: string, data: JSON, queueingStrategy: Object, transfers?: any[] | undefined): ReadableStream;
/**
* @private
*/
private _createStreamSink;
/**
* @private
*/
private _processStreamMessage;
/**
* @private
*/
private _deleteStreamController;
destroy(): void;
#private;
}

@@ -0,0 +0,0 @@ export class MurmurHash3_64 {

@@ -0,0 +0,0 @@ export class ColorConverters {

@@ -1,22 +0,1 @@

/**
* Promise Capability object.
*/
export type PromiseCapability = {
/**
* - A Promise object.
*/
promise: Promise<any>;
/**
* - If the Promise has been fulfilled/rejected.
*/
settled: boolean;
/**
* - Fulfills the Promise.
*/
resolve: Function;
/**
* - Rejects the Promise.
*/
reject: Function;
};
declare const AbortException_base: any;

@@ -174,18 +153,2 @@ /**

/**
* Promise Capability object.
*
* @typedef {Object} PromiseCapability
* @property {Promise<any>} promise - A Promise object.
* @property {boolean} settled - If the Promise has been fulfilled/rejected.
* @property {function} resolve - Fulfills the Promise.
* @property {function} reject - Rejects the Promise.
*/
/**
* Creates a promise capability object.
* @alias createPromiseCapability
*
* @returns {PromiseCapability}
*/
export function createPromiseCapability(): PromiseCapability;
/**
* Attempts to create a valid absolute URL.

@@ -245,2 +208,3 @@ *

}
export function normalizeUnicode(str: any): any;
export function objectFromMap(map: any): any;

@@ -364,2 +328,21 @@ export function objectSize(obj: any): number;

}
export class PromiseCapability {
/**
* @type {Promise<any>} The Promise object.
*/
promise: Promise<any>;
/**
* @type {function} Fulfills the Promise.
*/
resolve: Function;
/**
* @type {function} Rejects the Promise.
*/
reject: Function;
/**
* @type {boolean} If the Promise has been fulfilled/rejected.
*/
get settled(): boolean;
#private;
}
export namespace RenderingIntentFlag {

@@ -366,0 +349,0 @@ export const ANY: number;

@@ -0,0 +0,0 @@ export type PDFPageProxy = import("../src/display/api").PDFPageProxy;

@@ -0,0 +0,0 @@ export type PDFPageProxy = import("../src/display/api").PDFPageProxy;

@@ -0,0 +0,0 @@ export class AppOptions {

@@ -6,3 +6,3 @@ export type IDownloadManager = import("./interfaces").IDownloadManager;

export class DownloadManager implements IDownloadManager {
downloadUrl(url: any, filename: any): void;
downloadUrl(url: any, filename: any, _options: any): void;
downloadData(data: any, filename: any, contentType: any): void;

@@ -13,4 +13,4 @@ /**

openOrDownloadData(element: any, data: any, filename: any): boolean;
download(blob: any, url: any, filename: any): void;
download(blob: any, url: any, filename: any, _options: any): void;
#private;
}

@@ -0,0 +0,0 @@ export type WaitOnEventOrTimeoutParameters = {

@@ -0,0 +0,0 @@ export function docPropertiesLookup(pdfDocument: any): Promise<any>;

@@ -0,0 +0,0 @@ export type IL10n = import("./interfaces").IL10n;

@@ -11,4 +11,5 @@ export type PDFPageProxy = import("../src/display/api").PDFPageProxy;

* @param {string} filename
* @param {Object} [options]
*/
downloadUrl(url: string, filename: string): void;
downloadUrl(url: string, filename: string, options?: Object | undefined): void;
/**

@@ -31,4 +32,5 @@ * @param {Uint8Array} data

* @param {string} filename
* @param {Object} [options]
*/
download(blob: Blob, url: string, filename: string): void;
download(blob: Blob, url: string, filename: string, options?: Object | undefined): void;
}

@@ -35,0 +37,0 @@ /**

@@ -0,0 +0,0 @@ export function fixupLangCode(langCode: any): any;

@@ -51,3 +51,3 @@ export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy;

} | undefined;
get state(): any;
get state(): null;
/**

@@ -62,10 +62,20 @@ * Set a reference to the PDF document in order to search it.

_dirtyMatch: boolean | undefined;
_state: any;
_findTimeout: any;
_highlightMatches: boolean | undefined;
/**
* @typedef {Object} PDFFindControllerScrollMatchIntoViewParams
* @property {HTMLElement} element
* @property {number} selectedLeft
* @property {number} pageIndex
* @property {number} matchIndex
*/
/**
* Scroll the current match into view.
* @param {PDFFindControllerScrollMatchIntoViewParams}
*/
scrollMatchIntoView({ element, selectedLeft, pageIndex, matchIndex, }: {
element?: null | undefined;
selectedLeft?: number | undefined;
pageIndex?: number | undefined;
matchIndex?: number | undefined;
element: HTMLElement;
selectedLeft: number;
pageIndex: number;
matchIndex: number;
}): void;

@@ -72,0 +82,0 @@ _scrollMatches: boolean | undefined;

@@ -16,1 +16,2 @@ export namespace CharacterType {

export function getCharacterType(charCode: any): number;
export function getNormalizeWithNFKC(): any;

@@ -0,0 +0,0 @@ export type PDFHistoryOptions = {

@@ -78,3 +78,3 @@ export type ExternalLinkParameters = {

export class PDFLinkService implements IPDFLinkService {
static "__#28@#isValidExplicitDestination"(dest: any): boolean;
static "__#30@#isValidExplicitDestination"(dest: any): boolean;
/**

@@ -81,0 +81,0 @@ * @param {PDFLinkServiceOptions} options

@@ -107,3 +107,2 @@ export type PageViewport = import("../src/display/display_utils").PageViewport;

hasRestrictedScaling: boolean;
textLayerMode: number;
imageResourcesPath: string;

@@ -116,3 +115,2 @@ useOnlyCssZoom: boolean;

renderingQueue: import("./pdf_rendering_queue").PDFRenderingQueue | undefined;
renderer: any;
l10n: {

@@ -124,11 +122,4 @@ getLanguage(): Promise<string>;

};
paintTask: {
promise: any;
onRenderContinue(cont: any): void;
cancel(extraDelay?: number): void;
readonly separateAnnots: any;
} | null;
paintedViewportMap: WeakMap<object, any>;
renderTask: any;
resume: (() => void) | null;
_renderError: any;
_isStandalone: boolean | undefined;

@@ -159,6 +150,28 @@ _annotationCanvasMap: any;

}): void;
/**
* @typedef {Object} PDFPageViewUpdateParameters
* @property {number} [scale] The new scale, if specified.
* @property {number} [rotation] The new rotation, if specified.
* @property {Promise<OptionalContentConfig>} [optionalContentConfigPromise]
* A promise that is resolved with an {@link OptionalContentConfig}
* instance. The default value is `null`.
* @property {number} [drawingDelay]
*/
/**
* Update e.g. the scale and/or rotation of the page.
* @param {PDFPageViewUpdateParameters}
*/
update({ scale, rotation, optionalContentConfigPromise, drawingDelay, }: {
/**
* The new scale, if specified.
*/
scale?: number | undefined;
rotation?: null | undefined;
optionalContentConfigPromise?: null | undefined;
/**
* The new rotation, if specified.
*/
rotation?: number | undefined;
/**
* A promise that is resolved with an {@link OptionalContentConfig }instance. The default value is `null`.
*/
optionalContentConfigPromise?: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | undefined;
drawingDelay?: number | undefined;

@@ -188,18 +201,5 @@ }): void;

getPagePoint(x: any, y: any): any[];
draw(): any;
paintOnCanvas(canvasWrapper: any): {
promise: any;
onRenderContinue(cont: any): void;
cancel(extraDelay?: number): void;
readonly separateAnnots: any;
};
draw(): Promise<any>;
canvas: HTMLCanvasElement | undefined;
outputScale: OutputScale | undefined;
paintOnSvg(wrapper: any): {
promise: any;
onRenderContinue(cont: any): void;
cancel(): void;
readonly separateAnnots: boolean;
};
svg: any;
/**

@@ -206,0 +206,0 @@ * @param {string|null} label

@@ -0,0 +0,0 @@ export type IRenderableView = import("./interfaces").IRenderableView;

@@ -0,0 +0,0 @@ export type EventBus = import("./event_utils").EventBus;

@@ -0,0 +0,0 @@ export class PDFSinglePageViewer extends PDFViewer {

@@ -65,9 +65,9 @@ export type IL10n = import("./interfaces").IL10n;

resume: (() => void) | null;
canvasWidth: number;
canvasHeight: number;
scale: number;
l10n: import("./interfaces").IL10n;
anchor: HTMLAnchorElement;
div: HTMLDivElement;
ring: HTMLDivElement;
_placeholderImg: HTMLDivElement;
canvasWidth: number | undefined;
canvasHeight: number | undefined;
scale: number | undefined;
setPdfPage(pdfPage: any): void;

@@ -92,3 +92,3 @@ reset(): void;

image: HTMLImageElement | undefined;
draw(): any;
draw(): Promise<any>;
setImage(pageView: any): void;

@@ -105,2 +105,3 @@ /**

setPageLabel(label: string | null): void;
#private;
}

@@ -123,5 +124,5 @@ /**

export class TempImageFactory {
static "__#38@#tempCanvas": null;
static "__#40@#tempCanvas": null;
static getCanvas(width: any, height: any): (HTMLCanvasElement | CanvasRenderingContext2D | null)[];
static destroyCanvas(): void;
}

@@ -0,0 +0,0 @@ export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy;

@@ -0,0 +0,0 @@ import { AnnotationLayerBuilder } from "./annotation_layer_builder.js";

@@ -25,3 +25,3 @@ export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy;

*/
linkService: IPDFLinkService;
linkService?: import("./interfaces").IPDFLinkService | undefined;
/**

@@ -100,3 +100,3 @@ * - The download manager

*/
l10n: IL10n;
l10n?: import("./interfaces").IL10n | undefined;
/**

@@ -124,3 +124,3 @@ * - Enables PDF document permissions,

* @property {EventBus} eventBus - The application event bus.
* @property {IPDFLinkService} linkService - The navigation/linking service.
* @property {IPDFLinkService} [linkService] - The navigation/linking service.
* @property {IDownloadManager} [downloadManager] - The download manager

@@ -157,3 +157,3 @@ * component.

* is 4096 * 4096 (16 mega-pixels).
* @property {IL10n} l10n - Localization service.
* @property {IL10n} [l10n] - Localization service.
* @property {boolean} [enablePermissions] - Enables PDF document permissions,

@@ -191,15 +191,18 @@ * when they exist. The default value is `false`.

eventBus: import("./event_utils").EventBus;
linkService: import("./interfaces").IPDFLinkService;
linkService: import("./interfaces").IPDFLinkService | SimpleLinkService;
downloadManager: import("./interfaces").IDownloadManager | null;
findController: any;
_scriptingManager: any;
textLayerMode: number;
imageResourcesPath: string;
enablePrintAutoRotate: boolean;
removePageBorders: boolean | undefined;
renderer: any;
useOnlyCssZoom: boolean;
isOffscreenCanvasSupported: boolean;
maxCanvasPixels: number | undefined;
l10n: import("./interfaces").IL10n;
l10n: {
getLanguage(): Promise<string>;
getDirection(): Promise<string>;
get(key: any, args?: null, fallback?: any): Promise<any>;
translate(element: any): Promise<void>;
};
pageColors: Object | null;

@@ -283,2 +286,3 @@ defaultRenderingQueue: boolean;

get pagesPromise(): any;
getAllText(): Promise<string | null>;
/**

@@ -472,1 +476,2 @@ * @param {PDFDocumentProxy} pdfDocument

import { PDFRenderingQueue } from "./pdf_rendering_queue.js";
import { SimpleLinkService } from "./pdf_link_service.js";

@@ -0,0 +0,0 @@ export class StructTreeLayerBuilder {

@@ -17,3 +17,3 @@ /**

*/
static "__#32@#compareElementPositions"(e1: HTMLElement, e2: HTMLElement): number;
static "__#34@#compareElementPositions"(e1: HTMLElement, e2: HTMLElement): number;
setTextMapping(textDivs: any): void;

@@ -20,0 +20,0 @@ /**

@@ -0,0 +0,0 @@ export type EventBus = import("./event_utils").EventBus;

@@ -32,6 +32,7 @@ export type PageViewport = import("../src/display/display_utils").PageViewport;

export class TextLayerBuilder {
constructor({ highlighter, accessibilityManager, isOffscreenCanvasSupported, }: {
constructor({ highlighter, accessibilityManager, isOffscreenCanvasSupported, enablePermissions, }: {
highlighter?: null | undefined;
accessibilityManager?: null | undefined;
isOffscreenCanvasSupported?: boolean | undefined;
enablePermissions?: boolean | undefined;
});

@@ -38,0 +39,0 @@ textContentItemsStr: any[];

@@ -221,6 +221,2 @@ export type GetPageSizeInchesParameters = {

export function removeNullCharacters(str: string, replaceInvisible?: boolean | undefined): string;
export const RendererType: {
CANVAS: string;
SVG: string;
} | null;
export namespace RenderingStates {

@@ -236,5 +232,7 @@ const INITIAL: number;

* Scrolls specified element into view of its parent.
* @param {Object} element - The element to be visible.
* @param {Object} spot - An object with optional top and left properties,
* @param {HTMLElement} element - The element to be visible.
* @param {Object} [spot] - An object with optional top and left properties,
* specifying the offset from the top left edge.
* @param {number} [spot.left]
* @param {number} [spot.top]
* @param {boolean} [scrollMatches] - When scrolling search results into view,

@@ -244,3 +242,6 @@ * ignore elements that either: Contains marked content identifiers,

*/
export function scrollIntoView(element: Object, spot: Object, scrollMatches?: boolean | undefined): void;
export function scrollIntoView(element: HTMLElement, spot?: {
left?: number | undefined;
top?: number | undefined;
} | undefined, scrollMatches?: boolean | undefined): void;
export namespace ScrollMode {

@@ -274,3 +275,5 @@ const UNKNOWN_1: number;

const ENABLE: number;
const ENABLE_PERMISSIONS: number;
}
export function toggleCheckedBtn(button: any, toggle: any, view?: null): void;
export const UNKNOWN_SCALE: 0;

@@ -277,0 +280,0 @@ export const VERTICAL_PADDING: 5;

@@ -0,0 +0,0 @@ export type PDFPageProxy = import("../src/display/api").PDFPageProxy;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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 too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc