mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
replicate the pdflistview classes in pdfng viewer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user