@balkangraph/orgchart.js 8.16.6 → 8.16.7

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
@@ -2978,11 +2978,13 @@ declare namespace OrgChart {
2978
2978
  interface undoRedoUI {
2979
2979
  /**
2980
2980
  * Inits undoRedoUI
2981
+ * @ignore
2981
2982
  * @param instance
2982
2983
  */
2983
2984
  init(instance: OrgChart): void;
2984
2985
  /**
2985
2986
  * Refreshes the UI buttonss
2987
+ * @ignore
2986
2988
  */
2987
2989
  refresh(): void;
2988
2990
  /**
@@ -3014,7 +3016,28 @@ declare namespace OrgChart {
3014
3016
  }
3015
3017
 
3016
3018
  interface pdfPrevUI {
3019
+ /**
3020
+ * Shows the PDF Preview UI
3021
+ * ```typescript
3022
+ * function pdf() {
3023
+ * OrgChart.pdfPrevUI.show(chart, {
3024
+ * format: "A4",
3025
+ * header: 'My Header',
3026
+ * footer: 'My Footer. Page {current-page} of {total-pages}'
3027
+ * });
3028
+ * }
3029
+ * ```
3030
+ */
3017
3031
  show(chart: OrgChart, options: exportOptions): pdfPrevUI;
3032
+
3033
+ /**
3034
+ * Hide the PDF Preview UI
3035
+ * ```typescript
3036
+ * chart.element.querySelector('#boc-prev-cancel').addEventListener('click', function () {
3037
+ * OrgChart.pdfPrevUI.hide(chart);
3038
+ * });
3039
+ * ```
3040
+ */
3018
3041
  hide(chart: OrgChart): void;
3019
3042
 
3020
3043
  }
@@ -3022,6 +3045,13 @@ declare namespace OrgChart {
3022
3045
  interface keyNavigation {
3023
3046
  /**
3024
3047
  * Set focus to specified id on initial load
3048
+ * ```typescript
3049
+ * var chart = new OrgChart('#tree', {
3050
+ * keyNavigation:{
3051
+ * focusId: 2
3052
+ * }
3053
+ * });
3054
+ * ```
3025
3055
  */
3026
3056
  focusId: number | string
3027
3057
  }