mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-09 03:24:13 +00:00
Fix ellipse styling rroken in web UI
This commit is contained in:
parent
042eb79e36
commit
1f5911d814
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user