interfaces.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * Javascript code in this page
  4. *
  5. * Copyright 2021 Mozilla Foundation
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * @licend The above is the entire license notice for the
  20. * Javascript code in this page
  21. */
  22. "use strict";
  23. Object.defineProperty(exports, "__esModule", {
  24. value: true
  25. });
  26. exports.IRenderableView = exports.IPDFXfaLayerFactory = exports.IPDFTextLayerFactory = exports.IPDFStructTreeLayerFactory = exports.IPDFLinkService = exports.IPDFHistory = exports.IPDFAnnotationLayerFactory = exports.IL10n = void 0;
  27. class IPDFLinkService {
  28. get pagesCount() {}
  29. get page() {}
  30. set page(value) {}
  31. get rotation() {}
  32. set rotation(value) {}
  33. get externalLinkEnabled() {}
  34. set externalLinkEnabled(value) {}
  35. async goToDestination(dest) {}
  36. goToPage(val) {}
  37. getDestinationHash(dest) {}
  38. getAnchorUrl(hash) {}
  39. setHash(hash) {}
  40. executeNamedAction(action) {}
  41. cachePageRef(pageNum, pageRef) {}
  42. isPageVisible(pageNumber) {}
  43. isPageCached(pageNumber) {}
  44. }
  45. exports.IPDFLinkService = IPDFLinkService;
  46. class IPDFHistory {
  47. initialize({
  48. fingerprint,
  49. resetHistory = false,
  50. updateUrl = false
  51. }) {}
  52. reset() {}
  53. push({
  54. namedDest = null,
  55. explicitDest,
  56. pageNumber
  57. }) {}
  58. pushPage(pageNumber) {}
  59. pushCurrentPosition() {}
  60. back() {}
  61. forward() {}
  62. }
  63. exports.IPDFHistory = IPDFHistory;
  64. class IRenderableView {
  65. get renderingId() {}
  66. get renderingState() {}
  67. draw() {}
  68. resume() {}
  69. }
  70. exports.IRenderableView = IRenderableView;
  71. class IPDFTextLayerFactory {
  72. createTextLayerBuilder(textLayerDiv, pageIndex, viewport, enhanceTextSelection = false, eventBus) {}
  73. }
  74. exports.IPDFTextLayerFactory = IPDFTextLayerFactory;
  75. class IPDFAnnotationLayerFactory {
  76. createAnnotationLayerBuilder(pageDiv, pdfPage, annotationStorage = null, imageResourcesPath = "", renderInteractiveForms = true, l10n = undefined, enableScripting = false, hasJSActionsPromise = null, mouseState = null) {}
  77. }
  78. exports.IPDFAnnotationLayerFactory = IPDFAnnotationLayerFactory;
  79. class IPDFXfaLayerFactory {
  80. createXfaLayerBuilder(pageDiv, pdfPage) {}
  81. }
  82. exports.IPDFXfaLayerFactory = IPDFXfaLayerFactory;
  83. class IPDFStructTreeLayerFactory {
  84. createStructTreeLayerBuilder(pdfPage) {}
  85. }
  86. exports.IPDFStructTreeLayerFactory = IPDFStructTreeLayerFactory;
  87. class IL10n {
  88. async getLanguage() {}
  89. async getDirection() {}
  90. async get(key, args, fallback) {}
  91. async translate(element) {}
  92. }
  93. exports.IL10n = IL10n;