@balkangraph/orgchart.js 8.2.25 → 8.2.29

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
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
  declare class OrgChart extends OrgChartBase {
4
- nodes: { [key: string | number]: OrgChart.node };
4
+ nodes: { [key in string | number]: OrgChart.node };
5
5
  isVisible: boolean;
6
6
 
7
7
  /**
@@ -407,7 +407,7 @@ declare class OrgChart extends OrgChartBase {
407
407
  * Occurs in the beginning of the export. Extra css styles can be added to the exported document using this event listener or show loading image.
408
408
  * ```typescript
409
409
  * var chart = new OrgChart('#tree', {});
410
- * chart.onExporStart(() => {
410
+ * chart.onExportStart(() => {
411
411
  * args.styles += '<link href="https://fonts.googleapis.com/css?family=Gochi+Hand" rel="stylesheet">';
412
412
  * //return false; to cancel the operation
413
413
  * });
@@ -415,7 +415,7 @@ declare class OrgChart extends OrgChartBase {
415
415
  * @category Event Listeners
416
416
  * @param listener
417
417
  */
418
- onExporStart(listener: (args:
418
+ onExportStart(listener: (args:
419
419
  {
420
420
  /**
421
421
  * the content to be exported
@@ -464,14 +464,14 @@ declare class OrgChart extends OrgChartBase {
464
464
  * Occurs in the beginning of the export. Use this event listener to hide loading image or upload exported document to your server using ArrayBuffer argument.
465
465
  * ```typescript
466
466
  * var chart = new OrgChart('#tree', {});
467
- * chart.onExporEnd(() => {
467
+ * chart.onExportEnd(() => {
468
468
  * //return false; to cancel the operation for example id you prefer the exported document to not download
469
469
  * });
470
470
  * ```
471
471
  * @category Event Listeners
472
472
  * @param listener
473
473
  */
474
- onExporEnd(listener: (args:
474
+ onExportEnd(listener: (args:
475
475
  /**
476
476
  * for PDF/PNG
477
477
  */
@@ -747,9 +747,11 @@ declare class OrgChart extends OrgChartBase {
747
747
  * @ignore
748
748
  */
749
749
  static LAZY_LOADING_FACTOR: number;
750
-
751
-
752
-
750
+
751
+ /**
752
+ * Hides the Edit Form when the chart is moved with pan
753
+ */
754
+ static HIDE_EDIT_FORM_ON_PAN: boolean;
753
755
  }
754
756
 
755
757
  declare namespace OrgChart {
@@ -2015,8 +2017,8 @@ declare class OrgChartBase {
2015
2017
  * parent ids and sub tree parents ids that needs to be updated on the server. For example if you remove a node that has children all chilren nodes will change their pid to the parent node id of the removed node.
2016
2018
  */
2017
2019
  newPidsAndStpidsForIds: {
2018
- newPidsForIds: { [key: string | number]: string | number },
2019
- newStpidsForIds: { [key: string | number]: string | number }
2020
+ newPidsForIds: { [key in string | number]: string | number },
2021
+ newStpidsForIds: { [key in string | number]: string | number }
2020
2022
  }
2021
2023
  }) => void): OrgChart;
2022
2024