@balkangraph/orgchart.js 8.15.20 → 8.15.22

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
@@ -1779,12 +1779,20 @@ declare class OrgChart {
1779
1779
 
1780
1780
 
1781
1781
  /**
1782
+ * You can change the smooth and the speed of the scroll
1783
+ * or you can change the values for any specific browser
1782
1784
  * ```typescript
1785
+ * OrgChart.scroll.smooth = 12;
1786
+ * OrgChart.scroll.speed = 120;
1787
+ * OrgChart.scroll.safari = {
1788
+ * smooth: 12,
1789
+ * speed: 500
1790
+ * }
1783
1791
  * let chart = new OrgChart(document.getElementById("tree"), {
1784
1792
  * ...
1785
1793
  * showXScroll: true,
1786
1794
  * });
1787
- * ```
1795
+ * ```
1788
1796
  */
1789
1797
  static scroll: {
1790
1798
  smooth?: number,
@@ -3173,13 +3181,99 @@ declare namespace OrgChart {
3173
3181
  */
3174
3182
  enum orientation {
3175
3183
 
3184
+ /**
3185
+ * top orientation (default)
3186
+ * OrgChart.orientation.top = 0;
3187
+ * ```typescript
3188
+ * let chart = new OrgChart('#tree', {
3189
+ * orientation: OrgChart.orientation.left,
3190
+ * tags: {
3191
+ * "tag1": {
3192
+ * subTreeConfig: {
3193
+ * orientation: OrgChart.orientation.top
3194
+ * }
3195
+ * }
3196
+ * }
3197
+ * });
3198
+ * ```
3199
+ */
3176
3200
  top,
3201
+
3202
+ /**
3203
+ * Bottom orientation
3204
+ * OrgChart.orientation.bottom = 1;
3205
+ * ```typescript
3206
+ * let chart = new OrgChart('#tree', {
3207
+ * orientation: OrgChart.orientation.bottom,
3208
+ * });
3209
+ * ```
3210
+ */
3177
3211
  bottom,
3212
+
3213
+ /**
3214
+ * Right orientation
3215
+ * OrgChart.orientation.right = 2;
3216
+ * ```typescript
3217
+ * let chart = new OrgChart('#tree', {
3218
+ * orientation: OrgChart.orientation.right,
3219
+ * });
3220
+ * ```
3221
+ */
3178
3222
  right,
3223
+
3224
+ /**
3225
+ * Left orientation
3226
+ * OrgChart.orientation.left = 3;
3227
+ * ```typescript
3228
+ * let chart = new OrgChart('#tree', {
3229
+ * orientation: OrgChart.orientation.left,
3230
+ * });
3231
+ * ```
3232
+ */
3179
3233
  left,
3234
+
3235
+ /**
3236
+ * Top lrft orientation
3237
+ * OrgChart.orientation.top_left = 4;
3238
+ * ```typescript
3239
+ * let chart = new OrgChart('#tree', {
3240
+ * orientation: OrgChart.orientation.top_left,
3241
+ * });
3242
+ * ```
3243
+ */
3180
3244
  top_left,
3245
+
3246
+ /**
3247
+ * Bottom lrft orientation
3248
+ * OrgChart.orientation.bottom_left = 5;
3249
+ * ```typescript
3250
+ * let chart = new OrgChart('#tree', {
3251
+ * orientation: OrgChart.orientation.bottom_left,
3252
+ * });
3253
+ * ```
3254
+ */
3181
3255
  bottom_left,
3256
+
3257
+ /**
3258
+ * Right top orientation
3259
+ * OrgChart.orientation.right_top = 6;
3260
+ * ```typescript
3261
+ * let chart = new OrgChart('#tree', {
3262
+ * orientation: OrgChart.orientation.right_top,
3263
+ * });
3264
+ * ```
3265
+ */
3182
3266
  right_top,
3267
+
3268
+ /**
3269
+ * Left top orientation
3270
+ * OrgChart.orientation.left_top = 7;
3271
+ * ```typescript
3272
+ * let chart = new OrgChart('#tree', {
3273
+ * orientation: OrgChart.orientation.left_top,
3274
+ * });
3275
+ * ```
3276
+ */
3183
3277
  left_top
3184
3278
  }
3185
3279