overleaf/services/web/public/coffee/ide/pdf/PdfManager.coffee

23 lines
594 B
CoffeeScript
Raw Normal View History

2014-07-08 11:02:26 +00:00
define [
"ide/pdf/controllers/PdfController"
"ide/pdf/controllers/PdfViewToggleController"
2014-07-08 11:02:26 +00:00
"ide/pdf/directives/pdfJs"
"ide/pdfng/directives/pdfJs" # alternative incremental viewer
2014-07-08 11:02:26 +00:00
], () ->
class PdfManager
constructor: (@ide, @$scope) ->
@$scope.pdf =
url: null # Pdf Url
error: false # Server error
timeout: false # Server timed out
failure: false # PDF failed to compile
compiling: false
uncompiled: true
logEntries: []
logEntryAnnotations: {}
rawLog: ""
view: null # 'pdf' 'logs'
showRawLog: false
highlights: []
position: null