@balkangraph/orgchart.js 8.14.110 → 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 +51 -6
- package/orgchart.js +1 -1
- package/package.json +1 -1
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
|
|
@@ -2609,13 +2654,13 @@ declare namespace OrgChart {
|
|
|
2609
2654
|
openInNewTab?: boolean,
|
|
2610
2655
|
expandChildren?: boolean,
|
|
2611
2656
|
/**
|
|
2612
|
-
* Export
|
|
2657
|
+
* Export parents of nodeId
|
|
2613
2658
|
*/
|
|
2614
|
-
|
|
2615
|
-
/**
|
|
2616
|
-
* Export
|
|
2659
|
+
parentLevels?: boolean,
|
|
2660
|
+
/**
|
|
2661
|
+
* Export children of nodeId
|
|
2617
2662
|
*/
|
|
2618
|
-
|
|
2663
|
+
childLevels?: boolean,
|
|
2619
2664
|
min?: boolean,
|
|
2620
2665
|
nodeId? : number | string
|
|
2621
2666
|
}
|