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 allows to disable optimization and force items level order to match their order in `items` collection. For example if you have two nodes `A` and `B`and each node references the other one as parent, then it is undetermenistic which node is going to be on the top. If this option is set to `KeepItemsOrder` then node be is going to be at the top level in the diagram.
164
+
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
165
166
166
`primitives.common.LoopsLayoutMode`
167
167
168
168
| Name | Type | Value | Description |
169
169
| --- | --- | --- | --- |
170
-
|`KeepItemsOrder`| number |`1`| Keeps items levels order matching the order of items in the control configuration. |
171
-
|`Optimized`| number |`0`| Optimized. Control searches for layout producing minimal number of backward loops between levels. |
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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +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 allows to disable optimization and force items level order to match their order in `items` collection. For example if you have two nodes `A` and `B`and each node references the other one as parent, then it is undetermenistic which node is going to be on the top. If this option is set to `KeepItemsOrder` then node be is going to be at the top level in the diagram. |
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. |
44
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. |
45
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. |
46
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. |
* Loops layout mode. Configuration may contain loop references between items, so control tries to find layout minimizing number of loops between levels,
2070
-
* so majority of references ideally should go in one direction. This option allows to disable optimization and
2071
-
* force items level order to match their order in `items` collection. For example if you have two nodes `A` and `B` and each node references the other one as parent,
2072
-
* then it is undetermenistic which node is going to be on the top. If this option is set to `KeepItemsOrder` then node be is going to be at the top level in the diagram.
2070
+
* so majority of references ideally should go in one direction. This option disables optimization and
2071
+
* 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,
2072
+
* 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
2073
+
* on the top, otherwise control will optimize loops layout in order to minimize number of loops in diagram.
2073
2074
*
2074
2075
* @enum {LoopsLayoutMode}
2075
2076
*/
2076
2077
primitives.common.LoopsLayoutMode = {
2077
2078
/**
2078
-
* Optimized. Control searches for layout producing minimal number of backward loops between levels.
2079
+
* Optimized. Control searches for layout producing minimal number of feedback loops in the diagram.
2079
2080
*/
2080
2081
Optimized: 0,
2081
2082
/**
2082
-
* Keeps items levels order matching the order of items in the control configuration.
2083
+
* Keeps order of items on levels, the same as in `items` collection property.
2083
2084
*/
2084
2085
KeepItemsOrder: 1
2085
2086
};
@@ -7621,9 +7622,10 @@ primitives.famdiagram.Config = function (name) {
7621
7622
7622
7623
/**
7623
7624
* Loops layout mode. Configuration may contain loop references between items, so control tries to find layout minimizing number of loops between levels,
7624
-
* so majority of references ideally should go in one direction. This option allows to disable optimization and
7625
-
* force items level order to match their order in `items` collection. For example if you have two nodes `A` and `B` and each node references the other one as parent,
7626
-
* then it is undetermenistic which node is going to be on the top. If this option is set to `KeepItemsOrder` then node be is going to be at the top level in the diagram.
7625
+
* so majority of references ideally should go in one direction. This option disables optimization and
7626
+
* 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,
7627
+
* 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
7628
+
* on the top, otherwise control will optimize loops layout in order to minimize number of loops in diagram.
Copy file name to clipboardExpand all lines: src.primitives/Controls/FamDiagram/configs/Config.js
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -75,9 +75,10 @@ primitives.famdiagram.Config = function (name) {
75
75
76
76
/**
77
77
* Loops layout mode. Configuration may contain loop references between items, so control tries to find layout minimizing number of loops between levels,
78
-
* so majority of references ideally should go in one direction. This option allows to disable optimization and
79
-
* force items level order to match their order in `items` collection. For example if you have two nodes `A` and `B` and each node references the other one as parent,
80
-
* then it is undetermenistic which node is going to be on the top. If this option is set to `KeepItemsOrder` then node be is going to be at the top level in the diagram.
78
+
* so majority of references ideally should go in one direction. This option disables optimization and
79
+
* 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,
80
+
* 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
81
+
* on the top, otherwise control will optimize loops layout in order to minimize number of loops in diagram.
Copy file name to clipboardExpand all lines: src.primitives/enums/LoopsLayoutMode.js
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,20 @@
4
4
5
5
/**
6
6
* Loops layout mode. Configuration may contain loop references between items, so control tries to find layout minimizing number of loops between levels,
7
-
* so majority of references ideally should go in one direction. This option allows to disable optimization and
8
-
* force items level order to match their order in `items` collection. For example if you have two nodes `A` and `B` and each node references the other one as parent,
9
-
* then it is undetermenistic which node is going to be on the top. If this option is set to `KeepItemsOrder` then node be is going to be at the top level in the diagram.
7
+
* so majority of references ideally should go in one direction. This option disables optimization and
8
+
* 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,
9
+
* 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
10
+
* on the top, otherwise control will optimize loops layout in order to minimize number of loops in diagram.
10
11
*
11
12
* @enum {LoopsLayoutMode}
12
13
*/
13
14
primitives.common.LoopsLayoutMode={
14
15
/**
15
-
* Optimized. Control searches for layout producing minimal number of backward loops between levels.
16
+
* Optimized. Control searches for layout producing minimal number of feedback loops in the diagram.
16
17
*/
17
18
Optimized: 0,
18
19
/**
19
-
* Keeps items levels order matching the order of items in the control configuration.
20
+
* Keeps order of items on levels, the same as in `items` collection property.
0 commit comments