@balkangraph/orgchart.js 8.2.16 → 8.2.20

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
@@ -1,5 +1,4 @@
1
1
 
2
- /// <reference path="OrgChartBase.d.ts" />
3
2
 
4
3
  declare class OrgChart extends OrgChartBase {
5
4
  nodes: { [key: string | number]: OrgChart.node };
@@ -86,6 +85,15 @@ declare class OrgChart extends OrgChartBase {
86
85
  * @param data node data array
87
86
  */
88
87
  load(data: Array<object>): OrgChart;
88
+
89
+ /**
90
+ * Updates the node data, redraws the chart and fires update event.
91
+ * @param data node data
92
+ * @param callback function called when the animation completes
93
+ * @param fireEvent if it set to true the update event is called
94
+ */
95
+ updateNode(data: object, callback?: () => void, fireEvent?: boolean): void;
96
+
89
97
  /**
90
98
  * Loads nodes from xml.
91
99
  * @param xml Xml with node structure
@@ -822,6 +830,11 @@ declare namespace OrgChart {
822
830
  */
823
831
  hide(): void;
824
832
  content(id: string | number, detailsMode: boolean, dontAnim: boolean, width: string, dontRenderButtons: boolean): string;
833
+ /**
834
+ * Sets the avatar of the edit form
835
+ * @param avatarUrl avatar url
836
+ */
837
+ setAvatar(avatarUrl?: string): void;
825
838
  }
826
839
 
827
840
  interface searchUI {
@@ -1931,7 +1944,6 @@ declare namespace OrgChart {
1931
1944
  }
1932
1945
  }
1933
1946
  }
1934
- /// <reference path="OrgChart.d.ts" />
1935
1947
 
1936
1948
  declare class OrgChartBase {
1937
1949
 
@@ -1942,13 +1954,7 @@ declare class OrgChartBase {
1942
1954
  * @param fireEvent indicates if the remove event will be called or not
1943
1955
  */
1944
1956
  removeNode(id: string | number, callback?: () => void, fireEvent?: boolean): void;
1945
- /**
1946
- * Updates the node data, redraws the chart and fires update event.
1947
- * @param data node data
1948
- * @param callback function called when the animation completes
1949
- * @param fireEvent if it set to true the update event is called
1950
- */
1951
- updateNode(data: object, callback?: () => void, fireEvent?: boolean): void;
1957
+
1952
1958
  /**
1953
1959
  * Adds new node to the nodes collection, redraws the chart and fires remove event
1954
1960
  * @param data node data