@balkangraph/orgchart.js 8.14.111 → 8.14.113
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 +78 -4
- 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
|
|
@@ -2049,20 +2094,49 @@ declare class OrgChart {
|
|
|
2049
2094
|
static FILTER_ALPHABETICALLY: boolean;
|
|
2050
2095
|
|
|
2051
2096
|
/**
|
|
2052
|
-
*
|
|
2097
|
+
* Generates random id for a node
|
|
2098
|
+
* ```typescript
|
|
2099
|
+
* let id = OrgChart.randomId();
|
|
2100
|
+
* ```
|
|
2053
2101
|
*/
|
|
2054
|
-
|
|
2055
2102
|
static randomId(): any;
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* @ignore
|
|
2106
|
+
*/
|
|
2056
2107
|
static searchUI: any;
|
|
2108
|
+
/**
|
|
2109
|
+
* @ignore
|
|
2110
|
+
*/
|
|
2057
2111
|
static editUI: any;
|
|
2112
|
+
/**
|
|
2113
|
+
* @ignore
|
|
2114
|
+
*/
|
|
2058
2115
|
static pdfPrevUI: OrgChart.pdfPrevUI;
|
|
2059
2116
|
// static menuUI: any;
|
|
2117
|
+
/**
|
|
2118
|
+
* @ignore
|
|
2119
|
+
*/
|
|
2060
2120
|
static attr: any;
|
|
2121
|
+
/**
|
|
2122
|
+
* @ignore
|
|
2123
|
+
*/
|
|
2061
2124
|
static toolbarUI: any;
|
|
2125
|
+
/**
|
|
2126
|
+
* @ignore
|
|
2127
|
+
*/
|
|
2062
2128
|
static elements: any;
|
|
2063
|
-
|
|
2129
|
+
/**
|
|
2130
|
+
* @ignore
|
|
2131
|
+
*/
|
|
2064
2132
|
static expcollOpenTag: any;
|
|
2133
|
+
/**
|
|
2134
|
+
* @ignore
|
|
2135
|
+
*/
|
|
2065
2136
|
static upOpenTag: any;
|
|
2137
|
+
/**
|
|
2138
|
+
* @ignore
|
|
2139
|
+
*/
|
|
2066
2140
|
static grCloseTag: any;
|
|
2067
2141
|
}
|
|
2068
2142
|
|