mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-19 17:03:08 +00:00
Update node.ts
This commit is contained in:
parent
2b380a2699
commit
7fa49824c6
@ -88,12 +88,12 @@ export class NodeWidget implements Widget {
|
|||||||
.attr('xnode:href', (n: MapNode) => n.symbolUrl)
|
.attr('xnode:href', (n: MapNode) => n.symbolUrl)
|
||||||
.attr('width', (n: MapNode) => {
|
.attr('width', (n: MapNode) => {
|
||||||
if (!n.width) return 60;
|
if (!n.width) return 60;
|
||||||
if (n.width > 200) return 200;
|
if (n.width > 64) return 64;
|
||||||
return n.width;
|
return n.width;
|
||||||
})
|
})
|
||||||
.attr('height', (n: MapNode) => {
|
.attr('height', (n: MapNode) => {
|
||||||
if (!n.height) return 60;
|
if (!n.height) return 60;
|
||||||
if (n.height > 200) return 200;
|
if (n.height > 64) return 64;
|
||||||
return n.height;
|
return n.height;
|
||||||
})
|
})
|
||||||
.attr('x', (n: MapNode) => 0)
|
.attr('x', (n: MapNode) => 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user