mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Selection working
This commit is contained in:
parent
6c5d2ac88b
commit
e7d08e3a98
4 changed files with 117 additions and 22 deletions
|
@ -475,9 +475,9 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
|
|||
canvas.mozOpaque = true;
|
||||
div.appendChild(canvas);
|
||||
|
||||
var textDiv = document.createElement('div');
|
||||
textDiv.className = 'textLayer';
|
||||
div.appendChild(textDiv);
|
||||
var textLayer = document.createElement('div');
|
||||
textLayer.className = 'textLayer';
|
||||
div.appendChild(textLayer);
|
||||
|
||||
var scale = this.scale;
|
||||
canvas.width = pageWidth * scale;
|
||||
|
@ -491,7 +491,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
|
|||
ctx.translate(-this.x * scale, -this.y * scale);
|
||||
|
||||
stats.begin = Date.now();
|
||||
this.content.startRendering(ctx, this.updateStats, textDiv, scale);
|
||||
this.content.startRendering(ctx, this.updateStats, textLayer, scale);
|
||||
|
||||
setupLinks(this.content, this.scale);
|
||||
div.setAttribute('data-loaded', true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue