@balkangraph/orgchart.js 8.16.2 → 8.16.3
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 +56 -8
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -3370,6 +3370,19 @@ declare namespace OrgChart {
|
|
|
3370
3370
|
btn?: string,
|
|
3371
3371
|
vlidators?: { required?: string, email?: string }
|
|
3372
3372
|
}
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* Defines a Slink or Clink.
|
|
3376
|
+
* ```typescript
|
|
3377
|
+
* let chart = new OrgChart('#tree', {
|
|
3378
|
+
* clinks: [
|
|
3379
|
+
* { from: 4, to: 0, label: 'text' },
|
|
3380
|
+
* { from: 4, to: 5, template: 'blue', label: '4 reports to 3' },
|
|
3381
|
+
* { from: 2, to: 6, template: 'yellow', label: 'lorem ipsum' }
|
|
3382
|
+
* ]
|
|
3383
|
+
* });
|
|
3384
|
+
* ```
|
|
3385
|
+
*/
|
|
3373
3386
|
interface link {
|
|
3374
3387
|
from?: string | number,
|
|
3375
3388
|
to?: string | number,
|
|
@@ -3387,15 +3400,50 @@ declare namespace OrgChart {
|
|
|
3387
3400
|
opacity?: number,
|
|
3388
3401
|
except?: Array<string | number>
|
|
3389
3402
|
}
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* Node object that shows a secondary connection
|
|
3406
|
+
* ```typescript
|
|
3407
|
+
* let chart = new OrgChart('#tree', {
|
|
3408
|
+
* dottedLines: [
|
|
3409
|
+
* { from: 5, to: 1 }
|
|
3410
|
+
* ]
|
|
3411
|
+
* });
|
|
3412
|
+
* ```
|
|
3413
|
+
* {@link https://balkan.app/OrgChartJS/Docs/DottedLine | See doc...}
|
|
3414
|
+
*/
|
|
3390
3415
|
interface dottedLine {
|
|
3391
3416
|
from?: string | number,
|
|
3392
3417
|
to?: string | number,
|
|
3393
3418
|
tags?: Array<string>
|
|
3394
3419
|
}
|
|
3420
|
+
|
|
3421
|
+
/**
|
|
3422
|
+
* The orderBy contains the field name and the *desc* value
|
|
3423
|
+
* ```typescript
|
|
3424
|
+
* let chart = new OrgChart('#tree', {
|
|
3425
|
+
* orderBy: [
|
|
3426
|
+
* { field: 'name', desc: false },
|
|
3427
|
+
* { field: 'surname', desc: true },
|
|
3428
|
+
* ]
|
|
3429
|
+
* });
|
|
3430
|
+
* ```
|
|
3431
|
+
*/
|
|
3395
3432
|
interface orderBy {
|
|
3396
3433
|
field?: string,
|
|
3397
3434
|
desc?: boolean
|
|
3398
3435
|
}
|
|
3436
|
+
|
|
3437
|
+
/**
|
|
3438
|
+
* Contains the move position
|
|
3439
|
+
* ```typescript
|
|
3440
|
+
* document.getElementById('btn_left').addEventListener('mousedown', function(){
|
|
3441
|
+
* chart.moveStart({
|
|
3442
|
+
* left: true
|
|
3443
|
+
* });
|
|
3444
|
+
* });
|
|
3445
|
+
* ```
|
|
3446
|
+
*/
|
|
3399
3447
|
interface move {
|
|
3400
3448
|
left?: boolean,
|
|
3401
3449
|
right?: boolean,
|
|
@@ -4416,11 +4464,11 @@ declare namespace OrgChart {
|
|
|
4416
4464
|
/**
|
|
4417
4465
|
* Adds curved link.
|
|
4418
4466
|
* ```typescript
|
|
4419
|
-
*
|
|
4467
|
+
* let chart = new OrgChart('#tree', {
|
|
4420
4468
|
* clinks: [
|
|
4421
|
-
* from: 4, to: 0, label: 'text'},
|
|
4422
|
-
* {from: 4, to: 5, template: 'blue', label: '4 reports to 3' },
|
|
4423
|
-
* {from: 2, to: 6, template: 'yellow', label: 'lorem ipsum' }
|
|
4469
|
+
* { from: 4, to: 0, label: 'text'},
|
|
4470
|
+
* { from: 4, to: 5, template: 'blue', label: '4 reports to 3' },
|
|
4471
|
+
* { from: 2, to: 6, template: 'yellow', label: 'lorem ipsum' }
|
|
4424
4472
|
* ]
|
|
4425
4473
|
* });
|
|
4426
4474
|
* ```
|
|
@@ -4429,11 +4477,11 @@ declare namespace OrgChart {
|
|
|
4429
4477
|
/**
|
|
4430
4478
|
* Adds second link.
|
|
4431
4479
|
* ```typescript
|
|
4432
|
-
*
|
|
4480
|
+
* let chart = new OrgChart('#tree', {
|
|
4433
4481
|
* slinks: [
|
|
4434
|
-
* from: 4, to: 0, label: 'text'},
|
|
4435
|
-
* {from: 4, to: 5, template: 'blue', label: '4 reports to 3' },
|
|
4436
|
-
* {from: 2, to: 6, template: 'yellow', label: 'lorem ipsum' }
|
|
4482
|
+
* { from: 4, to: 0, label: 'text' },
|
|
4483
|
+
* { from: 4, to: 5, template: 'blue', label: '4 reports to 3' },
|
|
4484
|
+
* { from: 2, to: 6, template: 'yellow', label: 'lorem ipsum' }
|
|
4437
4485
|
* ]
|
|
4438
4486
|
* });
|
|
4439
4487
|
* ```
|