UNPKG

3.56 kBJavaScriptView Raw
1/**
2 * @licstart The following is the entire license notice for the
3 * JavaScript code in this page
4 *
5 * Copyright 2022 Mozilla Foundation
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 * @licend The above is the entire license notice for the
20 * JavaScript code in this page
21 */
22"use strict";
23
24Object.defineProperty(exports, "__esModule", {
25 value: true
26});
27exports.IRenderableView = exports.IPDFXfaLayerFactory = exports.IPDFTextLayerFactory = exports.IPDFStructTreeLayerFactory = exports.IPDFLinkService = exports.IPDFAnnotationLayerFactory = exports.IPDFAnnotationEditorLayerFactory = exports.IL10n = exports.IDownloadManager = void 0;
28
29class 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
66exports.IPDFLinkService = IPDFLinkService;
67
68class IRenderableView {
69 constructor() {
70 this.resume = null;
71 }
72
73 get renderingId() {}
74
75 get renderingState() {}
76
77 draw() {}
78
79}
80
81exports.IRenderableView = IRenderableView;
82
83class IPDFTextLayerFactory {
84 createTextLayerBuilder({
85 textLayerDiv,
86 pageIndex,
87 viewport,
88 enhanceTextSelection = false,
89 eventBus,
90 highlighter
91 }) {}
92
93}
94
95exports.IPDFTextLayerFactory = IPDFTextLayerFactory;
96
97class 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
114exports.IPDFAnnotationLayerFactory = IPDFAnnotationLayerFactory;
115
116class IPDFAnnotationEditorLayerFactory {
117 createAnnotationEditorLayerBuilder({
118 uiManager = null,
119 pageDiv,
120 pdfPage,
121 l10n,
122 annotationStorage = null
123 }) {}
124
125}
126
127exports.IPDFAnnotationEditorLayerFactory = IPDFAnnotationEditorLayerFactory;
128
129class IPDFXfaLayerFactory {
130 createXfaLayerBuilder({
131 pageDiv,
132 pdfPage,
133 annotationStorage = null
134 }) {}
135
136}
137
138exports.IPDFXfaLayerFactory = IPDFXfaLayerFactory;
139
140class IPDFStructTreeLayerFactory {
141 createStructTreeLayerBuilder({
142 pdfPage
143 }) {}
144
145}
146
147exports.IPDFStructTreeLayerFactory = IPDFStructTreeLayerFactory;
148
149class 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
160exports.IDownloadManager = IDownloadManager;
161
162class IL10n {
163 async getLanguage() {}
164
165 async getDirection() {}
166
167 async get(key, args = null, fallback) {}
168
169 async translate(element) {}
170
171}
172
173exports.IL10n = IL10n;
\No newline at end of file