@balkangraph/orgchart.js 8.0.13 → 8.0.17

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
@@ -1746,13 +1759,13 @@ Code example:
1746
1759
  getNode(id: string | number): NodeModel;
1747
1760
 
1748
1761
  /**
1749
- * Maximize the node.
1762
+ * Maximize the node. Without parameters maximize all nodes.
1750
1763
  *
1751
1764
  Signature:
1752
1765
  * ```
1753
1766
  * chart.maximize(id, horizontalCenter, verticalCenter, callback);
1754
1767
  * ```
1755
- * @param id - the id of the node
1768
+ * @param id - (optional) the id of the node
1756
1769
  * @param horizontalCenter - (optional) center horizontally (true,false)
1757
1770
  * @param verticalCenter - (optional) center vertically (true,false)
1758
1771
  * @param callback - (optional) callback function is called when the animation completes
@@ -1762,16 +1775,16 @@ Code example:
1762
1775
  * chart.maximize(5);
1763
1776
  * ```
1764
1777
  */
1765
- maximize(id: string | number, horizontalCenter?: boolean, verticalCenter?: boolean, callback?: Function) : void;
1778
+ maximize(id?: string | number, horizontalCenter?: boolean, verticalCenter?: boolean, callback?: Function) : void;
1766
1779
 
1767
1780
  /**
1768
- * Minimize the node.
1781
+ * Minimize the node. Without parameters minimize all nodes.
1769
1782
  *
1770
1783
  Signature:
1771
1784
  * ```
1772
1785
  * chart.minimize(id, callback);
1773
1786
  * ```
1774
- * @param id - the id of the node
1787
+ * @param id - (optional) the id of the node
1775
1788
  * @param callback - (optional) callback function is called when the animation completes
1776
1789
  *
1777
1790
  Code example:
@@ -1779,7 +1792,7 @@ Code example:
1779
1792
  * chart.minimize(5);
1780
1793
  * ```
1781
1794
  */
1782
- minimize(id: string | number, callback?: Function) : void;
1795
+ minimize(id?: string | number, callback?: Function) : void;
1783
1796
 
1784
1797
  /**
1785
1798
  * Set orientation.
@@ -1940,4 +1953,43 @@ Code example:
1940
1953
  generateId() : string | number;
1941
1954
 
1942
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
+
1943
1995
  }export default OrgChart