interfaces.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * Javascript code in this page
  4. *
  5. * Copyright 2020 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.IL10n = exports.IPDFAnnotationLayerFactory = exports.IPDFTextLayerFactory = exports.IRenderableView = exports.IPDFHistory = exports.IPDFLinkService = 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. navigateTo(dest) {}
  36. getDestinationHash(dest) {}
  37. getAnchorUrl(hash) {}
  38. setHash(hash) {}
  39. executeNamedAction(action) {}
  40. cachePageRef(pageNum, pageRef) {}
  41. isPageVisible(pageNumber) {}
  42. }
  43. exports.IPDFLinkService = IPDFLinkService;
  44. class IPDFHistory {
  45. initialize({
  46. fingerprint,
  47. resetHistory = false,
  48. updateUrl = false
  49. }) {}
  50. reset() {}
  51. push({
  52. namedDest = null,
  53. explicitDest,
  54. pageNumber
  55. }) {}
  56. pushCurrentPosition() {}
  57. back() {}
  58. forward() {}
  59. }
  60. exports.IPDFHistory = IPDFHistory;
  61. class IRenderableView {
  62. get renderingId() {}
  63. get renderingState() {}
  64. draw() {}
  65. resume() {}
  66. }
  67. exports.IRenderableView = IRenderableView;
  68. class IPDFTextLayerFactory {
  69. createTextLayerBuilder(textLayerDiv, pageIndex, viewport, enhanceTextSelection = false, eventBus) {}
  70. }
  71. exports.IPDFTextLayerFactory = IPDFTextLayerFactory;
  72. class IPDFAnnotationLayerFactory {
  73. createAnnotationLayerBuilder(pageDiv, pdfPage, annotationStorage = null, imageResourcesPath = "", renderInteractiveForms = true, l10n = undefined) {}
  74. }
  75. exports.IPDFAnnotationLayerFactory = IPDFAnnotationLayerFactory;
  76. class IL10n {
  77. async getLanguage() {}
  78. async getDirection() {}
  79. async get(key, args, fallback) {}
  80. async translate(element) {}
  81. }
  82. exports.IL10n = IL10n;