Lines Matching refs:_this

415       var _this = this;
448 _this.eventBus.dispatch('localized', {
449 source: _this
4540 var _this = this;
4560 _this.switchTool(cursorToolOnLoad);
4950 var _this = this;
4968 _this.renderHighestPriority();
5245 var _this = this;
5252 _this.toggleButton.title = msg;
5714 var _this = this;
5734 _this.verify();
5874 var _this = this;
5877 _this.downloadManager.downloadData(content, filename, '');
6026 var _this = this;
6052 _this._currentPageNumber = evt.pageNumber;
6055 _this._pagesRotation = evt.pagesRotation;
6061 _this._isNonMetricLocale = NON_METRIC_LOCALES.includes(locale);
6444 var _this = this;
6465 _this.toggle();
6468 _this.dispatchEvent('');
6473 if (e.target === _this.findField) {
6474 _this.dispatchEvent('again', e.shiftKey);
6480 _this.close();
6486 _this.dispatchEvent('again', true);
6489 _this.dispatchEvent('again', false);
6492 _this.dispatchEvent('highlightallchange');
6495 _this.dispatchEvent('casesensitivitychange');
6498 _this.dispatchEvent('entirewordchange');
6757 var _this = this;
6776 if (!_this._pdfDocument || pdfDocument && _this._pdfDocument !== pdfDocument) {
6780 _this._extractText();
6782 var findbarClosed = !_this._highlightMatches;
6783 var pendingTimeout = !!_this._findTimeout;
6785 if (_this._findTimeout) {
6786 clearTimeout(_this._findTimeout);
6787 _this._findTimeout = null;
6791 _this._findTimeout = setTimeout(function () {
6792 _this._nextMatch();
6794 _this._findTimeout = null;
6796 } else if (_this._dirtyMatch) {
6797 _this._nextMatch();
6799 _this._nextMatch();
6801 if (findbarClosed && _this._state.highlightAll) {
6802 _this._updateAllPages();
6806 _this._nextMatch();
6808 _this._highlightMatches = true;
6811 _this._updateAllPages();
6813 _this._nextMatch();
7555 var _this = this;
7571 _this._isViewerInPresentationMode = evt.active || evt.switchInProgress;
7574 _this._isPagesLoaded = !!evt.pagesCount;
8158 var _this = this;
8167 pageNumber = _this._cachedPageNumber(destRef);
8170 _this.pdfDocument.getPageIndex(destRef).then(function (pageIndex) {
8171 _this.cachePageRef(pageIndex + 1, destRef);
8190 if (!pageNumber || pageNumber < 1 || pageNumber > _this.pagesCount) {
8195 if (_this.pdfHistory) {
8196 _this.pdfHistory.pushCurrentPosition();
8198 _this.pdfHistory.push({
8205 _this.pdfViewer.scrollPageIntoView({
8213 _this.pdfDocument.getDestination(dest).then(function (destArray) {
8679 var _this = this;
8697 _this._toggleOutlineItem(div, shouldShowAll);
8868 var _this = this;
8893 _this.contextMenuOpen = false;
8895 _this.eventBus.dispatch('firstpage', {
8896 source: _this
8900 _this.contextMenuOpen = false;
8902 _this.eventBus.dispatch('lastpage', {
8903 source: _this
8907 _this.contextMenuOpen = false;
8909 _this.eventBus.dispatch('rotatecw', {
8910 source: _this
8914 _this.contextMenuOpen = false;
8916 _this.eventBus.dispatch('rotateccw', {
8917 source: _this
9321 var _this = this;
9347 _this.isRTL = dir === 'rtl';
9599 var _this = this;
9621 container: _this.container,
9624 linkService: _this.linkService,
9625 renderingQueue: _this.renderingQueue,
9627 l10n: _this.l10n
9630 _this._thumbnails.push(thumbnail);
9633 var thumbnailView = _this._thumbnails[_this._currentPageNumber - 1];
9969 var _this = this;
9988 _this.canvas.setAttribute('aria-label', msg);
10412 var _this = this;
10456 _this.eventBus.dispatch('baseviewerinit', {
10457 source: _this
11513 var _this = this;
11519 if (_this._cancelled) {
11527 div: _this.div,
11529 page: _this.pdfPage,
11530 imageResourcesPath: _this.imageResourcesPath,
11531 renderInteractiveForms: _this.renderInteractiveForms,
11532 linkService: _this.linkService,
11533 downloadManager: _this.downloadManager
11536 if (_this.div) {
11543 _this.div = document.createElement('div');
11544 _this.div.className = 'annotationLayer';
11546 _this.pageDiv.appendChild(_this.div);
11548 parameters.div = _this.div;
11552 _this.l10n.translate(_this.div);
11941 var _this = this;
11989 if (!_this.renderingQueue.isHighestPriority(_this)) {
11990 _this.renderingState = _pdf_rendering_queue.RenderingStates.PAUSED;
11992 _this.resume = function () {
11993 _this.renderingState = _pdf_rendering_queue.RenderingStates.RUNNING;
12014 if (paintTask === _this.paintTask) {
12015 _this.paintTask = null;
12023 _this.error = null;
12027 _this.renderingState = _pdf_rendering_queue.RenderingStates.FINISHED;
12029 if (_this.loadingIconDiv) {
12030 div.removeChild(_this.loadingIconDiv);
12031 delete _this.loadingIconDiv;
12034 _this._resetZoomLayer(true);
12036 _this.error = error;
12037 _this.stats = pdfPage.stats;
12039 if (_this.onAfterDraw) {
12040 _this.onAfterDraw();
12043 _this.eventBus.dispatch('pagerendered', {
12044 source: _this,
12045 pageNumber: _this.id,
12344 var _this = this;
12366 _this.textLayerDiv.appendChild(textLayerFrag);
12368 _this._finishRendering();
12370 _this._updateMatches();
12375 if (evt.pageIndex === _this.pageIdx || evt.pageIndex === -1) {
12376 _this._updateMatches();
12713 var _this = this;
12841_this.toolbarButtonContainer.classList.add('hiddenScrollModeButtons', 'hiddenSpreadModeButtons');
12843_this.toolbarButtonContainer.classList.remove('hiddenScrollModeButtons', 'hiddenSpreadModeButtons'…
13079 var _this;
13083_this = _possibleConstructorReturn(this, _getPrototypeOf(PDFSinglePageViewer).call(this, options));
13085 _this.eventBus.on('pagesinit', function (evt) {
13086 _this._ensurePageViewVisible();
13089 return _this;
13287 var _this = this;
13353 _this._localized();
13501 var _this = this;
13515 while (database.files.length >= _this.cacheSize) {
13525 if (branch.fingerprint === _this.fingerprint) {
13533 fingerprint: _this.fingerprint
13537 _this.file = database.files[index];
13538 _this.database = database;
13939 var _this = this;
13949 Object.defineProperty(_this, 'defaults', {
13955 _this.prefs = Object.assign(Object.create(null), defaults);
13956 return _this._readFromStorage(defaults);
13963 var defaultValue = _this.defaults[name],
13970 _this.prefs[name] = prefValue;
15451 var _this = this;
15456 _this.throwIfInactive();
15458 if (++_this.currentPage >= pageCount) {
15459 renderProgress(pageCount, pageCount, _this.l10n);
15464 var index = _this.currentPage;
15465 renderProgress(index, pageCount, _this.l10n);
15466 …renderPage(_this, _this.pdfDocument, index + 1, _this.pagesOverview[index]).then(_this.useRendered…