@balkangraph/orgchart.js 8.2.32 → 8.2.33
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 +11 -11
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
declare class OrgChart extends OrgChartBase {
|
|
4
|
-
nodes: { [key in
|
|
4
|
+
nodes: { [key in any]: OrgChart.node };
|
|
5
5
|
isVisible: boolean;
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -146,8 +146,8 @@ declare class OrgChart extends OrgChartBase {
|
|
|
146
146
|
* @param callback called when the animation completes
|
|
147
147
|
*/
|
|
148
148
|
center(nodeId: string | number, options?: {
|
|
149
|
-
parentState:
|
|
150
|
-
childrenState:
|
|
149
|
+
parentState: any,
|
|
150
|
+
childrenState: any,
|
|
151
151
|
rippleId: string | number,
|
|
152
152
|
vertical: boolean,
|
|
153
153
|
horizontal: boolean
|
|
@@ -341,7 +341,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
341
341
|
/**
|
|
342
342
|
* value of the filed, can be changed in the event
|
|
343
343
|
*/
|
|
344
|
-
value:
|
|
344
|
+
value: any,
|
|
345
345
|
/**
|
|
346
346
|
* svg or html element of the filed, can be changed in the event
|
|
347
347
|
*/
|
|
@@ -586,7 +586,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
586
586
|
* is null, empty or undefined
|
|
587
587
|
* @param val
|
|
588
588
|
*/
|
|
589
|
-
static isNEU(val:
|
|
589
|
+
static isNEU(val: any): boolean;
|
|
590
590
|
static gradientCircleForDefs(id: string | number, colors: Array<string> | string, r: number, strokeWidth: number): string;
|
|
591
591
|
|
|
592
592
|
|
|
@@ -644,7 +644,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
644
644
|
};
|
|
645
645
|
|
|
646
646
|
static events: {
|
|
647
|
-
on(type: "node-created" | "layout", listener: (args:
|
|
647
|
+
on(type: "node-created" | "layout", listener: (args: any, args1: any, args2: any) => void): void
|
|
648
648
|
};
|
|
649
649
|
static state: { clear(stateName: string): void };
|
|
650
650
|
|
|
@@ -819,7 +819,7 @@ declare namespace OrgChart {
|
|
|
819
819
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
820
820
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
821
821
|
*/
|
|
822
|
-
on(type: "show" | "save" | "cancel" | "element-btn-click" | "button-click" | "hide", listener: (sender: editUI, args:
|
|
822
|
+
on(type: "show" | "save" | "cancel" | "element-btn-click" | "button-click" | "hide", listener: (sender: editUI, args: any, args1: any, args2: any) => void | boolean): editUI;
|
|
823
823
|
/**
|
|
824
824
|
* Shows the edit form for the specified node id
|
|
825
825
|
* @param id node id
|
|
@@ -847,7 +847,7 @@ declare namespace OrgChart {
|
|
|
847
847
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
848
848
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
849
849
|
*/
|
|
850
|
-
on(type: "searchclick", listener: (sender: OrgChart, args:
|
|
850
|
+
on(type: "searchclick", listener: (sender: OrgChart, args: any, args1: any, args2: any) => void | boolean): searchUI;
|
|
851
851
|
/**
|
|
852
852
|
* Hides the search grid
|
|
853
853
|
*/
|
|
@@ -868,7 +868,7 @@ declare namespace OrgChart {
|
|
|
868
868
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
869
869
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
870
870
|
*/
|
|
871
|
-
on(type: "show", listener: (sender: menuUI, args:
|
|
871
|
+
on(type: "show", listener: (sender: menuUI, args: any, args1: any, args2: any) => void | boolean): menuUI;
|
|
872
872
|
/**
|
|
873
873
|
* Shows menu next to html element
|
|
874
874
|
* @param stickToElement
|
|
@@ -915,7 +915,7 @@ declare namespace OrgChart {
|
|
|
915
915
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
916
916
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
917
917
|
*/
|
|
918
|
-
on(type: "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args:
|
|
918
|
+
on(type: "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args: any, args1: any, args2: any) => void | boolean): circleMenuUI;
|
|
919
919
|
}
|
|
920
920
|
|
|
921
921
|
interface toolbarUI {
|
|
@@ -975,7 +975,7 @@ declare namespace OrgChart {
|
|
|
975
975
|
type?: string,
|
|
976
976
|
label?: string,
|
|
977
977
|
binding?: string,
|
|
978
|
-
options?: Array<
|
|
978
|
+
options?: Array<any>,
|
|
979
979
|
btn?: string,
|
|
980
980
|
vlidators?: { required?: string, email?: string }
|
|
981
981
|
}
|