mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-05 18:49:54 +00:00
add a condition for getting no border and solid border style
This commit is contained in:
parent
1c8e56274a
commit
573d36057b
@ -60,7 +60,10 @@ export class StyleEditorDialogComponent implements OnInit {
|
||||
if (this.drawing.element instanceof RectElement || this.drawing.element instanceof EllipseElement) {
|
||||
this.element.fill = this.drawing.element.fill;
|
||||
this.element.stroke = this.drawing.element.stroke;
|
||||
let dasharray_value = this.drawing.element.stroke_dasharray ?? 'none';
|
||||
let dasharray_value =
|
||||
this.drawing.element.stroke_dasharray ??
|
||||
this.drawing.element.stroke_width ??
|
||||
(this.drawing.element.stroke_width == undefined || this.drawing.element.stroke_width == 0 ? '' : 'none');
|
||||
this.borderTypes.map((_) => {
|
||||
if (_.qt == dasharray_value || _.value == dasharray_value) {
|
||||
dasharray_find_value = _.value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user