@balkangraph/orgchart.js 8.2.74 → 8.2.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/orgchart.d.ts +120 -118
  2. package/orgchart.js +1 -1
  3. package/package.json +1 -1
package/orgchart.d.ts CHANGED
@@ -336,7 +336,6 @@ declare class OrgChart extends OrgChartBase {
336
336
  */
337
337
  magnify(id: string | number, scale: number, front?: boolean, anim?: OrgChart.anim | null, callback?: () => void): void;
338
338
 
339
-
340
339
  /**
341
340
  * The onField() method of the OrgChart class sets up a function that will be called whenever the specified event is delivered to the target.
342
341
  * ```typescript
@@ -601,13 +600,14 @@ declare class OrgChart extends OrgChartBase {
601
600
  static childrenCount(chart: OrgChart, node: OrgChart.node, count?: number): number;
602
601
  static collapsedChildrenCount(chart: OrgChart, node: OrgChart.node, count?: number): number;
603
602
  static getRootOf(node: OrgChart.node): OrgChart.node;
603
+
604
604
  /**
605
605
  * is null, empty or undefined
606
606
  * @param val
607
607
  */
608
608
  static isNEU(val: any): boolean;
609
609
  static gradientCircleForDefs(id: string | number, colors: Array<string> | string, r: number, strokeWidth: number): string;
610
-
610
+ static convertCsvToNodes(text: string) : Array<OrgChart.node>;
611
611
 
612
612
  /**
613
613
  * Shows/hides lloading image. Usefull when export large data to pdf. You can override and show your own loading image.
@@ -1088,122 +1088,7 @@ declare namespace OrgChart {
1088
1088
  none
1089
1089
  }
1090
1090
 
1091
- interface node {
1092
- /**
1093
- * the same id you provided in the source node
1094
- */
1095
- id?: string | number,
1096
- /**
1097
- * same pid you provided in the source node, the default value is null if not provided or if node with the same id does not exist
1098
- */
1099
- pid?: string | number,
1100
- /**
1101
- * partner parent id, it is the partner parent node id of the partner node, it is the same ppid you provided in the source node, the default value is undefined.
1102
- */
1103
- ppid?: string | number,
1104
- /**
1105
- * a reference to the parent node, default value is null, if the nodes is collapse this proprty is not initalized and can be null even if pid is not null
1106
- */
1107
- parent?: node,
1108
- /**
1109
- * ub tree parent id, it is the parent node id of the root node of the sub tree, it is the same stpid you provided in the source node, the default value is null if not provided or if node with the same id does not exist.
1110
- */
1111
- stpid?: string | number,
1112
- /**
1113
- * - a reference to the parent node of a sub tree, default value is null, if the parent node is minimized this proprty is not initalized and can be null even if we have stpid
1114
- */
1115
- stParent?: node,
1116
- isPartner?: boolean,
1117
- partnerSeparation?: number,
1118
- /**
1119
- * array of ids, always initialized
1120
- */
1121
- childrenIds?: Array<string | number>,
1122
- /**
1123
- * array of children nodes, initialized on demand if all children are collpased it will be empty array
1124
- */
1125
- children?: Array<node>,
1126
- /**
1127
- * array of sub tree children root node ids, always initialized
1128
- */
1129
- stChildrenIds?: Array<string | number>,
1130
- /**
1131
- * array of sub tree children root nodes, initialized on demand if the node is minimized it will be empty array
1132
- */
1133
- stChildren?: Array<node>,
1134
- /**
1135
- * array of string values, the same array you provided in the source node
1136
- */
1137
- tags?: Array<string>,
1138
- /**
1139
- * template name, you can specify multiple templates with tags in one chart
1140
- */
1141
- templateName?: string,
1142
- /**
1143
- * a reference to the left node neighbor, the default value is undefined
1144
- */
1145
- leftNeighbor?: node | undefined,
1146
- /**
1147
- * a reference to the right node neighbor, the default value is undefined
1148
- */
1149
- rightNeighbor?: node | undefined,
1150
- /**
1151
- * x position, default value undefined
1152
- */
1153
- x?: number | undefined,
1154
- /**
1155
- * y position, default value undefined
1156
- */
1157
- y?: number | undefined,
1158
- /**
1159
- * width of the node, default value undefined
1160
- */
1161
- w?: number | undefined,
1162
- /**
1163
- * height of the node, default value undefined
1164
- */
1165
- h?: number | undefined,
1166
- /**
1167
- * if the node is assistant is true if not false if the node is not initialized is undefined
1168
- */
1169
- isAssistant?: boolean | undefined,
1170
- /**
1171
- * sub tree container nodes array, property only for the root node, default value undefined
1172
- */
1173
- stContainerNodes?: Array<node> | undefined,
1174
- /**
1175
- * it is set only if you define order option, default value undefined
1176
- */
1177
- order?: number | undefined,
1178
- /**
1179
- * true if the node is collpased, false if it is not and undefined if not initalized
1180
- */
1181
- collapsed?: boolean | undefined,
1182
- /**
1183
- * a level of the node starting from zero
1184
- */
1185
- level?: number,
1186
- /**
1187
- * true if the node is minimized, default value undefined
1188
- */
1189
- min?: boolean | undefined,
1190
- /**
1191
- * sub levels, default value undefined
1192
- */
1193
- subLevels?: number | undefined,
1194
- /**
1195
- * set only if the node contains sub trees and padding is defined in the template, default value undefined
1196
- */
1197
- padding?: number | undefined,
1198
- /**
1199
- * layout configuration name, default value undefined
1200
- */
1201
- lcn?: string | undefined,
1202
- /**
1203
- * for assistant nodes and mixed layout we create dynamic nodes called splits, default value undefined
1204
- */
1205
- isSplit?: boolean | undefined
1206
- }
1091
+
1207
1092
 
