@balkangraph/orgchart.js 8.0.12 → 8.0.16

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
@@ -222,6 +222,19 @@ interface Tags {
222
222
  }
223
223
 
224
224
  interface OrgChartOptions {
225
+ /**
226
+ * OrgChart JS can be displayed in "dark" or "light" modes by settong the mode option:
227
+ * Default value: light;
228
+
229
+ Code example:
230
+ ```
231
+ var chart = new OrgChart(document.getElementById("tree"), {
232
+ mode: 'dark',
233
+ });
234
+ ```
235
+ */
236
+ mode?: string,
237
+
225
238
  /**
226
239
  * Lazy loading is technique that defers loading of non-critical nodes at page load time. Instead, these non-critical nodes are loaded at the moment of need.
227
240
  * Default value: true
@@ -1042,7 +1055,9 @@ Code example:
1042
1055
  searchDisplayField?: String,
1043
1056
 
1044
1057
  enableKeyNavigation?: boolean,
1045
- nodeCircleMenu?: Object
1058
+ nodeCircleMenu?: Object,
1059
+
1060
+ editForm?: Object
1046
1061
 
1047
1062
  }
1048
1063
 
@@ -1744,13 +1759,13 @@ Code example:
1744
1759
  getNode(id: string | number): NodeModel;
1745
1760
 
1746
1761
  /**
1747
- * Maximize the node.
1762
+ * Maximize the node. Without parameters maximize all nodes.
1748
1763
  *
1749
1764
  Signature:
1750
1765
  * ```
1751
1766
  * chart.maximize(id, horizontalCenter, verticalCenter, callback);
1752
1767
  * ```
1753
- * @param id - the id of the node
1768
+ * @param id - (optional) the id of the node
1754
1769
  * @param horizontalCenter - (optional) center horizontally (true,false)
1755
1770
  * @param verticalCenter - (optional) center vertically (true,false)
1756
1771
  * @param callback - (optional) callback function is called when the animation completes
@@ -1760,16 +1775,16 @@ Code example:
1760
1775
  * chart.maximize(5);
1761
1776
  * ```
1762
1777
  */
1763
- maximize(id: string | number, horizontalCenter?: boolean, verticalCenter?: boolean, callback?: Function) : void;
1778
+ maximize(id?: string | number, horizontalCenter?: boolean, verticalCenter?: boolean, callback?: Function) : void;
1764
1779
 
1765
1780
  /**
1766
- * Minimize the node.
1781
+ * Minimize the node. Without parameters minimize all nodes.
1767
1782
  *
1768
1783
  Signature:
1769
1784
  * ```
1770
1785
  * chart.minimize(id, callback);
1771
1786
  * ```
1772
- * @param id - the id of the node
1787
+ * @param id - (optional) the id of the node
1773
1788
  * @param callback - (optional) callback function is called when the animation completes
1774
1789
  *
1775
1790
  Code example:
@@ -1777,7 +1792,7 @@ Code example:
1777
1792
  * chart.minimize(5);
1778
1793
  * ```
1779
1794
  */
1780
- minimize(id: string | number, callback?: Function) : void;
1795
+ minimize(id?: string | number, callback?: Function) : void;
1781
1796
 
1782
1797
  /**
1783
1798
  * Set orientation.
@@ -1938,4 +1953,43 @@ Code example:
1938
1953
  generateId() : string | number;
1939
1954
 
1940
1955
  changeRoots(id: null | string | number, roots: Array<string|number>, callback?: Function ) : void;
1956
+ /**
1957
+ * Exports the node details in PDF
1958
+ *
1959
+ * Signature:
1960
+ * ```
1961
+ * chart.exportPDFProfile(ioptions, callback);
1962
+ * ```
1963
+ * Parameters:
1964
+ * @param options - options for export
1965
+ * @param callback - callback function
1966
+ *
1967
+ *
1968
+ * Code example:
1969
+ * ```
1970
+ * chart.exportPDFProfile({id: 5});
1971
+ * ```
1972
+ */
1973
+ exportPDFProfile(options: Object, callback?: Function) : void;
1974
+
1975
+ /**
1976
+ * Exports the node details in PNG
1977
+ *
1978
+ * Signature:
1979
+ * ```
1980
+ * chart.exportPNGProfile(ioptions, callback);
1981
+ * ```
1982
+ * Parameters:
1983
+ * @param options - options for export
1984
+ * @param callback - callback function
1985
+ *
1986
+ *
1987
+ * Code example:
1988
+ * ```
1989
+ * chart.exportPNGProfile({id: 5});
1990
+ * ```
1991
+ */
1992
+ exportPNGProfile(options: Object, callback?: Function) : void;
1993
+
1994
+
1941
1995
  }export default OrgChart