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/build
File: pdf.worker.js
break;
[47500] Fix | Delete
case "embossed":
[47501] Fix | Delete
style.style = "ridge";
[47502] Fix | Delete
break;
[47503] Fix | Delete
case "etched":
[47504] Fix | Delete
style.style = "groove";
[47505] Fix | Delete
break;
[47506] Fix | Delete
case "lowered":
[47507] Fix | Delete
style.style = "inset";
[47508] Fix | Delete
break;
[47509] Fix | Delete
case "raised":
[47510] Fix | Delete
style.style = "outset";
[47511] Fix | Delete
break;
[47512] Fix | Delete
}
[47513] Fix | Delete
}
[47514] Fix | Delete
return style;
[47515] Fix | Delete
}
[47516] Fix | Delete
}
[47517] Fix | Delete
class Encoding extends OptionObject {
[47518] Fix | Delete
constructor(attributes) {
[47519] Fix | Delete
super(TEMPLATE_NS_ID, "encoding", ["adbe.x509.rsa_sha1", "adbe.pkcs7.detached", "adbe.pkcs7.sha1"]);
[47520] Fix | Delete
this.id = attributes.id || "";
[47521] Fix | Delete
this.use = attributes.use || "";
[47522] Fix | Delete
this.usehref = attributes.usehref || "";
[47523] Fix | Delete
}
[47524] Fix | Delete
}
[47525] Fix | Delete
class Encodings extends XFAObject {
[47526] Fix | Delete
constructor(attributes) {
[47527] Fix | Delete
super(TEMPLATE_NS_ID, "encodings", true);
[47528] Fix | Delete
this.id = attributes.id || "";
[47529] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[47530] Fix | Delete
this.use = attributes.use || "";
[47531] Fix | Delete
this.usehref = attributes.usehref || "";
[47532] Fix | Delete
this.encoding = new XFAObjectArray();
[47533] Fix | Delete
}
[47534] Fix | Delete
}
[47535] Fix | Delete
class Encrypt extends XFAObject {
[47536] Fix | Delete
constructor(attributes) {
[47537] Fix | Delete
super(TEMPLATE_NS_ID, "encrypt", true);
[47538] Fix | Delete
this.id = attributes.id || "";
[47539] Fix | Delete
this.use = attributes.use || "";
[47540] Fix | Delete
this.usehref = attributes.usehref || "";
[47541] Fix | Delete
this.certificate = null;
[47542] Fix | Delete
}
[47543] Fix | Delete
}
[47544] Fix | Delete
class EncryptData extends XFAObject {
[47545] Fix | Delete
constructor(attributes) {
[47546] Fix | Delete
super(TEMPLATE_NS_ID, "encryptData", true);
[47547] Fix | Delete
this.id = attributes.id || "";
[47548] Fix | Delete
this.operation = getStringOption(attributes.operation, ["encrypt", "decrypt"]);
[47549] Fix | Delete
this.target = attributes.target || "";
[47550] Fix | Delete
this.use = attributes.use || "";
[47551] Fix | Delete
this.usehref = attributes.usehref || "";
[47552] Fix | Delete
this.filter = null;
[47553] Fix | Delete
this.manifest = null;
[47554] Fix | Delete
}
[47555] Fix | Delete
}
[47556] Fix | Delete
class Encryption extends XFAObject {
[47557] Fix | Delete
constructor(attributes) {
[47558] Fix | Delete
super(TEMPLATE_NS_ID, "encryption", true);
[47559] Fix | Delete
this.id = attributes.id || "";
[47560] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[47561] Fix | Delete
this.use = attributes.use || "";
[47562] Fix | Delete
this.usehref = attributes.usehref || "";
[47563] Fix | Delete
this.certificate = new XFAObjectArray();
[47564] Fix | Delete
}
[47565] Fix | Delete
}
[47566] Fix | Delete
class EncryptionMethod extends OptionObject {
[47567] Fix | Delete
constructor(attributes) {
[47568] Fix | Delete
super(TEMPLATE_NS_ID, "encryptionMethod", ["", "AES256-CBC", "TRIPLEDES-CBC", "AES128-CBC", "AES192-CBC"]);
[47569] Fix | Delete
this.id = attributes.id || "";
[47570] Fix | Delete
this.use = attributes.use || "";
[47571] Fix | Delete
this.usehref = attributes.usehref || "";
[47572] Fix | Delete
}
[47573] Fix | Delete
}
[47574] Fix | Delete
class EncryptionMethods extends XFAObject {
[47575] Fix | Delete
constructor(attributes) {
[47576] Fix | Delete
super(TEMPLATE_NS_ID, "encryptionMethods", true);
[47577] Fix | Delete
this.id = attributes.id || "";
[47578] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[47579] Fix | Delete
this.use = attributes.use || "";
[47580] Fix | Delete
this.usehref = attributes.usehref || "";
[47581] Fix | Delete
this.encryptionMethod = new XFAObjectArray();
[47582] Fix | Delete
}
[47583] Fix | Delete
}
[47584] Fix | Delete
class Event extends XFAObject {
[47585] Fix | Delete
constructor(attributes) {
[47586] Fix | Delete
super(TEMPLATE_NS_ID, "event", true);
[47587] Fix | Delete
this.activity = getStringOption(attributes.activity, ["click", "change", "docClose", "docReady", "enter", "exit", "full", "indexChange", "initialize", "mouseDown", "mouseEnter", "mouseExit", "mouseUp", "postExecute", "postOpen", "postPrint", "postSave", "postSign", "postSubmit", "preExecute", "preOpen", "prePrint", "preSave", "preSign", "preSubmit", "ready", "validationState"]);
[47588] Fix | Delete
this.id = attributes.id || "";
[47589] Fix | Delete
this.listen = getStringOption(attributes.listen, ["refOnly", "refAndDescendents"]);
[47590] Fix | Delete
this.name = attributes.name || "";
[47591] Fix | Delete
this.ref = attributes.ref || "";
[47592] Fix | Delete
this.use = attributes.use || "";
[47593] Fix | Delete
this.usehref = attributes.usehref || "";
[47594] Fix | Delete
this.extras = null;
[47595] Fix | Delete
this.encryptData = null;
[47596] Fix | Delete
this.execute = null;
[47597] Fix | Delete
this.script = null;
[47598] Fix | Delete
this.signData = null;
[47599] Fix | Delete
this.submit = null;
[47600] Fix | Delete
}
[47601] Fix | Delete
}
[47602] Fix | Delete
class ExData extends ContentObject {
[47603] Fix | Delete
constructor(attributes) {
[47604] Fix | Delete
super(TEMPLATE_NS_ID, "exData");
[47605] Fix | Delete
this.contentType = attributes.contentType || "";
[47606] Fix | Delete
this.href = attributes.href || "";
[47607] Fix | Delete
this.id = attributes.id || "";
[47608] Fix | Delete
this.maxLength = getInteger({
[47609] Fix | Delete
data: attributes.maxLength,
[47610] Fix | Delete
defaultValue: -1,
[47611] Fix | Delete
validate: x => x >= -1
[47612] Fix | Delete
});
[47613] Fix | Delete
this.name = attributes.name || "";
[47614] Fix | Delete
this.rid = attributes.rid || "";
[47615] Fix | Delete
this.transferEncoding = getStringOption(attributes.transferEncoding, ["none", "base64", "package"]);
[47616] Fix | Delete
this.use = attributes.use || "";
[47617] Fix | Delete
this.usehref = attributes.usehref || "";
[47618] Fix | Delete
}
[47619] Fix | Delete
[$isCDATAXml]() {
[47620] Fix | Delete
return this.contentType === "text/html";
[47621] Fix | Delete
}
[47622] Fix | Delete
[$onChild](child) {
[47623] Fix | Delete
if (this.contentType === "text/html" && child[$namespaceId] === NamespaceIds.xhtml.id) {
[47624] Fix | Delete
this[$content] = child;
[47625] Fix | Delete
return true;
[47626] Fix | Delete
}
[47627] Fix | Delete
if (this.contentType === "text/xml") {
[47628] Fix | Delete
this[$content] = child;
[47629] Fix | Delete
return true;
[47630] Fix | Delete
}
[47631] Fix | Delete
return false;
[47632] Fix | Delete
}
[47633] Fix | Delete
[$toHTML](availableSpace) {
[47634] Fix | Delete
if (this.contentType !== "text/html" || !this[$content]) {
[47635] Fix | Delete
return HTMLResult.EMPTY;
[47636] Fix | Delete
}
[47637] Fix | Delete
return this[$content][$toHTML](availableSpace);
[47638] Fix | Delete
}
[47639] Fix | Delete
}
[47640] Fix | Delete
class ExObject extends XFAObject {
[47641] Fix | Delete
constructor(attributes) {
[47642] Fix | Delete
super(TEMPLATE_NS_ID, "exObject", true);
[47643] Fix | Delete
this.archive = attributes.archive || "";
[47644] Fix | Delete
this.classId = attributes.classId || "";
[47645] Fix | Delete
this.codeBase = attributes.codeBase || "";
[47646] Fix | Delete
this.codeType = attributes.codeType || "";
[47647] Fix | Delete
this.id = attributes.id || "";
[47648] Fix | Delete
this.name = attributes.name || "";
[47649] Fix | Delete
this.use = attributes.use || "";
[47650] Fix | Delete
this.usehref = attributes.usehref || "";
[47651] Fix | Delete
this.extras = null;
[47652] Fix | Delete
this.boolean = new XFAObjectArray();
[47653] Fix | Delete
this.date = new XFAObjectArray();
[47654] Fix | Delete
this.dateTime = new XFAObjectArray();
[47655] Fix | Delete
this.decimal = new XFAObjectArray();
[47656] Fix | Delete
this.exData = new XFAObjectArray();
[47657] Fix | Delete
this.exObject = new XFAObjectArray();
[47658] Fix | Delete
this.float = new XFAObjectArray();
[47659] Fix | Delete
this.image = new XFAObjectArray();
[47660] Fix | Delete
this.integer = new XFAObjectArray();
[47661] Fix | Delete
this.text = new XFAObjectArray();
[47662] Fix | Delete
this.time = new XFAObjectArray();
[47663] Fix | Delete
}
[47664] Fix | Delete
}
[47665] Fix | Delete
class ExclGroup extends XFAObject {
[47666] Fix | Delete
constructor(attributes) {
[47667] Fix | Delete
super(TEMPLATE_NS_ID, "exclGroup", true);
[47668] Fix | Delete
this.access = getStringOption(attributes.access, ["open", "nonInteractive", "protected", "readOnly"]);
[47669] Fix | Delete
this.accessKey = attributes.accessKey || "";
[47670] Fix | Delete
this.anchorType = getStringOption(attributes.anchorType, ["topLeft", "bottomCenter", "bottomLeft", "bottomRight", "middleCenter", "middleLeft", "middleRight", "topCenter", "topRight"]);
[47671] Fix | Delete
this.colSpan = getInteger({
[47672] Fix | Delete
data: attributes.colSpan,
[47673] Fix | Delete
defaultValue: 1,
[47674] Fix | Delete
validate: n => n >= 1 || n === -1
[47675] Fix | Delete
});
[47676] Fix | Delete
this.h = attributes.h ? getMeasurement(attributes.h) : "";
[47677] Fix | Delete
this.hAlign = getStringOption(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]);
[47678] Fix | Delete
this.id = attributes.id || "";
[47679] Fix | Delete
this.layout = getStringOption(attributes.layout, ["position", "lr-tb", "rl-row", "rl-tb", "row", "table", "tb"]);
[47680] Fix | Delete
this.maxH = getMeasurement(attributes.maxH, "0pt");
[47681] Fix | Delete
this.maxW = getMeasurement(attributes.maxW, "0pt");
[47682] Fix | Delete
this.minH = getMeasurement(attributes.minH, "0pt");
[47683] Fix | Delete
this.minW = getMeasurement(attributes.minW, "0pt");
[47684] Fix | Delete
this.name = attributes.name || "";
[47685] Fix | Delete
this.presence = getStringOption(attributes.presence, ["visible", "hidden", "inactive", "invisible"]);
[47686] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[47687] Fix | Delete
this.use = attributes.use || "";
[47688] Fix | Delete
this.usehref = attributes.usehref || "";
[47689] Fix | Delete
this.w = attributes.w ? getMeasurement(attributes.w) : "";
[47690] Fix | Delete
this.x = getMeasurement(attributes.x, "0pt");
[47691] Fix | Delete
this.y = getMeasurement(attributes.y, "0pt");
[47692] Fix | Delete
this.assist = null;
[47693] Fix | Delete
this.bind = null;
[47694] Fix | Delete
this.border = null;
[47695] Fix | Delete
this.calculate = null;
[47696] Fix | Delete
this.caption = null;
[47697] Fix | Delete
this.desc = null;
[47698] Fix | Delete
this.extras = null;
[47699] Fix | Delete
this.margin = null;
[47700] Fix | Delete
this.para = null;
[47701] Fix | Delete
this.traversal = null;
[47702] Fix | Delete
this.validate = null;
[47703] Fix | Delete
this.connect = new XFAObjectArray();
[47704] Fix | Delete
this.event = new XFAObjectArray();
[47705] Fix | Delete
this.field = new XFAObjectArray();
[47706] Fix | Delete
this.setProperty = new XFAObjectArray();
[47707] Fix | Delete
}
[47708] Fix | Delete
[$isBindable]() {
[47709] Fix | Delete
return true;
[47710] Fix | Delete
}
[47711] Fix | Delete
[$hasSettableValue]() {
[47712] Fix | Delete
return true;
[47713] Fix | Delete
}
[47714] Fix | Delete
[$setValue](value) {
[47715] Fix | Delete
for (const field of this.field.children) {
[47716] Fix | Delete
if (!field.value) {
[47717] Fix | Delete
const nodeValue = new Value({});
[47718] Fix | Delete
field[$appendChild](nodeValue);
[47719] Fix | Delete
field.value = nodeValue;
[47720] Fix | Delete
}
[47721] Fix | Delete
field.value[$setValue](value);
[47722] Fix | Delete
}
[47723] Fix | Delete
}
[47724] Fix | Delete
[$isThereMoreWidth]() {
[47725] Fix | Delete
return this.layout.endsWith("-tb") && this[$extra].attempt === 0 && this[$extra].numberInLine > 0 || this[$getParent]()[$isThereMoreWidth]();
[47726] Fix | Delete
}
[47727] Fix | Delete
[$isSplittable]() {
[47728] Fix | Delete
const parent = this[$getSubformParent]();
[47729] Fix | Delete
if (!parent[$isSplittable]()) {
[47730] Fix | Delete
return false;
[47731] Fix | Delete
}
[47732] Fix | Delete
if (this[$extra]._isSplittable !== undefined) {
[47733] Fix | Delete
return this[$extra]._isSplittable;
[47734] Fix | Delete
}
[47735] Fix | Delete
if (this.layout === "position" || this.layout.includes("row")) {
[47736] Fix | Delete
this[$extra]._isSplittable = false;
[47737] Fix | Delete
return false;
[47738] Fix | Delete
}
[47739] Fix | Delete
if (parent.layout?.endsWith("-tb") && parent[$extra].numberInLine !== 0) {
[47740] Fix | Delete
return false;
[47741] Fix | Delete
}
[47742] Fix | Delete
this[$extra]._isSplittable = true;
[47743] Fix | Delete
return true;
[47744] Fix | Delete
}
[47745] Fix | Delete
[$flushHTML]() {
[47746] Fix | Delete
return flushHTML(this);
[47747] Fix | Delete
}
[47748] Fix | Delete
[$addHTML](html, bbox) {
[47749] Fix | Delete
addHTML(this, html, bbox);
[47750] Fix | Delete
}
[47751] Fix | Delete
[$getAvailableSpace]() {
[47752] Fix | Delete
return getAvailableSpace(this);
[47753] Fix | Delete
}
[47754] Fix | Delete
[$toHTML](availableSpace) {
[47755] Fix | Delete
setTabIndex(this);
[47756] Fix | Delete
if (this.presence === "hidden" || this.presence === "inactive" || this.h === 0 || this.w === 0) {
[47757] Fix | Delete
return HTMLResult.EMPTY;
[47758] Fix | Delete
}
[47759] Fix | Delete
fixDimensions(this);
[47760] Fix | Delete
const children = [];
[47761] Fix | Delete
const attributes = {
[47762] Fix | Delete
id: this[$uid],
[47763] Fix | Delete
class: []
[47764] Fix | Delete
};
[47765] Fix | Delete
setAccess(this, attributes.class);
[47766] Fix | Delete
if (!this[$extra]) {
[47767] Fix | Delete
this[$extra] = Object.create(null);
[47768] Fix | Delete
}
[47769] Fix | Delete
Object.assign(this[$extra], {
[47770] Fix | Delete
children,
[47771] Fix | Delete
attributes,
[47772] Fix | Delete
attempt: 0,
[47773] Fix | Delete
line: null,
[47774] Fix | Delete
numberInLine: 0,
[47775] Fix | Delete
availableSpace: {
[47776] Fix | Delete
width: Math.min(this.w || Infinity, availableSpace.width),
[47777] Fix | Delete
height: Math.min(this.h || Infinity, availableSpace.height)
[47778] Fix | Delete
},
[47779] Fix | Delete
width: 0,
[47780] Fix | Delete
height: 0,
[47781] Fix | Delete
prevHeight: 0,
[47782] Fix | Delete
currentWidth: 0
[47783] Fix | Delete
});
[47784] Fix | Delete
const isSplittable = this[$isSplittable]();
[47785] Fix | Delete
if (!isSplittable) {
[47786] Fix | Delete
setFirstUnsplittable(this);
[47787] Fix | Delete
}
[47788] Fix | Delete
if (!checkDimensions(this, availableSpace)) {
[47789] Fix | Delete
return HTMLResult.FAILURE;
[47790] Fix | Delete
}
[47791] Fix | Delete
const filter = new Set(["field"]);
[47792] Fix | Delete
if (this.layout.includes("row")) {
[47793] Fix | Delete
const columnWidths = this[$getSubformParent]().columnWidths;
[47794] Fix | Delete
if (Array.isArray(columnWidths) && columnWidths.length > 0) {
[47795] Fix | Delete
this[$extra].columnWidths = columnWidths;
[47796] Fix | Delete
this[$extra].currentColumn = 0;
[47797] Fix | Delete
}
[47798] Fix | Delete
}
[47799] Fix | Delete
const style = toStyle(this, "anchorType", "dimensions", "position", "presence", "border", "margin", "hAlign");
[47800] Fix | Delete
const classNames = ["xfaExclgroup"];
[47801] Fix | Delete
const cl = layoutClass(this);
[47802] Fix | Delete
if (cl) {
[47803] Fix | Delete
classNames.push(cl);
[47804] Fix | Delete
}
[47805] Fix | Delete
if (isPrintOnly(this)) {
[47806] Fix | Delete
classNames.push("xfaPrintOnly");
[47807] Fix | Delete
}
[47808] Fix | Delete
attributes.style = style;
[47809] Fix | Delete
attributes.class = classNames;
[47810] Fix | Delete
if (this.name) {
[47811] Fix | Delete
attributes.xfaName = this.name;
[47812] Fix | Delete
}
[47813] Fix | Delete
this[$pushPara]();
[47814] Fix | Delete
const isLrTb = this.layout === "lr-tb" || this.layout === "rl-tb";
[47815] Fix | Delete
const maxRun = isLrTb ? MAX_ATTEMPTS_FOR_LRTB_LAYOUT : 1;
[47816] Fix | Delete
for (; this[$extra].attempt < maxRun; this[$extra].attempt++) {
[47817] Fix | Delete
if (isLrTb && this[$extra].attempt === MAX_ATTEMPTS_FOR_LRTB_LAYOUT - 1) {
[47818] Fix | Delete
this[$extra].numberInLine = 0;
[47819] Fix | Delete
}
[47820] Fix | Delete
const result = this[$childrenToHTML]({
[47821] Fix | Delete
filter,
[47822] Fix | Delete
include: true
[47823] Fix | Delete
});
[47824] Fix | Delete
if (result.success) {
[47825] Fix | Delete
break;
[47826] Fix | Delete
}
[47827] Fix | Delete
if (result.isBreak()) {
[47828] Fix | Delete
this[$popPara]();
[47829] Fix | Delete
return result;
[47830] Fix | Delete
}
[47831] Fix | Delete
if (isLrTb && this[$extra].attempt === 0 && this[$extra].numberInLine === 0 && !this[$getTemplateRoot]()[$extra].noLayoutFailure) {
[47832] Fix | Delete
this[$extra].attempt = maxRun;
[47833] Fix | Delete
break;
[47834] Fix | Delete
}
[47835] Fix | Delete
}
[47836] Fix | Delete
this[$popPara]();
[47837] Fix | Delete
if (!isSplittable) {
[47838] Fix | Delete
unsetFirstUnsplittable(this);
[47839] Fix | Delete
}
[47840] Fix | Delete
if (this[$extra].attempt === maxRun) {
[47841] Fix | Delete
if (!isSplittable) {
[47842] Fix | Delete
delete this[$extra];
[47843] Fix | Delete
}
[47844] Fix | Delete
return HTMLResult.FAILURE;
[47845] Fix | Delete
}
[47846] Fix | Delete
let marginH = 0;
[47847] Fix | Delete
let marginV = 0;
[47848] Fix | Delete
if (this.margin) {
[47849] Fix | Delete
marginH = this.margin.leftInset + this.margin.rightInset;
[47850] Fix | Delete
marginV = this.margin.topInset + this.margin.bottomInset;
[47851] Fix | Delete
}
[47852] Fix | Delete
const width = Math.max(this[$extra].width + marginH, this.w || 0);
[47853] Fix | Delete
const height = Math.max(this[$extra].height + marginV, this.h || 0);
[47854] Fix | Delete
const bbox = [this.x, this.y, width, height];
[47855] Fix | Delete
if (this.w === "") {
[47856] Fix | Delete
style.width = measureToString(width);
[47857] Fix | Delete
}
[47858] Fix | Delete
if (this.h === "") {
[47859] Fix | Delete
style.height = measureToString(height);
[47860] Fix | Delete
}
[47861] Fix | Delete
const html = {
[47862] Fix | Delete
name: "div",
[47863] Fix | Delete
attributes,
[47864] Fix | Delete
children
[47865] Fix | Delete
};
[47866] Fix | Delete
applyAssist(this, attributes);
[47867] Fix | Delete
delete this[$extra];
[47868] Fix | Delete
return HTMLResult.success(createWrapper(this, html), bbox);
[47869] Fix | Delete
}
[47870] Fix | Delete
}
[47871] Fix | Delete
class Execute extends XFAObject {
[47872] Fix | Delete
constructor(attributes) {
[47873] Fix | Delete
super(TEMPLATE_NS_ID, "execute");
[47874] Fix | Delete
this.connection = attributes.connection || "";
[47875] Fix | Delete
this.executeType = getStringOption(attributes.executeType, ["import", "remerge"]);
[47876] Fix | Delete
this.id = attributes.id || "";
[47877] Fix | Delete
this.runAt = getStringOption(attributes.runAt, ["client", "both", "server"]);
[47878] Fix | Delete
this.use = attributes.use || "";
[47879] Fix | Delete
this.usehref = attributes.usehref || "";
[47880] Fix | Delete
}
[47881] Fix | Delete
}
[47882] Fix | Delete
class Extras extends XFAObject {
[47883] Fix | Delete
constructor(attributes) {
[47884] Fix | Delete
super(TEMPLATE_NS_ID, "extras", true);
[47885] Fix | Delete
this.id = attributes.id || "";
[47886] Fix | Delete
this.name = attributes.name || "";
[47887] Fix | Delete
this.use = attributes.use || "";
[47888] Fix | Delete
this.usehref = attributes.usehref || "";
[47889] Fix | Delete
this.boolean = new XFAObjectArray();
[47890] Fix | Delete
this.date = new XFAObjectArray();
[47891] Fix | Delete
this.dateTime = new XFAObjectArray();
[47892] Fix | Delete
this.decimal = new XFAObjectArray();
[47893] Fix | Delete
this.exData = new XFAObjectArray();
[47894] Fix | Delete
this.extras = new XFAObjectArray();
[47895] Fix | Delete
this.float = new XFAObjectArray();
[47896] Fix | Delete
this.image = new XFAObjectArray();
[47897] Fix | Delete
this.integer = new XFAObjectArray();
[47898] Fix | Delete
this.text = new XFAObjectArray();
[47899] Fix | Delete
this.time = new XFAObjectArray();
[47900] Fix | Delete
}
[47901] Fix | Delete
}
[47902] Fix | Delete
class Field extends XFAObject {
[47903] Fix | Delete
constructor(attributes) {
[47904] Fix | Delete
super(TEMPLATE_NS_ID, "field", true);
[47905] Fix | Delete
this.access = getStringOption(attributes.access, ["open", "nonInteractive", "protected", "readOnly"]);
[47906] Fix | Delete
this.accessKey = attributes.accessKey || "";
[47907] Fix | Delete
this.anchorType = getStringOption(attributes.anchorType, ["topLeft", "bottomCenter", "bottomLeft", "bottomRight", "middleCenter", "middleLeft", "middleRight", "topCenter", "topRight"]);
[47908] Fix | Delete
this.colSpan = getInteger({
[47909] Fix | Delete
data: attributes.colSpan,
[47910] Fix | Delete
defaultValue: 1,
[47911] Fix | Delete
validate: n => n >= 1 || n === -1
[47912] Fix | Delete
});
[47913] Fix | Delete
this.h = attributes.h ? getMeasurement(attributes.h) : "";
[47914] Fix | Delete
this.hAlign = getStringOption(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]);
[47915] Fix | Delete
this.id = attributes.id || "";
[47916] Fix | Delete
this.locale = attributes.locale || "";
[47917] Fix | Delete
this.maxH = getMeasurement(attributes.maxH, "0pt");
[47918] Fix | Delete
this.maxW = getMeasurement(attributes.maxW, "0pt");
[47919] Fix | Delete
this.minH = getMeasurement(attributes.minH, "0pt");
[47920] Fix | Delete
this.minW = getMeasurement(attributes.minW, "0pt");
[47921] Fix | Delete
this.name = attributes.name || "";
[47922] Fix | Delete
this.presence = getStringOption(attributes.presence, ["visible", "hidden", "inactive", "invisible"]);
[47923] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[47924] Fix | Delete
this.rotate = getInteger({
[47925] Fix | Delete
data: attributes.rotate,
[47926] Fix | Delete
defaultValue: 0,
[47927] Fix | Delete
validate: x => x % 90 === 0
[47928] Fix | Delete
});
[47929] Fix | Delete
this.use = attributes.use || "";
[47930] Fix | Delete
this.usehref = attributes.usehref || "";
[47931] Fix | Delete
this.w = attributes.w ? getMeasurement(attributes.w) : "";
[47932] Fix | Delete
this.x = getMeasurement(attributes.x, "0pt");
[47933] Fix | Delete
this.y = getMeasurement(attributes.y, "0pt");
[47934] Fix | Delete
this.assist = null;
[47935] Fix | Delete
this.bind = null;
[47936] Fix | Delete
this.border = null;
[47937] Fix | Delete
this.calculate = null;
[47938] Fix | Delete
this.caption = null;
[47939] Fix | Delete
this.desc = null;
[47940] Fix | Delete
this.extras = null;
[47941] Fix | Delete
this.font = null;
[47942] Fix | Delete
this.format = null;
[47943] Fix | Delete
this.items = new XFAObjectArray(2);
[47944] Fix | Delete
this.keep = null;
[47945] Fix | Delete
this.margin = null;
[47946] Fix | Delete
this.para = null;
[47947] Fix | Delete
this.traversal = null;
[47948] Fix | Delete
this.ui = null;
[47949] Fix | Delete
this.validate = null;
[47950] Fix | Delete
this.value = null;
[47951] Fix | Delete
this.bindItems = new XFAObjectArray();
[47952] Fix | Delete
this.connect = new XFAObjectArray();
[47953] Fix | Delete
this.event = new XFAObjectArray();
[47954] Fix | Delete
this.setProperty = new XFAObjectArray();
[47955] Fix | Delete
}
[47956] Fix | Delete
[$isBindable]() {
[47957] Fix | Delete
return true;
[47958] Fix | Delete
}
[47959] Fix | Delete
[$setValue](value) {
[47960] Fix | Delete
_setValue(this, value);
[47961] Fix | Delete
}
[47962] Fix | Delete
[$toHTML](availableSpace) {
[47963] Fix | Delete
setTabIndex(this);
[47964] Fix | Delete
if (!this.ui) {
[47965] Fix | Delete
this.ui = new Ui({});
[47966] Fix | Delete
this.ui[$globalData] = this[$globalData];
[47967] Fix | Delete
this[$appendChild](this.ui);
[47968] Fix | Delete
let node;
[47969] Fix | Delete
switch (this.items.children.length) {
[47970] Fix | Delete
case 0:
[47971] Fix | Delete
node = new TextEdit({});
[47972] Fix | Delete
this.ui.textEdit = node;
[47973] Fix | Delete
break;
[47974] Fix | Delete
case 1:
[47975] Fix | Delete
node = new CheckButton({});
[47976] Fix | Delete
this.ui.checkButton = node;
[47977] Fix | Delete
break;
[47978] Fix | Delete
case 2:
[47979] Fix | Delete
node = new ChoiceList({});
[47980] Fix | Delete
this.ui.choiceList = node;
[47981] Fix | Delete
break;
[47982] Fix | Delete
}
[47983] Fix | Delete
this.ui[$appendChild](node);
[47984] Fix | Delete
}
[47985] Fix | Delete
if (!this.ui || this.presence === "hidden" || this.presence === "inactive" || this.h === 0 || this.w === 0) {
[47986] Fix | Delete
return HTMLResult.EMPTY;
[47987] Fix | Delete
}
[47988] Fix | Delete
if (this.caption) {
[47989] Fix | Delete
delete this.caption[$extra];
[47990] Fix | Delete
}
[47991] Fix | Delete
this[$pushPara]();
[47992] Fix | Delete
const caption = this.caption ? this.caption[$toHTML](availableSpace).html : null;
[47993] Fix | Delete
const savedW = this.w;
[47994] Fix | Delete
const savedH = this.h;
[47995] Fix | Delete
let marginH = 0;
[47996] Fix | Delete
let marginV = 0;
[47997] Fix | Delete
if (this.margin) {
[47998] Fix | Delete
marginH = this.margin.leftInset + this.margin.rightInset;
[47999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function