mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Add a enhanceTextSelection
preference to the viewer
This commit is contained in:
parent
ffb876fdf4
commit
15e45d772f
4 changed files with 14 additions and 6 deletions
|
@ -36,7 +36,7 @@
|
|||
* @property {PageViewport} viewport - The viewport of the text layer.
|
||||
* @property {PDFFindController} findController
|
||||
* @property {boolean} enhanceTextSelection - Option to turn on improved
|
||||
* text selection.
|
||||
* text selection. The default value is `false`.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -59,7 +59,7 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() {
|
|||
this.textDivs = [];
|
||||
this.findController = options.findController || null;
|
||||
this.textLayerRenderTask = null;
|
||||
this.enhanceTextSelection = options.enhanceTextSelection;
|
||||
this.enhanceTextSelection = options.enhanceTextSelection || false;
|
||||
this._bindMouse();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue