Add a enhanceTextSelection preference to the viewer

This commit is contained in:
Jonas Jenwald 2016-09-02 13:17:40 +02:00
parent ffb876fdf4
commit 15e45d772f
4 changed files with 14 additions and 6 deletions

View file

@ -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();
}