commit
b159cc9e4b
@ -15,7 +15,10 @@
|
|||||||
|
|
||||||
/** @typedef {import("./api").PDFPageProxy} PDFPageProxy */
|
/** @typedef {import("./api").PDFPageProxy} PDFPageProxy */
|
||||||
/** @typedef {import("./display_utils").PageViewport} PageViewport */
|
/** @typedef {import("./display_utils").PageViewport} PageViewport */
|
||||||
/** @typedef {import("./interfaces").IDownloadManager} IDownloadManager */
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("../../web/text_accessibility.js").TextAccessibilityManager} TextAccessibilityManager */
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("../../web/interfaces").IDownloadManager} IDownloadManager */
|
||||||
/** @typedef {import("../../web/interfaces").IPDFLinkService} IPDFLinkService */
|
/** @typedef {import("../../web/interfaces").IPDFLinkService} IPDFLinkService */
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -17,10 +17,10 @@
|
|||||||
/** @typedef {import("./tools.js").AnnotationEditorUIManager} AnnotationEditorUIManager */
|
/** @typedef {import("./tools.js").AnnotationEditorUIManager} AnnotationEditorUIManager */
|
||||||
/** @typedef {import("../display_utils.js").PageViewport} PageViewport */
|
/** @typedef {import("../display_utils.js").PageViewport} PageViewport */
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
/** @typedef {import("../../web/text_accessibility.js").TextAccessibilityManager} TextAccessibilityManager */
|
/** @typedef {import("../../../web/text_accessibility.js").TextAccessibilityManager} TextAccessibilityManager */
|
||||||
/** @typedef {import("../../web/interfaces").IL10n} IL10n */
|
/** @typedef {import("../../../web/interfaces").IL10n} IL10n */
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
/** @typedef {import("../src/display/annotation_layer.js").AnnotationLayer} AnnotationLayer */
|
/** @typedef {import("../annotation_layer.js").AnnotationLayer} AnnotationLayer */
|
||||||
|
|
||||||
import { AnnotationEditorType, FeatureTest } from "../../shared/util.js";
|
import { AnnotationEditorType, FeatureTest } from "../../shared/util.js";
|
||||||
import { AnnotationEditor } from "./editor.js";
|
import { AnnotationEditor } from "./editor.js";
|
||||||
|
@ -146,7 +146,7 @@ class AnnotationEditor {
|
|||||||
* @param {string} mime
|
* @param {string} mime
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
static isHandlingMimeForPasting(_mime) {
|
static isHandlingMimeForPasting(mime) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -998,7 +998,7 @@ class AnnotationEditor {
|
|||||||
* @param {boolean} isForCopying
|
* @param {boolean} isForCopying
|
||||||
* @param {Object} [context]
|
* @param {Object} [context]
|
||||||
*/
|
*/
|
||||||
serialize(_isForCopying = false, _context = null) {
|
serialize(isForCopying = false, context = null) {
|
||||||
unreachable("An editor must be serializable");
|
unreachable("An editor must be serializable");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -891,7 +891,7 @@ class InkEditor extends AnnotationEditor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert into a Path2D.
|
* Convert into a Path2D.
|
||||||
* @param {Arra<Array<number>} bezier
|
* @param {Array<Array<number>>} bezier
|
||||||
* @returns {Path2D}
|
* @returns {Path2D}
|
||||||
*/
|
*/
|
||||||
static #buildPath2D(bezier) {
|
static #buildPath2D(bezier) {
|
||||||
|
@ -418,7 +418,7 @@ class KeyboardManager {
|
|||||||
/**
|
/**
|
||||||
* Execute a callback, if any, for a given keyboard event.
|
* Execute a callback, if any, for a given keyboard event.
|
||||||
* The self is used as `this` in the callback.
|
* The self is used as `this` in the callback.
|
||||||
* @param {Object} self.
|
* @param {Object} self
|
||||||
* @param {KeyboardEvent} event
|
* @param {KeyboardEvent} event
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
|
@ -13,6 +13,11 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** @typedef {import("../interfaces").IPDFStream} IPDFStream */
|
||||||
|
/** @typedef {import("../interfaces").IPDFStreamReader} IPDFStreamReader */
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("../interfaces").IPDFStreamRangeReader} IPDFStreamRangeReader */
|
||||||
|
|
||||||
import { assert, PromiseCapability } from "../shared/util.js";
|
import { assert, PromiseCapability } from "../shared/util.js";
|
||||||
import { isPdfFile } from "./display_utils.js";
|
import { isPdfFile } from "./display_utils.js";
|
||||||
|
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("./annotation_storage").AnnotationStorage} AnnotationStorage */
|
||||||
/** @typedef {import("./display_utils").PageViewport} PageViewport */
|
/** @typedef {import("./display_utils").PageViewport} PageViewport */
|
||||||
/** @typedef {import("../../web/interfaces").IPDFLinkService} IPDFLinkService */
|
/** @typedef {import("../../web/interfaces").IPDFLinkService} IPDFLinkService */
|
||||||
|
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** @typedef {import("./api").TextContent} TextContent */
|
||||||
|
|
||||||
class XfaText {
|
class XfaText {
|
||||||
/**
|
/**
|
||||||
* Walk an XFA tree and create an array of text nodes that is compatible
|
* Walk an XFA tree and create an array of text nodes that is compatible
|
||||||
|
@ -16,11 +16,13 @@
|
|||||||
/** @typedef {import("../src/display/api").PDFPageProxy} PDFPageProxy */
|
/** @typedef {import("../src/display/api").PDFPageProxy} PDFPageProxy */
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
/** @typedef {import("../src/display/display_utils").PageViewport} PageViewport */
|
/** @typedef {import("../src/display/display_utils").PageViewport} PageViewport */
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("../src/display/annotation_storage").AnnotationStorage} AnnotationStorage */
|
||||||
/** @typedef {import("./interfaces").IDownloadManager} IDownloadManager */
|
/** @typedef {import("./interfaces").IDownloadManager} IDownloadManager */
|
||||||
/** @typedef {import("./interfaces").IL10n} IL10n */
|
/** @typedef {import("./interfaces").IL10n} IL10n */
|
||||||
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
/** @typedef {import("./textaccessibility.js").TextAccessibilityManager} TextAccessibilityManager */
|
/** @typedef {import("./text_accessibility.js").TextAccessibilityManager} TextAccessibilityManager */
|
||||||
|
|
||||||
import { AnnotationLayer } from "pdfjs-lib";
|
import { AnnotationLayer } from "pdfjs-lib";
|
||||||
import { NullL10n } from "./l10n_utils.js";
|
import { NullL10n } from "./l10n_utils.js";
|
||||||
|
@ -548,7 +548,7 @@ class PDFPageView {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Update e.g. the scale and/or rotation of the page.
|
* Update e.g. the scale and/or rotation of the page.
|
||||||
* @param {PDFPageViewUpdateParameters}
|
* @param {PDFPageViewUpdateParameters} params
|
||||||
*/
|
*/
|
||||||
update({
|
update({
|
||||||
scale = 0,
|
scale = 0,
|
||||||
|
@ -13,6 +13,10 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("../src/display/optional_content_config").OptionalContentConfig} OptionalContentConfig */
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("../src/display/display_utils").PageViewport} PageViewport */
|
||||||
/** @typedef {import("./event_utils").EventBus} EventBus */
|
/** @typedef {import("./event_utils").EventBus} EventBus */
|
||||||
/** @typedef {import("./interfaces").IL10n} IL10n */
|
/** @typedef {import("./interfaces").IL10n} IL10n */
|
||||||
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/** @typedef {import("../src/display/api").PDFDocumentProxy} PDFDocumentProxy */
|
/** @typedef {import("../src/display/api").PDFDocumentProxy} PDFDocumentProxy */
|
||||||
|
/** @typedef {import("../src/display/api").PDFPageProxy} PDFPageProxy */
|
||||||
/** @typedef {import("./event_utils").EventBus} EventBus */
|
/** @typedef {import("./event_utils").EventBus} EventBus */
|
||||||
/** @typedef {import("./interfaces").IL10n} IL10n */
|
/** @typedef {import("./interfaces").IL10n} IL10n */
|
||||||
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
||||||
|
@ -23,6 +23,10 @@
|
|||||||
/** @typedef {import("./interfaces").IDownloadManager} IDownloadManager */
|
/** @typedef {import("./interfaces").IDownloadManager} IDownloadManager */
|
||||||
/** @typedef {import("./interfaces").IL10n} IL10n */
|
/** @typedef {import("./interfaces").IL10n} IL10n */
|
||||||
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("./pdf_find_controller").PDFFindController} PDFFindController */
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("./pdf_scripting_manager").PDFScriptingManager} PDFScriptingManager */
|
||||||
|
|
||||||
import {
|
import {
|
||||||
AnnotationEditorType,
|
AnnotationEditorType,
|
||||||
|
@ -195,7 +195,7 @@ function watchScroll(viewAreaElement, callback) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper function to parse query string (e.g. ?param1=value¶m2=...).
|
* Helper function to parse query string (e.g. ?param1=value¶m2=...).
|
||||||
* @param {string}
|
* @param {string} query
|
||||||
* @returns {Map}
|
* @returns {Map}
|
||||||
*/
|
*/
|
||||||
function parseQueryString(query) {
|
function parseQueryString(query) {
|
||||||
@ -461,7 +461,7 @@ function backtrackBeforeAllVisibleElements(index, views, top) {
|
|||||||
* rendering canvas. Earlier and later refer to index in `views`, not page
|
* rendering canvas. Earlier and later refer to index in `views`, not page
|
||||||
* layout.)
|
* layout.)
|
||||||
*
|
*
|
||||||
* @param {GetVisibleElementsParameters}
|
* @param {GetVisibleElementsParameters} params
|
||||||
* @returns {Object} `{ first, last, views: [{ id, x, y, view, percent }] }`
|
* @returns {Object} `{ first, last, views: [{ id, x, y, view, percent }] }`
|
||||||
*/
|
*/
|
||||||
function getVisibleElements({
|
function getVisibleElements({
|
||||||
@ -791,7 +791,7 @@ function getActiveOrFocusedElement() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts API PageLayout values to the format used by `BaseViewer`.
|
* Converts API PageLayout values to the format used by `BaseViewer`.
|
||||||
* @param {string} mode - The API PageLayout value.
|
* @param {string} layout - The API PageLayout value.
|
||||||
* @returns {Object}
|
* @returns {Object}
|
||||||
*/
|
*/
|
||||||
function apiPageLayoutToViewerModes(layout) {
|
function apiPageLayoutToViewerModes(layout) {
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
/** @typedef {import("../src/display/api").PDFPageProxy} PDFPageProxy */
|
/** @typedef {import("../src/display/api").PDFPageProxy} PDFPageProxy */
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
|
/** @typedef {import("../src/display/annotation_storage").AnnotationStorage} AnnotationStorage */
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
/** @typedef {import("../src/display/display_utils").PageViewport} PageViewport */
|
/** @typedef {import("../src/display/display_utils").PageViewport} PageViewport */
|
||||||
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
/** @typedef {import("./interfaces").IPDFLinkService} IPDFLinkService */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user