@balkangraph/orgchart.js 8.15.12 → 8.15.14

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.
package/orgchart.d.ts CHANGED
@@ -3225,18 +3225,64 @@ declare namespace OrgChart {
3225
3225
  detachTree
3226
3226
  }
3227
3227
 
3228
-
3228
+ /**
3229
+ * [Example with all actions](https://code.balkan.app/org-chart-js/which-action-triggers-redraw#JS)
3230
+ */
3229
3231
  enum action {
3232
+
3233
+ /**
3234
+ * OrgChart.action.update = 7;
3235
+ * ```typescript
3236
+ * let chart = new OrgChart('#tree', {
3237
+ * });
3238
+ * chart.onRedraw(() => {
3239
+ * if (chart.manager.action == OrgChart.action.update) {
3240
+ * alert("chart updated");
3241
+ * }
3242
+ * });
3243
+ * chart.load(nodes)
3244
+ * ```
3245
+ */
3230
3246
  update,
3247
+
3248
+ /**
3249
+ * OrgChart.action.expand = 0;
3250
+ * ```typescript
3251
+ * let chart = new OrgChart('#tree', {
3252
+ * });
3253
+ * chart.onRedraw(() => {
3254
+ * if (chart.manager.action == OrgChart.action.expand) {
3255
+ * chart.fit();
3256
+ * }
3257
+ * });
3258
+ * chart.load(nodes)
3259
+ * ```
3260
+ */
3231
3261
  expand,
3262
+
3263
+ /**
3264
+ * OrgChart.action.collapse = 1;
3265
+ * ```typescript
3266
+ * let chart = new OrgChart('#tree', {
3267
+ * });
3268
+ * chart.onRedraw(() => {
3269
+ * if (chart.manager.action == OrgChart.action.collapse) {
3270
+ * chart.fit();
3271
+ * }
3272
+ * });
3273
+ * chart.load(nodes)
3274
+ * ```
3275
+ */
3232
3276
  collapse,
3277
+
3278
+
3233
3279
  exporting,
3234
3280
  init,
3235
3281
 
3236
3282
  /**
3237
3283
  * OrgChart.action.centerNode = 9;
3238
3284
  * ```typescript
3239
- * var chart = new OrgChart('#tree', {
3285
+ * let chart = new OrgChart('#tree', {
3240
3286
  * });
3241
3287
  * chart.onInit(() => {
3242
3288
  * chart.center(2);