mirror of
https://github.com/openziti/zrok.git
synced 2025-06-01 15:48:21 +02:00
the icon overlay remains 'limited red', even when the node is selected (#320)
This commit is contained in:
parent
7d48683df7
commit
d718e8c9ff
@ -36,6 +36,9 @@ const Network = (props) => {
|
|||||||
|
|
||||||
const nodeIcon = new Path2D();
|
const nodeIcon = new Path2D();
|
||||||
let xform = new DOMMatrix();
|
let xform = new DOMMatrix();
|
||||||
|
if(node.limited) {
|
||||||
|
ctx.fillStyle = "#f00";
|
||||||
|
}
|
||||||
xform.translateSelf(node.x - (nodeWidth / 2) - 6, node.y - 13);
|
xform.translateSelf(node.x - (nodeWidth / 2) - 6, node.y - 13);
|
||||||
xform.scaleSelf(0.5, 0.5);
|
xform.scaleSelf(0.5, 0.5);
|
||||||
switch(node.type) {
|
switch(node.type) {
|
||||||
@ -51,7 +54,6 @@ const Network = (props) => {
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.fill(nodeIcon);
|
ctx.fill(nodeIcon);
|
||||||
ctx.strokeStyle = "black";
|
ctx.strokeStyle = "black";
|
||||||
ctx.lineWidth = 0.5;
|
ctx.lineWidth = 0.5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user