@balkangraph/orgchart.js 8.15.16 → 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 +114 -1
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -3315,16 +3315,85 @@ declare namespace OrgChart {
|
|
|
3315
3315
|
* ```
|
|
3316
3316
|
*/
|
|
3317
3317
|
centerNode,
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* @ignore
|
|
3321
|
+
*/
|
|
3318
3322
|
insert,
|
|
3323
|
+
|
|
3324
|
+
/**
|
|
3325
|
+
* @ignore
|
|
3326
|
+
*/
|
|
3319
3327
|
maximize,
|
|
3328
|
+
|
|
3329
|
+
/**
|
|
3330
|
+
* @ignore
|
|
3331
|
+
*/
|
|
3320
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
|
+
*/
|
|
3321
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
|
+
*/
|
|
3322
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
|
+
*/
|
|
3323
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
|
+
*/
|
|
3324
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
|
+
*/
|
|
3325
3393
|
zoom,
|
|
3326
3394
|
|
|
3327
3395
|
/**
|
|
3396
|
+
* Set Ctrl + mouse scroll to zoom
|
|
3328
3397
|
* OrgChart.action.ctrlZoom = 22;
|
|
3329
3398
|
* ```typescript
|
|
3330
3399
|
* let chart = new OrgChart('#tree', {
|
|
@@ -3333,9 +3402,53 @@ declare namespace OrgChart {
|
|
|
3333
3402
|
* ```
|
|
3334
3403
|
*/
|
|
3335
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
|
+
*/
|
|
3336
3415
|
xScroll,
|
|
3337
|
-
|
|
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
|
+
*/
|
|
3338
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
|
+
*/
|
|
3339
3452
|
none
|
|
3340
3453
|
}
|
|
3341
3454
|
|