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

Function getAnchorPosition

packages/ui/src/views/canvas/NodeOutputHandler.jsx:39–42  ·  view source on GitHub ↗
(options, index)

Source from the content-addressed store, hash-verified

37 }
38
39 const getAnchorPosition = (options, index) => {
40 const spacing = clientHeight / (getAnchorOptions(options).length + 1)
41 return offsetTop + spacing * (index + 1)
42 }
43
44 useEffect(() => {
45 if (ref.current && ref.current?.offsetTop && ref.current?.clientHeight) {

Callers 1

NodeOutputHandlerFunction · 0.70

Calls 1

getAnchorOptionsFunction · 0.85

Tested by

no test coverage detected