Fix ellipse styling rroken in web UI

This commit is contained in:
cristian-ciobanu 2025-01-28 22:49:13 +02:00
parent 042eb79e36
commit 1f5911d814

View File

@ -102,6 +102,10 @@ export class StyleEditorDialogComponent implements OnInit {
this.drawing.element.stroke = this.element.stroke ?? "#000000";
this.drawing.element.stroke_dasharray = this.element.stroke_dasharray;
this.drawing.element.stroke_width = this.element.stroke_width;
if (this.drawing.element instanceof EllipseElement) {
this.drawing.element.rx = this.element.width / 2;
this.drawing.element.ry = this.element.height / 2;
}
} else if (this.drawing.element instanceof LineElement) {
if (this.element.stroke_dasharray != '') {
this.drawing.element.stroke = this.element.stroke ?? "#000000";