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/wp-conte.../plugins/embedpre.../assets/pdf/build
File: script.js
editor.setParent(null);
[24000] Fix | Delete
editor.isAttachedToDOM = false;
[24001] Fix | Delete
editor.div.remove();
[24002] Fix | Delete
}
[24003] Fix | Delete
this.div = null;
[24004] Fix | Delete
this.#editors.clear();
[24005] Fix | Delete
this.#uiManager.removeLayer(this);
[24006] Fix | Delete
}
[24007] Fix | Delete
#cleanup() {
[24008] Fix | Delete
this.#isCleaningUp = true;
[24009] Fix | Delete
for (const editor of this.#editors.values()) {
[24010] Fix | Delete
if (editor.isEmpty()) {
[24011] Fix | Delete
editor.remove();
[24012] Fix | Delete
}
[24013] Fix | Delete
}
[24014] Fix | Delete
this.#isCleaningUp = false;
[24015] Fix | Delete
}
[24016] Fix | Delete
render({
[24017] Fix | Delete
viewport
[24018] Fix | Delete
}) {
[24019] Fix | Delete
this.viewport = viewport;
[24020] Fix | Delete
setLayerDimensions(this.div, viewport);
[24021] Fix | Delete
for (const editor of this.#uiManager.getEditors(this.pageIndex)) {
[24022] Fix | Delete
this.add(editor);
[24023] Fix | Delete
editor.rebuild();
[24024] Fix | Delete
}
[24025] Fix | Delete
this.updateMode();
[24026] Fix | Delete
}
[24027] Fix | Delete
update({
[24028] Fix | Delete
viewport
[24029] Fix | Delete
}) {
[24030] Fix | Delete
this.#uiManager.commitOrRemove();
[24031] Fix | Delete
this.#cleanup();
[24032] Fix | Delete
const oldRotation = this.viewport.rotation;
[24033] Fix | Delete
const rotation = viewport.rotation;
[24034] Fix | Delete
this.viewport = viewport;
[24035] Fix | Delete
setLayerDimensions(this.div, {
[24036] Fix | Delete
rotation
[24037] Fix | Delete
});
[24038] Fix | Delete
if (oldRotation !== rotation) {
[24039] Fix | Delete
for (const editor of this.#editors.values()) {
[24040] Fix | Delete
editor.rotate(rotation);
[24041] Fix | Delete
}
[24042] Fix | Delete
}
[24043] Fix | Delete
this.addInkEditorIfNeeded(false);
[24044] Fix | Delete
}
[24045] Fix | Delete
get pageDimensions() {
[24046] Fix | Delete
const {
[24047] Fix | Delete
pageWidth,
[24048] Fix | Delete
pageHeight
[24049] Fix | Delete
} = this.viewport.rawDims;
[24050] Fix | Delete
return [pageWidth, pageHeight];
[24051] Fix | Delete
}
[24052] Fix | Delete
get scale() {
[24053] Fix | Delete
return this.#uiManager.viewParameters.realScale;
[24054] Fix | Delete
}
[24055] Fix | Delete
}
[24056] Fix | Delete
[24057] Fix | Delete
;// CONCATENATED MODULE: ./src/display/draw_layer.js
[24058] Fix | Delete
[24059] Fix | Delete
[24060] Fix | Delete
class DrawLayer {
[24061] Fix | Delete
#parent = null;
[24062] Fix | Delete
#id = 0;
[24063] Fix | Delete
#mapping = new Map();
[24064] Fix | Delete
#toUpdate = new Map();
[24065] Fix | Delete
constructor({
[24066] Fix | Delete
pageIndex
[24067] Fix | Delete
}) {
[24068] Fix | Delete
this.pageIndex = pageIndex;
[24069] Fix | Delete
}
[24070] Fix | Delete
setParent(parent) {
[24071] Fix | Delete
if (!this.#parent) {
[24072] Fix | Delete
this.#parent = parent;
[24073] Fix | Delete
return;
[24074] Fix | Delete
}
[24075] Fix | Delete
if (this.#parent !== parent) {
[24076] Fix | Delete
if (this.#mapping.size > 0) {
[24077] Fix | Delete
for (const root of this.#mapping.values()) {
[24078] Fix | Delete
root.remove();
[24079] Fix | Delete
parent.append(root);
[24080] Fix | Delete
}
[24081] Fix | Delete
}
[24082] Fix | Delete
this.#parent = parent;
[24083] Fix | Delete
}
[24084] Fix | Delete
}
[24085] Fix | Delete
static get _svgFactory() {
[24086] Fix | Delete
return shadow(this, "_svgFactory", new DOMSVGFactory());
[24087] Fix | Delete
}
[24088] Fix | Delete
static #setBox(element, {
[24089] Fix | Delete
x = 0,
[24090] Fix | Delete
y = 0,
[24091] Fix | Delete
width = 1,
[24092] Fix | Delete
height = 1
[24093] Fix | Delete
} = {}) {
[24094] Fix | Delete
const {
[24095] Fix | Delete
style
[24096] Fix | Delete
} = element;
[24097] Fix | Delete
style.top = `${100 * y}%`;
[24098] Fix | Delete
style.left = `${100 * x}%`;
[24099] Fix | Delete
style.width = `${100 * width}%`;
[24100] Fix | Delete
style.height = `${100 * height}%`;
[24101] Fix | Delete
}
[24102] Fix | Delete
#createSVG(box) {
[24103] Fix | Delete
const svg = DrawLayer._svgFactory.create(1, 1, true);
[24104] Fix | Delete
this.#parent.append(svg);
[24105] Fix | Delete
svg.setAttribute("aria-hidden", true);
[24106] Fix | Delete
DrawLayer.#setBox(svg, box);
[24107] Fix | Delete
return svg;
[24108] Fix | Delete
}
[24109] Fix | Delete
#createClipPath(defs, pathId) {
[24110] Fix | Delete
const clipPath = DrawLayer._svgFactory.createElement("clipPath");
[24111] Fix | Delete
defs.append(clipPath);
[24112] Fix | Delete
const clipPathId = `clip_${pathId}`;
[24113] Fix | Delete
clipPath.setAttribute("id", clipPathId);
[24114] Fix | Delete
clipPath.setAttribute("clipPathUnits", "objectBoundingBox");
[24115] Fix | Delete
const clipPathUse = DrawLayer._svgFactory.createElement("use");
[24116] Fix | Delete
clipPath.append(clipPathUse);
[24117] Fix | Delete
clipPathUse.setAttribute("href", `#${pathId}`);
[24118] Fix | Delete
clipPathUse.classList.add("clip");
[24119] Fix | Delete
return clipPathId;
[24120] Fix | Delete
}
[24121] Fix | Delete
highlight(outlines, color, opacity, isPathUpdatable = false) {
[24122] Fix | Delete
const id = this.#id++;
[24123] Fix | Delete
const root = this.#createSVG(outlines.box);
[24124] Fix | Delete
root.classList.add("highlight");
[24125] Fix | Delete
if (outlines.free) {
[24126] Fix | Delete
root.classList.add("free");
[24127] Fix | Delete
}
[24128] Fix | Delete
const defs = DrawLayer._svgFactory.createElement("defs");
[24129] Fix | Delete
root.append(defs);
[24130] Fix | Delete
const path = DrawLayer._svgFactory.createElement("path");
[24131] Fix | Delete
defs.append(path);
[24132] Fix | Delete
const pathId = `path_p${this.pageIndex}_${id}`;
[24133] Fix | Delete
path.setAttribute("id", pathId);
[24134] Fix | Delete
path.setAttribute("d", outlines.toSVGPath());
[24135] Fix | Delete
if (isPathUpdatable) {
[24136] Fix | Delete
this.#toUpdate.set(id, path);
[24137] Fix | Delete
}
[24138] Fix | Delete
const clipPathId = this.#createClipPath(defs, pathId);
[24139] Fix | Delete
const use = DrawLayer._svgFactory.createElement("use");
[24140] Fix | Delete
root.append(use);
[24141] Fix | Delete
root.setAttribute("fill", color);
[24142] Fix | Delete
root.setAttribute("fill-opacity", opacity);
[24143] Fix | Delete
use.setAttribute("href", `#${pathId}`);
[24144] Fix | Delete
this.#mapping.set(id, root);
[24145] Fix | Delete
return {
[24146] Fix | Delete
id,
[24147] Fix | Delete
clipPathId: `url(#${clipPathId})`
[24148] Fix | Delete
};
[24149] Fix | Delete
}
[24150] Fix | Delete
highlightOutline(outlines) {
[24151] Fix | Delete
const id = this.#id++;
[24152] Fix | Delete
const root = this.#createSVG(outlines.box);
[24153] Fix | Delete
root.classList.add("highlightOutline");
[24154] Fix | Delete
const defs = DrawLayer._svgFactory.createElement("defs");
[24155] Fix | Delete
root.append(defs);
[24156] Fix | Delete
const path = DrawLayer._svgFactory.createElement("path");
[24157] Fix | Delete
defs.append(path);
[24158] Fix | Delete
const pathId = `path_p${this.pageIndex}_${id}`;
[24159] Fix | Delete
path.setAttribute("id", pathId);
[24160] Fix | Delete
path.setAttribute("d", outlines.toSVGPath());
[24161] Fix | Delete
path.setAttribute("vector-effect", "non-scaling-stroke");
[24162] Fix | Delete
let maskId;
[24163] Fix | Delete
if (outlines.free) {
[24164] Fix | Delete
root.classList.add("free");
[24165] Fix | Delete
const mask = DrawLayer._svgFactory.createElement("mask");
[24166] Fix | Delete
defs.append(mask);
[24167] Fix | Delete
maskId = `mask_p${this.pageIndex}_${id}`;
[24168] Fix | Delete
mask.setAttribute("id", maskId);
[24169] Fix | Delete
mask.setAttribute("maskUnits", "objectBoundingBox");
[24170] Fix | Delete
const rect = DrawLayer._svgFactory.createElement("rect");
[24171] Fix | Delete
mask.append(rect);
[24172] Fix | Delete
rect.setAttribute("width", "1");
[24173] Fix | Delete
rect.setAttribute("height", "1");
[24174] Fix | Delete
rect.setAttribute("fill", "white");
[24175] Fix | Delete
const use = DrawLayer._svgFactory.createElement("use");
[24176] Fix | Delete
mask.append(use);
[24177] Fix | Delete
use.setAttribute("href", `#${pathId}`);
[24178] Fix | Delete
use.setAttribute("stroke", "none");
[24179] Fix | Delete
use.setAttribute("fill", "black");
[24180] Fix | Delete
use.setAttribute("fill-rule", "nonzero");
[24181] Fix | Delete
use.classList.add("mask");
[24182] Fix | Delete
}
[24183] Fix | Delete
const use1 = DrawLayer._svgFactory.createElement("use");
[24184] Fix | Delete
root.append(use1);
[24185] Fix | Delete
use1.setAttribute("href", `#${pathId}`);
[24186] Fix | Delete
if (maskId) {
[24187] Fix | Delete
use1.setAttribute("mask", `url(#${maskId})`);
[24188] Fix | Delete
}
[24189] Fix | Delete
const use2 = use1.cloneNode();
[24190] Fix | Delete
root.append(use2);
[24191] Fix | Delete
use1.classList.add("mainOutline");
[24192] Fix | Delete
use2.classList.add("secondaryOutline");
[24193] Fix | Delete
this.#mapping.set(id, root);
[24194] Fix | Delete
return id;
[24195] Fix | Delete
}
[24196] Fix | Delete
finalizeLine(id, line) {
[24197] Fix | Delete
const path = this.#toUpdate.get(id);
[24198] Fix | Delete
this.#toUpdate.delete(id);
[24199] Fix | Delete
this.updateBox(id, line.box);
[24200] Fix | Delete
path.setAttribute("d", line.toSVGPath());
[24201] Fix | Delete
}
[24202] Fix | Delete
updateLine(id, line) {
[24203] Fix | Delete
const root = this.#mapping.get(id);
[24204] Fix | Delete
const defs = root.firstChild;
[24205] Fix | Delete
const path = defs.firstChild;
[24206] Fix | Delete
path.setAttribute("d", line.toSVGPath());
[24207] Fix | Delete
}
[24208] Fix | Delete
removeFreeHighlight(id) {
[24209] Fix | Delete
this.remove(id);
[24210] Fix | Delete
this.#toUpdate.delete(id);
[24211] Fix | Delete
}
[24212] Fix | Delete
updatePath(id, line) {
[24213] Fix | Delete
this.#toUpdate.get(id).setAttribute("d", line.toSVGPath());
[24214] Fix | Delete
}
[24215] Fix | Delete
updateBox(id, box) {
[24216] Fix | Delete
DrawLayer.#setBox(this.#mapping.get(id), box);
[24217] Fix | Delete
}
[24218] Fix | Delete
show(id, visible) {
[24219] Fix | Delete
this.#mapping.get(id).classList.toggle("hidden", !visible);
[24220] Fix | Delete
}
[24221] Fix | Delete
rotate(id, angle) {
[24222] Fix | Delete
this.#mapping.get(id).setAttribute("data-main-rotation", angle);
[24223] Fix | Delete
}
[24224] Fix | Delete
changeColor(id, color) {
[24225] Fix | Delete
this.#mapping.get(id).setAttribute("fill", color);
[24226] Fix | Delete
}
[24227] Fix | Delete
changeOpacity(id, opacity) {
[24228] Fix | Delete
this.#mapping.get(id).setAttribute("fill-opacity", opacity);
[24229] Fix | Delete
}
[24230] Fix | Delete
addClass(id, className) {
[24231] Fix | Delete
this.#mapping.get(id).classList.add(className);
[24232] Fix | Delete
}
[24233] Fix | Delete
removeClass(id, className) {
[24234] Fix | Delete
this.#mapping.get(id).classList.remove(className);
[24235] Fix | Delete
}
[24236] Fix | Delete
remove(id) {
[24237] Fix | Delete
if (this.#parent === null) {
[24238] Fix | Delete
return;
[24239] Fix | Delete
}
[24240] Fix | Delete
this.#mapping.get(id).remove();
[24241] Fix | Delete
this.#mapping.delete(id);
[24242] Fix | Delete
}
[24243] Fix | Delete
destroy() {
[24244] Fix | Delete
this.#parent = null;
[24245] Fix | Delete
for (const root of this.#mapping.values()) {
[24246] Fix | Delete
root.remove();
[24247] Fix | Delete
}
[24248] Fix | Delete
this.#mapping.clear();
[24249] Fix | Delete
}
[24250] Fix | Delete
}
[24251] Fix | Delete
[24252] Fix | Delete
;// CONCATENATED MODULE: ./src/pdf.js
[24253] Fix | Delete
[24254] Fix | Delete
[24255] Fix | Delete
[24256] Fix | Delete
[24257] Fix | Delete
[24258] Fix | Delete
[24259] Fix | Delete
[24260] Fix | Delete
[24261] Fix | Delete
[24262] Fix | Delete
[24263] Fix | Delete
[24264] Fix | Delete
[24265] Fix | Delete
const pdfjsVersion = "4.3.136";
[24266] Fix | Delete
const pdfjsBuild = "0cec64437";
[24267] Fix | Delete
[24268] Fix | Delete
})();
[24269] Fix | Delete
[24270] Fix | Delete
var __webpack_exports__AbortException = __webpack_exports__.AbortException;
[24271] Fix | Delete
var __webpack_exports__AnnotationEditorLayer = __webpack_exports__.AnnotationEditorLayer;
[24272] Fix | Delete
var __webpack_exports__AnnotationEditorParamsType = __webpack_exports__.AnnotationEditorParamsType;
[24273] Fix | Delete
var __webpack_exports__AnnotationEditorType = __webpack_exports__.AnnotationEditorType;
[24274] Fix | Delete
var __webpack_exports__AnnotationEditorUIManager = __webpack_exports__.AnnotationEditorUIManager;
[24275] Fix | Delete
var __webpack_exports__AnnotationLayer = __webpack_exports__.AnnotationLayer;
[24276] Fix | Delete
var __webpack_exports__AnnotationMode = __webpack_exports__.AnnotationMode;
[24277] Fix | Delete
var __webpack_exports__CMapCompressionType = __webpack_exports__.CMapCompressionType;
[24278] Fix | Delete
var __webpack_exports__ColorPicker = __webpack_exports__.ColorPicker;
[24279] Fix | Delete
var __webpack_exports__DOMSVGFactory = __webpack_exports__.DOMSVGFactory;
[24280] Fix | Delete
var __webpack_exports__DrawLayer = __webpack_exports__.DrawLayer;
[24281] Fix | Delete
var __webpack_exports__FeatureTest = __webpack_exports__.FeatureTest;
[24282] Fix | Delete
var __webpack_exports__GlobalWorkerOptions = __webpack_exports__.GlobalWorkerOptions;
[24283] Fix | Delete
var __webpack_exports__ImageKind = __webpack_exports__.ImageKind;
[24284] Fix | Delete
var __webpack_exports__InvalidPDFException = __webpack_exports__.InvalidPDFException;
[24285] Fix | Delete
var __webpack_exports__MissingPDFException = __webpack_exports__.MissingPDFException;
[24286] Fix | Delete
var __webpack_exports__OPS = __webpack_exports__.OPS;
[24287] Fix | Delete
var __webpack_exports__Outliner = __webpack_exports__.Outliner;
[24288] Fix | Delete
var __webpack_exports__PDFDataRangeTransport = __webpack_exports__.PDFDataRangeTransport;
[24289] Fix | Delete
var __webpack_exports__PDFDateString = __webpack_exports__.PDFDateString;
[24290] Fix | Delete
var __webpack_exports__PDFWorker = __webpack_exports__.PDFWorker;
[24291] Fix | Delete
var __webpack_exports__PasswordResponses = __webpack_exports__.PasswordResponses;
[24292] Fix | Delete
var __webpack_exports__PermissionFlag = __webpack_exports__.PermissionFlag;
[24293] Fix | Delete
var __webpack_exports__PixelsPerInch = __webpack_exports__.PixelsPerInch;
[24294] Fix | Delete
var __webpack_exports__RenderingCancelledException = __webpack_exports__.RenderingCancelledException;
[24295] Fix | Delete
var __webpack_exports__TextLayer = __webpack_exports__.TextLayer;
[24296] Fix | Delete
var __webpack_exports__UnexpectedResponseException = __webpack_exports__.UnexpectedResponseException;
[24297] Fix | Delete
var __webpack_exports__Util = __webpack_exports__.Util;
[24298] Fix | Delete
var __webpack_exports__VerbosityLevel = __webpack_exports__.VerbosityLevel;
[24299] Fix | Delete
var __webpack_exports__XfaLayer = __webpack_exports__.XfaLayer;
[24300] Fix | Delete
var __webpack_exports__build = __webpack_exports__.build;
[24301] Fix | Delete
var __webpack_exports__createValidAbsoluteUrl = __webpack_exports__.createValidAbsoluteUrl;
[24302] Fix | Delete
var __webpack_exports__fetchData = __webpack_exports__.fetchData;
[24303] Fix | Delete
var __webpack_exports__getDocument = __webpack_exports__.getDocument;
[24304] Fix | Delete
var __webpack_exports__getFilenameFromUrl = __webpack_exports__.getFilenameFromUrl;
[24305] Fix | Delete
var __webpack_exports__getPdfFilenameFromUrl = __webpack_exports__.getPdfFilenameFromUrl;
[24306] Fix | Delete
var __webpack_exports__getXfaPageViewport = __webpack_exports__.getXfaPageViewport;
[24307] Fix | Delete
var __webpack_exports__isDataScheme = __webpack_exports__.isDataScheme;
[24308] Fix | Delete
var __webpack_exports__isPdfFile = __webpack_exports__.isPdfFile;
[24309] Fix | Delete
var __webpack_exports__noContextMenu = __webpack_exports__.noContextMenu;
[24310] Fix | Delete
var __webpack_exports__normalizeUnicode = __webpack_exports__.normalizeUnicode;
[24311] Fix | Delete
var __webpack_exports__renderTextLayer = __webpack_exports__.renderTextLayer;
[24312] Fix | Delete
var __webpack_exports__setLayerDimensions = __webpack_exports__.setLayerDimensions;
[24313] Fix | Delete
var __webpack_exports__shadow = __webpack_exports__.shadow;
[24314] Fix | Delete
var __webpack_exports__updateTextLayer = __webpack_exports__.updateTextLayer;
[24315] Fix | Delete
var __webpack_exports__version = __webpack_exports__.version;
[24316] Fix | Delete
export { __webpack_exports__AbortException as AbortException, __webpack_exports__AnnotationEditorLayer as AnnotationEditorLayer, __webpack_exports__AnnotationEditorParamsType as AnnotationEditorParamsType, __webpack_exports__AnnotationEditorType as AnnotationEditorType, __webpack_exports__AnnotationEditorUIManager as AnnotationEditorUIManager, __webpack_exports__AnnotationLayer as AnnotationLayer, __webpack_exports__AnnotationMode as AnnotationMode, __webpack_exports__CMapCompressionType as CMapCompressionType, __webpack_exports__ColorPicker as ColorPicker, __webpack_exports__DOMSVGFactory as DOMSVGFactory, __webpack_exports__DrawLayer as DrawLayer, __webpack_exports__FeatureTest as FeatureTest, __webpack_exports__GlobalWorkerOptions as GlobalWorkerOptions, __webpack_exports__ImageKind as ImageKind, __webpack_exports__InvalidPDFException as InvalidPDFException, __webpack_exports__MissingPDFException as MissingPDFException, __webpack_exports__OPS as OPS, __webpack_exports__Outliner as Outliner, __webpack_exports__PDFDataRangeTransport as PDFDataRangeTransport, __webpack_exports__PDFDateString as PDFDateString, __webpack_exports__PDFWorker as PDFWorker, __webpack_exports__PasswordResponses as PasswordResponses, __webpack_exports__PermissionFlag as PermissionFlag, __webpack_exports__PixelsPerInch as PixelsPerInch, __webpack_exports__RenderingCancelledException as RenderingCancelledException, __webpack_exports__TextLayer as TextLayer, __webpack_exports__UnexpectedResponseException as UnexpectedResponseException, __webpack_exports__Util as Util, __webpack_exports__VerbosityLevel as VerbosityLevel, __webpack_exports__XfaLayer as XfaLayer, __webpack_exports__build as build, __webpack_exports__createValidAbsoluteUrl as createValidAbsoluteUrl, __webpack_exports__fetchData as fetchData, __webpack_exports__getDocument as getDocument, __webpack_exports__getFilenameFromUrl as getFilenameFromUrl, __webpack_exports__getPdfFilenameFromUrl as getPdfFilenameFromUrl, __webpack_exports__getXfaPageViewport as getXfaPageViewport, __webpack_exports__isDataScheme as isDataScheme, __webpack_exports__isPdfFile as isPdfFile, __webpack_exports__noContextMenu as noContextMenu, __webpack_exports__normalizeUnicode as normalizeUnicode, __webpack_exports__renderTextLayer as renderTextLayer, __webpack_exports__setLayerDimensions as setLayerDimensions, __webpack_exports__shadow as shadow, __webpack_exports__updateTextLayer as updateTextLayer, __webpack_exports__version as version };
[24317] Fix | Delete
[24318] Fix | Delete
//# sourceMappingURL=pdf.js.map
[24319] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function