Merge pull request #10150 from Snuffleupagus/linkService-pagesCount

Add missing `pagesCount` getter to `IPDFLinkService` and `SimpleLinkService`
This commit is contained in:
Tim van der Meij 2018-10-11 22:37:34 +02:00 committed by GitHub
commit 06c6503ba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,11 @@
* @interface
*/
class IPDFLinkService {
/**
* @returns {number}
*/
get pagesCount() {}
/**
* @returns {number}
*/

View File

@ -408,12 +408,22 @@ function isValidExplicitDestination(dest) {
return true;
}
/**
* @implements {IPDFLinkService}
*/
class SimpleLinkService {
constructor() {
this.externalLinkTarget = null;
this.externalLinkRel = null;
}
/**
* @returns {number}
*/
get pagesCount() {
return 0;
}
/**
* @returns {number}
*/