1 | export type PDFPageProxy = import("../src/display/api").PDFPageProxy;
|
2 | export type PageViewport = import("../src/display/display_utils").PageViewport;
|
3 | export type IDownloadManager = import("./interfaces").IDownloadManager;
|
4 | export type IL10n = import("./interfaces").IL10n;
|
5 | export type IPDFLinkService = import("./interfaces").IPDFLinkService;
|
6 | export type AnnotationLayerBuilderOptions = {
|
7 | pageDiv: HTMLDivElement;
|
8 | pdfPage: PDFPageProxy;
|
9 | annotationStorage?: any;
|
10 | |
11 |
|
12 |
|
13 |
|
14 | imageResourcesPath?: string | undefined;
|
15 | renderForms: boolean;
|
16 | linkService: IPDFLinkService;
|
17 | downloadManager: IDownloadManager;
|
18 | |
19 |
|
20 |
|
21 | l10n: IL10n;
|
22 | enableScripting?: boolean | undefined;
|
23 | hasJSActionsPromise?: Promise<boolean> | undefined;
|
24 | fieldObjectsPromise?: Promise<{
|
25 | [x: string]: Object[];
|
26 | } | null> | undefined;
|
27 | mouseState?: Object | undefined;
|
28 | annotationCanvasMap?: Map<string, HTMLCanvasElement> | undefined;
|
29 | };
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 | export class AnnotationLayerBuilder {
|
49 | |
50 |
|
51 |
|
52 | constructor({ pageDiv, pdfPage, linkService, downloadManager, annotationStorage, imageResourcesPath, renderForms, l10n, enableScripting, hasJSActionsPromise, fieldObjectsPromise, mouseState, annotationCanvasMap, }: AnnotationLayerBuilderOptions);
|
53 | pageDiv: HTMLDivElement;
|
54 | pdfPage: import("../src/display/api").PDFPageProxy;
|
55 | linkService: import("./interfaces").IPDFLinkService;
|
56 | downloadManager: import("./interfaces").IDownloadManager;
|
57 | imageResourcesPath: string;
|
58 | renderForms: boolean;
|
59 | l10n: import("./interfaces").IL10n;
|
60 | annotationStorage: any;
|
61 | enableScripting: boolean;
|
62 | _hasJSActionsPromise: Promise<boolean>;
|
63 | _fieldObjectsPromise: Promise<{
|
64 | [x: string]: Object[];
|
65 | } | null>;
|
66 | _mouseState: Object;
|
67 | _annotationCanvasMap: Map<string, HTMLCanvasElement>;
|
68 | div: HTMLDivElement | null;
|
69 | _cancelled: boolean;
|
70 | |
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 | render(viewport: PageViewport, intent?: string): Promise<void>;
|
77 | cancel(): void;
|
78 | hide(): void;
|
79 | }
|