1208
1093
  interface options {
1209
1094
  /**
@@ -2146,6 +2031,123 @@ declare class OrgChartBase {
2146
2031
  }
2147
2032
 
2148
2033
  declare namespace OrgChart {
2034
+
2035
+ interface node {
2036
+ /**
2037
+ * the same id you provided in the source node
2038
+ */
2039
+ id?: string | number,
2040
+ /**
2041
+ * same pid you provided in the source node, the default value is null if not provided or if node with the same id does not exist
2042
+ */
2043
+ pid?: string | number,
2044
+ /**
2045
+ * partner parent id, it is the partner parent node id of the partner node, it is the same ppid you provided in the source node, the default value is undefined.
2046
+ */
2047
+ ppid?: string | number,
2048
+ /**
2049
+ * a reference to the parent node, default value is null, if the nodes is collapse this proprty is not initalized and can be null even if pid is not null
2050
+ */
2051
+ parent?: node,
2052
+ /**
2053
+ * ub tree parent id, it is the parent node id of the root node of the sub tree, it is the same stpid you provided in the source node, the default value is null if not provided or if node with the same id does not exist.
2054
+ */
2055
+ stpid?: string | number,
2056
+ /**
2057
+ * - a reference to the parent node of a sub tree, default value is null, if the parent node is minimized this proprty is not initalized and can be null even if we have stpid
2058
+ */
2059
+ stParent?: node,
2060
+ isPartner?: boolean,
2061
+ partnerSeparation?: number,
2062
+ /**
2063
+ * array of ids, always initialized
2064
+ */
2065
+ childrenIds?: Array<string | number>,
2066
+ /**
2067
+ * array of children nodes, initialized on demand if all children are collpased it will be empty array
2068
+ */
2069
+ children?: Array<node>,
2070
+ /**
2071
+ * array of sub tree children root node ids, always initialized
2072
+ */
2073
+ stChildrenIds?: Array<string | number>,
2074
+ /**
2075
+ * array of sub tree children root nodes, initialized on demand if the node is minimized it will be empty array
2076
+ */
2077
+ stChildren?: Array<node>,
2078
+ /**
2079
+ * array of string values, the same array you provided in the source node
2080
+ */
2081
+ tags?: Array<string>,
2082
+ /**
2083
+ * template name, you can specify multiple templates with tags in one chart
2084
+ */
2085
+ templateName?: string,
2086
+ /**
2087
+ * a reference to the left node neighbor, the default value is undefined
2088
+ */
2089
+ leftNeighbor?: node | undefined,
2090
+ /**
2091
+ * a reference to the right node neighbor, the default value is undefined
2092
+ */
2093
+ rightNeighbor?: node | undefined,
2094
+ /**
2095
+ * x position, default value undefined
2096
+ */
2097
+ x?: number | undefined,
2098
+ /**
2099
+ * y position, default value undefined
2100
+ */
2101
+ y?: number | undefined,
2102
+ /**
2103
+ * width of the node, default value undefined
2104
+ */
2105
+ w?: number | undefined,
2106
+ /**
2107
+ * height of the node, default value undefined
2108
+ */
2109
+ h?: number | undefined,
2110
+ /**
2111
+ * if the node is assistant is true if not false if the node is not initialized is undefined
2112
+ */
2113
+ isAssistant?: boolean | undefined,
2114
+ /**
2115
+ * sub tree container nodes array, property only for the root node, default value undefined
2116
+ */
2117
+ stContainerNodes?: Array<node> | undefined,
2118
+ /**
2119
+ * it is set only if you define order option, default value undefined
2120
+ */
2121
+ order?: number | undefined,
2122
+ /**
2123
+ * true if the node is collpased, false if it is not and undefined if not initalized
2124
+ */
2125
+ collapsed?: boolean | undefined,
2126
+ /**
2127
+ * a level of the node starting from zero
2128
+ */
2129
+ level?: number,
2130
+ /**
2131
+ * true if the node is minimized, default value undefined
2132
+ */
2133
+ min?: boolean | undefined,
2134
+ /**
2135
+ * sub levels, default value undefined
2136
+ */
2137
+ subLevels?: number | undefined,
2138
+ /**
2139
+ * set only if the node contains sub trees and padding is defined in the template, default value undefined
2140
+ */
2141
+ padding?: number | undefined,
2142
+ /**
2143
+ * layout configuration name, default value undefined
2144
+ */
2145
+ lcn?: string | undefined,
2146
+ /**
2147
+ * for assistant nodes and mixed layout we create dynamic nodes called splits, default value undefined
2148
+ */
2149
+ isSplit?: boolean | undefined
2150
+ }
2149
2151
  /**
2150
2152
  * deprecated, use OrgChart.align.center isntead
2151
2153
  * @ignore