Merge pull request #5142 from yurydelendik/fix-ts-example
Fixes text-selection example
This commit is contained in:
commit
c3fb7ee79a
@ -561,7 +561,8 @@ var PageView = function pageView(container, id, scale,
|
||||
pageIndex: this.id - 1,
|
||||
lastScrollSource: PDFView,
|
||||
viewport: this.viewport,
|
||||
isViewerInPresentationMode: PresentationMode.active
|
||||
isViewerInPresentationMode: PresentationMode.active,
|
||||
findController: PDFView.findController
|
||||
}) : null;
|
||||
// TODO(mack): use data attributes to store these
|
||||
ctx._scaleX = outputScale.sx;
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFView, CustomStyle, scrollIntoView, PDFJS */
|
||||
/* globals CustomStyle, scrollIntoView, PDFJS */
|
||||
|
||||
'use strict';
|
||||
|
||||
@ -39,7 +39,7 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() {
|
||||
this.viewport = options.viewport;
|
||||
this.isViewerInPresentationMode = options.isViewerInPresentationMode;
|
||||
this.textDivs = [];
|
||||
this.findController = PDFView.findController || null;
|
||||
this.findController = options.findController || null;
|
||||
}
|
||||
|
||||
TextLayerBuilder.prototype = {
|
||||
|
@ -14,7 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFJS, PDFBug, FirefoxCom, Stats, Cache, CustomStyle, ProgressBar,
|
||||
/* globals PDFJS, PDFBug, FirefoxCom, Stats, Cache, ProgressBar,
|
||||
DownloadManager, getFileName, scrollIntoView, getPDFFileNameFromURL,
|
||||
PDFHistory, Preferences, SidebarView, ViewHistory, PageView,
|
||||
ThumbnailView, URL, noContextMenuHandler, SecondaryToolbar,
|
||||
|
Loading…
Reference in New Issue
Block a user