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
* @classdesc Organizational Chart configuration object. Use this object as a reference
4
+
* for available properties and their default values.
5
+
*
6
+
* @param {string} name
7
+
*/
6
8
primitives.orgdiagram.Config=function(name){
7
9
this.name=(name!==undefined) ? name : "OrgDiagram";
8
10
this.classPrefix="orgdiagram";
@@ -14,7 +16,7 @@ primitives.orgdiagram.Config = function (name) {
14
16
* item in the collection. So user can click and select any node in the diagram. The control has highlight for mouse over feedback.
15
17
* So user can move mouse and see highlight frame and callout callback annotation for node under cursor.
16
18
*
17
-
* By `Default` the control has both cursor and highlight. If they are disabled then control is rendered as static image.
19
+
* By `Default` the control has both cursor and highlight. If they are disabled then control is rendered as a static image.
18
20
*
19
21
* @type {NavigationMode}
20
22
*/
@@ -136,54 +138,53 @@ primitives.orgdiagram.Config = function (name) {
136
138
*/
137
139
this.emptyDiagramMessage="Diagram is empty.";
138
140
139
-
/*
140
-
Property: items
141
-
This is chart items collection. It is regular array of items of type ItemConfig. Items reference each other via parent property.
142
-
So every item may have only one parent in chart. If parent set to null then item displayed at root of chart.
143
-
Chart can have multiple root items simultaniously. If item references missing item, then it is ignored.
144
-
If items loop each other they are ignored as well. It is applications responsiblity to avoid such issues.
145
-
146
-
See Also:
147
-
<primitives.orgdiagram.ItemConfig>
148
-
<primitives.orgdiagram.ItemConfig.id>
149
-
<primitives.orgdiagram.ItemConfig.parent>
150
-
*/
141
+
/**
142
+
* Items collection. Ths property defines data we render in the diagram.
143
+
*
144
+
* Every items should have unique `id` property set. They are used to create relations
145
+
* between items in the diagram and for rendering various UI elements bound to nodes.
146
+
*
147
+
* @type {ItemConfig[]}
148
+
*/
151
149
this.items=[];
152
150
153
-
/*
154
-
Property: annotations
155
-
Array of annotaion objects. Chart supports several types of annotations. By default they are drawn on top of chart items and they block mouse events of UI elements placed in item templates.
156
-
The design assumes only few of them being displayed simultanuosly in other words chart does not resolve mutual overlaps of annotations, so don't over use them.
157
-
This is especially true for connectors and background annotations.
0 commit comments