@balkangraph/orgchart.js 8.14.111 → 8.14.112

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
@@ -1773,7 +1773,9 @@ declare class OrgChart {
1773
1773
  opera?: { smooth?: number; speed?: number; }
1774
1774
  };
1775
1775
 
1776
-
1776
+ /**
1777
+ * @ignore
1778
+ */
1777
1779
  static events: {
1778
1780
  /**
1779
1781
  * layout event listener is obsolete, use node-layout instead
@@ -1782,10 +1784,47 @@ declare class OrgChart {
1782
1784
  */
1783
1785
  on(type: "layout", listener: (args: any, args1: any, args2: any) => void): void
1784
1786
  };
1787
+
1788
+ /**
1789
+ * @ignore
1790
+ */
1785
1791
  static state: { clear(stateName: string): void };
1786
1792
 
1793
+ /**
1794
+ * Animate an element
1795
+ * ```typescript
1796
+ * editForm.prototype.show = function (nodeId) {
1797
+ * OrgChart.animate(div, { opacity: 0, right: -100 }, { opacity: 1, right: 10 }, 300, OrgChart.anim.outSin);
1798
+ * };
1799
+ * ```
1800
+ * @param element - element
1801
+ * @param attrStart - object with start CSS properties
1802
+ * @param attrEnd - object with end CSS properties
1803
+ * @param duration - duration in miliseconds
1804
+ * @param func - funcition to animate with
1805
+ * @param callback - callback function
1806
+ */
1787
1807
  static animate(element: Object, attrStart?: Object, attrEnd?: Object, duration?: number, func?: OrgChart.anim, callback?: Function, tick?: boolean): void;
1788
1808
 
1809
+ /**
1810
+ * Minimap options.
1811
+ * ```typescript
1812
+ * OrgChart.miniMap.colors = ["#FFCA28", "#F57C00", "#039be5", "#757575"];
1813
+ * OrgChart.miniMap.selectorBackgroundColor = "#888888";
1814
+ * OrgChart.miniMap.focusStroke = "#039BE5";
1815
+ * OrgChart.miniMap.opacity = 0.8;
1816
+ * OrgChart.miniMap.border = '2px solid #039BE5';
1817
+ * OrgChart.miniMap.width = 200;
1818
+ * OrgChart.miniMap.height = 100;
1819
+ * OrgChart.miniMap.padding = 10;
1820
+ * OrgChart.miniMap.position = {
1821
+ * top: 'padding',
1822
+ * left: 'padding',
1823
+ * right: undefined,
1824
+ * bottom: undefined
1825
+ * };
1826
+ * ```
1827
+ */
1789
1828
  static miniMap: {
1790
1829
  colors: Array<string>,
1791
1830
  selectorBackgroundColor: string,
@@ -1798,6 +1837,12 @@ declare class OrgChart {
1798
1837
  position: Object
1799
1838
  };
1800
1839
 
1840
+ /**
1841
+ * OrgChart version
1842
+ * ```typescript
1843
+ * OrgChart.VERSION;
1844
+ * ```
1845
+ */
1801
1846
  static VERSION: string;
1802
1847
  /**
1803
1848
  * @ignore