@balkangraph/orgchart.js 8.15.15 → 8.15.17

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
@@ -3275,8 +3275,31 @@ declare namespace OrgChart {
3275
3275
  */
3276
3276
  collapse,
3277
3277
 
3278
-
3278
+ /**
3279
+ * OrgChart.action.exporting = 14;
3280
+ * ```typescript
3281
+ * let chart = new OrgChart('#tree', {
3282
+ * });
3283
+ * chart.on("field", function (sender, args) {
3284
+ * if (sender.manager.action == OrgChart.action.exporting) {
3285
+ * args.value = "hidden";
3286
+ * }
3287
+ * });
3288
+ * chart.load(nodes)
3289
+ * ```
3290
+ */
3279
3291
  exporting,
3292
+
3293
+ /**
3294
+ * Reload/Initialize the chart
3295
+ * OrgChart.action.init = 6;
3296
+ * ```typescript
3297
+ * document.getElementById("btn").addEventListener("click", function () {
3298
+ * chart.add({ id: 4, pid: 2, name: "Elliot Patel", title: "Sales" });
3299
+ * chart.draw(OrgChart.action.init);
3300
+ * });
3301
+ * ```
3302
+ */
3280
3303
  init,
3281
3304
 
3282
3305
  /**
@@ -3292,16 +3315,85 @@ declare namespace OrgChart {
3292
3315
  * ```
3293
3316
  */
3294
3317
  centerNode,
3318
+
3319
+ /**
3320
+ * @ignore
3321
+ */
3295
3322
  insert,
3323
+
3324
+ /**
3325
+ * @ignore
3326
+ */
3296
3327
  maximize,
3328
+
3329
+ /**
3330
+ * @ignore
3331
+ */
3297
3332
  minimize,
3333
+
3334
+ /**
3335
+ * Opens edit form on node click
3336
+ * OrgChart.action.edit = 1;
3337
+ * ```typescript
3338
+ * let chart = new OrgChart('#tree', {
3339
+ * nodeMouseClick: OrgChart.action.edit
3340
+ * });
3341
+ * ```
3342
+ */
3298
3343
  edit,
3344
+
3345
+ /**
3346
+ * Opens the details form
3347
+ * OrgChart.action.details = 13;
3348
+ * ```typescript
3349
+ * let chart = new OrgChart('#tree', {
3350
+ * nodeMouseClick: OrgChart.action.edit // default value
3351
+ * });
3352
+ * chart.onNodeClick(function (args) {
3353
+ * if (args.node.templateName == "group")
3354
+ * chart.config.nodeMouseClick = OrgChart.action.pan;
3355
+ * esle
3356
+ * chart.config.nodeMouseClick = OrgChart.action.details;
3357
+ * });
3358
+ * ```
3359
+ */
3299
3360
  details,
3361
+
3362
+ /**
3363
+ * Expand/Collapse on node click
3364
+ * OrgChart.action.expandCollapse = 501;
3365
+ * ```typescript
3366
+ * let chart = new OrgChart('#tree', {
3367
+ * odeMouseClick: OrgChart.action.expandCollapse,
3368
+ * });
3369
+ * ```
3370
+ */
3300
3371
  expandCollapse,
3372
+
3373
+ /**
3374
+ * Expand/Collapse on node click
3375
+ * OrgChart.action.expandCollapse = 501;
3376
+ * ```typescript
3377
+ * let chart = new OrgChart('#tree', {
3378
+ * odeMouseClick: OrgChart.action.expandCollapse,
3379
+ * });
3380
+ * ```
3381
+ */
3301
3382
  pan,
3383
+
3384
+ /**
3385
+ * Set mouse scroll to zoom
3386
+ * OrgChart.action.zoom = 2;
3387
+ * ```typescript
3388
+ * let chart = new OrgChart('#tree', {
3389
+ * mouseScrool: OrgChart.action.zoom,
3390
+ * });
3391
+ * ```
3392
+ */
3302
3393
  zoom,
3303
3394
 
3304
3395
  /**
3396
+ * Set Ctrl + mouse scroll to zoom
3305
3397
  * OrgChart.action.ctrlZoom = 22;
3306
3398
  * ```typescript
3307
3399
  * let chart = new OrgChart('#tree', {
@@ -3310,9 +3402,53 @@ declare namespace OrgChart {
3310
3402
  * ```
3311
3403
  */
3312
3404
  ctrlZoom,
3405
+
3406
+ /**
3407
+ * Set mouse scroll to horizontal scroll
3408
+ * OrgChart.action.xScroll = 3;
3409
+ * ```typescript
3410
+ * let chart = new OrgChart('#tree', {
3411
+ * mouseScrool: OrgChart.action.xScroll,
3412
+ * });
3413
+ * ```
3414
+ */
3313
3415
  xScroll,
3314
- yScroll,
3416
+
3417
+ /**
3418
+ * Set mouse scroll to vertical scroll
3419
+ * OrgChart.action.yScroll = 4;
3420
+ * ```typescript
3421
+ * let chart = new OrgChart('#tree', {
3422
+ * mouseScrool: OrgChart.action.yScroll,
3423
+ * });
3424
+ * ```
3425
+ */
3426
+ yScroll,
3427
+
3428
+ /**
3429
+ * Navigate with the mouse:
3430
+ * Scroll up/down
3431
+ * Press Shift key to scroll left/right
3432
+ * Press Ctrl key to zoom with mouse scroll button
3433
+ * On Apple Magic Mouse or Logitech G502 you can scroll left/right/up/down without pressing the Shift key
3434
+ * OrgChart.action.scroll = 41;
3435
+ * ```typescript
3436
+ * let chart = new OrgChart('#tree', {
3437
+ * mouseScrool: OrgChart.action.scroll,
3438
+ * });
3439
+ * ```
3440
+ */
3315
3441
  scroll,
3442
+
3443
+ /**
3444
+ * Do nothing on mouse scroll
3445
+ * OrgChart.action.none = 5;
3446
+ * ```typescript
3447
+ * let chart = new OrgChart('#tree', {
3448
+ * odeMouseClick: OrgChart.action.nonde,
3449
+ * });
3450
+ * ```
3451
+ */
3316
3452
  none
3317
3453
  }
3318
3454