PdfManager.js 1.0 KB

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