Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/embedpre.../assets/pdf/web
File: viewer.js
if (this.pdfLayerViewer) {
[17000] Fix | Delete
pdfViewer.optionalContentConfigPromise.then(optionalContentConfig => {
[17001] Fix | Delete
if (pdfDocument !== this.pdfDocument) {
[17002] Fix | Delete
return;
[17003] Fix | Delete
}
[17004] Fix | Delete
this.pdfLayerViewer.render({
[17005] Fix | Delete
optionalContentConfig,
[17006] Fix | Delete
pdfDocument
[17007] Fix | Delete
});
[17008] Fix | Delete
});
[17009] Fix | Delete
}
[17010] Fix | Delete
});
[17011] Fix | Delete
this._initializePageLabels(pdfDocument);
[17012] Fix | Delete
this._initializeMetadata(pdfDocument);
[17013] Fix | Delete
},
[17014] Fix | Delete
async _scriptingDocProperties(pdfDocument) {
[17015] Fix | Delete
if (!this.documentInfo) {
[17016] Fix | Delete
await new Promise(resolve => {
[17017] Fix | Delete
this.eventBus._on("metadataloaded", resolve, {
[17018] Fix | Delete
once: true
[17019] Fix | Delete
});
[17020] Fix | Delete
});
[17021] Fix | Delete
if (pdfDocument !== this.pdfDocument) {
[17022] Fix | Delete
return null;
[17023] Fix | Delete
}
[17024] Fix | Delete
}
[17025] Fix | Delete
if (!this._contentLength) {
[17026] Fix | Delete
await new Promise(resolve => {
[17027] Fix | Delete
this.eventBus._on("documentloaded", resolve, {
[17028] Fix | Delete
once: true
[17029] Fix | Delete
});
[17030] Fix | Delete
});
[17031] Fix | Delete
if (pdfDocument !== this.pdfDocument) {
[17032] Fix | Delete
return null;
[17033] Fix | Delete
}
[17034] Fix | Delete
}
[17035] Fix | Delete
return {
[17036] Fix | Delete
...this.documentInfo,
[17037] Fix | Delete
baseURL: this.baseUrl,
[17038] Fix | Delete
filesize: this._contentLength,
[17039] Fix | Delete
filename: this._docFilename,
[17040] Fix | Delete
metadata: this.metadata?.getRaw(),
[17041] Fix | Delete
authors: this.metadata?.get("dc:creator"),
[17042] Fix | Delete
numPages: this.pagesCount,
[17043] Fix | Delete
URL: this.url
[17044] Fix | Delete
};
[17045] Fix | Delete
},
[17046] Fix | Delete
async _initializeAutoPrint(pdfDocument, openActionPromise) {
[17047] Fix | Delete
const [openAction, jsActions] = await Promise.all([openActionPromise, this.pdfViewer.enableScripting ? null : pdfDocument.getJSActions()]);
[17048] Fix | Delete
if (pdfDocument !== this.pdfDocument) {
[17049] Fix | Delete
return;
[17050] Fix | Delete
}
[17051] Fix | Delete
let triggerAutoPrint = openAction?.action === "Print";
[17052] Fix | Delete
if (jsActions) {
[17053] Fix | Delete
console.warn("Warning: JavaScript support is not enabled");
[17054] Fix | Delete
for (const name in jsActions) {
[17055] Fix | Delete
if (triggerAutoPrint) {
[17056] Fix | Delete
break;
[17057] Fix | Delete
}
[17058] Fix | Delete
switch (name) {
[17059] Fix | Delete
case "WillClose":
[17060] Fix | Delete
case "WillSave":
[17061] Fix | Delete
case "DidSave":
[17062] Fix | Delete
case "WillPrint":
[17063] Fix | Delete
case "DidPrint":
[17064] Fix | Delete
continue;
[17065] Fix | Delete
}
[17066] Fix | Delete
triggerAutoPrint = jsActions[name].some(js => AutoPrintRegExp.test(js));
[17067] Fix | Delete
}
[17068] Fix | Delete
}
[17069] Fix | Delete
if (triggerAutoPrint) {
[17070] Fix | Delete
this.triggerPrinting();
[17071] Fix | Delete
}
[17072] Fix | Delete
},
[17073] Fix | Delete
async _initializeMetadata(pdfDocument) {
[17074] Fix | Delete
const {
[17075] Fix | Delete
info,
[17076] Fix | Delete
metadata,
[17077] Fix | Delete
contentDispositionFilename,
[17078] Fix | Delete
contentLength
[17079] Fix | Delete
} = await pdfDocument.getMetadata();
[17080] Fix | Delete
if (pdfDocument !== this.pdfDocument) {
[17081] Fix | Delete
return;
[17082] Fix | Delete
}
[17083] Fix | Delete
this.documentInfo = info;
[17084] Fix | Delete
this.metadata = metadata;
[17085] Fix | Delete
this._contentDispositionFilename ??= contentDispositionFilename;
[17086] Fix | Delete
this._contentLength ??= contentLength;
[17087] Fix | Delete
console.log(`PDF ${pdfDocument.fingerprints[0]} [${info.PDFFormatVersion} ` + `${(info.Producer || "-").trim()} / ${(info.Creator || "-").trim()}] ` + `(PDF.js: ${version || "?"} [${build || "?"}])`);
[17088] Fix | Delete
let pdfTitle = info.Title;
[17089] Fix | Delete
const metadataTitle = metadata?.get("dc:title");
[17090] Fix | Delete
if (metadataTitle) {
[17091] Fix | Delete
if (metadataTitle !== "Untitled" && !/[\uFFF0-\uFFFF]/g.test(metadataTitle)) {
[17092] Fix | Delete
pdfTitle = metadataTitle;
[17093] Fix | Delete
}
[17094] Fix | Delete
}
[17095] Fix | Delete
if (pdfTitle) {
[17096] Fix | Delete
this.setTitle(`${pdfTitle} - ${this._contentDispositionFilename || this._title}`);
[17097] Fix | Delete
} else if (this._contentDispositionFilename) {
[17098] Fix | Delete
this.setTitle(this._contentDispositionFilename);
[17099] Fix | Delete
}
[17100] Fix | Delete
if (info.IsXFAPresent && !info.IsAcroFormPresent && !pdfDocument.isPureXfa) {
[17101] Fix | Delete
if (pdfDocument.loadingParams.enableXfa) {
[17102] Fix | Delete
console.warn("Warning: XFA Foreground documents are not supported");
[17103] Fix | Delete
} else {
[17104] Fix | Delete
console.warn("Warning: XFA support is not enabled");
[17105] Fix | Delete
}
[17106] Fix | Delete
} else if ((info.IsAcroFormPresent || info.IsXFAPresent) && !this.pdfViewer.renderForms) {
[17107] Fix | Delete
console.warn("Warning: Interactive form support is not enabled");
[17108] Fix | Delete
}
[17109] Fix | Delete
if (info.IsSignaturesPresent) {
[17110] Fix | Delete
console.warn("Warning: Digital signatures validation is not supported");
[17111] Fix | Delete
}
[17112] Fix | Delete
this.eventBus.dispatch("metadataloaded", {
[17113] Fix | Delete
source: this
[17114] Fix | Delete
});
[17115] Fix | Delete
},
[17116] Fix | Delete
async _initializePageLabels(pdfDocument) {
[17117] Fix | Delete
const labels = await pdfDocument.getPageLabels();
[17118] Fix | Delete
if (pdfDocument !== this.pdfDocument) {
[17119] Fix | Delete
return;
[17120] Fix | Delete
}
[17121] Fix | Delete
if (!labels || AppOptions.get("disablePageLabels")) {
[17122] Fix | Delete
return;
[17123] Fix | Delete
}
[17124] Fix | Delete
const numLabels = labels.length;
[17125] Fix | Delete
let standardLabels = 0,
[17126] Fix | Delete
emptyLabels = 0;
[17127] Fix | Delete
for (let i = 0; i < numLabels; i++) {
[17128] Fix | Delete
const label = labels[i];
[17129] Fix | Delete
if (label === (i + 1).toString()) {
[17130] Fix | Delete
standardLabels++;
[17131] Fix | Delete
} else if (label === "") {
[17132] Fix | Delete
emptyLabels++;
[17133] Fix | Delete
} else {
[17134] Fix | Delete
break;
[17135] Fix | Delete
}
[17136] Fix | Delete
}
[17137] Fix | Delete
if (standardLabels >= numLabels || emptyLabels >= numLabels) {
[17138] Fix | Delete
return;
[17139] Fix | Delete
}
[17140] Fix | Delete
const {
[17141] Fix | Delete
pdfViewer,
[17142] Fix | Delete
pdfThumbnailViewer,
[17143] Fix | Delete
toolbar
[17144] Fix | Delete
} = this;
[17145] Fix | Delete
pdfViewer.setPageLabels(labels);
[17146] Fix | Delete
pdfThumbnailViewer?.setPageLabels(labels);
[17147] Fix | Delete
toolbar?.setPagesCount(numLabels, true);
[17148] Fix | Delete
toolbar?.setPageNumber(pdfViewer.currentPageNumber, pdfViewer.currentPageLabel);
[17149] Fix | Delete
},
[17150] Fix | Delete
_initializePdfHistory({
[17151] Fix | Delete
fingerprint,
[17152] Fix | Delete
viewOnLoad,
[17153] Fix | Delete
initialDest = null
[17154] Fix | Delete
}) {
[17155] Fix | Delete
if (!this.pdfHistory) {
[17156] Fix | Delete
return;
[17157] Fix | Delete
}
[17158] Fix | Delete
this.pdfHistory.initialize({
[17159] Fix | Delete
fingerprint,
[17160] Fix | Delete
resetHistory: viewOnLoad === ViewOnLoad.INITIAL,
[17161] Fix | Delete
updateUrl: AppOptions.get("historyUpdateUrl")
[17162] Fix | Delete
});
[17163] Fix | Delete
if (this.pdfHistory.initialBookmark) {
[17164] Fix | Delete
this.initialBookmark = this.pdfHistory.initialBookmark;
[17165] Fix | Delete
this.initialRotation = this.pdfHistory.initialRotation;
[17166] Fix | Delete
}
[17167] Fix | Delete
if (initialDest && !this.initialBookmark && viewOnLoad === ViewOnLoad.UNKNOWN) {
[17168] Fix | Delete
this.initialBookmark = JSON.stringify(initialDest);
[17169] Fix | Delete
this.pdfHistory.push({
[17170] Fix | Delete
explicitDest: initialDest,
[17171] Fix | Delete
pageNumber: null
[17172] Fix | Delete
});
[17173] Fix | Delete
}
[17174] Fix | Delete
},
[17175] Fix | Delete
_initializeAnnotationStorageCallbacks(pdfDocument) {
[17176] Fix | Delete
if (pdfDocument !== this.pdfDocument) {
[17177] Fix | Delete
return;
[17178] Fix | Delete
}
[17179] Fix | Delete
const {
[17180] Fix | Delete
annotationStorage
[17181] Fix | Delete
} = pdfDocument;
[17182] Fix | Delete
annotationStorage.onSetModified = () => {
[17183] Fix | Delete
window.addEventListener("beforeunload", beforeUnload);
[17184] Fix | Delete
this._annotationStorageModified = true;
[17185] Fix | Delete
};
[17186] Fix | Delete
annotationStorage.onResetModified = () => {
[17187] Fix | Delete
window.removeEventListener("beforeunload", beforeUnload);
[17188] Fix | Delete
delete this._annotationStorageModified;
[17189] Fix | Delete
};
[17190] Fix | Delete
annotationStorage.onAnnotationEditor = typeStr => {
[17191] Fix | Delete
this._hasAnnotationEditors = !!typeStr;
[17192] Fix | Delete
this.setTitle();
[17193] Fix | Delete
};
[17194] Fix | Delete
},
[17195] Fix | Delete
setInitialView(storedHash, {
[17196] Fix | Delete
rotation,
[17197] Fix | Delete
sidebarView,
[17198] Fix | Delete
scrollMode,
[17199] Fix | Delete
spreadMode
[17200] Fix | Delete
} = {}) {
[17201] Fix | Delete
const setRotation = angle => {
[17202] Fix | Delete
if (isValidRotation(angle)) {
[17203] Fix | Delete
this.pdfViewer.pagesRotation = angle;
[17204] Fix | Delete
}
[17205] Fix | Delete
};
[17206] Fix | Delete
const setViewerModes = (scroll, spread) => {
[17207] Fix | Delete
if (isValidScrollMode(scroll)) {
[17208] Fix | Delete
this.pdfViewer.scrollMode = scroll;
[17209] Fix | Delete
}
[17210] Fix | Delete
if (isValidSpreadMode(spread)) {
[17211] Fix | Delete
this.pdfViewer.spreadMode = spread;
[17212] Fix | Delete
}
[17213] Fix | Delete
};
[17214] Fix | Delete
this.isInitialViewSet = true;
[17215] Fix | Delete
this.pdfSidebar?.setInitialView(sidebarView);
[17216] Fix | Delete
setViewerModes(scrollMode, spreadMode);
[17217] Fix | Delete
if (this.initialBookmark) {
[17218] Fix | Delete
setRotation(this.initialRotation);
[17219] Fix | Delete
delete this.initialRotation;
[17220] Fix | Delete
this.pdfLinkService.setHash(this.initialBookmark);
[17221] Fix | Delete
this.initialBookmark = null;
[17222] Fix | Delete
} else if (storedHash) {
[17223] Fix | Delete
setRotation(rotation);
[17224] Fix | Delete
this.pdfLinkService.setHash(storedHash);
[17225] Fix | Delete
}
[17226] Fix | Delete
this.toolbar?.setPageNumber(this.pdfViewer.currentPageNumber, this.pdfViewer.currentPageLabel);
[17227] Fix | Delete
this.secondaryToolbar?.setPageNumber(this.pdfViewer.currentPageNumber);
[17228] Fix | Delete
if (!this.pdfViewer.currentScaleValue) {
[17229] Fix | Delete
this.pdfViewer.currentScaleValue = DEFAULT_SCALE_VALUE;
[17230] Fix | Delete
}
[17231] Fix | Delete
},
[17232] Fix | Delete
_cleanup() {
[17233] Fix | Delete
if (!this.pdfDocument) {
[17234] Fix | Delete
return;
[17235] Fix | Delete
}
[17236] Fix | Delete
this.pdfViewer.cleanup();
[17237] Fix | Delete
this.pdfThumbnailViewer?.cleanup();
[17238] Fix | Delete
this.pdfDocument.cleanup(AppOptions.get("fontExtraProperties"));
[17239] Fix | Delete
},
[17240] Fix | Delete
forceRendering() {
[17241] Fix | Delete
this.pdfRenderingQueue.printing = !!this.printService;
[17242] Fix | Delete
this.pdfRenderingQueue.isThumbnailViewEnabled = this.pdfSidebar?.visibleView === SidebarView.THUMBS;
[17243] Fix | Delete
this.pdfRenderingQueue.renderHighestPriority();
[17244] Fix | Delete
},
[17245] Fix | Delete
beforePrint() {
[17246] Fix | Delete
[17247] Fix | Delete
if (location.hash) {
[17248] Fix | Delete
let hash = location.hash;
[17249] Fix | Delete
let hashParams = new URLSearchParams(hash.substring(1));
[17250] Fix | Delete
if(hashParams.get('key') !== null) {
[17251] Fix | Delete
hashParams = '#' + atob(hashParams.get('key'));
[17252] Fix | Delete
hashParams = new URLSearchParams(hashParams.substring(1));
[17253] Fix | Delete
}
[17254] Fix | Delete
const element = document.querySelector('#download');
[17255] Fix | Delete
[17256] Fix | Delete
if((hashParams.get('download') === 'false' || hashParams.get('download') === '') || element.offsetParent === null){
[17257] Fix | Delete
return false;
[17258] Fix | Delete
}
[17259] Fix | Delete
} // added by EP developer
[17260] Fix | Delete
[17261] Fix | Delete
this._printAnnotationStoragePromise = this.pdfScriptingManager.dispatchWillPrint().catch(() => {}).then(() => this.pdfDocument?.annotationStorage.print);
[17262] Fix | Delete
if (this.printService) {
[17263] Fix | Delete
return;
[17264] Fix | Delete
}
[17265] Fix | Delete
if (!this.supportsPrinting) {
[17266] Fix | Delete
this._otherError("pdfjs-printing-not-supported");
[17267] Fix | Delete
return;
[17268] Fix | Delete
}
[17269] Fix | Delete
if (!this.pdfViewer.pageViewsReady) {
[17270] Fix | Delete
this.l10n.get("pdfjs-printing-not-ready").then(msg => {
[17271] Fix | Delete
window.alert(msg);
[17272] Fix | Delete
});
[17273] Fix | Delete
return;
[17274] Fix | Delete
}
[17275] Fix | Delete
this.printService = PDFPrintServiceFactory.createPrintService({
[17276] Fix | Delete
pdfDocument: this.pdfDocument,
[17277] Fix | Delete
pagesOverview: this.pdfViewer.getPagesOverview(),
[17278] Fix | Delete
printContainer: this.appConfig.printContainer,
[17279] Fix | Delete
printResolution: AppOptions.get("printResolution"),
[17280] Fix | Delete
printAnnotationStoragePromise: this._printAnnotationStoragePromise
[17281] Fix | Delete
});
[17282] Fix | Delete
this.forceRendering();
[17283] Fix | Delete
this.setTitle();
[17284] Fix | Delete
this.printService.layout();
[17285] Fix | Delete
if (this._hasAnnotationEditors) {
[17286] Fix | Delete
this.externalServices.reportTelemetry({
[17287] Fix | Delete
type: "editing",
[17288] Fix | Delete
data: {
[17289] Fix | Delete
type: "print",
[17290] Fix | Delete
stats: this.pdfDocument?.annotationStorage.editorStats
[17291] Fix | Delete
}
[17292] Fix | Delete
});
[17293] Fix | Delete
}
[17294] Fix | Delete
},
[17295] Fix | Delete
afterPrint() {
[17296] Fix | Delete
[17297] Fix | Delete
if (location.hash) {
[17298] Fix | Delete
let hash = location.hash;
[17299] Fix | Delete
let hashParams = new URLSearchParams(hash.substring(1));
[17300] Fix | Delete
[17301] Fix | Delete
if(hashParams.get('key') !== null) {
[17302] Fix | Delete
hashParams = '#' + atob(hashParams.get('key'));
[17303] Fix | Delete
hashParams = new URLSearchParams(hashParams.substring(1));
[17304] Fix | Delete
}
[17305] Fix | Delete
[17306] Fix | Delete
if(hashParams.get('download') === 'false' || hashParams.get('download') === ''){
[17307] Fix | Delete
return false;
[17308] Fix | Delete
}
[17309] Fix | Delete
} // added by EP developer
[17310] Fix | Delete
[17311] Fix | Delete
if (this._printAnnotationStoragePromise) {
[17312] Fix | Delete
this._printAnnotationStoragePromise.then(() => {
[17313] Fix | Delete
this.pdfScriptingManager.dispatchDidPrint();
[17314] Fix | Delete
});
[17315] Fix | Delete
this._printAnnotationStoragePromise = null;
[17316] Fix | Delete
}
[17317] Fix | Delete
if (this.printService) {
[17318] Fix | Delete
this.printService.destroy();
[17319] Fix | Delete
this.printService = null;
[17320] Fix | Delete
this.pdfDocument?.annotationStorage.resetModified();
[17321] Fix | Delete
}
[17322] Fix | Delete
this.forceRendering();
[17323] Fix | Delete
this.setTitle();
[17324] Fix | Delete
},
[17325] Fix | Delete
rotatePages(delta) {
[17326] Fix | Delete
this.pdfViewer.pagesRotation += delta;
[17327] Fix | Delete
},
[17328] Fix | Delete
requestPresentationMode() {
[17329] Fix | Delete
this.pdfPresentationMode?.request();
[17330] Fix | Delete
},
[17331] Fix | Delete
triggerPrinting() {
[17332] Fix | Delete
if (!this.supportsPrinting) {
[17333] Fix | Delete
return;
[17334] Fix | Delete
}
[17335] Fix | Delete
window.print();
[17336] Fix | Delete
},
[17337] Fix | Delete
bindEvents() {
[17338] Fix | Delete
if (this._eventBusAbortController) {
[17339] Fix | Delete
return;
[17340] Fix | Delete
}
[17341] Fix | Delete
this._eventBusAbortController = new AbortController();
[17342] Fix | Delete
const {
[17343] Fix | Delete
eventBus,
[17344] Fix | Delete
_eventBusAbortController: {
[17345] Fix | Delete
signal
[17346] Fix | Delete
}
[17347] Fix | Delete
} = this;
[17348] Fix | Delete
eventBus._on("resize", webViewerResize, {
[17349] Fix | Delete
signal
[17350] Fix | Delete
});
[17351] Fix | Delete
eventBus._on("hashchange", webViewerHashchange, {
[17352] Fix | Delete
signal
[17353] Fix | Delete
});
[17354] Fix | Delete
eventBus._on("beforeprint", this.beforePrint.bind(this), {
[17355] Fix | Delete
signal
[17356] Fix | Delete
});
[17357] Fix | Delete
eventBus._on("afterprint", this.afterPrint.bind(this), {
[17358] Fix | Delete
signal
[17359] Fix | Delete
});
[17360] Fix | Delete
eventBus._on("pagerender", webViewerPageRender, {
[17361] Fix | Delete
signal
[17362] Fix | Delete
});
[17363] Fix | Delete
eventBus._on("pagerendered", webViewerPageRendered, {
[17364] Fix | Delete
signal
[17365] Fix | Delete
});
[17366] Fix | Delete
eventBus._on("updateviewarea", webViewerUpdateViewarea, {
[17367] Fix | Delete
signal
[17368] Fix | Delete
});
[17369] Fix | Delete
eventBus._on("pagechanging", webViewerPageChanging, {
[17370] Fix | Delete
signal
[17371] Fix | Delete
});
[17372] Fix | Delete
eventBus._on("scalechanging", webViewerScaleChanging, {
[17373] Fix | Delete
signal
[17374] Fix | Delete
});
[17375] Fix | Delete
eventBus._on("rotationchanging", webViewerRotationChanging, {
[17376] Fix | Delete
signal
[17377] Fix | Delete
});
[17378] Fix | Delete
eventBus._on("sidebarviewchanged", webViewerSidebarViewChanged, {
[17379] Fix | Delete
signal
[17380] Fix | Delete
});
[17381] Fix | Delete
eventBus._on("pagemode", webViewerPageMode, {
[17382] Fix | Delete
signal
[17383] Fix | Delete
});
[17384] Fix | Delete
eventBus._on("namedaction", webViewerNamedAction, {
[17385] Fix | Delete
signal
[17386] Fix | Delete
});
[17387] Fix | Delete
eventBus._on("presentationmodechanged", webViewerPresentationModeChanged, {
[17388] Fix | Delete
signal
[17389] Fix | Delete
});
[17390] Fix | Delete
eventBus._on("presentationmode", webViewerPresentationMode, {
[17391] Fix | Delete
signal
[17392] Fix | Delete
});
[17393] Fix | Delete
eventBus._on("switchannotationeditormode", webViewerSwitchAnnotationEditorMode, {
[17394] Fix | Delete
signal
[17395] Fix | Delete
});
[17396] Fix | Delete
eventBus._on("switchannotationeditorparams", webViewerSwitchAnnotationEditorParams, {
[17397] Fix | Delete
signal
[17398] Fix | Delete
});
[17399] Fix | Delete
eventBus._on("print", webViewerPrint, {
[17400] Fix | Delete
signal
[17401] Fix | Delete
});
[17402] Fix | Delete
eventBus._on("download", webViewerDownload, {
[17403] Fix | Delete
signal
[17404] Fix | Delete
});
[17405] Fix | Delete
eventBus._on("firstpage", webViewerFirstPage, {
[17406] Fix | Delete
signal
[17407] Fix | Delete
});
[17408] Fix | Delete
eventBus._on("lastpage", webViewerLastPage, {
[17409] Fix | Delete
signal
[17410] Fix | Delete
});
[17411] Fix | Delete
eventBus._on("nextpage", webViewerNextPage, {
[17412] Fix | Delete
signal
[17413] Fix | Delete
});
[17414] Fix | Delete
eventBus._on("previouspage", webViewerPreviousPage, {
[17415] Fix | Delete
signal
[17416] Fix | Delete
});
[17417] Fix | Delete
eventBus._on("zoomin", webViewerZoomIn, {
[17418] Fix | Delete
signal
[17419] Fix | Delete
});
[17420] Fix | Delete
eventBus._on("zoomout", webViewerZoomOut, {
[17421] Fix | Delete
signal
[17422] Fix | Delete
});
[17423] Fix | Delete
eventBus._on("zoomreset", webViewerZoomReset, {
[17424] Fix | Delete
signal
[17425] Fix | Delete
});
[17426] Fix | Delete
eventBus._on("pagenumberchanged", webViewerPageNumberChanged, {
[17427] Fix | Delete
signal
[17428] Fix | Delete
});
[17429] Fix | Delete
eventBus._on("scalechanged", webViewerScaleChanged, {
[17430] Fix | Delete
signal
[17431] Fix | Delete
});
[17432] Fix | Delete
eventBus._on("rotatecw", webViewerRotateCw, {
[17433] Fix | Delete
signal
[17434] Fix | Delete
});
[17435] Fix | Delete
eventBus._on("rotateccw", webViewerRotateCcw, {
[17436] Fix | Delete
signal
[17437] Fix | Delete
});
[17438] Fix | Delete
eventBus._on("optionalcontentconfig", webViewerOptionalContentConfig, {
[17439] Fix | Delete
signal
[17440] Fix | Delete
});
[17441] Fix | Delete
eventBus._on("switchscrollmode", webViewerSwitchScrollMode, {
[17442] Fix | Delete
signal
[17443] Fix | Delete
});
[17444] Fix | Delete
eventBus._on("scrollmodechanged", webViewerScrollModeChanged, {
[17445] Fix | Delete
signal
[17446] Fix | Delete
});
[17447] Fix | Delete
eventBus._on("switchspreadmode", webViewerSwitchSpreadMode, {
[17448] Fix | Delete
signal
[17449] Fix | Delete
});
[17450] Fix | Delete
eventBus._on("spreadmodechanged", webViewerSpreadModeChanged, {
[17451] Fix | Delete
signal
[17452] Fix | Delete
});
[17453] Fix | Delete
eventBus._on("documentproperties", webViewerDocumentProperties, {
[17454] Fix | Delete
signal
[17455] Fix | Delete
});
[17456] Fix | Delete
eventBus._on("findfromurlhash", webViewerFindFromUrlHash, {
[17457] Fix | Delete
signal
[17458] Fix | Delete
});
[17459] Fix | Delete
eventBus._on("updatefindmatchescount", webViewerUpdateFindMatchesCount, {
[17460] Fix | Delete
signal
[17461] Fix | Delete
});
[17462] Fix | Delete
eventBus._on("updatefindcontrolstate", webViewerUpdateFindControlState, {
[17463] Fix | Delete
signal
[17464] Fix | Delete
});
[17465] Fix | Delete
eventBus._on("fileinputchange", webViewerFileInputChange, {
[17466] Fix | Delete
signal
[17467] Fix | Delete
});
[17468] Fix | Delete
eventBus._on("openfile", webViewerOpenFile, {
[17469] Fix | Delete
signal
[17470] Fix | Delete
});
[17471] Fix | Delete
},
[17472] Fix | Delete
bindWindowEvents() {
[17473] Fix | Delete
if (this._windowAbortController) {
[17474] Fix | Delete
return;
[17475] Fix | Delete
}
[17476] Fix | Delete
this._windowAbortController = new AbortController();
[17477] Fix | Delete
const {
[17478] Fix | Delete
eventBus,
[17479] Fix | Delete
appConfig: {
[17480] Fix | Delete
mainContainer
[17481] Fix | Delete
},
[17482] Fix | Delete
_windowAbortController: {
[17483] Fix | Delete
signal
[17484] Fix | Delete
}
[17485] Fix | Delete
} = this;
[17486] Fix | Delete
function addWindowResolutionChange(evt = null) {
[17487] Fix | Delete
if (evt) {
[17488] Fix | Delete
webViewerResolutionChange(evt);
[17489] Fix | Delete
}
[17490] Fix | Delete
const mediaQueryList = window.matchMedia(`(resolution: ${window.devicePixelRatio || 1}dppx)`);
[17491] Fix | Delete
mediaQueryList.addEventListener("change", addWindowResolutionChange, {
[17492] Fix | Delete
once: true,
[17493] Fix | Delete
signal
[17494] Fix | Delete
});
[17495] Fix | Delete
}
[17496] Fix | Delete
addWindowResolutionChange();
[17497] Fix | Delete
window.addEventListener("visibilitychange", webViewerVisibilityChange, {
[17498] Fix | Delete
signal
[17499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function