DependencyGraphProps
Home > @backstage/core-components
> DependencyGraphProps
Properties of DependencyGraph()
Signature:
export interface DependencyGraphProps<NodeData, EdgeData> extends React.SVGProps<SVGSVGElement>
Extends: React.SVGProps<SVGSVGElement>
Remarks
<NodeData>
and <EdgeData>
are useful when rendering custom or edge labels
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
'greedy' |
(Optional) Heuristic used to find set of edges that will make graph acyclic | ||
(Optional) Node alignment | |||
'curveStepBefore' | 'curveMonotoneX' |
(Optional) A factory for curve generators addressing both lines and areas. | ||
JSX.Element | JSX.Element[] |
(Optional) Defs shared by rendered SVG to be used by DependencyGraphProps.renderNode and/or DependencyGraphProps.renderLabel | ||
(Optional) Graph direction | |||
number |
(Optional) Margin between edges | ||
number |
(Optional) Minimum number of ranks to keep between connected nodes | ||
Types.DependencyEdge<EdgeData>[] |
Edges of graph | ||
number |
(Optional) Weight applied to edges in graph | ||
'grow' | 'contain' |
(Optional) Controls if the graph should be contained or grow | ||
number |
(Optional) How much to move label away from edge | ||
(Optional) Position of label in relation to edge | |||
number |
(Optional) Margin between nodes on each rank | ||
Types.DependencyNode<NodeData>[] |
Nodes of Graph | ||
number |
(Optional) Margin on left and right of whole graph | ||
number |
(Optional) Margin on top and bottom of whole graph | ||
(Optional) Algorithm used to rank nodes | |||
number |
(Optional) Margin between each rank | ||
Types.RenderLabelFunction<EdgeData> |
(Optional) Custom label rendering component | ||
Types.RenderNodeFunction<NodeData> |
(Optional) Custom node rendering component | ||
boolean |
(Optional) Controls if the arrow heads should be rendered or not. Default: false | ||
'enabled' | 'disabled' | 'enable-on-click' |
(Optional) Controls zoom behavior of graph |