()
| 85 | |
| 86 | // Get different shades of the color based on state |
| 87 | const getStateColor = () => { |
| 88 | if (data.selected) return nodeColor |
| 89 | if (isHovered) return alpha(nodeColor, 0.8) |
| 90 | return alpha(nodeColor, 0.5) |
| 91 | } |
| 92 | |
| 93 | const getOutputAnchors = () => { |
| 94 | return data.outputAnchors ?? [] |