@balkangraph/orgchart.js 8.13.10 → 8.13.12

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
@@ -135,6 +135,13 @@ declare class OrgChart extends OrgChartBase {
135
135
  * @param viewBox
136
136
  */
137
137
  getScale(viewBox?: Array<number>): number;
138
+
139
+ /**
140
+ * Sets the current scale of the chart.
141
+ * Returns the actual scale limited by scaleMax and scaleMin
142
+ * @param newScale new scale value
143
+ */
144
+ setScale(newScale: number): number;
138
145
  /**
139
146
  * Animates specified node with ripple animation - highlight the node.
140
147
  * @param id the id of the node
@@ -1461,6 +1468,11 @@ declare namespace OrgChart {
1461
1468
  boundary
1462
1469
  }
1463
1470
 
1471
+ enum draggable {
1472
+ node,
1473
+ tree
1474
+ }
1475
+
1464
1476
 
1465
1477
  enum action {
1466
1478
  update,
@@ -1486,10 +1498,6 @@ declare namespace OrgChart {
1486
1498
 
1487
1499
 
1488
1500
 
1489
- enum draggable {
1490
- node
1491
- //tree
1492
- }
1493
1501
 
1494
1502
 
1495
1503
 
@@ -2532,7 +2540,13 @@ declare class OrgChartBase {
2532
2540
  * dragged node id
2533
2541
  */
2534
2542
  dragId: string | number,
2535
- event: MouseEvent
2543
+ event: MouseEvent,
2544
+ /**
2545
+ * array of node ids
2546
+ *
2547
+ * this property is initialized only if draggable option is set
2548
+ */
2549
+ nodeIds: Array<string | number>
2536
2550
  }) => void): OrgChart;
2537
2551
  /**
2538
2552
  * The onDrop event occurs when a node is dropped. *enableDragDrop* option has to be turned on.