mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-16 22:48:51 +00:00
Black&white effect on hover node
This commit is contained in:
parent
fd5a5c2079
commit
f5f5cd172a
@ -1 +1,2 @@
|
||||
<svg preserveAspectRatio="none"></svg>
|
||||
<svg preserveAspectRatio="none">
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 39 B After Width: | Height: | Size: 40 B |
@ -105,16 +105,17 @@ export class NodesWidget implements Widget {
|
||||
.attr('width', (n: Node) => n.width)
|
||||
.attr('height', (n: Node) => n.height)
|
||||
.attr('x', (n: Node) => -n.width / 2.)
|
||||
.attr('y', (n: Node) => -n.height / 2.);
|
||||
.attr('y', (n: Node) => -n.height / 2.)
|
||||
.on('mouseover', function (this, n: Node) {
|
||||
select(this).attr("class", "over");
|
||||
})
|
||||
.on('mouseout', function (this, n: Node) {
|
||||
select(this).attr("class", "");
|
||||
});
|
||||
|
||||
// .attr('width', (n: Node) => n.width)
|
||||
// .attr('height', (n: Node) => n.height);
|
||||
// .on('mouseover', function (this, n: Node) {
|
||||
// select(this).attr("class", "over");
|
||||
// })
|
||||
// .on('mouseout', function (this, n: Node) {
|
||||
// select(this).attr("class", "");
|
||||
// });
|
||||
|
||||
|
||||
node_enter
|
||||
.append<SVGTextElement>('text')
|
||||
|
@ -42,3 +42,7 @@ g.node text {
|
||||
font-family: Roboto !important;
|
||||
}
|
||||
|
||||
|
||||
svg image:hover, svg image.chosen {
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user