1- import { OrgConfig , TemplateConfig , Size , Thickness , PageFitMode ,
1+ import { AnnotationType , OrgConfig , TemplateConfig , Size , Thickness , PageFitMode ,
22 Enabled , LineType , OrientationType , VerticalAlignmentType , HorizontalAlignmentType ,
33 ChildrenPlacementType , Visibility , SelectionPathMode , Colors ,
44 TextOrientationType , GroupByType , ConnectorType ,
@@ -79,6 +79,92 @@ const config = {
7979 }
8080 ] ,
8181 items : [ ] ,
82+ annotations : [
83+ {
84+ annotationType : AnnotationType . Level ,
85+ levels : [ 0 ] ,
86+ title : "CEO" ,
87+ titleColor : Colors . RoyalBlue ,
88+ offset : new Thickness ( 0 , 0 , 0 , - 5 ) ,
89+ lineWidth : new Thickness ( 0 , 0 , 0 , 0 ) ,
90+ opacity : 0 ,
91+ borderColor : Colors . Gray ,
92+ fillColor : Colors . Gray ,
93+ lineType : LineType . Dotted
94+ } ,
95+ {
96+ annotationType : AnnotationType . Level ,
97+ levels : [ 1 ] ,
98+ title : "Management" ,
99+ titleColor : Colors . RoyalBlue ,
100+ offset : new Thickness ( 0 , 4 , 0 , - 15 ) ,
101+ lineWidth : new Thickness ( 0 , 0 , 0 , 0 ) ,
102+ opacity : 0.08 ,
103+ borderColor : Colors . Gray ,
104+ fillColor : Colors . Gray ,
105+ lineType : LineType . Dotted
106+ } ,
107+ {
108+ annotationType : AnnotationType . Level ,
109+ levels : [ 2 ] ,
110+ title : "Grade 1" ,
111+ titleColor : Colors . RoyalBlue ,
112+ offset : new Thickness ( 0 , 14 , 0 , - 1 ) ,
113+ lineWidth : new Thickness ( 0 , 0 , 0 , 0 ) ,
114+ opacity : 0 ,
115+ borderColor : Colors . Gray ,
116+ fillColor : Colors . Gray ,
117+ lineType : LineType . Dotted
118+ } ,
119+ {
120+ annotationType : AnnotationType . Level ,
121+ levels : [ 3 ] ,
122+ title : "Grade 2" ,
123+ titleColor : Colors . RoyalBlue ,
124+ offset : new Thickness ( 0 , 0 , 0 , - 1 ) ,
125+ lineWidth : new Thickness ( 0 , 0 , 0 , 0 ) ,
126+ opacity : 0.08 ,
127+ borderColor : Colors . Gray ,
128+ fillColor : Colors . Gray ,
129+ lineType : LineType . Dotted
130+ } ,
131+ {
132+ annotationType : AnnotationType . Level ,
133+ levels : [ 4 ] ,
134+ title : "Grade 3" ,
135+ titleColor : Colors . RoyalBlue ,
136+ offset : new Thickness ( 0 , 0 , 0 , - 1 ) ,
137+ lineWidth : new Thickness ( 0 , 0 , 0 , 0 ) ,
138+ opacity : 0 ,
139+ borderColor : Colors . Gray ,
140+ fillColor : Colors . Gray ,
141+ lineType : LineType . Dotted
142+ } ,
143+ {
144+ annotationType : AnnotationType . Level ,
145+ levels : [ 5 ] ,
146+ title : "Grade 4" ,
147+ titleColor : Colors . RoyalBlue ,
148+ offset : new Thickness ( 0 , 0 , 0 , - 1 ) ,
149+ lineWidth : new Thickness ( 0 , 0 , 0 , 0 ) ,
150+ opacity : 0.08 ,
151+ borderColor : Colors . Gray ,
152+ fillColor : Colors . Gray ,
153+ lineType : LineType . Dotted
154+ } ,
155+ {
156+ annotationType : AnnotationType . Level ,
157+ levels : [ 6 ] ,
158+ title : "Regular Members" ,
159+ titleColor : Colors . RoyalBlue ,
160+ offset : new Thickness ( 0 , 0 , 0 , - 1 ) ,
161+ lineWidth : new Thickness ( 0 , 0 , 0 , 0 ) ,
162+ opacity : 0 ,
163+ borderColor : Colors . Gray ,
164+ fillColor : Colors . Gray ,
165+ lineType : LineType . Dotted
166+ }
167+ ] ,
82168 onSave : null ,
83169 editMode : true ,
84170 navigationMode : NavigationMode . Default ,
@@ -88,7 +174,7 @@ const config = {
88174 showExtraArrows : false ,
89175 extraArrowsMinimumSpace : 30 ,
90176 horizontalAlignment : HorizontalAlignmentType . Center ,
91- connectorType : ConnectorType . Angular ,
177+ connectorType : ConnectorType . Squared ,
92178 bevelSize : 4 ,
93179 elbowType : ElbowType . None ,
94180 elbowDotSize : 4 ,
@@ -129,14 +215,14 @@ const config = {
129215 groupTitleFontStyle : 'normal' ,
130216 scale : 1 ,
131217 normalLevelShift : 20 ,
132- dotLevelShift : 10 ,
218+ dotLevelShift : 16 ,
133219 lineLevelShift : 10 ,
134220 normalItemsInterval : 20 ,
135- dotItemsInterval : 10 ,
221+ dotItemsInterval : 20 ,
136222 lineItemsInterval : 5 ,
137223 cousinsIntervalMultiplier : 5 ,
138224 showLabels : Enabled . Auto ,
139- labelSize : new Size ( 10 , 24 ) ,
225+ labelSize : new Size ( 20 , 14 ) ,
140226 labelOffset : 1 ,
141227 labelOrientation : TextOrientationType . Horizontal ,
142228 labelPlacement : PlacementType . Top ,
0 commit comments