@balkangraph/orgchart.js 8.13.0 → 8.13.2
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 +46 -3
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -667,6 +667,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
667
667
|
searchUI: OrgChart.searchUI;
|
|
668
668
|
nodeMenuUI: OrgChart.menuUI;
|
|
669
669
|
filterUI: OrgChart.filterUI;
|
|
670
|
+
undoRedoUI: OrgChart.undoRedoUI;
|
|
670
671
|
nodeCircleMenuUI: OrgChart.circleMenuUI;
|
|
671
672
|
nodeContextMenuUI: OrgChart.menuUI;
|
|
672
673
|
menuUI: OrgChart.menuUI;
|
|
@@ -1044,7 +1045,15 @@ declare namespace OrgChart {
|
|
|
1044
1045
|
/**
|
|
1045
1046
|
* indicates if the node is child of partner node
|
|
1046
1047
|
*/
|
|
1047
|
-
isChildOfPartner?: boolean
|
|
1048
|
+
isChildOfPartner?: boolean,
|
|
1049
|
+
/**
|
|
1050
|
+
* move the the node on x axis
|
|
1051
|
+
*/
|
|
1052
|
+
movex?: number | undefined,
|
|
1053
|
+
/**
|
|
1054
|
+
* move the the node on y axis
|
|
1055
|
+
*/
|
|
1056
|
+
movey?: number | undefined
|
|
1048
1057
|
}
|
|
1049
1058
|
|
|
1050
1059
|
|
|
@@ -1248,8 +1257,31 @@ declare namespace OrgChart {
|
|
|
1248
1257
|
* Refreshes the UI buttonss
|
|
1249
1258
|
*/
|
|
1250
1259
|
refresh(): void;
|
|
1251
|
-
|
|
1252
|
-
|
|
1260
|
+
/**
|
|
1261
|
+
* @ignore
|
|
1262
|
+
*/
|
|
1263
|
+
on(type: "change", listener: (sender: undoRedoUI, args: any) => void | boolean): undoRedoUI;
|
|
1264
|
+
/**
|
|
1265
|
+
* Occurs when the undo redo buttons needs to updated.
|
|
1266
|
+
* ```typescript
|
|
1267
|
+
* var chart = new OrgChart('#tree', {});
|
|
1268
|
+
* chart.undoRedoUI.onChange((args) => {
|
|
1269
|
+
* //return false; to cancel the operation
|
|
1270
|
+
* });
|
|
1271
|
+
* ```
|
|
1272
|
+
* @category Event Listeners
|
|
1273
|
+
* @param listener
|
|
1274
|
+
*/
|
|
1275
|
+
onChange(listener: (args: {
|
|
1276
|
+
/**
|
|
1277
|
+
* Undo stack steps count
|
|
1278
|
+
*/
|
|
1279
|
+
undoStepsCount: number,
|
|
1280
|
+
/**
|
|
1281
|
+
* Redo stack steps count
|
|
1282
|
+
*/
|
|
1283
|
+
redoStepsCount: number
|
|
1284
|
+
}) => void): undoRedoUI;
|
|
1253
1285
|
instance: OrgChart;
|
|
1254
1286
|
}
|
|
1255
1287
|
|
|
@@ -1452,6 +1484,13 @@ declare namespace OrgChart {
|
|
|
1452
1484
|
none
|
|
1453
1485
|
}
|
|
1454
1486
|
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
enum draggable {
|
|
1490
|
+
node
|
|
1491
|
+
//tree
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1455
1494
|
|
|
1456
1495
|
|
|
1457
1496
|
interface options {
|
|
@@ -1686,6 +1725,10 @@ declare namespace OrgChart {
|
|
|
1686
1725
|
* ```
|
|
1687
1726
|
*/
|
|
1688
1727
|
showXScroll?: boolean ,
|
|
1728
|
+
/**
|
|
1729
|
+
* Draggable node, drag the node anywhere on the canvas
|
|
1730
|
+
*/
|
|
1731
|
+
draggable?: OrgChart.draggable,
|
|
1689
1732
|
/**
|
|
1690
1733
|
* Shows vertical scrollbar. Default value - *false*.
|
|
1691
1734
|
* ```typescript
|