ui/client/features/pages-editor/domain/SnippetFlowGraph
Cockpit client (features), v0.9. Source: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx.
Type Aliases#
FlowPill#
FlowPill =
object
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:13
Properties#
color
color:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:13
id
id:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:13
label
label:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:13
name
name:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:13
offset
offset:
number
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:13
SnippetFlowEdge#
SnippetFlowEdge =
object
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:26
Properties#
data
data:
object
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:33
childId
childId:
string
parentId
parentId:
string
propName
propName:
string
id
id:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:27
label
label:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:32
source
source:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:28
sourceHandle
sourceHandle:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:30
target
target:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:29
targetHandle
targetHandle:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:31
SnippetFlowNode#
SnippetFlowNode =
object
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:24
Properties#
data
data:
SnippetFlowNodeData
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:24
id
id:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:24
position
position:
object
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:24
x
x:
number
y
y:
number
type
type:
"jsxNode"
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:24
SnippetFlowNodeData#
SnippetFlowNodeData =
object
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:15
Properties#
isCustomComponent
isCustomComponent:
boolean
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:18
isFragment
isFragment:
boolean
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:17
label
label:
string
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:16
outgoing
outgoing:
FlowPill[]
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:21
received
received:
FlowPill[]
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:20
width
width:
number
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:19
Variables#
OUTGOING_HANDLE_PREFIX#
constOUTGOING_HANDLE_PREFIX:"out:"='out:'
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:40
RECEIVED_HANDLE_PREFIX#
constRECEIVED_HANDLE_PREFIX:"in:"='in:'
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:39
Handle id prefixes — shared between here and the JsxFlowNode renderer so an edge's sourceHandle/targetHandle always matches a Handle id the node actually rendered.
Functions#
buildSnippetFlowGraph()#
buildSnippetFlowGraph(
roots):object
Defined in: ui/client/features/pages-editor/domain/SnippetFlowGraph.tsx:42
Parameters#
roots
Returns#
object
edges
edges:
SnippetFlowEdge[]
nodes
nodes:
SnippetFlowNode[]