1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | "use strict";
|
23 |
|
24 | Object.defineProperty(exports, "__esModule", {
|
25 | value: true
|
26 | });
|
27 | exports.IRenderableView = exports.IPDFXfaLayerFactory = exports.IPDFTextLayerFactory = exports.IPDFStructTreeLayerFactory = exports.IPDFLinkService = exports.IPDFAnnotationLayerFactory = exports.IPDFAnnotationEditorLayerFactory = exports.IL10n = exports.IDownloadManager = void 0;
|
28 |
|
29 | class IPDFLinkService {
|
30 | get pagesCount() {}
|
31 |
|
32 | get page() {}
|
33 |
|
34 | set page(value) {}
|
35 |
|
36 | get rotation() {}
|
37 |
|
38 | set rotation(value) {}
|
39 |
|
40 | get externalLinkEnabled() {}
|
41 |
|
42 | set externalLinkEnabled(value) {}
|
43 |
|
44 | async goToDestination(dest) {}
|
45 |
|
46 | goToPage(val) {}
|
47 |
|
48 | addLinkAttributes(link, url, newWindow = false) {}
|
49 |
|
50 | getDestinationHash(dest) {}
|
51 |
|
52 | getAnchorUrl(hash) {}
|
53 |
|
54 | setHash(hash) {}
|
55 |
|
56 | executeNamedAction(action) {}
|
57 |
|
58 | cachePageRef(pageNum, pageRef) {}
|
59 |
|
60 | isPageVisible(pageNumber) {}
|
61 |
|
62 | isPageCached(pageNumber) {}
|
63 |
|
64 | }
|
65 |
|
66 | exports.IPDFLinkService = IPDFLinkService;
|
67 |
|
68 | class IRenderableView {
|
69 | constructor() {
|
70 | this.resume = null;
|
71 | }
|
72 |
|
73 | get renderingId() {}
|
74 |
|
75 | get renderingState() {}
|
76 |
|
77 | draw() {}
|
78 |
|
79 | }
|
80 |
|
81 | exports.IRenderableView = IRenderableView;
|
82 |
|
83 | class IPDFTextLayerFactory {
|
84 | createTextLayerBuilder({
|
85 | textLayerDiv,
|
86 | pageIndex,
|
87 | viewport,
|
88 | enhanceTextSelection = false,
|
89 | eventBus,
|
90 | highlighter
|
91 | }) {}
|
92 |
|
93 | }
|
94 |
|
95 | exports.IPDFTextLayerFactory = IPDFTextLayerFactory;
|
96 |
|
97 | class IPDFAnnotationLayerFactory {
|
98 | createAnnotationLayerBuilder({
|
99 | pageDiv,
|
100 | pdfPage,
|
101 | annotationStorage = null,
|
102 | imageResourcesPath = "",
|
103 | renderForms = true,
|
104 | l10n = undefined,
|
105 | enableScripting = false,
|
106 | hasJSActionsPromise = null,
|
107 | mouseState = null,
|
108 | fieldObjectsPromise = null,
|
109 | annotationCanvasMap = null
|
110 | }) {}
|
111 |
|
112 | }
|
113 |
|
114 | exports.IPDFAnnotationLayerFactory = IPDFAnnotationLayerFactory;
|
115 |
|
116 | class IPDFAnnotationEditorLayerFactory {
|
117 | createAnnotationEditorLayerBuilder({
|
118 | uiManager = null,
|
119 | pageDiv,
|
120 | pdfPage,
|
121 | l10n,
|
122 | annotationStorage = null
|
123 | }) {}
|
124 |
|
125 | }
|
126 |
|
127 | exports.IPDFAnnotationEditorLayerFactory = IPDFAnnotationEditorLayerFactory;
|
128 |
|
129 | class IPDFXfaLayerFactory {
|
130 | createXfaLayerBuilder({
|
131 | pageDiv,
|
132 | pdfPage,
|
133 | annotationStorage = null
|
134 | }) {}
|
135 |
|
136 | }
|
137 |
|
138 | exports.IPDFXfaLayerFactory = IPDFXfaLayerFactory;
|
139 |
|
140 | class IPDFStructTreeLayerFactory {
|
141 | createStructTreeLayerBuilder({
|
142 | pdfPage
|
143 | }) {}
|
144 |
|
145 | }
|
146 |
|
147 | exports.IPDFStructTreeLayerFactory = IPDFStructTreeLayerFactory;
|
148 |
|
149 | class IDownloadManager {
|
150 | downloadUrl(url, filename) {}
|
151 |
|
152 | downloadData(data, filename, contentType) {}
|
153 |
|
154 | openOrDownloadData(element, data, filename) {}
|
155 |
|
156 | download(blob, url, filename) {}
|
157 |
|
158 | }
|
159 |
|
160 | exports.IDownloadManager = IDownloadManager;
|
161 |
|
162 | class IL10n {
|
163 | async getLanguage() {}
|
164 |
|
165 | async getDirection() {}
|
166 |
|
167 | async get(key, args = null, fallback) {}
|
168 |
|
169 | async translate(element) {}
|
170 |
|
171 | }
|
172 |
|
173 | exports.IL10n = IL10n; |
\ | No newline at end of file |