()
| 77 | |
| 78 | // Get different shades of the color based on state |
| 79 | const getStateColor = () => { |
| 80 | if (data.selected) return nodeColor |
| 81 | if (isHovered) return alpha(nodeColor, 0.8) |
| 82 | return alpha(nodeColor, 0.5) |
| 83 | } |
| 84 | |
| 85 | const getOutputAnchors = () => { |
| 86 | return data.outputAnchors ?? [] |