Full code cleanup

This commit is contained in:
Pieter Vander Vennet 2022-01-26 21:40:38 +01:00
parent 3a4a2a2016
commit fa971ffbbf
300 changed files with 16352 additions and 19284 deletions

View file

@ -44,7 +44,9 @@ export default class LineRenderingConfig extends WithContextLoader {
if (tags === undefined) {
return deflt
}
if(tr === undefined){return deflt}
if (tr === undefined) {
return deflt
}
const str = tr?.GetRenderValue(tags)?.txt ?? deflt;
if (str === "") {
return deflt
@ -59,7 +61,7 @@ export default class LineRenderingConfig extends WithContextLoader {
"--catch-detail-color"
);
}
const style = {
color,
dashArray,
@ -73,13 +75,13 @@ export default class LineRenderingConfig extends WithContextLoader {
if (fillStr !== undefined && fillStr !== "") {
style["fill"] = fillStr === "yes" || fillStr === "true"
}
const fillColorStr = render(this.fillColor, undefined)
if(fillColorStr !== undefined){
if (fillColorStr !== undefined) {
style["fillColor"] = fillColorStr
}
return style
}
}