Changes do apply left-right splitting before uploading too

This commit is contained in:
Pieter Vander Vennet 2021-10-22 14:01:40 +02:00
parent 40c4ae769d
commit 0dc7187bab
6 changed files with 27 additions and 9 deletions

View file

@ -297,4 +297,8 @@ export default class LayerConfig extends WithContextLoader{
return allIcons;
}
public isLeftRightSensitive() : boolean{
return this.lineRendering.some(lr => lr.leftRightSensitive)
}
}

View file

@ -279,5 +279,9 @@ export default class LayoutConfig {
})
return new LayoutConfig(JSON.parse(originalJson), false, "Layout rewriting")
}
public isLeftRightSensitive(){
return this.layers.some(l => l.isLeftRightSensitive())
}
}