@balkangraph/orgchart.js 8.2.19 → 8.2.23

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
@@ -85,6 +85,15 @@ declare class OrgChart extends OrgChartBase {
85
85
  * @param data node data array
86
86
  */
87
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
+
88
97
  /**
89
98
  * Loads nodes from xml.
90
99
  * @param xml Xml with node structure
@@ -821,6 +830,11 @@ declare namespace OrgChart {
821
830
  */
822
831
  hide(): void;
823
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;
824
838
  }
825
839
 
826
840
  interface searchUI {
@@ -1940,13 +1954,7 @@ declare class OrgChartBase {
1940
1954
  * @param fireEvent indicates if the remove event will be called or not
1941
1955
  */
1942
1956
  removeNode(id: string | number, callback?: () => void, fireEvent?: boolean): void;
1943
- /**
1944
- * Updates the node data, redraws the chart and fires update event.
1945
- * @param data node data
1946
- * @param callback function called when the animation completes
1947
- * @param fireEvent if it set to true the update event is called
1948
- */
1949
- updateNode(data: object, callback?: () => void, fireEvent?: boolean): void;
1957
+
1950
1958
  /**
1951
1959
  * Adds new node to the nodes collection, redraws the chart and fires remove event
1952
1960
  * @param data node data