mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-24 07:06:38 +00:00
Update node.ts
This commit is contained in:
parent
b8ded15ef7
commit
672d25132f
@ -87,12 +87,14 @@ export class NodeWidget implements Widget {
|
||||
})
|
||||
.attr('xnode:href', (n: MapNode) => n.symbolUrl)
|
||||
.attr('width', (n: MapNode) => {
|
||||
if (!n.width) return 60
|
||||
return n.width
|
||||
if (!n.width) return 60;
|
||||
if (n.width > 200) return 200;
|
||||
return n.width;
|
||||
})
|
||||
.attr('height', (n: MapNode) => {
|
||||
if (!n.height) return 60
|
||||
return n.height
|
||||
if (!n.height) return 60;
|
||||
if (n.height > 200) return 200;
|
||||
return n.height;
|
||||
})
|
||||
.attr('x', (n: MapNode) => 0)
|
||||
.attr('y', (n: MapNode) => 0)
|
||||
|
Loading…
Reference in New Issue
Block a user