You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loops layout mode. Configuration may contain loop references between items, so control tries to find layout minimizing number of loops between levels, so majority of references ideally should go in one direction. This option disables optimization and forces items levels order to match their order in `items` collection. For example if you have two nodes `A` and `B` referencing each other as a parent, then it is not defined which one is going to be on the top of the diagram. Set this option to `KeepItemsOrder`, if you need the first item in your collection to be on the top, otherwise control will optimize loops layout in order to minimize number of loops in diagram.
165
+
166
+
`primitives.common.LoopsLayoutMode`
167
+
168
+
| Name | Type | Value | Description |
169
+
| --- | --- | --- | --- |
170
+
|`KeepItemsOrder`| number |`1`| Keeps order of items on levels, the same as in `items` collection property. |
171
+
|`Optimized`| number |`0`| Optimized. Control searches for layout producing minimal number of feedback loops in the diagram. |
Interactivity mode. Control implements standard behaivour of classic desktop UI controls. It supports single selected node - cursor. It supports on mouse over node visual feedback - highlight. It supports selection of group of nodes - selected items. All that functionality can be disabled depending on your application requirements.
Copy file name to clipboardExpand all lines: apireference/famdiagram.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ Family Chart configuration object. Use this object as a reference for available
40
40
|`enableMatrixLayout`| boolean |`false`| This option enables automatic layout of nodes sharing the same set of parents and children in form of matrix. |
41
41
|`groupByType`| GroupByType |`2`| This property sets loose nodes alignment between rows. Nodes can be placed close towards parents or children. |
42
42
|`hideGrandParentsConnectors`| boolean |`false`| Set this property to enable hiding of direct connectors to grand parents. It helps to reduce diagrams connectors layout complexity. |
43
+
|`loopsLayoutMode`| LoopsLayoutMode |`primitives.common.LoopsLayoutMode.Optimized`| Loops layout mode. Configuration may contain loop references between items, so control tries to find layout minimizing number of loops between levels, so majority of references ideally should go in one direction. This option disables optimization and forces items levels order to match their order in `items` collection. For example if you have two nodes `A` and `B` referencing each other as a parent, then it is not defined which one is going to be on the top of the diagram. Set this option to `KeepItemsOrder`, if you need the first item in your collection to be on the top, otherwise control will optimize loops layout in order to minimize number of loops in diagram. |
43
44
|`maximumColumnsInMatrix`| number |`6`| Sets maximum number of columns in the matrix formation. The matrix formation stays squared as long as total number of columns does not exceed this property value. In order to shape nodes into matrix formation they should share the same set of parents and children. See `enableMatrixLayout` property. |
44
45
|`minimalVisibility`| Visibility |`2`| Minimal nodes visibility in the diagram. If auto fit of the diagram into current page size is enabled, then this option controls minimum allowed size of the diagram nodes. |
45
46
|`minimumMatrixSize`| number |`4`| Sets Minimum number of nodes needed to be shaped into matrix formtion. In order to shape nodes in form of matrix they should share the same set of parents and children. See `enableMatrixLayout` property. |
This function finds [optimal collection of feedback edges](https://en.wikipedia.org/wiki/Feedback_arc_set) needed to be cut in order to eliminate loops in family structure.
115
+
116
+
Returns: `Edge[]` - returns optimal collection of feedback loops
0 commit comments