MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getStateColor

Function getStateColor

packages/ui/src/views/agentflowsv2/AgentFlowNode.jsx:79–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 ?? []

Callers 1

AgentFlowNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected