@progress/kendo-pdfviewer-common 0.3.0-dev.202409251459 → 0.3.0-dev.202410100645

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/es/annotations/annotation-editor-layer-builder.js +139 -0
  2. package/dist/es/annotations/annotation-editor-layer.js +780 -0
  3. package/dist/es/annotations/annotation-editor-ui-manager.js +1690 -0
  4. package/dist/es/annotations/annotation-layer-builder.js +217 -0
  5. package/dist/es/annotations/annotation-layer.js +2793 -0
  6. package/dist/es/annotations/draw-layer-builder.js +65 -0
  7. package/dist/es/annotations/draw-layer.js +220 -0
  8. package/dist/es/annotations/editors/annotation-editor.js +1519 -0
  9. package/dist/es/annotations/editors/free-text-editor.js +783 -0
  10. package/dist/es/annotations/editors/highlight-editor.js +717 -0
  11. package/dist/es/annotations/editors/outliner.js +747 -0
  12. package/dist/es/annotations/helpers/annotation-storage.js +294 -0
  13. package/dist/es/annotations/helpers/color-manager.js +72 -0
  14. package/dist/es/annotations/helpers/command-manager.js +133 -0
  15. package/dist/es/annotations/helpers/id-manager.js +34 -0
  16. package/dist/es/annotations/helpers/image-manager.js +176 -0
  17. package/dist/es/annotations/helpers/text-accessibility-manager.js +212 -0
  18. package/dist/es/annotations/helpers/tools.js +19 -0
  19. package/dist/es/annotations/shared/display_utils.js +1024 -0
  20. package/dist/es/annotations/shared/event_utils.js +213 -0
  21. package/dist/es/annotations/shared/murmurhash3.js +126 -0
  22. package/dist/es/annotations/shared/scripting_utils.js +90 -0
  23. package/dist/es/annotations/shared/ui_utils.js +823 -0
  24. package/dist/es/annotations/shared/utils.js +909 -0
  25. package/dist/es/common/component.js +33 -0
  26. package/dist/es/common/core.js +91 -0
  27. package/dist/es/common/dom.js +11 -0
  28. package/dist/es/common/main.js +4 -0
  29. package/dist/es/common/math.js +1 -0
  30. package/dist/es/enums/PdfViewerInteractionMode.js +6 -0
  31. package/dist/es/links/link-service.js +505 -0
  32. package/dist/es/main.js +2 -0
  33. package/dist/es/scroller.js +29 -30
  34. package/dist/es/text/text-layer-builder.js +288 -0
  35. package/dist/es/utils.js +5 -5
  36. package/dist/es/widget/page.js +762 -0
  37. package/dist/es/widget/pdfviewer.js +1659 -0
  38. package/dist/es2015/annotations/annotation-editor-layer-builder.js +139 -0
  39. package/dist/es2015/annotations/annotation-editor-layer.js +780 -0
  40. package/dist/es2015/annotations/annotation-editor-ui-manager.js +1690 -0
  41. package/dist/es2015/annotations/annotation-layer-builder.js +217 -0
  42. package/dist/es2015/annotations/annotation-layer.js +2793 -0
  43. package/dist/es2015/annotations/draw-layer-builder.js +65 -0
  44. package/dist/es2015/annotations/draw-layer.js +220 -0
  45. package/dist/es2015/annotations/editors/annotation-editor.js +1519 -0
  46. package/dist/es2015/annotations/editors/free-text-editor.js +783 -0
  47. package/dist/es2015/annotations/editors/highlight-editor.js +717 -0
  48. package/dist/es2015/annotations/editors/outliner.js +747 -0
  49. package/dist/es2015/annotations/helpers/annotation-storage.js +294 -0
  50. package/dist/es2015/annotations/helpers/color-manager.js +72 -0
  51. package/dist/es2015/annotations/helpers/command-manager.js +133 -0
  52. package/dist/es2015/annotations/helpers/id-manager.js +34 -0
  53. package/dist/es2015/annotations/helpers/image-manager.js +176 -0
  54. package/dist/es2015/annotations/helpers/text-accessibility-manager.js +212 -0
  55. package/dist/es2015/annotations/helpers/tools.js +19 -0
  56. package/dist/es2015/annotations/shared/display_utils.js +1024 -0
  57. package/dist/es2015/annotations/shared/event_utils.js +213 -0
  58. package/dist/es2015/annotations/shared/murmurhash3.js +126 -0
  59. package/dist/es2015/annotations/shared/scripting_utils.js +90 -0
  60. package/dist/es2015/annotations/shared/ui_utils.js +823 -0
  61. package/dist/es2015/annotations/shared/utils.js +909 -0
  62. package/dist/es2015/common/component.js +33 -0
  63. package/dist/es2015/common/core.js +91 -0
  64. package/dist/es2015/common/dom.js +11 -0
  65. package/dist/es2015/common/main.js +4 -0
  66. package/dist/es2015/common/math.js +1 -0
  67. package/dist/es2015/enums/PdfViewerInteractionMode.js +6 -0
  68. package/dist/es2015/links/link-service.js +505 -0
  69. package/dist/es2015/main.js +2 -0
  70. package/dist/es2015/scroller.js +29 -30
  71. package/dist/es2015/text/text-layer-builder.js +288 -0
  72. package/dist/es2015/utils.js +5 -5
  73. package/dist/es2015/widget/page.js +762 -0
  74. package/dist/es2015/widget/pdfviewer.js +1659 -0
  75. package/dist/npm/annotations/annotation-editor-layer-builder.d.ts +39 -0
  76. package/dist/npm/annotations/annotation-editor-layer-builder.js +142 -0
  77. package/dist/npm/annotations/annotation-editor-layer.d.ts +196 -0
  78. package/dist/npm/annotations/annotation-editor-layer.js +783 -0
  79. package/dist/npm/annotations/annotation-editor-ui-manager.d.ts +281 -0
  80. package/dist/npm/annotations/annotation-editor-ui-manager.js +1694 -0
  81. package/dist/npm/annotations/annotation-layer-builder.d.ts +58 -0
  82. package/dist/npm/annotations/annotation-layer-builder.js +220 -0
  83. package/dist/npm/annotations/annotation-layer.d.ts +134 -0
  84. package/dist/npm/annotations/annotation-layer.js +2794 -0
  85. package/dist/npm/annotations/draw-layer-builder.d.ts +21 -0
  86. package/dist/npm/annotations/draw-layer-builder.js +68 -0
  87. package/dist/npm/annotations/draw-layer.d.ts +33 -0
  88. package/dist/npm/annotations/draw-layer.js +223 -0
  89. package/dist/npm/annotations/editors/annotation-editor.d.ts +349 -0
  90. package/dist/npm/annotations/editors/annotation-editor.js +1523 -0
  91. package/dist/npm/annotations/editors/free-text-editor.d.ts +108 -0
  92. package/dist/npm/annotations/editors/free-text-editor.js +786 -0
  93. package/dist/npm/annotations/editors/highlight-editor.d.ts +114 -0
  94. package/dist/npm/annotations/editors/highlight-editor.js +717 -0
  95. package/dist/npm/annotations/editors/outliner.d.ts +51 -0
  96. package/dist/npm/annotations/editors/outliner.js +750 -0
  97. package/dist/npm/annotations/helpers/annotation-storage.d.ts +98 -0
  98. package/dist/npm/annotations/helpers/annotation-storage.js +299 -0
  99. package/dist/npm/annotations/helpers/color-manager.d.ts +6 -0
  100. package/dist/npm/annotations/helpers/color-manager.js +76 -0
  101. package/dist/npm/annotations/helpers/command-manager.d.ts +42 -0
  102. package/dist/npm/annotations/helpers/command-manager.js +137 -0
  103. package/dist/npm/annotations/helpers/id-manager.d.ts +6 -0
  104. package/dist/npm/annotations/helpers/id-manager.js +38 -0
  105. package/dist/npm/annotations/helpers/image-manager.d.ts +18 -0
  106. package/dist/npm/annotations/helpers/image-manager.js +180 -0
  107. package/dist/npm/annotations/helpers/text-accessibility-manager.d.ts +36 -0
  108. package/dist/npm/annotations/helpers/text-accessibility-manager.js +215 -0
  109. package/dist/npm/annotations/helpers/tools.d.ts +1 -0
  110. package/dist/npm/annotations/helpers/tools.js +23 -0
  111. package/dist/npm/annotations/shared/display_utils.d.ts +6 -0
  112. package/dist/npm/annotations/shared/display_utils.js +1030 -0
  113. package/dist/npm/annotations/shared/event_utils.d.ts +33 -0
  114. package/dist/npm/annotations/shared/event_utils.js +165 -0
  115. package/dist/npm/annotations/shared/murmurhash3.d.ts +8 -0
  116. package/dist/npm/annotations/shared/murmurhash3.js +129 -0
  117. package/dist/npm/annotations/shared/scripting_utils.d.ts +17 -0
  118. package/dist/npm/annotations/shared/scripting_utils.js +93 -0
  119. package/dist/npm/annotations/shared/ui_utils.d.ts +54 -0
  120. package/dist/npm/annotations/shared/ui_utils.js +250 -0
  121. package/dist/npm/annotations/shared/utils.d.ts +148 -0
  122. package/dist/npm/annotations/shared/utils.js +872 -0
  123. package/dist/npm/common/component.d.ts +9 -0
  124. package/dist/npm/common/component.js +37 -0
  125. package/dist/npm/common/core.d.ts +18 -0
  126. package/dist/npm/common/core.js +112 -0
  127. package/dist/npm/common/dom.d.ts +3 -0
  128. package/dist/npm/common/dom.js +17 -0
  129. package/dist/npm/common/main.d.ts +4 -0
  130. package/dist/npm/common/main.js +7 -0
  131. package/dist/npm/common/math.d.ts +1 -0
  132. package/dist/npm/common/math.js +5 -0
  133. package/dist/npm/enums/PdfViewerInteractionMode.d.ts +4 -0
  134. package/dist/npm/enums/PdfViewerInteractionMode.js +9 -0
  135. package/dist/npm/links/link-service.d.ts +116 -0
  136. package/dist/npm/links/link-service.js +501 -0
  137. package/dist/npm/main.d.ts +2 -0
  138. package/dist/npm/main.js +2 -0
  139. package/dist/npm/scroller.d.ts +7 -3
  140. package/dist/npm/scroller.js +32 -32
  141. package/dist/npm/text/text-layer-builder.d.ts +30 -0
  142. package/dist/npm/text/text-layer-builder.js +291 -0
  143. package/dist/npm/utils.d.ts +20 -2
  144. package/dist/npm/utils.js +11 -8
  145. package/dist/npm/widget/page.d.ts +75 -0
  146. package/dist/npm/widget/page.js +763 -0
  147. package/dist/npm/widget/pdfviewer.d.ts +222 -0
  148. package/dist/npm/widget/pdfviewer.js +1663 -0
  149. package/package.json +13 -9
