@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.
- package/dist/es/annotations/annotation-editor-layer-builder.js +139 -0
- package/dist/es/annotations/annotation-editor-layer.js +780 -0
- package/dist/es/annotations/annotation-editor-ui-manager.js +1690 -0
- package/dist/es/annotations/annotation-layer-builder.js +217 -0
- package/dist/es/annotations/annotation-layer.js +2793 -0
- package/dist/es/annotations/draw-layer-builder.js +65 -0
- package/dist/es/annotations/draw-layer.js +220 -0
- package/dist/es/annotations/editors/annotation-editor.js +1519 -0
- package/dist/es/annotations/editors/free-text-editor.js +783 -0
- package/dist/es/annotations/editors/highlight-editor.js +717 -0
- package/dist/es/annotations/editors/outliner.js +747 -0
- package/dist/es/annotations/helpers/annotation-storage.js +294 -0
- package/dist/es/annotations/helpers/color-manager.js +72 -0
- package/dist/es/annotations/helpers/command-manager.js +133 -0
- package/dist/es/annotations/helpers/id-manager.js +34 -0
- package/dist/es/annotations/helpers/image-manager.js +176 -0
- package/dist/es/annotations/helpers/text-accessibility-manager.js +212 -0
- package/dist/es/annotations/helpers/tools.js +19 -0
- package/dist/es/annotations/shared/display_utils.js +1024 -0
- package/dist/es/annotations/shared/event_utils.js +213 -0
- package/dist/es/annotations/shared/murmurhash3.js +126 -0
- package/dist/es/annotations/shared/scripting_utils.js +90 -0
- package/dist/es/annotations/shared/ui_utils.js +823 -0
- package/dist/es/annotations/shared/utils.js +909 -0
- package/dist/es/common/component.js +33 -0
- package/dist/es/common/core.js +91 -0
- package/dist/es/common/dom.js +11 -0
- package/dist/es/common/main.js +4 -0
- package/dist/es/common/math.js +1 -0
- package/dist/es/enums/PdfViewerInteractionMode.js +6 -0
- package/dist/es/links/link-service.js +505 -0
- package/dist/es/main.js +2 -0
- package/dist/es/scroller.js +29 -30
- package/dist/es/text/text-layer-builder.js +288 -0
- package/dist/es/utils.js +5 -5
- package/dist/es/widget/page.js +762 -0
- package/dist/es/widget/pdfviewer.js +1659 -0
- package/dist/es2015/annotations/annotation-editor-layer-builder.js +139 -0
- package/dist/es2015/annotations/annotation-editor-layer.js +780 -0
- package/dist/es2015/annotations/annotation-editor-ui-manager.js +1690 -0
- package/dist/es2015/annotations/annotation-layer-builder.js +217 -0
- package/dist/es2015/annotations/annotation-layer.js +2793 -0
- package/dist/es2015/annotations/draw-layer-builder.js +65 -0
- package/dist/es2015/annotations/draw-layer.js +220 -0
- package/dist/es2015/annotations/editors/annotation-editor.js +1519 -0
- package/dist/es2015/annotations/editors/free-text-editor.js +783 -0
- package/dist/es2015/annotations/editors/highlight-editor.js +717 -0
- package/dist/es2015/annotations/editors/outliner.js +747 -0
- package/dist/es2015/annotations/helpers/annotation-storage.js +294 -0
- package/dist/es2015/annotations/helpers/color-manager.js +72 -0
- package/dist/es2015/annotations/helpers/command-manager.js +133 -0
- package/dist/es2015/annotations/helpers/id-manager.js +34 -0
- package/dist/es2015/annotations/helpers/image-manager.js +176 -0
- package/dist/es2015/annotations/helpers/text-accessibility-manager.js +212 -0
- package/dist/es2015/annotations/helpers/tools.js +19 -0
- package/dist/es2015/annotations/shared/display_utils.js +1024 -0
- package/dist/es2015/annotations/shared/event_utils.js +213 -0
- package/dist/es2015/annotations/shared/murmurhash3.js +126 -0
- package/dist/es2015/annotations/shared/scripting_utils.js +90 -0
- package/dist/es2015/annotations/shared/ui_utils.js +823 -0
- package/dist/es2015/annotations/shared/utils.js +909 -0
- package/dist/es2015/common/component.js +33 -0
- package/dist/es2015/common/core.js +91 -0
- package/dist/es2015/common/dom.js +11 -0
- package/dist/es2015/common/main.js +4 -0
- package/dist/es2015/common/math.js +1 -0
- package/dist/es2015/enums/PdfViewerInteractionMode.js +6 -0
- package/dist/es2015/links/link-service.js +505 -0
- package/dist/es2015/main.js +2 -0
- package/dist/es2015/scroller.js +29 -30
- package/dist/es2015/text/text-layer-builder.js +288 -0
- package/dist/es2015/utils.js +5 -5
- package/dist/es2015/widget/page.js +762 -0
- package/dist/es2015/widget/pdfviewer.js +1659 -0
- package/dist/npm/annotations/annotation-editor-layer-builder.d.ts +39 -0
- package/dist/npm/annotations/annotation-editor-layer-builder.js +142 -0
- package/dist/npm/annotations/annotation-editor-layer.d.ts +196 -0
- package/dist/npm/annotations/annotation-editor-layer.js +783 -0
- package/dist/npm/annotations/annotation-editor-ui-manager.d.ts +281 -0
- package/dist/npm/annotations/annotation-editor-ui-manager.js +1694 -0
- package/dist/npm/annotations/annotation-layer-builder.d.ts +58 -0
- package/dist/npm/annotations/annotation-layer-builder.js +220 -0
- package/dist/npm/annotations/annotation-layer.d.ts +134 -0
- package/dist/npm/annotations/annotation-layer.js +2794 -0
- package/dist/npm/annotations/draw-layer-builder.d.ts +21 -0
- package/dist/npm/annotations/draw-layer-builder.js +68 -0
- package/dist/npm/annotations/draw-layer.d.ts +33 -0
- package/dist/npm/annotations/draw-layer.js +223 -0
- package/dist/npm/annotations/editors/annotation-editor.d.ts +349 -0
- package/dist/npm/annotations/editors/annotation-editor.js +1523 -0
- package/dist/npm/annotations/editors/free-text-editor.d.ts +108 -0
- package/dist/npm/annotations/editors/free-text-editor.js +786 -0
- package/dist/npm/annotations/editors/highlight-editor.d.ts +114 -0
- package/dist/npm/annotations/editors/highlight-editor.js +717 -0
- package/dist/npm/annotations/editors/outliner.d.ts +51 -0
- package/dist/npm/annotations/editors/outliner.js +750 -0
- package/dist/npm/annotations/helpers/annotation-storage.d.ts +98 -0
- package/dist/npm/annotations/helpers/annotation-storage.js +299 -0
- package/dist/npm/annotations/helpers/color-manager.d.ts +6 -0
- package/dist/npm/annotations/helpers/color-manager.js +76 -0
- package/dist/npm/annotations/helpers/command-manager.d.ts +42 -0
- package/dist/npm/annotations/helpers/command-manager.js +137 -0
- package/dist/npm/annotations/helpers/id-manager.d.ts +6 -0
- package/dist/npm/annotations/helpers/id-manager.js +38 -0
- package/dist/npm/annotations/helpers/image-manager.d.ts +18 -0
- package/dist/npm/annotations/helpers/image-manager.js +180 -0
- package/dist/npm/annotations/helpers/text-accessibility-manager.d.ts +36 -0
- package/dist/npm/annotations/helpers/text-accessibility-manager.js +215 -0
- package/dist/npm/annotations/helpers/tools.d.ts +1 -0
- package/dist/npm/annotations/helpers/tools.js +23 -0
- package/dist/npm/annotations/shared/display_utils.d.ts +6 -0
- package/dist/npm/annotations/shared/display_utils.js +1030 -0
- package/dist/npm/annotations/shared/event_utils.d.ts +33 -0
- package/dist/npm/annotations/shared/event_utils.js +165 -0
- package/dist/npm/annotations/shared/murmurhash3.d.ts +8 -0
- package/dist/npm/annotations/shared/murmurhash3.js +129 -0
- package/dist/npm/annotations/shared/scripting_utils.d.ts +17 -0
- package/dist/npm/annotations/shared/scripting_utils.js +93 -0
- package/dist/npm/annotations/shared/ui_utils.d.ts +54 -0
- package/dist/npm/annotations/shared/ui_utils.js +250 -0
- package/dist/npm/annotations/shared/utils.d.ts +148 -0
- package/dist/npm/annotations/shared/utils.js +872 -0
- package/dist/npm/common/component.d.ts +9 -0
- package/dist/npm/common/component.js +37 -0
- package/dist/npm/common/core.d.ts +18 -0
- package/dist/npm/common/core.js +112 -0
- package/dist/npm/common/dom.d.ts +3 -0
- package/dist/npm/common/dom.js +17 -0
- package/dist/npm/common/main.d.ts +4 -0
- package/dist/npm/common/main.js +7 -0
- package/dist/npm/common/math.d.ts +1 -0
- package/dist/npm/common/math.js +5 -0
- package/dist/npm/enums/PdfViewerInteractionMode.d.ts +4 -0
- package/dist/npm/enums/PdfViewerInteractionMode.js +9 -0
- package/dist/npm/links/link-service.d.ts +116 -0
- package/dist/npm/links/link-service.js +501 -0
- package/dist/npm/main.d.ts +2 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/scroller.d.ts +7 -3
- package/dist/npm/scroller.js +32 -32
- package/dist/npm/text/text-layer-builder.d.ts +30 -0
- package/dist/npm/text/text-layer-builder.js +291 -0
- package/dist/npm/utils.d.ts +20 -2
- package/dist/npm/utils.js +11 -8
- package/dist/npm/widget/page.d.ts +75 -0
- package/dist/npm/widget/page.js +763 -0
- package/dist/npm/widget/pdfviewer.d.ts +222 -0
- package/dist/npm/widget/pdfviewer.js +1663 -0
- package/package.json +13 -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,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,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,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, };
|