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
numberOfUse: 0
[49000] Fix | Delete
};
[49001] Fix | Delete
}
[49002] Fix | Delete
const parent = this[$getParent]();
[49003] Fix | Delete
if (parent.relation === "orderedOccurrence") {
[49004] Fix | Delete
if (this[$isUsable]()) {
[49005] Fix | Delete
this[$extra].numberOfUse += 1;
[49006] Fix | Delete
return this;
[49007] Fix | Delete
}
[49008] Fix | Delete
}
[49009] Fix | Delete
return parent[$getNextPage]();
[49010] Fix | Delete
}
[49011] Fix | Delete
[$getAvailableSpace]() {
[49012] Fix | Delete
return this[$extra].space || {
[49013] Fix | Delete
width: 0,
[49014] Fix | Delete
height: 0
[49015] Fix | Delete
};
[49016] Fix | Delete
}
[49017] Fix | Delete
[$toHTML]() {
[49018] Fix | Delete
if (!this[$extra]) {
[49019] Fix | Delete
this[$extra] = {
[49020] Fix | Delete
numberOfUse: 1
[49021] Fix | Delete
};
[49022] Fix | Delete
}
[49023] Fix | Delete
const children = [];
[49024] Fix | Delete
this[$extra].children = children;
[49025] Fix | Delete
const style = Object.create(null);
[49026] Fix | Delete
if (this.medium && this.medium.short && this.medium.long) {
[49027] Fix | Delete
style.width = measureToString(this.medium.short);
[49028] Fix | Delete
style.height = measureToString(this.medium.long);
[49029] Fix | Delete
this[$extra].space = {
[49030] Fix | Delete
width: this.medium.short,
[49031] Fix | Delete
height: this.medium.long
[49032] Fix | Delete
};
[49033] Fix | Delete
if (this.medium.orientation === "landscape") {
[49034] Fix | Delete
const x = style.width;
[49035] Fix | Delete
style.width = style.height;
[49036] Fix | Delete
style.height = x;
[49037] Fix | Delete
this[$extra].space = {
[49038] Fix | Delete
width: this.medium.long,
[49039] Fix | Delete
height: this.medium.short
[49040] Fix | Delete
};
[49041] Fix | Delete
}
[49042] Fix | Delete
} else {
[49043] Fix | Delete
warn("XFA - No medium specified in pageArea: please file a bug.");
[49044] Fix | Delete
}
[49045] Fix | Delete
this[$childrenToHTML]({
[49046] Fix | Delete
filter: new Set(["area", "draw", "field", "subform"]),
[49047] Fix | Delete
include: true
[49048] Fix | Delete
});
[49049] Fix | Delete
this[$childrenToHTML]({
[49050] Fix | Delete
filter: new Set(["contentArea"]),
[49051] Fix | Delete
include: true
[49052] Fix | Delete
});
[49053] Fix | Delete
return HTMLResult.success({
[49054] Fix | Delete
name: "div",
[49055] Fix | Delete
children,
[49056] Fix | Delete
attributes: {
[49057] Fix | Delete
class: ["xfaPage"],
[49058] Fix | Delete
id: this[$uid],
[49059] Fix | Delete
style,
[49060] Fix | Delete
xfaName: this.name
[49061] Fix | Delete
}
[49062] Fix | Delete
});
[49063] Fix | Delete
}
[49064] Fix | Delete
}
[49065] Fix | Delete
class PageSet extends XFAObject {
[49066] Fix | Delete
constructor(attributes) {
[49067] Fix | Delete
super(TEMPLATE_NS_ID, "pageSet", true);
[49068] Fix | Delete
this.duplexImposition = getStringOption(attributes.duplexImposition, ["longEdge", "shortEdge"]);
[49069] Fix | Delete
this.id = attributes.id || "";
[49070] Fix | Delete
this.name = attributes.name || "";
[49071] Fix | Delete
this.relation = getStringOption(attributes.relation, ["orderedOccurrence", "duplexPaginated", "simplexPaginated"]);
[49072] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[49073] Fix | Delete
this.use = attributes.use || "";
[49074] Fix | Delete
this.usehref = attributes.usehref || "";
[49075] Fix | Delete
this.extras = null;
[49076] Fix | Delete
this.occur = null;
[49077] Fix | Delete
this.pageArea = new XFAObjectArray();
[49078] Fix | Delete
this.pageSet = new XFAObjectArray();
[49079] Fix | Delete
}
[49080] Fix | Delete
[$cleanPage]() {
[49081] Fix | Delete
for (const page of this.pageArea.children) {
[49082] Fix | Delete
page[$cleanPage]();
[49083] Fix | Delete
}
[49084] Fix | Delete
for (const page of this.pageSet.children) {
[49085] Fix | Delete
page[$cleanPage]();
[49086] Fix | Delete
}
[49087] Fix | Delete
}
[49088] Fix | Delete
[$isUsable]() {
[49089] Fix | Delete
return !this.occur || this.occur.max === -1 || this[$extra].numberOfUse < this.occur.max;
[49090] Fix | Delete
}
[49091] Fix | Delete
[$getNextPage]() {
[49092] Fix | Delete
if (!this[$extra]) {
[49093] Fix | Delete
this[$extra] = {
[49094] Fix | Delete
numberOfUse: 1,
[49095] Fix | Delete
pageIndex: -1,
[49096] Fix | Delete
pageSetIndex: -1
[49097] Fix | Delete
};
[49098] Fix | Delete
}
[49099] Fix | Delete
if (this.relation === "orderedOccurrence") {
[49100] Fix | Delete
if (this[$extra].pageIndex + 1 < this.pageArea.children.length) {
[49101] Fix | Delete
this[$extra].pageIndex += 1;
[49102] Fix | Delete
const pageArea = this.pageArea.children[this[$extra].pageIndex];
[49103] Fix | Delete
return pageArea[$getNextPage]();
[49104] Fix | Delete
}
[49105] Fix | Delete
if (this[$extra].pageSetIndex + 1 < this.pageSet.children.length) {
[49106] Fix | Delete
this[$extra].pageSetIndex += 1;
[49107] Fix | Delete
return this.pageSet.children[this[$extra].pageSetIndex][$getNextPage]();
[49108] Fix | Delete
}
[49109] Fix | Delete
if (this[$isUsable]()) {
[49110] Fix | Delete
this[$extra].numberOfUse += 1;
[49111] Fix | Delete
this[$extra].pageIndex = -1;
[49112] Fix | Delete
this[$extra].pageSetIndex = -1;
[49113] Fix | Delete
return this[$getNextPage]();
[49114] Fix | Delete
}
[49115] Fix | Delete
const parent = this[$getParent]();
[49116] Fix | Delete
if (parent instanceof PageSet) {
[49117] Fix | Delete
return parent[$getNextPage]();
[49118] Fix | Delete
}
[49119] Fix | Delete
this[$cleanPage]();
[49120] Fix | Delete
return this[$getNextPage]();
[49121] Fix | Delete
}
[49122] Fix | Delete
const pageNumber = this[$getTemplateRoot]()[$extra].pageNumber;
[49123] Fix | Delete
const parity = pageNumber % 2 === 0 ? "even" : "odd";
[49124] Fix | Delete
const position = pageNumber === 0 ? "first" : "rest";
[49125] Fix | Delete
let page = this.pageArea.children.find(p => p.oddOrEven === parity && p.pagePosition === position);
[49126] Fix | Delete
if (page) {
[49127] Fix | Delete
return page;
[49128] Fix | Delete
}
[49129] Fix | Delete
page = this.pageArea.children.find(p => p.oddOrEven === "any" && p.pagePosition === position);
[49130] Fix | Delete
if (page) {
[49131] Fix | Delete
return page;
[49132] Fix | Delete
}
[49133] Fix | Delete
page = this.pageArea.children.find(p => p.oddOrEven === "any" && p.pagePosition === "any");
[49134] Fix | Delete
if (page) {
[49135] Fix | Delete
return page;
[49136] Fix | Delete
}
[49137] Fix | Delete
return this.pageArea.children[0];
[49138] Fix | Delete
}
[49139] Fix | Delete
}
[49140] Fix | Delete
class Para extends XFAObject {
[49141] Fix | Delete
constructor(attributes) {
[49142] Fix | Delete
super(TEMPLATE_NS_ID, "para", true);
[49143] Fix | Delete
this.hAlign = getStringOption(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]);
[49144] Fix | Delete
this.id = attributes.id || "";
[49145] Fix | Delete
this.lineHeight = attributes.lineHeight ? getMeasurement(attributes.lineHeight, "0pt") : "";
[49146] Fix | Delete
this.marginLeft = attributes.marginLeft ? getMeasurement(attributes.marginLeft, "0pt") : "";
[49147] Fix | Delete
this.marginRight = attributes.marginRight ? getMeasurement(attributes.marginRight, "0pt") : "";
[49148] Fix | Delete
this.orphans = getInteger({
[49149] Fix | Delete
data: attributes.orphans,
[49150] Fix | Delete
defaultValue: 0,
[49151] Fix | Delete
validate: x => x >= 0
[49152] Fix | Delete
});
[49153] Fix | Delete
this.preserve = attributes.preserve || "";
[49154] Fix | Delete
this.radixOffset = attributes.radixOffset ? getMeasurement(attributes.radixOffset, "0pt") : "";
[49155] Fix | Delete
this.spaceAbove = attributes.spaceAbove ? getMeasurement(attributes.spaceAbove, "0pt") : "";
[49156] Fix | Delete
this.spaceBelow = attributes.spaceBelow ? getMeasurement(attributes.spaceBelow, "0pt") : "";
[49157] Fix | Delete
this.tabDefault = attributes.tabDefault ? getMeasurement(this.tabDefault) : "";
[49158] Fix | Delete
this.tabStops = (attributes.tabStops || "").trim().split(/\s+/).map((x, i) => i % 2 === 1 ? getMeasurement(x) : x);
[49159] Fix | Delete
this.textIndent = attributes.textIndent ? getMeasurement(attributes.textIndent, "0pt") : "";
[49160] Fix | Delete
this.use = attributes.use || "";
[49161] Fix | Delete
this.usehref = attributes.usehref || "";
[49162] Fix | Delete
this.vAlign = getStringOption(attributes.vAlign, ["top", "bottom", "middle"]);
[49163] Fix | Delete
this.widows = getInteger({
[49164] Fix | Delete
data: attributes.widows,
[49165] Fix | Delete
defaultValue: 0,
[49166] Fix | Delete
validate: x => x >= 0
[49167] Fix | Delete
});
[49168] Fix | Delete
this.hyphenation = null;
[49169] Fix | Delete
}
[49170] Fix | Delete
[$toStyle]() {
[49171] Fix | Delete
const style = toStyle(this, "hAlign");
[49172] Fix | Delete
if (this.marginLeft !== "") {
[49173] Fix | Delete
style.paddingLeft = measureToString(this.marginLeft);
[49174] Fix | Delete
}
[49175] Fix | Delete
if (this.marginRight !== "") {
[49176] Fix | Delete
style.paddingight = measureToString(this.marginRight);
[49177] Fix | Delete
}
[49178] Fix | Delete
if (this.spaceAbove !== "") {
[49179] Fix | Delete
style.paddingTop = measureToString(this.spaceAbove);
[49180] Fix | Delete
}
[49181] Fix | Delete
if (this.spaceBelow !== "") {
[49182] Fix | Delete
style.paddingBottom = measureToString(this.spaceBelow);
[49183] Fix | Delete
}
[49184] Fix | Delete
if (this.textIndent !== "") {
[49185] Fix | Delete
style.textIndent = measureToString(this.textIndent);
[49186] Fix | Delete
fixTextIndent(style);
[49187] Fix | Delete
}
[49188] Fix | Delete
if (this.lineHeight > 0) {
[49189] Fix | Delete
style.lineHeight = measureToString(this.lineHeight);
[49190] Fix | Delete
}
[49191] Fix | Delete
if (this.tabDefault !== "") {
[49192] Fix | Delete
style.tabSize = measureToString(this.tabDefault);
[49193] Fix | Delete
}
[49194] Fix | Delete
if (this.tabStops.length > 0) {}
[49195] Fix | Delete
if (this.hyphenatation) {
[49196] Fix | Delete
Object.assign(style, this.hyphenatation[$toStyle]());
[49197] Fix | Delete
}
[49198] Fix | Delete
return style;
[49199] Fix | Delete
}
[49200] Fix | Delete
}
[49201] Fix | Delete
class PasswordEdit extends XFAObject {
[49202] Fix | Delete
constructor(attributes) {
[49203] Fix | Delete
super(TEMPLATE_NS_ID, "passwordEdit", true);
[49204] Fix | Delete
this.hScrollPolicy = getStringOption(attributes.hScrollPolicy, ["auto", "off", "on"]);
[49205] Fix | Delete
this.id = attributes.id || "";
[49206] Fix | Delete
this.passwordChar = attributes.passwordChar || "*";
[49207] Fix | Delete
this.use = attributes.use || "";
[49208] Fix | Delete
this.usehref = attributes.usehref || "";
[49209] Fix | Delete
this.border = null;
[49210] Fix | Delete
this.extras = null;
[49211] Fix | Delete
this.margin = null;
[49212] Fix | Delete
}
[49213] Fix | Delete
}
[49214] Fix | Delete
class template_Pattern extends XFAObject {
[49215] Fix | Delete
constructor(attributes) {
[49216] Fix | Delete
super(TEMPLATE_NS_ID, "pattern", true);
[49217] Fix | Delete
this.id = attributes.id || "";
[49218] Fix | Delete
this.type = getStringOption(attributes.type, ["crossHatch", "crossDiagonal", "diagonalLeft", "diagonalRight", "horizontal", "vertical"]);
[49219] Fix | Delete
this.use = attributes.use || "";
[49220] Fix | Delete
this.usehref = attributes.usehref || "";
[49221] Fix | Delete
this.color = null;
[49222] Fix | Delete
this.extras = null;
[49223] Fix | Delete
}
[49224] Fix | Delete
[$toStyle](startColor) {
[49225] Fix | Delete
startColor = startColor ? startColor[$toStyle]() : "#FFFFFF";
[49226] Fix | Delete
const endColor = this.color ? this.color[$toStyle]() : "#000000";
[49227] Fix | Delete
const width = 5;
[49228] Fix | Delete
const cmd = "repeating-linear-gradient";
[49229] Fix | Delete
const colors = `${startColor},${startColor} ${width}px,${endColor} ${width}px,${endColor} ${2 * width}px`;
[49230] Fix | Delete
switch (this.type) {
[49231] Fix | Delete
case "crossHatch":
[49232] Fix | Delete
return `${cmd}(to top,${colors}) ${cmd}(to right,${colors})`;
[49233] Fix | Delete
case "crossDiagonal":
[49234] Fix | Delete
return `${cmd}(45deg,${colors}) ${cmd}(-45deg,${colors})`;
[49235] Fix | Delete
case "diagonalLeft":
[49236] Fix | Delete
return `${cmd}(45deg,${colors})`;
[49237] Fix | Delete
case "diagonalRight":
[49238] Fix | Delete
return `${cmd}(-45deg,${colors})`;
[49239] Fix | Delete
case "horizontal":
[49240] Fix | Delete
return `${cmd}(to top,${colors})`;
[49241] Fix | Delete
case "vertical":
[49242] Fix | Delete
return `${cmd}(to right,${colors})`;
[49243] Fix | Delete
}
[49244] Fix | Delete
return "";
[49245] Fix | Delete
}
[49246] Fix | Delete
}
[49247] Fix | Delete
class Picture extends StringObject {
[49248] Fix | Delete
constructor(attributes) {
[49249] Fix | Delete
super(TEMPLATE_NS_ID, "picture");
[49250] Fix | Delete
this.id = attributes.id || "";
[49251] Fix | Delete
this.use = attributes.use || "";
[49252] Fix | Delete
this.usehref = attributes.usehref || "";
[49253] Fix | Delete
}
[49254] Fix | Delete
}
[49255] Fix | Delete
class Proto extends XFAObject {
[49256] Fix | Delete
constructor(attributes) {
[49257] Fix | Delete
super(TEMPLATE_NS_ID, "proto", true);
[49258] Fix | Delete
this.appearanceFilter = new XFAObjectArray();
[49259] Fix | Delete
this.arc = new XFAObjectArray();
[49260] Fix | Delete
this.area = new XFAObjectArray();
[49261] Fix | Delete
this.assist = new XFAObjectArray();
[49262] Fix | Delete
this.barcode = new XFAObjectArray();
[49263] Fix | Delete
this.bindItems = new XFAObjectArray();
[49264] Fix | Delete
this.bookend = new XFAObjectArray();
[49265] Fix | Delete
this.boolean = new XFAObjectArray();
[49266] Fix | Delete
this.border = new XFAObjectArray();
[49267] Fix | Delete
this.break = new XFAObjectArray();
[49268] Fix | Delete
this.breakAfter = new XFAObjectArray();
[49269] Fix | Delete
this.breakBefore = new XFAObjectArray();
[49270] Fix | Delete
this.button = new XFAObjectArray();
[49271] Fix | Delete
this.calculate = new XFAObjectArray();
[49272] Fix | Delete
this.caption = new XFAObjectArray();
[49273] Fix | Delete
this.certificate = new XFAObjectArray();
[49274] Fix | Delete
this.certificates = new XFAObjectArray();
[49275] Fix | Delete
this.checkButton = new XFAObjectArray();
[49276] Fix | Delete
this.choiceList = new XFAObjectArray();
[49277] Fix | Delete
this.color = new XFAObjectArray();
[49278] Fix | Delete
this.comb = new XFAObjectArray();
[49279] Fix | Delete
this.connect = new XFAObjectArray();
[49280] Fix | Delete
this.contentArea = new XFAObjectArray();
[49281] Fix | Delete
this.corner = new XFAObjectArray();
[49282] Fix | Delete
this.date = new XFAObjectArray();
[49283] Fix | Delete
this.dateTime = new XFAObjectArray();
[49284] Fix | Delete
this.dateTimeEdit = new XFAObjectArray();
[49285] Fix | Delete
this.decimal = new XFAObjectArray();
[49286] Fix | Delete
this.defaultUi = new XFAObjectArray();
[49287] Fix | Delete
this.desc = new XFAObjectArray();
[49288] Fix | Delete
this.digestMethod = new XFAObjectArray();
[49289] Fix | Delete
this.digestMethods = new XFAObjectArray();
[49290] Fix | Delete
this.draw = new XFAObjectArray();
[49291] Fix | Delete
this.edge = new XFAObjectArray();
[49292] Fix | Delete
this.encoding = new XFAObjectArray();
[49293] Fix | Delete
this.encodings = new XFAObjectArray();
[49294] Fix | Delete
this.encrypt = new XFAObjectArray();
[49295] Fix | Delete
this.encryptData = new XFAObjectArray();
[49296] Fix | Delete
this.encryption = new XFAObjectArray();
[49297] Fix | Delete
this.encryptionMethod = new XFAObjectArray();
[49298] Fix | Delete
this.encryptionMethods = new XFAObjectArray();
[49299] Fix | Delete
this.event = new XFAObjectArray();
[49300] Fix | Delete
this.exData = new XFAObjectArray();
[49301] Fix | Delete
this.exObject = new XFAObjectArray();
[49302] Fix | Delete
this.exclGroup = new XFAObjectArray();
[49303] Fix | Delete
this.execute = new XFAObjectArray();
[49304] Fix | Delete
this.extras = new XFAObjectArray();
[49305] Fix | Delete
this.field = new XFAObjectArray();
[49306] Fix | Delete
this.fill = new XFAObjectArray();
[49307] Fix | Delete
this.filter = new XFAObjectArray();
[49308] Fix | Delete
this.float = new XFAObjectArray();
[49309] Fix | Delete
this.font = new XFAObjectArray();
[49310] Fix | Delete
this.format = new XFAObjectArray();
[49311] Fix | Delete
this.handler = new XFAObjectArray();
[49312] Fix | Delete
this.hyphenation = new XFAObjectArray();
[49313] Fix | Delete
this.image = new XFAObjectArray();
[49314] Fix | Delete
this.imageEdit = new XFAObjectArray();
[49315] Fix | Delete
this.integer = new XFAObjectArray();
[49316] Fix | Delete
this.issuers = new XFAObjectArray();
[49317] Fix | Delete
this.items = new XFAObjectArray();
[49318] Fix | Delete
this.keep = new XFAObjectArray();
[49319] Fix | Delete
this.keyUsage = new XFAObjectArray();
[49320] Fix | Delete
this.line = new XFAObjectArray();
[49321] Fix | Delete
this.linear = new XFAObjectArray();
[49322] Fix | Delete
this.lockDocument = new XFAObjectArray();
[49323] Fix | Delete
this.manifest = new XFAObjectArray();
[49324] Fix | Delete
this.margin = new XFAObjectArray();
[49325] Fix | Delete
this.mdp = new XFAObjectArray();
[49326] Fix | Delete
this.medium = new XFAObjectArray();
[49327] Fix | Delete
this.message = new XFAObjectArray();
[49328] Fix | Delete
this.numericEdit = new XFAObjectArray();
[49329] Fix | Delete
this.occur = new XFAObjectArray();
[49330] Fix | Delete
this.oid = new XFAObjectArray();
[49331] Fix | Delete
this.oids = new XFAObjectArray();
[49332] Fix | Delete
this.overflow = new XFAObjectArray();
[49333] Fix | Delete
this.pageArea = new XFAObjectArray();
[49334] Fix | Delete
this.pageSet = new XFAObjectArray();
[49335] Fix | Delete
this.para = new XFAObjectArray();
[49336] Fix | Delete
this.passwordEdit = new XFAObjectArray();
[49337] Fix | Delete
this.pattern = new XFAObjectArray();
[49338] Fix | Delete
this.picture = new XFAObjectArray();
[49339] Fix | Delete
this.radial = new XFAObjectArray();
[49340] Fix | Delete
this.reason = new XFAObjectArray();
[49341] Fix | Delete
this.reasons = new XFAObjectArray();
[49342] Fix | Delete
this.rectangle = new XFAObjectArray();
[49343] Fix | Delete
this.ref = new XFAObjectArray();
[49344] Fix | Delete
this.script = new XFAObjectArray();
[49345] Fix | Delete
this.setProperty = new XFAObjectArray();
[49346] Fix | Delete
this.signData = new XFAObjectArray();
[49347] Fix | Delete
this.signature = new XFAObjectArray();
[49348] Fix | Delete
this.signing = new XFAObjectArray();
[49349] Fix | Delete
this.solid = new XFAObjectArray();
[49350] Fix | Delete
this.speak = new XFAObjectArray();
[49351] Fix | Delete
this.stipple = new XFAObjectArray();
[49352] Fix | Delete
this.subform = new XFAObjectArray();
[49353] Fix | Delete
this.subformSet = new XFAObjectArray();
[49354] Fix | Delete
this.subjectDN = new XFAObjectArray();
[49355] Fix | Delete
this.subjectDNs = new XFAObjectArray();
[49356] Fix | Delete
this.submit = new XFAObjectArray();
[49357] Fix | Delete
this.text = new XFAObjectArray();
[49358] Fix | Delete
this.textEdit = new XFAObjectArray();
[49359] Fix | Delete
this.time = new XFAObjectArray();
[49360] Fix | Delete
this.timeStamp = new XFAObjectArray();
[49361] Fix | Delete
this.toolTip = new XFAObjectArray();
[49362] Fix | Delete
this.traversal = new XFAObjectArray();
[49363] Fix | Delete
this.traverse = new XFAObjectArray();
[49364] Fix | Delete
this.ui = new XFAObjectArray();
[49365] Fix | Delete
this.validate = new XFAObjectArray();
[49366] Fix | Delete
this.value = new XFAObjectArray();
[49367] Fix | Delete
this.variables = new XFAObjectArray();
[49368] Fix | Delete
}
[49369] Fix | Delete
}
[49370] Fix | Delete
class Radial extends XFAObject {
[49371] Fix | Delete
constructor(attributes) {
[49372] Fix | Delete
super(TEMPLATE_NS_ID, "radial", true);
[49373] Fix | Delete
this.id = attributes.id || "";
[49374] Fix | Delete
this.type = getStringOption(attributes.type, ["toEdge", "toCenter"]);
[49375] Fix | Delete
this.use = attributes.use || "";
[49376] Fix | Delete
this.usehref = attributes.usehref || "";
[49377] Fix | Delete
this.color = null;
[49378] Fix | Delete
this.extras = null;
[49379] Fix | Delete
}
[49380] Fix | Delete
[$toStyle](startColor) {
[49381] Fix | Delete
startColor = startColor ? startColor[$toStyle]() : "#FFFFFF";
[49382] Fix | Delete
const endColor = this.color ? this.color[$toStyle]() : "#000000";
[49383] Fix | Delete
const colors = this.type === "toEdge" ? `${startColor},${endColor}` : `${endColor},${startColor}`;
[49384] Fix | Delete
return `radial-gradient(circle at center, ${colors})`;
[49385] Fix | Delete
}
[49386] Fix | Delete
}
[49387] Fix | Delete
class Reason extends StringObject {
[49388] Fix | Delete
constructor(attributes) {
[49389] Fix | Delete
super(TEMPLATE_NS_ID, "reason");
[49390] Fix | Delete
this.id = attributes.id || "";
[49391] Fix | Delete
this.name = attributes.name || "";
[49392] Fix | Delete
this.use = attributes.use || "";
[49393] Fix | Delete
this.usehref = attributes.usehref || "";
[49394] Fix | Delete
}
[49395] Fix | Delete
}
[49396] Fix | Delete
class Reasons extends XFAObject {
[49397] Fix | Delete
constructor(attributes) {
[49398] Fix | Delete
super(TEMPLATE_NS_ID, "reasons", true);
[49399] Fix | Delete
this.id = attributes.id || "";
[49400] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[49401] Fix | Delete
this.use = attributes.use || "";
[49402] Fix | Delete
this.usehref = attributes.usehref || "";
[49403] Fix | Delete
this.reason = new XFAObjectArray();
[49404] Fix | Delete
}
[49405] Fix | Delete
}
[49406] Fix | Delete
class Rectangle extends XFAObject {
[49407] Fix | Delete
constructor(attributes) {
[49408] Fix | Delete
super(TEMPLATE_NS_ID, "rectangle", true);
[49409] Fix | Delete
this.hand = getStringOption(attributes.hand, ["even", "left", "right"]);
[49410] Fix | Delete
this.id = attributes.id || "";
[49411] Fix | Delete
this.use = attributes.use || "";
[49412] Fix | Delete
this.usehref = attributes.usehref || "";
[49413] Fix | Delete
this.corner = new XFAObjectArray(4);
[49414] Fix | Delete
this.edge = new XFAObjectArray(4);
[49415] Fix | Delete
this.fill = null;
[49416] Fix | Delete
}
[49417] Fix | Delete
[$toHTML]() {
[49418] Fix | Delete
const edge = this.edge.children.length ? this.edge.children[0] : new Edge({});
[49419] Fix | Delete
const edgeStyle = edge[$toStyle]();
[49420] Fix | Delete
const style = Object.create(null);
[49421] Fix | Delete
if (this.fill?.presence === "visible") {
[49422] Fix | Delete
Object.assign(style, this.fill[$toStyle]());
[49423] Fix | Delete
} else {
[49424] Fix | Delete
style.fill = "transparent";
[49425] Fix | Delete
}
[49426] Fix | Delete
style.strokeWidth = measureToString(edge.presence === "visible" ? edge.thickness : 0);
[49427] Fix | Delete
style.stroke = edgeStyle.color;
[49428] Fix | Delete
const corner = this.corner.children.length ? this.corner.children[0] : new Corner({});
[49429] Fix | Delete
const cornerStyle = corner[$toStyle]();
[49430] Fix | Delete
const rect = {
[49431] Fix | Delete
name: "rect",
[49432] Fix | Delete
attributes: {
[49433] Fix | Delete
xmlns: SVG_NS,
[49434] Fix | Delete
width: "100%",
[49435] Fix | Delete
height: "100%",
[49436] Fix | Delete
x: 0,
[49437] Fix | Delete
y: 0,
[49438] Fix | Delete
rx: cornerStyle.radius,
[49439] Fix | Delete
ry: cornerStyle.radius,
[49440] Fix | Delete
style
[49441] Fix | Delete
}
[49442] Fix | Delete
};
[49443] Fix | Delete
const svg = {
[49444] Fix | Delete
name: "svg",
[49445] Fix | Delete
children: [rect],
[49446] Fix | Delete
attributes: {
[49447] Fix | Delete
xmlns: SVG_NS,
[49448] Fix | Delete
style: {
[49449] Fix | Delete
overflow: "visible"
[49450] Fix | Delete
},
[49451] Fix | Delete
width: "100%",
[49452] Fix | Delete
height: "100%"
[49453] Fix | Delete
}
[49454] Fix | Delete
};
[49455] Fix | Delete
const parent = this[$getParent]()[$getParent]();
[49456] Fix | Delete
if (hasMargin(parent)) {
[49457] Fix | Delete
return HTMLResult.success({
[49458] Fix | Delete
name: "div",
[49459] Fix | Delete
attributes: {
[49460] Fix | Delete
style: {
[49461] Fix | Delete
display: "inline",
[49462] Fix | Delete
width: "100%",
[49463] Fix | Delete
height: "100%"
[49464] Fix | Delete
}
[49465] Fix | Delete
},
[49466] Fix | Delete
children: [svg]
[49467] Fix | Delete
});
[49468] Fix | Delete
}
[49469] Fix | Delete
svg.attributes.style.position = "absolute";
[49470] Fix | Delete
return HTMLResult.success(svg);
[49471] Fix | Delete
}
[49472] Fix | Delete
}
[49473] Fix | Delete
class RefElement extends StringObject {
[49474] Fix | Delete
constructor(attributes) {
[49475] Fix | Delete
super(TEMPLATE_NS_ID, "ref");
[49476] Fix | Delete
this.id = attributes.id || "";
[49477] Fix | Delete
this.use = attributes.use || "";
[49478] Fix | Delete
this.usehref = attributes.usehref || "";
[49479] Fix | Delete
}
[49480] Fix | Delete
}
[49481] Fix | Delete
class Script extends StringObject {
[49482] Fix | Delete
constructor(attributes) {
[49483] Fix | Delete
super(TEMPLATE_NS_ID, "script");
[49484] Fix | Delete
this.binding = attributes.binding || "";
[49485] Fix | Delete
this.contentType = attributes.contentType || "";
[49486] Fix | Delete
this.id = attributes.id || "";
[49487] Fix | Delete
this.name = attributes.name || "";
[49488] Fix | Delete
this.runAt = getStringOption(attributes.runAt, ["client", "both", "server"]);
[49489] Fix | Delete
this.use = attributes.use || "";
[49490] Fix | Delete
this.usehref = attributes.usehref || "";
[49491] Fix | Delete
}
[49492] Fix | Delete
}
[49493] Fix | Delete
class SetProperty extends XFAObject {
[49494] Fix | Delete
constructor(attributes) {
[49495] Fix | Delete
super(TEMPLATE_NS_ID, "setProperty");
[49496] Fix | Delete
this.connection = attributes.connection || "";
[49497] Fix | Delete
this.ref = attributes.ref || "";
[49498] Fix | Delete
this.target = attributes.target || "";
[49499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function