ui/client/features/pages-editor/domain/PropFlowLayout
Cockpit client (features), v0.8. Source: ui/client/features/pages-editor/domain/PropFlowLayout.tsx.
Type Aliases#
PillEdge#
PillEdge =
object
Defined in: ui/client/features/pages-editor/domain/PropFlowLayout.tsx:37
Properties#
color
color:
string
Defined in: ui/client/features/pages-editor/domain/PropFlowLayout.tsx:37
traced?
optionaltraced?:boolean
Defined in: ui/client/features/pages-editor/domain/PropFlowLayout.tsx:37
x1
x1:
number
Defined in: ui/client/features/pages-editor/domain/PropFlowLayout.tsx:37
x2
x2:
number
Defined in: ui/client/features/pages-editor/domain/PropFlowLayout.tsx:37
y1
y1:
number
Defined in: ui/client/features/pages-editor/domain/PropFlowLayout.tsx:37
y2
y2:
number
Defined in: ui/client/features/pages-editor/domain/PropFlowLayout.tsx:37
Functions#
buildPillFlow()#
buildPillFlow(
roots,options?):object
Defined in: ui/client/features/pages-editor/domain/PropFlowLayout.tsx:45
Builds the hierarchy layout plus one line per (parent outgoing pill, child received pill) pair that share a prop name — fanning out from a single outgoing pill when more than one child receives that name — plus one same-node connector edge per traced rename link, and colors that group renamed pill names together instead of purely by literal name.
Parameters#
roots
options?
GeometryOptions = {}
Returns#
object
colorMap
colorMap:
Map<string,string>
edges
edges:
PillEdge[]
layouts
layouts:
Map<string,NodeLayout>
colorFor()#
colorFor(
name,map):string
Defined in: ui/client/features/pages-editor/domain/PropFlowLayout.tsx:25
Parameters#
name
string
map
Map<string, string>
Returns#
string
References#
layoutPillHierarchy#
Re-exports layoutPillHierarchy
NodeLayout#
Re-exports NodeLayout
PillPosition#
Re-exports PillPosition