PdfManager.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* eslint-disable
  2. no-undef,
  3. no-unused-vars,
  4. */
  5. // TODO: This file was created by bulk-decaffeinate.
  6. // Fix any style issues and re-enable lint.
  7. /*
  8. * decaffeinate suggestions:
  9. * DS102: Remove unnecessary code created because of implicit returns
  10. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  11. */
  12. define([
  13. 'ide/pdf/controllers/PdfController',
  14. 'ide/pdf/controllers/PdfViewToggleController',
  15. 'ide/pdfng/directives/pdfJs'
  16. ], function() {
  17. let PdfManager
  18. return (PdfManager = class PdfManager {
  19. constructor(ide, $scope) {
  20. this.ide = ide
  21. this.$scope = $scope
  22. this.$scope.pdf = {
  23. url: null, // Pdf Url
  24. error: false, // Server error
  25. timeout: false, // Server timed out
  26. failure: false, // PDF failed to compile
  27. compiling: false,
  28. uncompiled: true,
  29. logEntries: [],
  30. logEntryAnnotations: {},
  31. rawLog: '',
  32. view: null, // 'pdf' 'logs'
  33. showRawLog: false,
  34. highlights: [],
  35. position: null
  36. }
  37. }
  38. })
  39. })