interfaces.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * Javascript code in this page
  4. *
  5. * Copyright 2022 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.IPDFAnnotationLayerFactory = exports.IL10n = exports.IDownloadManager = 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. addLinkAttributes(link, url, newWindow = false) {}
  38. getDestinationHash(dest) {}
  39. getAnchorUrl(hash) {}
  40. setHash(hash) {}
  41. executeNamedAction(action) {}
  42. cachePageRef(pageNum, pageRef) {}
  43. isPageVisible(pageNumber) {}
  44. isPageCached(pageNumber) {}
  45. }
  46. exports.IPDFLinkService = IPDFLinkService;
  47. class IRenderableView {
  48. constructor() {
  49. this.resume = null;
  50. }
  51. get renderingId() {}
  52. get renderingState() {}
  53. draw() {}
  54. }
  55. exports.IRenderableView = IRenderableView;
  56. class IPDFTextLayerFactory {
  57. createTextLayerBuilder(textLayerDiv, pageIndex, viewport, enhanceTextSelection = false, eventBus, highlighter) {}
  58. }
  59. exports.IPDFTextLayerFactory = IPDFTextLayerFactory;
  60. class IPDFAnnotationLayerFactory {
  61. createAnnotationLayerBuilder(pageDiv, pdfPage, annotationStorage = null, imageResourcesPath = "", renderForms = true, l10n = undefined, enableScripting = false, hasJSActionsPromise = null, mouseState = null, fieldObjectsPromise = null, annotationCanvasMap = null) {}
  62. }
  63. exports.IPDFAnnotationLayerFactory = IPDFAnnotationLayerFactory;
  64. class IPDFXfaLayerFactory {
  65. createXfaLayerBuilder(pageDiv, pdfPage, annotationStorage = null, xfaHtml = null) {}
  66. }
  67. exports.IPDFXfaLayerFactory = IPDFXfaLayerFactory;
  68. class IPDFStructTreeLayerFactory {
  69. createStructTreeLayerBuilder(pdfPage) {}
  70. }
  71. exports.IPDFStructTreeLayerFactory = IPDFStructTreeLayerFactory;
  72. class IDownloadManager {
  73. downloadUrl(url, filename) {}
  74. downloadData(data, filename, contentType) {}
  75. openOrDownloadData(element, data, filename) {}
  76. download(blob, url, filename, sourceEventType = "download") {}
  77. }
  78. exports.IDownloadManager = IDownloadManager;
  79. class IL10n {
  80. async getLanguage() {}
  81. async getDirection() {}
  82. async get(key, args = null, fallback) {}
  83. async translate(element) {}
  84. }
  85. exports.IL10n = IL10n;