Chore: formatting

This commit is contained in:
Pieter Vander Vennet 2024-06-16 16:06:26 +02:00
parent 35eff07c80
commit c08fe03ed0
422 changed files with 31594 additions and 43019 deletions

View file

@ -20,8 +20,13 @@ export default class LineRenderingConfig extends WithContextLoader {
this.color = this.tr("color", "#0000ff")
this.width = this.tr("width", "7")
this.dashArray = json.dashArray
if(this.dashArray !== undefined && typeof this.dashArray !== "string"){
throw "Invalid dasharray at "+context+"; this should be a string but is a "+typeof this.dashArray
if (this.dashArray !== undefined && typeof this.dashArray !== "string") {
throw (
"Invalid dasharray at " +
context +
"; this should be a string but is a " +
typeof this.dashArray
)
}
this.lineCap = this.tr("lineCap", "round")
this.fill = this.tr("fill", undefined)