the icon overlay remains 'limited red', even when the node is selected (#320)

This commit is contained in:
Michael Quigley 2023-05-15 14:27:39 -04:00
parent 7d48683df7
commit d718e8c9ff
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -36,6 +36,9 @@ const Network = (props) => {
const nodeIcon = new Path2D();
let xform = new DOMMatrix();
if(node.limited) {
ctx.fillStyle = "#f00";
}
xform.translateSelf(node.x - (nodeWidth / 2) - 6, node.y - 13);
xform.scaleSelf(0.5, 0.5);
switch(node.type) {
@ -51,7 +54,6 @@ const Network = (props) => {
default:
break;
}
ctx.fill(nodeIcon);
ctx.strokeStyle = "black";
ctx.lineWidth = 0.5;