|
19 | 19 | /** @typedef {import("../src/display/display_utils").PageViewport} PageViewport */ |
20 | 20 | /** @typedef {import("./ui_utils").RenderingStates} RenderingStates */ |
21 | 21 |
|
22 | | -/** |
23 | | - * @interface |
24 | | - */ |
25 | | -class IPDFLinkService { |
26 | | - /** |
27 | | - * @type {number} |
28 | | - */ |
29 | | - get pagesCount() {} |
30 | | - |
31 | | - /** |
32 | | - * @type {number} |
33 | | - */ |
34 | | - get page() {} |
35 | | - |
36 | | - /** |
37 | | - * @param {number} value |
38 | | - */ |
39 | | - set page(value) {} |
40 | | - |
41 | | - /** |
42 | | - * @type {number} |
43 | | - */ |
44 | | - get rotation() {} |
45 | | - |
46 | | - /** |
47 | | - * @param {number} value |
48 | | - */ |
49 | | - set rotation(value) {} |
50 | | - |
51 | | - /** |
52 | | - * @type {boolean} |
53 | | - */ |
54 | | - get isInPresentationMode() {} |
55 | | - |
56 | | - /** |
57 | | - * @type {boolean} |
58 | | - */ |
59 | | - get externalLinkEnabled() {} |
60 | | - |
61 | | - /** |
62 | | - * @param {boolean} value |
63 | | - */ |
64 | | - set externalLinkEnabled(value) {} |
65 | | - |
66 | | - /** |
67 | | - * @param {string|Array} dest - The named, or explicit, PDF destination. |
68 | | - */ |
69 | | - async goToDestination(dest) {} |
70 | | - |
71 | | - /** |
72 | | - * @param {number|string} val - The page number, or page label. |
73 | | - */ |
74 | | - goToPage(val) {} |
75 | | - |
76 | | - /** |
77 | | - * Scrolls to a specific location in the PDF document. |
78 | | - * @param {number} pageNumber - The page number to scroll to. |
79 | | - * @param {number} x - The x-coordinate to scroll to in page coordinates. |
80 | | - * @param {number} y - The y-coordinate to scroll to in page coordinates. |
81 | | - */ |
82 | | - goToXY(pageNumber, x, y) {} |
83 | | - |
84 | | - /** |
85 | | - * @param {HTMLAnchorElement} link |
86 | | - * @param {string} url |
87 | | - * @param {boolean} [newWindow] |
88 | | - */ |
89 | | - addLinkAttributes(link, url, newWindow = false) {} |
90 | | - |
91 | | - /** |
92 | | - * @param dest - The PDF destination object. |
93 | | - * @returns {string} The hyperlink to the PDF object. |
94 | | - */ |
95 | | - getDestinationHash(dest) {} |
96 | | - |
97 | | - /** |
98 | | - * @param hash - The PDF parameters/hash. |
99 | | - * @returns {string} The hyperlink to the PDF object. |
100 | | - */ |
101 | | - getAnchorUrl(hash) {} |
102 | | - |
103 | | - /** |
104 | | - * @param {string} hash |
105 | | - */ |
106 | | - setHash(hash) {} |
107 | | - |
108 | | - /** |
109 | | - * @param {string} action |
110 | | - */ |
111 | | - executeNamedAction(action) {} |
112 | | - |
113 | | - /** |
114 | | - * @param {Object} action |
115 | | - */ |
116 | | - executeSetOCGState(action) {} |
117 | | -} |
118 | | - |
119 | 22 | /** |
120 | 23 | * @interface |
121 | 24 | */ |
@@ -226,10 +129,4 @@ class IPDFPrintServiceFactory { |
226 | 129 | } |
227 | 130 | } |
228 | 131 |
|
229 | | -export { |
230 | | - IDownloadManager, |
231 | | - IL10n, |
232 | | - IPDFLinkService, |
233 | | - IPDFPrintServiceFactory, |
234 | | - IRenderableView, |
235 | | -}; |
| 132 | +export { IDownloadManager, IL10n, IPDFPrintServiceFactory, IRenderableView }; |
0 commit comments