@balkangraph/orgchart.js 8.15.19 → 8.15.20

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,7 +3168,11 @@ declare namespace OrgChart {
3168
3168
  down?: boolean,
3169
3169
  }
3170
3170
 
3171
+ /**
3172
+ * Set the chart orientation
3173
+ */
3171
3174
  enum orientation {
3175
+
3172
3176
  top,
3173
3177
  bottom,
3174
3178
  right,
@@ -3178,14 +3182,105 @@ declare namespace OrgChart {
3178
3182
  right_top,
3179
3183
  left_top
3180
3184
  }
3185
+
3186
+ /**
3187
+ * Specifies the layout of the chart
3188
+ */
3181
3189
  enum layout {
3190
+
3191
+ /**
3192
+ * The default layout
3193
+ * OrgChart.layout.normal = OrgChart.normal = 0;
3194
+ * ```typescript
3195
+ * let chart = new OrgChart('#tree', {
3196
+ * layout: OrgChart.mixed
3197
+ * });
3198
+ * chart.on('node-layout', function(sender, args){
3199
+ * if (args.pnode.id == 100){
3200
+ * args.layout = OrgChart.layout.normal;
3201
+ * }
3202
+ * });
3203
+ * chart.load(nodes)
3204
+ * ```
3205
+ */
3182
3206
  normal,
3207
+
3208
+ /**
3209
+ * mixed layout
3210
+ * OrgChart.layout.mixed = OrgChart.mixed = 1;
3211
+ * ```typescript
3212
+ * let chart = new OrgChart('#tree', {
3213
+ * layout: OrgChart.layout.mixed
3214
+ * });
3215
+ * ```
3216
+ */
3183
3217
  mixed,
3218
+
3219
+ /**
3220
+ * tree layout
3221
+ * OrgChart.layout.tree = OrgChart.tree = 2;
3222
+ * ```typescript
3223
+ * let chart = new OrgChart('#tree', {
3224
+ * layout: OrgChart.layout.tree
3225
+ * });
3226
+ * ```
3227
+ */
3184
3228
  tree,
3229
+
3230
+ /**
3231
+ * treeLeftOffset layout
3232
+ * OrgChart.layout.treeLeftOffset = OrgChart.treeLeftOffset = 3;
3233
+ * ```typescript
3234
+ * let chart = new OrgChart('#tree', {
3235
+ * layout: OrgChart.layout.treeLeftOffset
3236
+ * });
3237
+ * ```
3238
+ */
3185
3239
  treeLeftOffset,
3240
+
3241
+ /**
3242
+ * treeRightOffset layout
3243
+ * OrgChart.layout.treeRightOffset = OrgChart.treeRightOffset = 4;
3244
+ * ```typescript
3245
+ * let chart = new OrgChart('#tree', {
3246
+ * layout: OrgChart.layout.treeRightOffset
3247
+ * });
3248
+ * ```
3249
+ */
3186
3250
  treeRightOffset,
3251
+
3252
+ /**
3253
+ * treeLeft layout
3254
+ * OrgChart.layout.treeLeft = 5;
3255
+ * ```typescript
3256
+ * let chart = new OrgChart('#tree', {
3257
+ * layout: OrgChart.layout.treeLeft
3258
+ * });
3259
+ * ```
3260
+ */
3187
3261
  treeLeft,
3262
+
3263
+ /**
3264
+ * treeRight layout
3265
+ * OrgChart.layout.treeRight = 6;
3266
+ * ```typescript
3267
+ * let chart = new OrgChart('#tree', {
3268
+ * layout: OrgChart.layout.treeRight
3269
+ * });
3270
+ * ```
3271
+ */
3188
3272
  treeRight,
3273
+
3274
+ /**
3275
+ * Create a grid layoput authomatically calculating authomatically the columns
3276
+ * OrgChart.layout.grid = -1;
3277
+ * ```typescript
3278
+ * let chart = new OrgChart('#tree', {
3279
+ * layout: OrgChart.layout.grid
3280
+ * });
3281
+ * ```
3282
+ * [See grid doc page for more details][https://balkan.app/OrgChartJS/Docs/Layout#grid]
3283
+ */
3189
3284
  grid
3190
3285
  }
3191
3286
 
@@ -3243,15 +3338,80 @@ declare namespace OrgChart {
3243
3338
  impulse,
3244
3339
  expPulse
3245
3340
  }
3341
+
3342
+ /**
3343
+ * Specifies a scale that match the boundaries
3344
+ */
3246
3345
  enum match {
3346
+
3347
+ /**
3348
+ * Match height
3349
+ * ```typescript
3350
+ * let chart = new OrgChart('#tree', {
3351
+ * scaleInitial: OrgChart.match.height
3352
+ * });
3353
+ * ```
3354
+ */
3247
3355
  height,
3356
+
3357
+ /**
3358
+ * Match width
3359
+ * ```typescript
3360
+ * let chart = new OrgChart('#tree', {
3361
+ * scaleInitial: OrgChart.match.width
3362
+ * });
3363
+ * ```
3364
+ */
3248
3365
  width,
3366
+
3367
+ /**
3368
+ * Match boundary
3369
+ * ```typescript
3370
+ * let chart = new OrgChart('#tree', {
3371
+ * scaleInitial: OrgChart.match.boundary
3372
+ * });
3373
+ * ```
3374
+ */
3249
3375
  boundary
3250
3376
  }
3251
3377
 
3378
+
3379
+ /**
3380
+ * Add movable functionality
3381
+ */
3252
3382
  enum movable {
3383
+
3384
+ /**
3385
+ * Moves the node
3386
+ * OrgChart.movable.node = 'node';
3387
+ * ```typescript
3388
+ * let chart = new OrgChart('#tree', {
3389
+ * movable: OrgChart.movable.node
3390
+ * });
3391
+ * ```
3392
+ */
3253
3393
  node,
3394
+
3395
+ /**
3396
+ * Moves the tree
3397
+ * OrgChart.movable.tree = 'tree';
3398
+ * ```typescript
3399
+ * let chart = new OrgChart('#tree', {
3400
+ * movable: OrgChart.movable.tree
3401
+ * });
3402
+ * ```
3403
+ */
3254
3404
  tree,
3405
+
3406
+ /**
3407
+ * Detaches the tree
3408
+ * OrgChart.movable.detachTree = 'detachTree';
3409
+ * ```typescript
3410
+ * let chart = new OrgChart('#tree', {
3411
+ * movable: OrgChart.movable.detachTree
3412
+ * });
3413
+ * ```
3414
+ */
3255
3415
  detachTree
3256
3416
  }
3257
3417