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
super(TEMPLATE_NS_ID, "choiceList", true);
[47000] Fix | Delete
this.commitOn = getStringOption(attributes.commitOn, ["select", "exit"]);
[47001] Fix | Delete
this.id = attributes.id || "";
[47002] Fix | Delete
this.open = getStringOption(attributes.open, ["userControl", "always", "multiSelect", "onEntry"]);
[47003] Fix | Delete
this.textEntry = getInteger({
[47004] Fix | Delete
data: attributes.textEntry,
[47005] Fix | Delete
defaultValue: 0,
[47006] Fix | Delete
validate: x => x === 1
[47007] Fix | Delete
});
[47008] Fix | Delete
this.use = attributes.use || "";
[47009] Fix | Delete
this.usehref = attributes.usehref || "";
[47010] Fix | Delete
this.border = null;
[47011] Fix | Delete
this.extras = null;
[47012] Fix | Delete
this.margin = null;
[47013] Fix | Delete
}
[47014] Fix | Delete
[$toHTML](availableSpace) {
[47015] Fix | Delete
const style = toStyle(this, "border", "margin");
[47016] Fix | Delete
const ui = this[$getParent]();
[47017] Fix | Delete
const field = ui[$getParent]();
[47018] Fix | Delete
const fontSize = field.font?.size || 10;
[47019] Fix | Delete
const optionStyle = {
[47020] Fix | Delete
fontSize: `calc(${fontSize}px * var(--scale-factor))`
[47021] Fix | Delete
};
[47022] Fix | Delete
const children = [];
[47023] Fix | Delete
if (field.items.children.length > 0) {
[47024] Fix | Delete
const items = field.items;
[47025] Fix | Delete
let displayedIndex = 0;
[47026] Fix | Delete
let saveIndex = 0;
[47027] Fix | Delete
if (items.children.length === 2) {
[47028] Fix | Delete
displayedIndex = items.children[0].save;
[47029] Fix | Delete
saveIndex = 1 - displayedIndex;
[47030] Fix | Delete
}
[47031] Fix | Delete
const displayed = items.children[displayedIndex][$toHTML]().html;
[47032] Fix | Delete
const values = items.children[saveIndex][$toHTML]().html;
[47033] Fix | Delete
let selected = false;
[47034] Fix | Delete
const value = field.value?.[$text]() || "";
[47035] Fix | Delete
for (let i = 0, ii = displayed.length; i < ii; i++) {
[47036] Fix | Delete
const option = {
[47037] Fix | Delete
name: "option",
[47038] Fix | Delete
attributes: {
[47039] Fix | Delete
value: values[i] || displayed[i],
[47040] Fix | Delete
style: optionStyle
[47041] Fix | Delete
},
[47042] Fix | Delete
value: displayed[i]
[47043] Fix | Delete
};
[47044] Fix | Delete
if (values[i] === value) {
[47045] Fix | Delete
option.attributes.selected = selected = true;
[47046] Fix | Delete
}
[47047] Fix | Delete
children.push(option);
[47048] Fix | Delete
}
[47049] Fix | Delete
if (!selected) {
[47050] Fix | Delete
children.splice(0, 0, {
[47051] Fix | Delete
name: "option",
[47052] Fix | Delete
attributes: {
[47053] Fix | Delete
hidden: true,
[47054] Fix | Delete
selected: true
[47055] Fix | Delete
},
[47056] Fix | Delete
value: " "
[47057] Fix | Delete
});
[47058] Fix | Delete
}
[47059] Fix | Delete
}
[47060] Fix | Delete
const selectAttributes = {
[47061] Fix | Delete
class: ["xfaSelect"],
[47062] Fix | Delete
fieldId: field[$uid],
[47063] Fix | Delete
dataId: field[$data]?.[$uid] || field[$uid],
[47064] Fix | Delete
style,
[47065] Fix | Delete
"aria-label": ariaLabel(field),
[47066] Fix | Delete
"aria-required": false
[47067] Fix | Delete
};
[47068] Fix | Delete
if (isRequired(field)) {
[47069] Fix | Delete
selectAttributes["aria-required"] = true;
[47070] Fix | Delete
selectAttributes.required = true;
[47071] Fix | Delete
}
[47072] Fix | Delete
if (this.open === "multiSelect") {
[47073] Fix | Delete
selectAttributes.multiple = true;
[47074] Fix | Delete
}
[47075] Fix | Delete
return HTMLResult.success({
[47076] Fix | Delete
name: "label",
[47077] Fix | Delete
attributes: {
[47078] Fix | Delete
class: ["xfaLabel"]
[47079] Fix | Delete
},
[47080] Fix | Delete
children: [{
[47081] Fix | Delete
name: "select",
[47082] Fix | Delete
children,
[47083] Fix | Delete
attributes: selectAttributes
[47084] Fix | Delete
}]
[47085] Fix | Delete
});
[47086] Fix | Delete
}
[47087] Fix | Delete
}
[47088] Fix | Delete
class Color extends XFAObject {
[47089] Fix | Delete
constructor(attributes) {
[47090] Fix | Delete
super(TEMPLATE_NS_ID, "color", true);
[47091] Fix | Delete
this.cSpace = getStringOption(attributes.cSpace, ["SRGB"]);
[47092] Fix | Delete
this.id = attributes.id || "";
[47093] Fix | Delete
this.use = attributes.use || "";
[47094] Fix | Delete
this.usehref = attributes.usehref || "";
[47095] Fix | Delete
this.value = attributes.value ? getColor(attributes.value) : "";
[47096] Fix | Delete
this.extras = null;
[47097] Fix | Delete
}
[47098] Fix | Delete
[$hasSettableValue]() {
[47099] Fix | Delete
return false;
[47100] Fix | Delete
}
[47101] Fix | Delete
[$toStyle]() {
[47102] Fix | Delete
return this.value ? Util.makeHexColor(this.value.r, this.value.g, this.value.b) : null;
[47103] Fix | Delete
}
[47104] Fix | Delete
}
[47105] Fix | Delete
class Comb extends XFAObject {
[47106] Fix | Delete
constructor(attributes) {
[47107] Fix | Delete
super(TEMPLATE_NS_ID, "comb");
[47108] Fix | Delete
this.id = attributes.id || "";
[47109] Fix | Delete
this.numberOfCells = getInteger({
[47110] Fix | Delete
data: attributes.numberOfCells,
[47111] Fix | Delete
defaultValue: 0,
[47112] Fix | Delete
validate: x => x >= 0
[47113] Fix | Delete
});
[47114] Fix | Delete
this.use = attributes.use || "";
[47115] Fix | Delete
this.usehref = attributes.usehref || "";
[47116] Fix | Delete
}
[47117] Fix | Delete
}
[47118] Fix | Delete
class Connect extends XFAObject {
[47119] Fix | Delete
constructor(attributes) {
[47120] Fix | Delete
super(TEMPLATE_NS_ID, "connect", true);
[47121] Fix | Delete
this.connection = attributes.connection || "";
[47122] Fix | Delete
this.id = attributes.id || "";
[47123] Fix | Delete
this.ref = attributes.ref || "";
[47124] Fix | Delete
this.usage = getStringOption(attributes.usage, ["exportAndImport", "exportOnly", "importOnly"]);
[47125] Fix | Delete
this.use = attributes.use || "";
[47126] Fix | Delete
this.usehref = attributes.usehref || "";
[47127] Fix | Delete
this.picture = null;
[47128] Fix | Delete
}
[47129] Fix | Delete
}
[47130] Fix | Delete
class ContentArea extends XFAObject {
[47131] Fix | Delete
constructor(attributes) {
[47132] Fix | Delete
super(TEMPLATE_NS_ID, "contentArea", true);
[47133] Fix | Delete
this.h = getMeasurement(attributes.h);
[47134] Fix | Delete
this.id = attributes.id || "";
[47135] Fix | Delete
this.name = attributes.name || "";
[47136] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[47137] Fix | Delete
this.use = attributes.use || "";
[47138] Fix | Delete
this.usehref = attributes.usehref || "";
[47139] Fix | Delete
this.w = getMeasurement(attributes.w);
[47140] Fix | Delete
this.x = getMeasurement(attributes.x, "0pt");
[47141] Fix | Delete
this.y = getMeasurement(attributes.y, "0pt");
[47142] Fix | Delete
this.desc = null;
[47143] Fix | Delete
this.extras = null;
[47144] Fix | Delete
}
[47145] Fix | Delete
[$toHTML](availableSpace) {
[47146] Fix | Delete
const left = measureToString(this.x);
[47147] Fix | Delete
const top = measureToString(this.y);
[47148] Fix | Delete
const style = {
[47149] Fix | Delete
left,
[47150] Fix | Delete
top,
[47151] Fix | Delete
width: measureToString(this.w),
[47152] Fix | Delete
height: measureToString(this.h)
[47153] Fix | Delete
};
[47154] Fix | Delete
const classNames = ["xfaContentarea"];
[47155] Fix | Delete
if (isPrintOnly(this)) {
[47156] Fix | Delete
classNames.push("xfaPrintOnly");
[47157] Fix | Delete
}
[47158] Fix | Delete
return HTMLResult.success({
[47159] Fix | Delete
name: "div",
[47160] Fix | Delete
children: [],
[47161] Fix | Delete
attributes: {
[47162] Fix | Delete
style,
[47163] Fix | Delete
class: classNames,
[47164] Fix | Delete
id: this[$uid]
[47165] Fix | Delete
}
[47166] Fix | Delete
});
[47167] Fix | Delete
}
[47168] Fix | Delete
}
[47169] Fix | Delete
class Corner extends XFAObject {
[47170] Fix | Delete
constructor(attributes) {
[47171] Fix | Delete
super(TEMPLATE_NS_ID, "corner", true);
[47172] Fix | Delete
this.id = attributes.id || "";
[47173] Fix | Delete
this.inverted = getInteger({
[47174] Fix | Delete
data: attributes.inverted,
[47175] Fix | Delete
defaultValue: 0,
[47176] Fix | Delete
validate: x => x === 1
[47177] Fix | Delete
});
[47178] Fix | Delete
this.join = getStringOption(attributes.join, ["square", "round"]);
[47179] Fix | Delete
this.presence = getStringOption(attributes.presence, ["visible", "hidden", "inactive", "invisible"]);
[47180] Fix | Delete
this.radius = getMeasurement(attributes.radius);
[47181] Fix | Delete
this.stroke = getStringOption(attributes.stroke, ["solid", "dashDot", "dashDotDot", "dashed", "dotted", "embossed", "etched", "lowered", "raised"]);
[47182] Fix | Delete
this.thickness = getMeasurement(attributes.thickness, "0.5pt");
[47183] Fix | Delete
this.use = attributes.use || "";
[47184] Fix | Delete
this.usehref = attributes.usehref || "";
[47185] Fix | Delete
this.color = null;
[47186] Fix | Delete
this.extras = null;
[47187] Fix | Delete
}
[47188] Fix | Delete
[$toStyle]() {
[47189] Fix | Delete
const style = toStyle(this, "visibility");
[47190] Fix | Delete
style.radius = measureToString(this.join === "square" ? 0 : this.radius);
[47191] Fix | Delete
return style;
[47192] Fix | Delete
}
[47193] Fix | Delete
}
[47194] Fix | Delete
class DateElement extends ContentObject {
[47195] Fix | Delete
constructor(attributes) {
[47196] Fix | Delete
super(TEMPLATE_NS_ID, "date");
[47197] Fix | Delete
this.id = attributes.id || "";
[47198] Fix | Delete
this.name = attributes.name || "";
[47199] Fix | Delete
this.use = attributes.use || "";
[47200] Fix | Delete
this.usehref = attributes.usehref || "";
[47201] Fix | Delete
}
[47202] Fix | Delete
[$finalize]() {
[47203] Fix | Delete
const date = this[$content].trim();
[47204] Fix | Delete
this[$content] = date ? new Date(date) : null;
[47205] Fix | Delete
}
[47206] Fix | Delete
[$toHTML](availableSpace) {
[47207] Fix | Delete
return valueToHtml(this[$content] ? this[$content].toString() : "");
[47208] Fix | Delete
}
[47209] Fix | Delete
}
[47210] Fix | Delete
class DateTime extends ContentObject {
[47211] Fix | Delete
constructor(attributes) {
[47212] Fix | Delete
super(TEMPLATE_NS_ID, "dateTime");
[47213] Fix | Delete
this.id = attributes.id || "";
[47214] Fix | Delete
this.name = attributes.name || "";
[47215] Fix | Delete
this.use = attributes.use || "";
[47216] Fix | Delete
this.usehref = attributes.usehref || "";
[47217] Fix | Delete
}
[47218] Fix | Delete
[$finalize]() {
[47219] Fix | Delete
const date = this[$content].trim();
[47220] Fix | Delete
this[$content] = date ? new Date(date) : null;
[47221] Fix | Delete
}
[47222] Fix | Delete
[$toHTML](availableSpace) {
[47223] Fix | Delete
return valueToHtml(this[$content] ? this[$content].toString() : "");
[47224] Fix | Delete
}
[47225] Fix | Delete
}
[47226] Fix | Delete
class DateTimeEdit extends XFAObject {
[47227] Fix | Delete
constructor(attributes) {
[47228] Fix | Delete
super(TEMPLATE_NS_ID, "dateTimeEdit", true);
[47229] Fix | Delete
this.hScrollPolicy = getStringOption(attributes.hScrollPolicy, ["auto", "off", "on"]);
[47230] Fix | Delete
this.id = attributes.id || "";
[47231] Fix | Delete
this.picker = getStringOption(attributes.picker, ["host", "none"]);
[47232] Fix | Delete
this.use = attributes.use || "";
[47233] Fix | Delete
this.usehref = attributes.usehref || "";
[47234] Fix | Delete
this.border = null;
[47235] Fix | Delete
this.comb = null;
[47236] Fix | Delete
this.extras = null;
[47237] Fix | Delete
this.margin = null;
[47238] Fix | Delete
}
[47239] Fix | Delete
[$toHTML](availableSpace) {
[47240] Fix | Delete
const style = toStyle(this, "border", "font", "margin");
[47241] Fix | Delete
const field = this[$getParent]()[$getParent]();
[47242] Fix | Delete
const html = {
[47243] Fix | Delete
name: "input",
[47244] Fix | Delete
attributes: {
[47245] Fix | Delete
type: "text",
[47246] Fix | Delete
fieldId: field[$uid],
[47247] Fix | Delete
dataId: field[$data]?.[$uid] || field[$uid],
[47248] Fix | Delete
class: ["xfaTextfield"],
[47249] Fix | Delete
style,
[47250] Fix | Delete
"aria-label": ariaLabel(field),
[47251] Fix | Delete
"aria-required": false
[47252] Fix | Delete
}
[47253] Fix | Delete
};
[47254] Fix | Delete
if (isRequired(field)) {
[47255] Fix | Delete
html.attributes["aria-required"] = true;
[47256] Fix | Delete
html.attributes.required = true;
[47257] Fix | Delete
}
[47258] Fix | Delete
return HTMLResult.success({
[47259] Fix | Delete
name: "label",
[47260] Fix | Delete
attributes: {
[47261] Fix | Delete
class: ["xfaLabel"]
[47262] Fix | Delete
},
[47263] Fix | Delete
children: [html]
[47264] Fix | Delete
});
[47265] Fix | Delete
}
[47266] Fix | Delete
}
[47267] Fix | Delete
class Decimal extends ContentObject {
[47268] Fix | Delete
constructor(attributes) {
[47269] Fix | Delete
super(TEMPLATE_NS_ID, "decimal");
[47270] Fix | Delete
this.fracDigits = getInteger({
[47271] Fix | Delete
data: attributes.fracDigits,
[47272] Fix | Delete
defaultValue: 2,
[47273] Fix | Delete
validate: x => true
[47274] Fix | Delete
});
[47275] Fix | Delete
this.id = attributes.id || "";
[47276] Fix | Delete
this.leadDigits = getInteger({
[47277] Fix | Delete
data: attributes.leadDigits,
[47278] Fix | Delete
defaultValue: -1,
[47279] Fix | Delete
validate: x => true
[47280] Fix | Delete
});
[47281] Fix | Delete
this.name = attributes.name || "";
[47282] Fix | Delete
this.use = attributes.use || "";
[47283] Fix | Delete
this.usehref = attributes.usehref || "";
[47284] Fix | Delete
}
[47285] Fix | Delete
[$finalize]() {
[47286] Fix | Delete
const number = parseFloat(this[$content].trim());
[47287] Fix | Delete
this[$content] = isNaN(number) ? null : number;
[47288] Fix | Delete
}
[47289] Fix | Delete
[$toHTML](availableSpace) {
[47290] Fix | Delete
return valueToHtml(this[$content] !== null ? this[$content].toString() : "");
[47291] Fix | Delete
}
[47292] Fix | Delete
}
[47293] Fix | Delete
class DefaultUi extends XFAObject {
[47294] Fix | Delete
constructor(attributes) {
[47295] Fix | Delete
super(TEMPLATE_NS_ID, "defaultUi", true);
[47296] Fix | Delete
this.id = attributes.id || "";
[47297] Fix | Delete
this.use = attributes.use || "";
[47298] Fix | Delete
this.usehref = attributes.usehref || "";
[47299] Fix | Delete
this.extras = null;
[47300] Fix | Delete
}
[47301] Fix | Delete
}
[47302] Fix | Delete
class Desc extends XFAObject {
[47303] Fix | Delete
constructor(attributes) {
[47304] Fix | Delete
super(TEMPLATE_NS_ID, "desc", true);
[47305] Fix | Delete
this.id = attributes.id || "";
[47306] Fix | Delete
this.use = attributes.use || "";
[47307] Fix | Delete
this.usehref = attributes.usehref || "";
[47308] Fix | Delete
this.boolean = new XFAObjectArray();
[47309] Fix | Delete
this.date = new XFAObjectArray();
[47310] Fix | Delete
this.dateTime = new XFAObjectArray();
[47311] Fix | Delete
this.decimal = new XFAObjectArray();
[47312] Fix | Delete
this.exData = new XFAObjectArray();
[47313] Fix | Delete
this.float = new XFAObjectArray();
[47314] Fix | Delete
this.image = new XFAObjectArray();
[47315] Fix | Delete
this.integer = new XFAObjectArray();
[47316] Fix | Delete
this.text = new XFAObjectArray();
[47317] Fix | Delete
this.time = new XFAObjectArray();
[47318] Fix | Delete
}
[47319] Fix | Delete
}
[47320] Fix | Delete
class DigestMethod extends OptionObject {
[47321] Fix | Delete
constructor(attributes) {
[47322] Fix | Delete
super(TEMPLATE_NS_ID, "digestMethod", ["", "SHA1", "SHA256", "SHA512", "RIPEMD160"]);
[47323] Fix | Delete
this.id = attributes.id || "";
[47324] Fix | Delete
this.use = attributes.use || "";
[47325] Fix | Delete
this.usehref = attributes.usehref || "";
[47326] Fix | Delete
}
[47327] Fix | Delete
}
[47328] Fix | Delete
class DigestMethods extends XFAObject {
[47329] Fix | Delete
constructor(attributes) {
[47330] Fix | Delete
super(TEMPLATE_NS_ID, "digestMethods", true);
[47331] Fix | Delete
this.id = attributes.id || "";
[47332] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[47333] Fix | Delete
this.use = attributes.use || "";
[47334] Fix | Delete
this.usehref = attributes.usehref || "";
[47335] Fix | Delete
this.digestMethod = new XFAObjectArray();
[47336] Fix | Delete
}
[47337] Fix | Delete
}
[47338] Fix | Delete
class Draw extends XFAObject {
[47339] Fix | Delete
constructor(attributes) {
[47340] Fix | Delete
super(TEMPLATE_NS_ID, "draw", true);
[47341] Fix | Delete
this.anchorType = getStringOption(attributes.anchorType, ["topLeft", "bottomCenter", "bottomLeft", "bottomRight", "middleCenter", "middleLeft", "middleRight", "topCenter", "topRight"]);
[47342] Fix | Delete
this.colSpan = getInteger({
[47343] Fix | Delete
data: attributes.colSpan,
[47344] Fix | Delete
defaultValue: 1,
[47345] Fix | Delete
validate: n => n >= 1 || n === -1
[47346] Fix | Delete
});
[47347] Fix | Delete
this.h = attributes.h ? getMeasurement(attributes.h) : "";
[47348] Fix | Delete
this.hAlign = getStringOption(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]);
[47349] Fix | Delete
this.id = attributes.id || "";
[47350] Fix | Delete
this.locale = attributes.locale || "";
[47351] Fix | Delete
this.maxH = getMeasurement(attributes.maxH, "0pt");
[47352] Fix | Delete
this.maxW = getMeasurement(attributes.maxW, "0pt");
[47353] Fix | Delete
this.minH = getMeasurement(attributes.minH, "0pt");
[47354] Fix | Delete
this.minW = getMeasurement(attributes.minW, "0pt");
[47355] Fix | Delete
this.name = attributes.name || "";
[47356] Fix | Delete
this.presence = getStringOption(attributes.presence, ["visible", "hidden", "inactive", "invisible"]);
[47357] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[47358] Fix | Delete
this.rotate = getInteger({
[47359] Fix | Delete
data: attributes.rotate,
[47360] Fix | Delete
defaultValue: 0,
[47361] Fix | Delete
validate: x => x % 90 === 0
[47362] Fix | Delete
});
[47363] Fix | Delete
this.use = attributes.use || "";
[47364] Fix | Delete
this.usehref = attributes.usehref || "";
[47365] Fix | Delete
this.w = attributes.w ? getMeasurement(attributes.w) : "";
[47366] Fix | Delete
this.x = getMeasurement(attributes.x, "0pt");
[47367] Fix | Delete
this.y = getMeasurement(attributes.y, "0pt");
[47368] Fix | Delete
this.assist = null;
[47369] Fix | Delete
this.border = null;
[47370] Fix | Delete
this.caption = null;
[47371] Fix | Delete
this.desc = null;
[47372] Fix | Delete
this.extras = null;
[47373] Fix | Delete
this.font = null;
[47374] Fix | Delete
this.keep = null;
[47375] Fix | Delete
this.margin = null;
[47376] Fix | Delete
this.para = null;
[47377] Fix | Delete
this.traversal = null;
[47378] Fix | Delete
this.ui = null;
[47379] Fix | Delete
this.value = null;
[47380] Fix | Delete
this.setProperty = new XFAObjectArray();
[47381] Fix | Delete
}
[47382] Fix | Delete
[$setValue](value) {
[47383] Fix | Delete
_setValue(this, value);
[47384] Fix | Delete
}
[47385] Fix | Delete
[$toHTML](availableSpace) {
[47386] Fix | Delete
setTabIndex(this);
[47387] Fix | Delete
if (this.presence === "hidden" || this.presence === "inactive") {
[47388] Fix | Delete
return HTMLResult.EMPTY;
[47389] Fix | Delete
}
[47390] Fix | Delete
fixDimensions(this);
[47391] Fix | Delete
this[$pushPara]();
[47392] Fix | Delete
const savedW = this.w;
[47393] Fix | Delete
const savedH = this.h;
[47394] Fix | Delete
const {
[47395] Fix | Delete
w,
[47396] Fix | Delete
h,
[47397] Fix | Delete
isBroken
[47398] Fix | Delete
} = layoutNode(this, availableSpace);
[47399] Fix | Delete
if (w && this.w === "") {
[47400] Fix | Delete
if (isBroken && this[$getSubformParent]()[$isThereMoreWidth]()) {
[47401] Fix | Delete
this[$popPara]();
[47402] Fix | Delete
return HTMLResult.FAILURE;
[47403] Fix | Delete
}
[47404] Fix | Delete
this.w = w;
[47405] Fix | Delete
}
[47406] Fix | Delete
if (h && this.h === "") {
[47407] Fix | Delete
this.h = h;
[47408] Fix | Delete
}
[47409] Fix | Delete
setFirstUnsplittable(this);
[47410] Fix | Delete
if (!checkDimensions(this, availableSpace)) {
[47411] Fix | Delete
this.w = savedW;
[47412] Fix | Delete
this.h = savedH;
[47413] Fix | Delete
this[$popPara]();
[47414] Fix | Delete
return HTMLResult.FAILURE;
[47415] Fix | Delete
}
[47416] Fix | Delete
unsetFirstUnsplittable(this);
[47417] Fix | Delete
const style = toStyle(this, "font", "hAlign", "dimensions", "position", "presence", "rotate", "anchorType", "border", "margin");
[47418] Fix | Delete
setMinMaxDimensions(this, style);
[47419] Fix | Delete
if (style.margin) {
[47420] Fix | Delete
style.padding = style.margin;
[47421] Fix | Delete
delete style.margin;
[47422] Fix | Delete
}
[47423] Fix | Delete
const classNames = ["xfaDraw"];
[47424] Fix | Delete
if (this.font) {
[47425] Fix | Delete
classNames.push("xfaFont");
[47426] Fix | Delete
}
[47427] Fix | Delete
if (isPrintOnly(this)) {
[47428] Fix | Delete
classNames.push("xfaPrintOnly");
[47429] Fix | Delete
}
[47430] Fix | Delete
const attributes = {
[47431] Fix | Delete
style,
[47432] Fix | Delete
id: this[$uid],
[47433] Fix | Delete
class: classNames
[47434] Fix | Delete
};
[47435] Fix | Delete
if (this.name) {
[47436] Fix | Delete
attributes.xfaName = this.name;
[47437] Fix | Delete
}
[47438] Fix | Delete
const html = {
[47439] Fix | Delete
name: "div",
[47440] Fix | Delete
attributes,
[47441] Fix | Delete
children: []
[47442] Fix | Delete
};
[47443] Fix | Delete
applyAssist(this, attributes);
[47444] Fix | Delete
const bbox = computeBbox(this, html, availableSpace);
[47445] Fix | Delete
const value = this.value ? this.value[$toHTML](availableSpace).html : null;
[47446] Fix | Delete
if (value === null) {
[47447] Fix | Delete
this.w = savedW;
[47448] Fix | Delete
this.h = savedH;
[47449] Fix | Delete
this[$popPara]();
[47450] Fix | Delete
return HTMLResult.success(createWrapper(this, html), bbox);
[47451] Fix | Delete
}
[47452] Fix | Delete
html.children.push(value);
[47453] Fix | Delete
setPara(this, style, value);
[47454] Fix | Delete
this.w = savedW;
[47455] Fix | Delete
this.h = savedH;
[47456] Fix | Delete
this[$popPara]();
[47457] Fix | Delete
return HTMLResult.success(createWrapper(this, html), bbox);
[47458] Fix | Delete
}
[47459] Fix | Delete
}
[47460] Fix | Delete
class Edge extends XFAObject {
[47461] Fix | Delete
constructor(attributes) {
[47462] Fix | Delete
super(TEMPLATE_NS_ID, "edge", true);
[47463] Fix | Delete
this.cap = getStringOption(attributes.cap, ["square", "butt", "round"]);
[47464] Fix | Delete
this.id = attributes.id || "";
[47465] Fix | Delete
this.presence = getStringOption(attributes.presence, ["visible", "hidden", "inactive", "invisible"]);
[47466] Fix | Delete
this.stroke = getStringOption(attributes.stroke, ["solid", "dashDot", "dashDotDot", "dashed", "dotted", "embossed", "etched", "lowered", "raised"]);
[47467] Fix | Delete
this.thickness = getMeasurement(attributes.thickness, "0.5pt");
[47468] Fix | Delete
this.use = attributes.use || "";
[47469] Fix | Delete
this.usehref = attributes.usehref || "";
[47470] Fix | Delete
this.color = null;
[47471] Fix | Delete
this.extras = null;
[47472] Fix | Delete
}
[47473] Fix | Delete
[$toStyle]() {
[47474] Fix | Delete
const style = toStyle(this, "visibility");
[47475] Fix | Delete
Object.assign(style, {
[47476] Fix | Delete
linecap: this.cap,
[47477] Fix | Delete
width: measureToString(this.thickness),
[47478] Fix | Delete
color: this.color ? this.color[$toStyle]() : "#000000",
[47479] Fix | Delete
style: ""
[47480] Fix | Delete
});
[47481] Fix | Delete
if (this.presence !== "visible") {
[47482] Fix | Delete
style.style = "none";
[47483] Fix | Delete
} else {
[47484] Fix | Delete
switch (this.stroke) {
[47485] Fix | Delete
case "solid":
[47486] Fix | Delete
style.style = "solid";
[47487] Fix | Delete
break;
[47488] Fix | Delete
case "dashDot":
[47489] Fix | Delete
style.style = "dashed";
[47490] Fix | Delete
break;
[47491] Fix | Delete
case "dashDotDot":
[47492] Fix | Delete
style.style = "dashed";
[47493] Fix | Delete
break;
[47494] Fix | Delete
case "dashed":
[47495] Fix | Delete
style.style = "dashed";
[47496] Fix | Delete
break;
[47497] Fix | Delete
case "dotted":
[47498] Fix | Delete
style.style = "dotted";
[47499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function