@balkangraph/orgchart.js 8.14.53 → 8.14.55

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
@@ -752,8 +752,8 @@ declare class OrgChart extends OrgChartBase {
752
752
  }
753
753
 
754
754
 
755
- static templates :{ [key: string]: OrgChart.template} ;
756
-
755
+ static templates: { [key: string]: OrgChart.template} ;
756
+
757
757
 
758
758
  static scroll: {
759
759
  visible?: boolean,
@@ -779,6 +779,18 @@ declare class OrgChart extends OrgChartBase {
779
779
 
780
780
  static animate(element: Object, attrStart?: Object, attrEnd?: Object, duration?: number, func?: OrgChart.anim, callback?: Function, tick?: boolean): void;
781
781
 
782
+ static miniMap: {
783
+ colors: Array<string>,
784
+ selectorBackgroundColor: string,
785
+ focusStroke: string,
786
+ opacity: number,
787
+ border: string,
788
+ width: number,
789
+ height: number,
790
+ padding: number,
791
+ position: Object
792
+ };
793
+
782
794
  static VERSION: string;
783
795
  /**
784
796
  * @ignore
@@ -2339,33 +2351,6 @@ declare namespace OrgChart {
2339
2351
  * ```
2340
2352
  */
2341
2353
  exportUrl?: string,
2342
- /**
2343
- * Collapse specified level of the chart and its children if allChildren is true.
2344
- * ```typescript
2345
- * var chart = new OrgChart('#tree', {
2346
- * collapse: {level: 2, allChildren: true}
2347
- * });
2348
- * ```
2349
- */
2350
- collapse?: {
2351
- level: number,
2352
- allChildren?: boolean
2353
- },
2354
- /**
2355
- * Expand specified node ids and its children if allChildren is true. The expand option works only if collapse is set.
2356
- *
2357
- * In the example above the second level of the chart will be collapsed but node with id 155 and its children will be expanded.
2358
- * ```typescript
2359
- * var chart = new OrgChart('#tree', {
2360
- * collapse: {level: 2, allChildren: true},
2361
- * expand: {nodes: [155], allChildren: true}
2362
- * });
2363
- * ```
2364
- */
2365
- expand?: {
2366
- nodes?: Array<string | number>,
2367
- allChildren?: boolean
2368
- },
2369
2354
  /**
2370
2355
  * The align option specifies the alignment of the nodes inside Org Chart JS.
2371
2356
  * - OrgChart.align.center - centered
@@ -2733,14 +2718,42 @@ declare namespace OrgChart {
2733
2718
 
2734
2719
  interface options {
2735
2720
  /**
2736
- * With the drag and drop features enabled you can move nodes easily and change the tree structure. Default value - *false*.
2737
- * ```typescript
2738
- * var chart = new OrgChart('#tree', {
2739
- * enableDragDrop: true
2740
- * });
2741
- * ```
2742
- */
2721
+ * With the drag and drop features enabled you can move nodes easily and change the tree structure. Default value - *false*.
2722
+ * ```typescript
2723
+ * var chart = new OrgChart('#tree', {
2724
+ * enableDragDrop: true
2725
+ * });
2726
+ * ```
2727
+ */
2743
2728
  enableDragDrop?: boolean,
2729
+ /**
2730
+ * Collapse specified level of the chart and its children if allChildren is true.
2731
+ * ```typescript
2732
+ * var chart = new OrgChart('#tree', {
2733
+ * collapse: {level: 2, allChildren: true}
2734
+ * });
2735
+ * ```
2736
+ */
2737
+ collapse?: {
2738
+ level: number,
2739
+ allChildren?: boolean
2740
+ },
2741
+ /**
2742
+ * Expand specified node ids and its children if allChildren is true. The expand option works only if collapse is set.
2743
+ *
2744
+ * In the example above the second level of the chart will be collapsed but node with id 155 and its children will be expanded.
2745
+ * ```typescript
2746
+ * var chart = new OrgChart('#tree', {
2747
+ * collapse: {level: 2, allChildren: true},
2748
+ * expand: {nodes: [155], allChildren: true}
2749
+ * });
2750
+ * ```
2751
+ */
2752
+ expand?: {
2753
+ nodes?: Array<string | number>,
2754
+ allChildren?: boolean
2755
+ },
2744
2756
  }
2757
+
2745
2758
  }
2746
2759
  export default OrgChart