@balkangraph/orgchart.js 8.15.7 → 8.15.9

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
@@ -2904,29 +2904,175 @@ declare namespace OrgChart {
2904
2904
  }
2905
2905
  }
2906
2906
 
2907
-
2907
+ /**
2908
+ * Toolbar buttons. Set to true if you'd like to show a button
2909
+ */
2908
2910
  interface toolbar {
2911
+
2912
+ /**
2913
+ * Shows the layout options
2914
+ * ```typescript
2915
+ * var chart = new OrgChart('#tree', {
2916
+ * toolbar: {
2917
+ * layout: true
2918
+ * }
2919
+ * });
2920
+ * ```
2921
+ */
2909
2922
  layout?: boolean,
2923
+
2924
+ /**
2925
+ *
2926
+ * Zoom plus and minus buttons
2927
+ * ```typescript
2928
+ * var chart = new OrgChart('#tree', {
2929
+ * toolbar: {
2930
+ * zoom: true
2931
+ * }
2932
+ * });
2933
+ * ```
2934
+ */
2910
2935
  zoom?: boolean,
2936
+
2937
+ /**
2938
+ * Fit to screen option
2939
+ * ```typescript
2940
+ * var chart = new OrgChart('#tree', {
2941
+ * toolbar: {
2942
+ * fit: true
2943
+ * }
2944
+ * });
2945
+ * ```
2946
+ */
2911
2947
  fit?: boolean,
2948
+
2949
+ /**
2950
+ * Expand all nodes button
2951
+ * ```typescript
2952
+ * var chart = new OrgChart('#tree', {
2953
+ * toolbar: {
2954
+ * expandAll: true
2955
+ * }
2956
+ * });
2957
+ * ```
2958
+ */
2912
2959
  expandAll?: boolean,
2960
+
2961
+ /**
2962
+ * Switch to fullscreen button
2963
+ * ```typescript
2964
+ * var chart = new OrgChart('#tree', {
2965
+ * toolbar: {
2966
+ * fullScreen: true
2967
+ * }
2968
+ * });
2969
+ * ```
2970
+ */
2913
2971
  fullScreen?: boolean
2914
2972
  }
2915
2973
 
2974
+ /**
2975
+ * @ignore
2976
+ */
2916
2977
  interface miniMap {
2978
+
2979
+ /**
2980
+ * Array of colors to use for the miniMap
2981
+ * ```typescrip
2982
+ * OrgChart.miniMap.colors = ["#FFCA28", "#F57C00", "#039be5", "#757575"];
2983
+ * ```
2984
+ */
2917
2985
  colors?: Array<string>,
2986
+
2987
+ /**
2988
+ * The background color in the miniMAp
2989
+ * ```typescrip
2990
+ * OrgChart.miniMap.selectorBackgroundColor = "#888888";
2991
+ * ```
2992
+ */
2918
2993
  selectorBackgroundColor?: string,
2994
+
2995
+
2996
+ /**
2997
+ * The background of the focus
2998
+ * ```typescrip
2999
+ * OrgChart.miniMap.backgroundColor = "#fff";
3000
+ * ```
3001
+ */
2919
3002
  backgroundColor?: string,
3003
+
3004
+ /**
3005
+ * The stroke of the focus
3006
+ * ```typescrip
3007
+ * OrgChart.miniMap.focusStroke = "#039BE5";
3008
+ * ```
3009
+ */
2920
3010
  focusStroke?: string,
3011
+
3012
+ /**
3013
+ * The background opacity
3014
+ * ```typescrip
3015
+ * OrgChart.miniMap.opacity = 0.8;
3016
+ * ```
3017
+ */
2921
3018
  opacity?: Number,
3019
+
3020
+ /**
3021
+ * The miniMap border
3022
+ * ```typescrip
3023
+ * OrgChart.miniMap.border = '2px solid #039BE5';
3024
+ * ```
3025
+ */
2922
3026
  border?: string,
3027
+
3028
+ /**
3029
+ * The miniMap width
3030
+ * ```typescrip
3031
+ * OrgChart.miniMap.width = 200;
3032
+ * ```
3033
+ */
2923
3034
  width?: Number,
3035
+
3036
+ /**
3037
+ * The miniMap height
3038
+ * ```typescrip
3039
+ * OrgChart.miniMap.width = 100;
3040
+ * ```
3041
+ */
2924
3042
  height?: Number,
3043
+
3044
+ /**
3045
+ * The miniMap padding
3046
+ * ```typescrip
3047
+ * OrgChart.miniMap.padding = 10;
3048
+ * ```
3049
+ */
2925
3050
  padding?: Number,
3051
+
3052
+ /**
3053
+ * The miniMap position
3054
+ * ```typescrip
3055
+ * OrgChart.miniMap.padding = {
3056
+ * top: 'padding',
3057
+ * left: 'padding',
3058
+ * right: undefined,
3059
+ * bottom: undefined
3060
+ * }
3061
+ * ```
3062
+ */
2926
3063
  position?: OrgChart.position,
3064
+
3065
+ /**
3066
+ * Draggable option
3067
+ * default option: true
3068
+ * ```typescrip
3069
+ * OrgChart.miniMap.draggable = false;
3070
+ * ```
3071
+ */
2927
3072
  draggable?: boolean
2928
3073
  }
2929
3074
 
3075
+
2930
3076
  interface position {
2931
3077
  top?: string,
2932
3078
  left?: string,