@balkangraph/orgchart.js 8.15.9 → 8.15.11
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 +25 -12
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -2972,13 +2972,13 @@ declare namespace OrgChart {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
|
|
2974
2974
|
/**
|
|
2975
|
-
*
|
|
2975
|
+
* miniMap options
|
|
2976
2976
|
*/
|
|
2977
2977
|
interface miniMap {
|
|
2978
2978
|
|
|
2979
2979
|
/**
|
|
2980
2980
|
* Array of colors to use for the miniMap
|
|
2981
|
-
* ```
|
|
2981
|
+
* ```typescript
|
|
2982
2982
|
* OrgChart.miniMap.colors = ["#FFCA28", "#F57C00", "#039be5", "#757575"];
|
|
2983
2983
|
* ```
|
|
2984
2984
|
*/
|
|
@@ -2986,7 +2986,7 @@ declare namespace OrgChart {
|
|
|
2986
2986
|
|
|
2987
2987
|
/**
|
|
2988
2988
|
* The background color in the miniMAp
|
|
2989
|
-
* ```
|
|
2989
|
+
* ```typescript
|
|
2990
2990
|
* OrgChart.miniMap.selectorBackgroundColor = "#888888";
|
|
2991
2991
|
* ```
|
|
2992
2992
|
*/
|
|
@@ -2995,7 +2995,7 @@ declare namespace OrgChart {
|
|
|
2995
2995
|
|
|
2996
2996
|
/**
|
|
2997
2997
|
* The background of the focus
|
|
2998
|
-
* ```
|
|
2998
|
+
* ```typescript
|
|
2999
2999
|
* OrgChart.miniMap.backgroundColor = "#fff";
|
|
3000
3000
|
* ```
|
|
3001
3001
|
*/
|
|
@@ -3003,7 +3003,7 @@ declare namespace OrgChart {
|
|
|
3003
3003
|
|
|
3004
3004
|
/**
|
|
3005
3005
|
* The stroke of the focus
|
|
3006
|
-
* ```
|
|
3006
|
+
* ```typescript
|
|
3007
3007
|
* OrgChart.miniMap.focusStroke = "#039BE5";
|
|
3008
3008
|
* ```
|
|
3009
3009
|
*/
|
|
@@ -3011,7 +3011,7 @@ declare namespace OrgChart {
|
|
|
3011
3011
|
|
|
3012
3012
|
/**
|
|
3013
3013
|
* The background opacity
|
|
3014
|
-
* ```
|
|
3014
|
+
* ```typescript
|
|
3015
3015
|
* OrgChart.miniMap.opacity = 0.8;
|
|
3016
3016
|
* ```
|
|
3017
3017
|
*/
|
|
@@ -3019,7 +3019,7 @@ declare namespace OrgChart {
|
|
|
3019
3019
|
|
|
3020
3020
|
/**
|
|
3021
3021
|
* The miniMap border
|
|
3022
|
-
* ```
|
|
3022
|
+
* ```typescript
|
|
3023
3023
|
* OrgChart.miniMap.border = '2px solid #039BE5';
|
|
3024
3024
|
* ```
|
|
3025
3025
|
*/
|
|
@@ -3027,7 +3027,7 @@ declare namespace OrgChart {
|
|
|
3027
3027
|
|
|
3028
3028
|
/**
|
|
3029
3029
|
* The miniMap width
|
|
3030
|
-
* ```
|
|
3030
|
+
* ```typescript
|
|
3031
3031
|
* OrgChart.miniMap.width = 200;
|
|
3032
3032
|
* ```
|
|
3033
3033
|
*/
|
|
@@ -3035,7 +3035,7 @@ declare namespace OrgChart {
|
|
|
3035
3035
|
|
|
3036
3036
|
/**
|
|
3037
3037
|
* The miniMap height
|
|
3038
|
-
* ```
|
|
3038
|
+
* ```typescript
|
|
3039
3039
|
* OrgChart.miniMap.width = 100;
|
|
3040
3040
|
* ```
|
|
3041
3041
|
*/
|
|
@@ -3043,7 +3043,7 @@ declare namespace OrgChart {
|
|
|
3043
3043
|
|
|
3044
3044
|
/**
|
|
3045
3045
|
* The miniMap padding
|
|
3046
|
-
* ```
|
|
3046
|
+
* ```typescript
|
|
3047
3047
|
* OrgChart.miniMap.padding = 10;
|
|
3048
3048
|
* ```
|
|
3049
3049
|
*/
|
|
@@ -3051,7 +3051,7 @@ declare namespace OrgChart {
|
|
|
3051
3051
|
|
|
3052
3052
|
/**
|
|
3053
3053
|
* The miniMap position
|
|
3054
|
-
* ```
|
|
3054
|
+
* ```typescript
|
|
3055
3055
|
* OrgChart.miniMap.padding = {
|
|
3056
3056
|
* top: 'padding',
|
|
3057
3057
|
* left: 'padding',
|
|
@@ -3065,7 +3065,7 @@ declare namespace OrgChart {
|
|
|
3065
3065
|
/**
|
|
3066
3066
|
* Draggable option
|
|
3067
3067
|
* default option: true
|
|
3068
|
-
* ```
|
|
3068
|
+
* ```typescript
|
|
3069
3069
|
* OrgChart.miniMap.draggable = false;
|
|
3070
3070
|
* ```
|
|
3071
3071
|
*/
|
|
@@ -3232,6 +3232,19 @@ declare namespace OrgChart {
|
|
|
3232
3232
|
collapse,
|
|
3233
3233
|
exporting,
|
|
3234
3234
|
init,
|
|
3235
|
+
/**
|
|
3236
|
+
* OrgChart.action.centerNode = 9;
|
|
3237
|
+
* ```typescript
|
|
3238
|
+
* var chart = new OrgChart('#tree', {
|
|
3239
|
+
* });
|
|
3240
|
+
* chart.onInit(() => {
|
|
3241
|
+
* chart.center(2);
|
|
3242
|
+
* console.log(chart.manager.action);
|
|
3243
|
+
* });
|
|
3244
|
+
*
|
|
3245
|
+
* chart.load(nodes)
|
|
3246
|
+
* ```
|
|
3247
|
+
*/
|
|
3235
3248
|
centerNode,
|
|
3236
3249
|
insert,
|
|
3237
3250
|
maximize,
|