mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Update ESLint and enable the lines-between-class-members
rule
This rule will help aid readability in `class`es, please see https://eslint.org/docs/rules/lines-between-class-members.
This commit is contained in:
parent
985c700bd5
commit
8f9d548874
3 changed files with 13 additions and 2 deletions
|
@ -423,24 +423,29 @@ class SimpleLinkService {
|
|||
get page() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
*/
|
||||
set page(value) {}
|
||||
|
||||
/**
|
||||
* @returns {number}
|
||||
*/
|
||||
get rotation() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
*/
|
||||
set rotation(value) {}
|
||||
|
||||
/**
|
||||
* @param dest - The PDF destination object.
|
||||
*/
|
||||
navigateTo(dest) {}
|
||||
|
||||
/**
|
||||
* @param dest - The PDF destination object.
|
||||
* @returns {string} The hyperlink to the PDF object.
|
||||
|
@ -448,6 +453,7 @@ class SimpleLinkService {
|
|||
getDestinationHash(dest) {
|
||||
return '#';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param hash - The PDF parameters/hash.
|
||||
* @returns {string} The hyperlink to the PDF object.
|
||||
|
@ -455,18 +461,22 @@ class SimpleLinkService {
|
|||
getAnchorUrl(hash) {
|
||||
return '#';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} hash
|
||||
*/
|
||||
setHash(hash) {}
|
||||
|
||||
/**
|
||||
* @param {string} action
|
||||
*/
|
||||
executeNamedAction(action) {}
|
||||
|
||||
/**
|
||||
* @param {Object} params
|
||||
*/
|
||||
onFileAttachmentAnnotation({ id, filename, content, }) {}
|
||||
|
||||
/**
|
||||
* @param {number} pageNum - page number.
|
||||
* @param {Object} pageRef - reference to the page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue