@balkangraph/orgchart.js 8.2.37 → 8.2.40
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 +17 -4
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -919,7 +919,7 @@ declare namespace OrgChart {
|
|
|
919
919
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
920
920
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
921
921
|
*/
|
|
922
|
-
on(type: "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args: any, args1: any, args2: any) => void | boolean): circleMenuUI;
|
|
922
|
+
on(type: "click" | "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args: any, args1: any, args2: any) => void | boolean): circleMenuUI;
|
|
923
923
|
}
|
|
924
924
|
|
|
925
925
|
interface toolbarUI {
|
|
@@ -970,7 +970,13 @@ declare namespace OrgChart {
|
|
|
970
970
|
[key: string]: {
|
|
971
971
|
text: string,
|
|
972
972
|
icon?: string,
|
|
973
|
-
onClick?: Function
|
|
973
|
+
onClick?: Function
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
interface circleMenu {
|
|
977
|
+
[key: string]: {
|
|
978
|
+
text: string,
|
|
979
|
+
icon?: string,
|
|
974
980
|
color?: string,
|
|
975
981
|
draggable?: boolean
|
|
976
982
|
}
|
|
@@ -1288,7 +1294,7 @@ declare namespace OrgChart {
|
|
|
1288
1294
|
* ```
|
|
1289
1295
|
* {@link https://balkan.app/OrgChartJS/Docs/Menus | See doc...}
|
|
1290
1296
|
*/
|
|
1291
|
-
nodeCircleMenu?: OrgChart.
|
|
1297
|
+
nodeCircleMenu?: OrgChart.circleMenu,
|
|
1292
1298
|
/**
|
|
1293
1299
|
* Customizable context menu. Also you can define your own node operation.
|
|
1294
1300
|
* ```typescript
|
|
@@ -1453,7 +1459,7 @@ declare namespace OrgChart {
|
|
|
1453
1459
|
template?: "ana" | "ula" | "olivia" | "belinda" | "rony" | "mery" | "polina" | "mila" | "diva" | "luba" | "isla" | "deborah" | "base" | "group" | "invisibleGroup" | string,
|
|
1454
1460
|
subLevels?: number,
|
|
1455
1461
|
nodeMenu?: OrgChart.menu,
|
|
1456
|
-
nodeCircleMenu?: OrgChart.
|
|
1462
|
+
nodeCircleMenu?: OrgChart.circleMenu,
|
|
1457
1463
|
nodeContextMenu?: OrgChart.menu,
|
|
1458
1464
|
subTreeConfig?: {
|
|
1459
1465
|
orientation?: OrgChart.orientation,
|
|
@@ -1956,6 +1962,13 @@ declare namespace OrgChart {
|
|
|
1956
1962
|
|
|
1957
1963
|
declare class OrgChartBase {
|
|
1958
1964
|
|
|
1965
|
+
/**
|
|
1966
|
+
* Can update link
|
|
1967
|
+
* @param id child id
|
|
1968
|
+
* @param pid parent id
|
|
1969
|
+
*/
|
|
1970
|
+
canUpdateLink(id: string | number, pid: string | number): boolean;
|
|
1971
|
+
|
|
1959
1972
|
/**
|
|
1960
1973
|
* Removes specified node from nodes collection, redraws the chart and fires remove event.
|
|
1961
1974
|
* @param id identification number of the node
|