1
0
Fork 0
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:
Jonas Jenwald 2017-10-29 11:41:13 +01:00
parent 985c700bd5
commit 8f9d548874
3 changed files with 13 additions and 2 deletions

View file

@ -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.