mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Add missing pagesCount
getter to IPDFLinkService
and SimpleLinkService
This commit is contained in:
parent
9e9426c354
commit
df8d9f45f9
2 changed files with 15 additions and 0 deletions
|
@ -20,6 +20,11 @@
|
||||||
* @interface
|
* @interface
|
||||||
*/
|
*/
|
||||||
class IPDFLinkService {
|
class IPDFLinkService {
|
||||||
|
/**
|
||||||
|
* @returns {number}
|
||||||
|
*/
|
||||||
|
get pagesCount() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {number}
|
* @returns {number}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -408,12 +408,22 @@ function isValidExplicitDestination(dest) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @implements {IPDFLinkService}
|
||||||
|
*/
|
||||||
class SimpleLinkService {
|
class SimpleLinkService {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.externalLinkTarget = null;
|
this.externalLinkTarget = null;
|
||||||
this.externalLinkRel = null;
|
this.externalLinkRel = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @returns {number}
|
||||||
|
*/
|
||||||
|
get pagesCount() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {number}
|
* @returns {number}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue