@balkangraph/orgchart.js 8.15.19 → 8.15.21

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
@@ -3168,24 +3168,205 @@ declare namespace OrgChart {
3168
3168
  down?: boolean,
3169
3169
  }
3170
3170
 
3171
+ /**
3172
+ * Set the chart orientation
3173
+ */
3171
3174
  enum orientation {
3175
+
3176
+ /**
3177
+ * top orientation (default)
3178
+ * OrgChart.orientation.top = 0;
3179
+ * ```typescript
3180
+ * let chart = new OrgChart('#tree', {
3181
+ * orientation: OrgChart.orientation.left,
3182
+ * tags: {
3183
+ * "tag1": {
3184
+ * subTreeConfig: {
3185
+ * orientation: OrgChart.orientation.top
3186
+ * }
3187
+ * }
3188
+ * }
3189
+ * });
3190
+ * ```
3191
+ */
3172
3192
  top,
3193
+
3194
+ /**
3195
+ * Bottom orientation
3196
+ * OrgChart.orientation.bottom = 1;
3197
+ * ```typescript
3198
+ * let chart = new OrgChart('#tree', {
3199
+ * orientation: OrgChart.orientation.bottom,
3200
+ * });
3201
+ * ```
3202
+ */
3173
3203
  bottom,
3204
+
3205
+ /**
3206
+ * Right orientation
3207
+ * OrgChart.orientation.right = 2;
3208
+ * ```typescript
3209
+ * let chart = new OrgChart('#tree', {
3210
+ * orientation: OrgChart.orientation.right,
3211
+ * });
3212
+ * ```
3213
+ */
3174
3214
  right,
3215
+
3216
+ /**
3217
+ * Left orientation
3218
+ * OrgChart.orientation.left = 3;
3219
+ * ```typescript
3220
+ * let chart = new OrgChart('#tree', {
3221
+ * orientation: OrgChart.orientation.left,
3222
+ * });
3223
+ * ```
3224
+ */
3175
3225
  left,
3226
+
3227
+ /**
3228
+ * Top lrft orientation
3229
+ * OrgChart.orientation.top_left = 4;
3230
+ * ```typescript
3231
+ * let chart = new OrgChart('#tree', {
3232
+ * orientation: OrgChart.orientation.top_left,
3233
+ * });
3234
+ * ```
3235
+ */
3176
3236
  top_left,
3237
+
3238
+ /**
3239
+ * Bottom lrft orientation
3240
+ * OrgChart.orientation.bottom_left = 5;
3241
+ * ```typescript
3242
+ * let chart = new OrgChart('#tree', {
3243
+ * orientation: OrgChart.orientation.bottom_left,
3244
+ * });
3245
+ * ```
3246
+ */
3177
3247
  bottom_left,
3248
+
3249
+ /**
3250
+ * Right top orientation
3251
+ * OrgChart.orientation.right_top = 6;
3252
+ * ```typescript
3253
+ * let chart = new OrgChart('#tree', {
3254
+ * orientation: OrgChart.orientation.right_top,
3255
+ * });
3256
+ * ```
3257
+ */
3178
3258
  right_top,
3259
+
3260
+ /**
3261
+ * Left top orientation
3262
+ * OrgChart.orientation.left_top = 7;
3263
+ * ```typescript
3264
+ * let chart = new OrgChart('#tree', {
3265
+ * orientation: OrgChart.orientation.left_top,
3266
+ * });
3267
+ * ```
3268
+ */
3179
3269
  left_top
3180
3270
  }
3271
+
3272
+ /**
3273
+ * Specifies the layout of the chart
3274
+ */
3181
3275
  enum layout {
3276
+
3277
+ /**
3278
+ * The default layout
3279
+ * OrgChart.layout.normal = OrgChart.normal = 0;
3280
+ * ```typescript
3281
+ * let chart = new OrgChart('#tree', {
3282
+ * layout: OrgChart.mixed
3283
+ * });
3284
+ * chart.on('node-layout', function(sender, args){
3285
+ * if (args.pnode.id == 100){
3286
+ * args.layout = OrgChart.layout.normal;
3287
+ * }
3288
+ * });
3289
+ * chart.load(nodes)
3290
+ * ```
3291
+ */
3182
3292
  normal,
3293
+
3294
+ /**
3295
+ * mixed layout
3296
+ * OrgChart.layout.mixed = OrgChart.mixed = 1;
3297
+ * ```typescript
3298
+ * let chart = new OrgChart('#tree', {
3299
+ * layout: OrgChart.layout.mixed
3300
+ * });
3301
+ * ```
3302
+ */
3183
3303
  mixed,
3304
+
3305
+ /**
3306
+ * tree layout
3307
+ * OrgChart.layout.tree = OrgChart.tree = 2;
3308
+ * ```typescript
3309
+ * let chart = new OrgChart('#tree', {
3310
+ * layout: OrgChart.layout.tree
3311
+ * });
3312
+ * ```
3313
+ */
3184
3314
  tree,
3315
+
3316
+ /**
3317
+ * treeLeftOffset layout
3318
+ * OrgChart.layout.treeLeftOffset = OrgChart.treeLeftOffset = 3;
3319
+ * ```typescript
3320
+ * let chart = new OrgChart('#tree', {
3321
+ * layout: OrgChart.layout.treeLeftOffset
3322
+ * });
3323
+ * ```
3324
+ */
3185
3325
  treeLeftOffset,
3326
+
3327
+ /**
3328
+ * treeRightOffset layout
3329
+ * OrgChart.layout.treeRightOffset = OrgChart.treeRightOffset = 4;
3330
+ * ```typescript
3331
+ * let chart = new OrgChart('#tree', {
3332
+ * layout: OrgChart.layout.treeRightOffset
3333
+ * });
3334
+ * ```
3335
+ */
3186
3336
  treeRightOffset,
3337
+
3338
+ /**
3339
+ * treeLeft layout
3340
+ * OrgChart.layout.treeLeft = 5;
3341
+ * ```typescript
3342
+ * let chart = new OrgChart('#tree', {
3343
+ * layout: OrgChart.layout.treeLeft
3344
+ * });
3345
+ * ```
3346
+ */
3187
3347
  treeLeft,
3348
+
3349
+ /**
3350
+ * treeRight layout
3351
+ * OrgChart.layout.treeRight = 6;
3352
+ * ```typescript
3353
+ * let chart = new OrgChart('#tree', {
3354
+ * layout: OrgChart.layout.treeRight
3355
+ * });
3356
+ * ```
3357
+ */
3188
3358
  treeRight,
3359
+
3360
+ /**
3361
+ * Create a grid layoput authomatically calculating authomatically the columns
3362
+ * OrgChart.layout.grid = -1;
3363
+ * ```typescript
3364
+ * let chart = new OrgChart('#tree', {
3365
+ * layout: OrgChart.layout.grid
3366
+ * });
3367
+ * ```
3368
+ * [See grid doc page for more details][https://balkan.app/OrgChartJS/Docs/Layout#grid]
3369
+ */
3189
3370
  grid
3190
3371
  }
3191
3372
 
@@ -3243,15 +3424,80 @@ declare namespace OrgChart {
3243
3424
  impulse,
3244
3425
  expPulse
3245
3426
  }
3427
+
3428
+ /**
3429
+ * Specifies a scale that match the boundaries
3430
+ */
3246
3431
  enum match {
3432
+
3433
+ /**
3434
+ * Match height
3435
+ * ```typescript
3436
+ * let chart = new OrgChart('#tree', {
3437
+ * scaleInitial: OrgChart.match.height
3438
+ * });
3439
+ * ```
3440
+ */
3247
3441
  height,
3442
+
3443
+ /**
3444
+ * Match width
3445
+ * ```typescript
3446
+ * let chart = new OrgChart('#tree', {
3447
+ * scaleInitial: OrgChart.match.width
3448
+ * });
3449
+ * ```
3450
+ */
3248
3451
  width,
3452
+
3453
+ /**
3454
+ * Match boundary
3455
+ * ```typescript
3456
+ * let chart = new OrgChart('#tree', {
3457
+ * scaleInitial: OrgChart.match.boundary
3458
+ * });
3459
+ * ```
3460
+ */
3249
3461
  boundary
3250
3462
  }
3251
3463
 
3464
+
3465
+ /**
3466
+ * Add movable functionality
3467
+ */
3252
3468
  enum movable {
3469
+
3470
+ /**
3471
+ * Moves the node
3472
+ * OrgChart.movable.node = 'node';
3473
+ * ```typescript
3474
+ * let chart = new OrgChart('#tree', {
3475
+ * movable: OrgChart.movable.node
3476
+ * });
3477
+ * ```
3478
+ */
3253
3479
  node,
3480
+
3481
+ /**
3482
+ * Moves the tree
3483
+ * OrgChart.movable.tree = 'tree';
3484
+ * ```typescript
3485
+ * let chart = new OrgChart('#tree', {
3486
+ * movable: OrgChart.movable.tree
3487
+ * });
3488
+ * ```
3489
+ */
3254
3490
  tree,
3491
+
3492
+ /**
3493
+ * Detaches the tree
3494
+ * OrgChart.movable.detachTree = 'detachTree';
3495
+ * ```typescript
3496
+ * let chart = new OrgChart('#tree', {
3497
+ * movable: OrgChart.movable.detachTree
3498
+ * });
3499
+ * ```
3500
+ */
3255
3501
  detachTree
3256
3502
  }
3257
3503