@@ -0,0 +1,9 @@
1
+ export declare class Component {
2
+ element: HTMLElement | null;
3
+ options: any;
4
+ constructor(element: any, options: any);
5
+ destroy(): void;
6
+ extendOptions(options: any): void;
7
+ setOptions(options: any): void;
8
+ trigger(eventName: any, args?: {}): boolean;
9
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Component = void 0;
4
+ const core_1 = require("./core");
5
+ class Component {
6
+ constructor(element, options) {
7
+ this.options = {
8
+ events: {}
9
+ };
10
+ this.element = element;
11
+ this.options = options;
12
+ }
13
+ destroy() {
14
+ this.element = null;
15
+ }
16
+ extendOptions(options) {
17
+ this.options = (0, core_1.deepExtend)(this.options, options);
18
+ }
19
+ setOptions(options) {
20
+ this.options = options;
21
+ }
22
+ trigger(eventName, args = {}) {
23
+ const eventData = {
24
+ defaultPrevented: false,
25
+ preventDefault: () => {
26
+ eventData.defaultPrevented = true;
27
+ }
28
+ };
29
+ if ((0, core_1.isFunction)(this.options.events[eventName])) {
30
+ this.options.events[eventName]((0, core_1.extend)(eventData, args, {
31
+ sender: this
32
+ }));
33
+ }
34
+ return eventData.defaultPrevented;
35
+ }
36
+ }
37
+ exports.Component = Component;
@@ -0,0 +1,18 @@
1
+ export declare const extend: (...args: any[]) => any;
2
+ export declare const isObject: (value: any) => boolean;
3
+ export declare const isHtmlElement: (element: any) => boolean;
4
+ export declare const isDomElement: (element: any) => boolean;
5
+ export declare const isDotNetObject: (value: any) => boolean;
6
+ export declare const deepExtend: (target: any, ...sources: any[]) => any;
7
+ export declare const isFunction: (fn: any) => boolean;
8
+ export declare const isString: (value: any) => boolean;
9
+ export declare const toArray: (value: any) => unknown[];
10
+ export declare const isDefined: (value: any) => boolean;
11
+ export declare const isNotNull: (value: any) => boolean;
12
+ export declare const hasValue: (value: any) => boolean;
13
+ export declare const noop: () => void;
14
+ export declare const convertToHtml: (htmlString: string, ownerDocument?: Document) => any;
15
+ export declare const toPixel: (value: any) => string;
16
+ export declare const toClassSelector: (className: string) => string;
17
+ export declare const mousewheelDelta: (e: any) => number;
18
+ export declare const createPromise: () => Promise<any>;
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPromise = exports.mousewheelDelta = exports.toClassSelector = exports.toPixel = exports.convertToHtml = exports.noop = exports.hasValue = exports.isNotNull = exports.isDefined = exports.toArray = exports.isString = exports.isFunction = exports.deepExtend = exports.isDotNetObject = exports.isDomElement = exports.isHtmlElement = exports.isObject = exports.extend = void 0;
4
+ const component_1 = require("./component");
5
+ // @ts-expect-error TS(2556): A spread argument must either have a tuple type or... Remove this comment to see the full error message
6
+ const extend = (...args) => Object.assign(...args);
7
+ exports.extend = extend;
8
+ const isObject = (value) => value && typeof (value) === "object" && !Array.isArray(value);
9
+ exports.isObject = isObject;
10
+ const isHtmlElement = (element) => element instanceof HTMLElement;
11
+ exports.isHtmlElement = isHtmlElement;
12
+ const isDomElement = (element) => element instanceof Element;
13
+ exports.isDomElement = isDomElement;
14
+ /* eslint-disable no-undef */
15
+ // @ts-expect-error TS(2304): Cannot find name 'DotNet'.
16
+ const isDotNetObject = (value) => value && window && window.DotNet && window.DotNet.DotNetObject && value instanceof DotNet.DotNetObject;
17
+ exports.isDotNetObject = isDotNetObject;
18
+ /* eslint-enable no-undef */
19
+ const deepExtend = (target, ...sources) => {
20
+ if (!sources.length) {
21
+ return target;
22
+ }
23
+ const source = sources.shift();
24
+ if ((0, exports.isObject)(target) && (0, exports.isObject)(source)) {
25
+ for (const key in source) {
26
+ if (source[key] instanceof component_1.Component) {
27
+ target[key] = source[key];
28
+ }
29
+ else if ((0, exports.isHtmlElement)(source[key])) {
30
+ target[key] = source[key];
31
+ }
32
+ else if (key === "dotNetInstance" || (0, exports.isDotNetObject)(source[key])) {
33
+ // avoid cloning a DotNetObject as it might have circular properties
34
+ // see https://github.com/telerik/blazor/issues/7507
35
+ // the check for the name of our own option - "dotNetInstance"
36
+ // is an additional guard against the Blazor API being different in other .NET versions
37
+ target[key] = source[key];
38
+ }
39
+ else if (source[key] && source[key].buffer && source[key].buffer instanceof ArrayBuffer) {
40
+ target[key] = source[key];
41
+ }
42
+ else if ((0, exports.isObject)(source[key]) && Object.getPrototypeOf(source[key]) !== Object.prototype) {
43
+ target[key] = source[key];
44
+ }
45
+ else if ((0, exports.isObject)(source[key])) {
46
+ if (!target[key] || !(0, exports.isObject)(target[key])) {
47
+ (0, exports.extend)(target, { [key]: {} });
48
+ }
49
+ (0, exports.deepExtend)(target[key], source[key]);
50
+ }
51
+ else {
52
+ (0, exports.extend)(target, { [key]: source[key] });
53
+ }
54
+ }
55
+ }
56
+ return (0, exports.deepExtend)(target, ...sources);
57
+ };
58
+ exports.deepExtend = deepExtend;
59
+ const isFunction = fn => typeof (fn) === "function";
60
+ exports.isFunction = isFunction;
61
+ const isString = value => typeof (value) === "string";
62
+ exports.isString = isString;
63
+ const toArray = value => Array.from(value);
64
+ exports.toArray = toArray;
65
+ const isDefined = value => typeof (value) !== "undefined";
66
+ exports.isDefined = isDefined;
67
+ const isNotNull = value => value !== null;
68
+ exports.isNotNull = isNotNull;
69
+ const hasValue = value => (0, exports.isDefined)(value) && (0, exports.isNotNull)(value);
70
+ exports.hasValue = hasValue;
71
+ const noop = function () { };
72
+ exports.noop = noop;
73
+ const convertToHtml = (htmlString, ownerDocument) => {
74
+ const template = (ownerDocument || document).createElement('template');
75
+ template.innerHTML = htmlString.trim();
76
+ const content = template.content;
77
+ if (content.childNodes.length > 1) {
78
+ return content.childNodes;
79
+ }
80
+ return content.firstChild;
81
+ };
82
+ exports.convertToHtml = convertToHtml;
83
+ const toPixel = value => parseFloat(value) + "px";
84
+ exports.toPixel = toPixel;
85
+ const toClassSelector = (className) => (className === null || className === void 0 ? void 0 : className.startsWith(".")) ? className : `.${className}`;
86
+ exports.toClassSelector = toClassSelector;
87
+ const mousewheelDelta = (e) => {
88
+ let delta = 0;
89
+ if (e.wheelDelta) {
90
+ delta = -e.wheelDelta / 120;
91
+ }
92
+ else if (e.detail) {
93
+ delta = e.detail / 3;
94
+ }
95
+ delta = delta > 0 ? Math.ceil(delta) : Math.floor(delta);
96
+ return delta;
97
+ };
98
+ exports.mousewheelDelta = mousewheelDelta;
99
+ const createPromise = () => {
100
+ let resolveFn;
101
+ let rejectFn;
102
+ const promise = new Promise(function (resolve, reject) {
103
+ resolveFn = resolve;
104
+ rejectFn = reject;
105
+ });
106
+ // @ts-expect-error TS(2339): Property 'resolve' does not exist on type 'Promise... Remove this comment to see the full error message
107
+ promise.resolve = resolveFn;
108
+ // @ts-expect-error TS(2339): Property 'reject' does not exist on type 'Promise<... Remove this comment to see the full error message
109
+ promise.reject = rejectFn;
110
+ return promise;
111
+ };
112
+ exports.createPromise = createPromise;
@@ -0,0 +1,3 @@
1
+ export declare const addClass: (className: any, element: any) => void;
2
+ export declare const removeClass: (className: any, element: any) => void;
3
+ export declare const hasClass: (className: any, element: any) => boolean;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hasClass = exports.removeClass = exports.addClass = void 0;
4
+ const addClass = (className, element) => {
5
+ element.classList.add(className);
6
+ };
7
+ exports.addClass = addClass;
8
+ const removeClass = (className, element) => {
9
+ element.classList.remove(className);
10
+ };
11
+ exports.removeClass = removeClass;
12
+ const hasClass = (className, element) => {
13
+ if (element instanceof HTMLElement) {
14
+ return element.classList.contains(className);
15
+ }
16
+ };
17
+ exports.hasClass = hasClass;
@@ -0,0 +1,4 @@
1
+ export * from './component';
2
+ export * from './core';
3
+ export * from './dom';
4
+ export * from './math';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./component"), exports);
5
+ tslib_1.__exportStar(require("./core"), exports);
6
+ tslib_1.__exportStar(require("./dom"), exports);
7
+ tslib_1.__exportStar(require("./math"), exports);
@@ -0,0 +1 @@
1
+ export declare const clamp: (value: any, min: any, max: any) => number;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.clamp = void 0;
4
+ const clamp = (value, min, max) => Math.min(max, Math.max(min, value));
5
+ exports.clamp = clamp;
@@ -0,0 +1,4 @@
1
+ export declare enum PdfViewerInteractionMode {
2
+ TextSelection = 0,
3
+ Pan = 1
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PdfViewerInteractionMode = void 0;
4
+ var PdfViewerInteractionMode;
5
+ (function (PdfViewerInteractionMode) {
6
+ PdfViewerInteractionMode[PdfViewerInteractionMode["TextSelection"] = 0] = "TextSelection";
7
+ PdfViewerInteractionMode[PdfViewerInteractionMode["Pan"] = 1] = "Pan";
8
+ })(PdfViewerInteractionMode || (exports.PdfViewerInteractionMode = PdfViewerInteractionMode = {}));
9
+ ;
@@ -0,0 +1,116 @@
1
+ declare const LinkTarget: {
2
+ NONE: number;
3
+ SELF: number;
4
+ BLANK: number;
5
+ PARENT: number;
6
+ TOP: number;
7
+ };
8
+ /**
9
+ * @typedef {Object} PDFLinkServiceOptions
10
+ * @property {EventBus} eventBus - The application event bus.
11
+ * @property {number} [externalLinkTarget] - Specifies the `target` attribute
12
+ * for external links. Must use one of the values from {LinkTarget}.
13
+ * Defaults to using no target.
14
+ * @property {string} [externalLinkRel] - Specifies the `rel` attribute for
15
+ * external links. Defaults to stripping the referrer.
16
+ * @property {boolean} [ignoreDestinationZoom] - Ignores the zoom argument,
17
+ * thus preserving the current zoom level in the viewer, when navigating
18
+ * to internal destinations. The default value is `false`.
19
+ */
20
+ /**
21
+ * Performs navigation functions inside PDF, such as opening specified page,
22
+ * or destination.
23
+ * @implements {IPDFLinkService}
24
+ */
25
+ declare class PDFLinkService {
26
+ #private;
27
+ eventBus: any;
28
+ externalLinkTarget: any;
29
+ externalLinkRel: any;
30
+ _ignoreDestinationZoom: any;
31
+ baseUrl: any;
32
+ pdfDocument: any;
33
+ pdfViewer: any;
34
+ pdfHistory: any;
35
+ externalLinkEnabled: boolean;
36
+ /**
37
+ * @param {PDFLinkServiceOptions} options
38
+ */
39
+ constructor({ eventBus, externalLinkTarget, externalLinkRel, ignoreDestinationZoom, }?: {
40
+ eventBus?: any;
41
+ externalLinkTarget?: any;
42
+ externalLinkRel?: any;
43
+ ignoreDestinationZoom?: boolean;
44
+ });
45
+ setDocument(pdfDocument: any, baseUrl?: any): void;
46
+ setViewer(pdfViewer: any): void;
47
+ setHistory(pdfHistory: any): void;
48
+ /**
49
+ * @type {number}
50
+ */
51
+ get pagesCount(): any;
52
+ /**
53
+ * @type {number}
54
+ */
55
+ get page(): any;
56
+ /**
57
+ * @param {number} value
58
+ */
59
+ set page(value: any);
60
+ /**
61
+ * @type {number}
62
+ */
63
+ get rotation(): any;
64
+ /**
65
+ * @param {number} value
66
+ */
67
+ set rotation(value: any);
68
+ /**
69
+ * @type {boolean}
70
+ */
71
+ get isInPresentationMode(): any;
72
+ /**
73
+ * This method will, when available, also update the browser history.
74
+ *
75
+ * @param {string|Array} dest - The named, or explicit, PDF destination.
76
+ */
77
+ goToDestination(dest: any): Promise<void>;
78
+ /**
79
+ * This method will, when available, also update the browser history.
80
+ *
81
+ * @param {number|string} val - The page number, or page label.
82
+ */
83
+ goToPage(val: any): void;
84
+ /**
85
+ * Adds various attributes (href, title, target, rel) to hyperlinks.
86
+ * @param {HTMLAnchorElement} link
87
+ * @param {string} url
88
+ * @param {boolean} [newWindow]
89
+ */
90
+ addLinkAttributes(link: any, url: any, newWindow?: boolean): void;
91
+ /**
92
+ * @param {string|Array} dest - The PDF destination object.
93
+ * @returns {string} The hyperlink to the PDF object.
94
+ */
95
+ getDestinationHash(dest: any): any;
96
+ /**
97
+ * Prefix the full url on anchor links to make sure that links are resolved
98
+ * relative to the current URL instead of the one defined in <base href>.
99
+ * @param {string} anchor - The anchor hash, including the #.
100
+ * @returns {string} The hyperlink to the PDF object.
101
+ */
102
+ getAnchorUrl(anchor: any): any;
103
+ /**
104
+ * @param {string} hash
105
+ */
106
+ setHash(hash: any): void;
107
+ /**
108
+ * @param {string} action
109
+ */
110
+ executeNamedAction(action: any): void;
111
+ /**
112
+ * @param {Object} action
113
+ */
114
+ executeSetOCGState(action: any): Promise<void>;
115
+ }
116
+ export { LinkTarget, PDFLinkService, };