@balkangraph/orgchart.js 8.14.69 → 8.14.70
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 +26 -1
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -434,7 +434,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
434
434
|
* ```typescript
|
|
435
435
|
* var chart = new OrgChart('#tree', {});
|
|
436
436
|
* ...
|
|
437
|
-
* chart.replaceIds
|
|
437
|
+
* chart.replaceIds[{2:21, 3:31});
|
|
438
438
|
* ```
|
|
439
439
|
* @param old_new_ids dictionary containing old and new ids
|
|
440
440
|
* @param callback called when the replacment completes
|
|
@@ -444,6 +444,12 @@ declare class OrgChart extends OrgChartBase {
|
|
|
444
444
|
}, callback?: () => void): void;
|
|
445
445
|
/**
|
|
446
446
|
* Adds curved link.
|
|
447
|
+
* ```typescript
|
|
448
|
+
* var chart = new OrgChart('#tree', {});
|
|
449
|
+
* ...
|
|
450
|
+
* chart.addClink(4, 0, 'text')
|
|
451
|
+
* chart.draw();
|
|
452
|
+
* ```
|
|
447
453
|
* @param from from node with id
|
|
448
454
|
* @param to to node with id
|
|
449
455
|
* @param label link label
|
|
@@ -452,12 +458,24 @@ declare class OrgChart extends OrgChartBase {
|
|
|
452
458
|
addClink(from: string | number, to: string | number, label?: string, template?: string): OrgChart;
|
|
453
459
|
/**
|
|
454
460
|
* Removes curved link.
|
|
461
|
+
* ```typescript
|
|
462
|
+
* var chart = new OrgChart('#tree', {});
|
|
463
|
+
* ...
|
|
464
|
+
* chart.removeClink(4, 0)
|
|
465
|
+
* chart.draw();
|
|
466
|
+
* ```
|
|
455
467
|
* @param from from node with id
|
|
456
468
|
* @param to to node with id
|
|
457
469
|
*/
|
|
458
470
|
removeClink(from: string | number, to: string | number): OrgChart;
|
|
459
471
|
/**
|
|
460
472
|
* Adds second link.
|
|
473
|
+
* ```typescript
|
|
474
|
+
* var chart = new OrgChart('#tree', {});
|
|
475
|
+
* ...
|
|
476
|
+
* chart.addSlink(4, 0, 'text')
|
|
477
|
+
* chart.draw();
|
|
478
|
+
* ```
|
|
461
479
|
* @param from from node with id
|
|
462
480
|
* @param to to node with id
|
|
463
481
|
* @param label link label
|
|
@@ -466,12 +484,19 @@ declare class OrgChart extends OrgChartBase {
|
|
|
466
484
|
addSlink(from: string | number, to: string | number, label?: string, template?: string): OrgChart;
|
|
467
485
|
/**
|
|
468
486
|
* Removes second link.
|
|
487
|
+
* ```typescript
|
|
488
|
+
* var chart = new OrgChart('#tree', {});
|
|
489
|
+
* ...
|
|
490
|
+
* chart.removeSlink(4, 0)
|
|
491
|
+
* chart.draw();
|
|
492
|
+
* ```
|
|
469
493
|
* @param from from node with id
|
|
470
494
|
* @param to to node with id
|
|
471
495
|
*/
|
|
472
496
|
removeSlink(from: string | number, to: string | number): OrgChart;
|
|
473
497
|
/**
|
|
474
498
|
* Gets svg html element
|
|
499
|
+
*
|
|
475
500
|
*/
|
|
476
501
|
getSvg(): SVGAElement;
|
|
477
502
|
/**
|