|
1 | 1 | --- |
2 | 2 | layout: post |
3 | | -title: Layout nodes and connectors in an organized structure |
4 | | -description: How to arrange nodes by using the automatic layouts?. |
| 3 | +title: Automatic Layout in AngularJS Diagram Control | Syncfusion |
| 4 | +description: Learn here about automatic layout in Syncfusion Essential AngularJS Diagram Control, its elements, and more. |
5 | 5 | platform: AngularJS |
6 | 6 | control: Diagram |
7 | 7 | documentation: ug |
8 | 8 | --- |
9 | 9 |
|
10 | | -# Automatic Layout |
| 10 | +# Automatic Layout in AngularJS Diagram |
11 | 11 |
|
12 | 12 | Diagram provides support to auto-arrange the nodes in the Diagram area that is referred as **Layout**. It includes the following layout modes. |
13 | 13 |
|
@@ -109,7 +109,7 @@ syncApp.controller('diagramCtrl', function($scope) { |
109 | 109 |
|
110 | 110 | {% endhighlight %} |
111 | 111 |
|
112 | | - |
| 112 | + |
113 | 113 |
|
114 | 114 | N> You can ignore a particular Node from layout arrangement by setting its **excludeFromLayout** property as true. |
115 | 115 |
|
@@ -309,7 +309,7 @@ syncApp.controller('diagramCtrl', function($scope) { |
309 | 309 |
|
310 | 310 | {% endhighlight %} |
311 | 311 |
|
312 | | - |
| 312 | + |
313 | 313 |
|
314 | 314 | ## Organizational Chart |
315 | 315 |
|
@@ -483,7 +483,7 @@ syncApp.controller('diagramCtrl', function($scope) { |
483 | 483 |
|
484 | 484 | {% endhighlight %} |
485 | 485 |
|
486 | | - |
| 486 | + |
487 | 487 |
|
488 | 488 | Organizational chart layout starts parsing from root and iterate through all its child elements. ‘getLayoutInfo’ method provides necessary information of a node’s children and the way to arrange (direction, orientation, offsets, etc.) them. You can customize the arrangements by overriding this function as explained. |
489 | 489 |
|
@@ -540,13 +540,13 @@ The following table illustrates the different chart orientations and chart types |
540 | 540 |
|
541 | 541 | | Orientation | Type | Description | Example | |
542 | 542 | |---|---|---|---| |
543 | | -| Horizontal | Left | Arranges the child nodes horizontally at the left side of parent. |  | |
544 | | -| | Right | Arranges the child nodes horizontally at the right side of parent. |  | |
545 | | -| | Center | Arranges the children like standard tree layout orientation. |  | |
546 | | -| | Balanced | Arranges the leaf-level child nodes in multiple rows. |  | |
547 | | -| Vertical | Left | Vertically arranges the children at the left side of parent |  | |
548 | | -| | Right | Vertically arranges the children at the right side of parent |  | |
549 | | -| | Alternate | Vertically arranges the children at both left and right sides of parent |  | |
| 543 | +| Horizontal | Left | Arranges the child nodes horizontally at the left side of parent. |  | |
| 544 | +| | Right | Arranges the child nodes horizontally at the right side of parent. |  | |
| 545 | +| | Center | Arranges the children like standard tree layout orientation. |  | |
| 546 | +| | Balanced | Arranges the leaf-level child nodes in multiple rows. |  | |
| 547 | +| Vertical | Left | Vertically arranges the children at the left side of parent |  | |
| 548 | +| | Right | Vertically arranges the children at the right side of parent |  | |
| 549 | +| | Alternate | Vertically arranges the children at both left and right sides of parent |  | |
550 | 550 |
|
551 | 551 |
|
552 | 552 | The following code example illustrates how to set the vertical right arrangement to the leaf level trees. |
@@ -677,7 +677,7 @@ syncApp.controller('diagramCtrl', function($scope) { |
677 | 677 |
|
678 | 678 | {% endhighlight %} |
679 | 679 |
|
680 | | - |
| 680 | + |
681 | 681 |
|
682 | 682 | ### Assistant |
683 | 683 |
|
@@ -771,7 +771,7 @@ syncApp.controller('diagramCtrl', function($scope) { |
771 | 771 |
|
772 | 772 | {% endhighlight %} |
773 | 773 |
|
774 | | - |
| 774 | + |
775 | 775 |
|
776 | 776 | ## Customize Layout |
777 | 777 |
|
@@ -830,7 +830,7 @@ syncApp.controller('diagramCtrl', function($scope) { |
830 | 830 |
|
831 | 831 | {% endhighlight %} |
832 | 832 |
|
833 | | - |
| 833 | + |
834 | 834 |
|
835 | 835 | ### Layout Margin |
836 | 836 |
|
@@ -882,7 +882,7 @@ syncApp.controller('diagramCtrl', function($scope) { |
882 | 882 |
|
883 | 883 | {% endhighlight %} |
884 | 884 |
|
885 | | - |
| 885 | + |
886 | 886 |
|
887 | 887 | ### Layout Orientation |
888 | 888 |
|
@@ -925,7 +925,7 @@ syncApp.controller('diagramCtrl', function($scope) { |
925 | 925 |
|
926 | 926 | {% endhighlight %} |
927 | 927 |
|
928 | | - |
| 928 | + |
929 | 929 |
|
930 | 930 | ### Fixed Node |
931 | 931 |
|
@@ -987,7 +987,7 @@ syncApp.controller('diagramCtrl', function($scope) { |
987 | 987 |
|
988 | 988 | {% endhighlight %} |
989 | 989 |
|
990 | | - |
| 990 | + |
991 | 991 |
|
992 | 992 | ### Expand and collapse |
993 | 993 |
|
|
0 commit comments