mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 09:01:53 +00:00
replicate the pdflistview classes in pdfng viewer
This commit is contained in:
parent
a15ee57d77
commit
21e5fb08cd
2 changed files with 7 additions and 7 deletions
|
@ -4,10 +4,12 @@ app.directive 'pdfPage', ['$timeout', ($timeout) ->
|
|||
{
|
||||
require: '^pdfViewer',
|
||||
template: '''
|
||||
<div class="pdf-canvas"></div>
|
||||
<div class="plv-text-layer text-layer"></div>
|
||||
<div class="plv-annotations-layer annotations-layer"></div>
|
||||
<div class="plv-highlights-layer highlights-layer"></div>
|
||||
<div class="plv-page-view page-view">
|
||||
<div class="pdf-canvas"></div>
|
||||
<div class="plv-text-layer text-layer"></div>
|
||||
<div class="plv-annotations-layer annotations-layer"></div>
|
||||
<div class="plv-highlights-layer highlights-layer"></div>
|
||||
</div>
|
||||
'''
|
||||
link: (scope, element, attrs, ctrl) ->
|
||||
canvasElement = $(element).find('.pdf-canvas')
|
||||
|
|
|
@ -188,9 +188,7 @@ app.directive 'pdfViewer', ['$q', '$timeout', ($q, $timeout) ->
|
|||
"dblClickCallback": "="
|
||||
}
|
||||
template: """
|
||||
<div>
|
||||
<div data-pdf-page class='pdf-page-container plv-page-view page-view' ng-repeat='page in pages'></div>
|
||||
<div>
|
||||
<div data-pdf-page class='pdf-page-container page-container' ng-repeat='page in pages'></div>
|
||||
"""
|
||||
link: (scope, element, attrs, ctrl) ->
|
||||
console.log 'in pdfViewer element is', element
|
||||
|
|
Loading…
Reference in a new issue