@balkangraph/orgchart.js 8.18.12 → 8.18.14

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
@@ -1039,6 +1039,7 @@ declare class OrgChart {
1039
1039
  */
1040
1040
  exportVisio(options?: OrgChart.exportOptions, callback?: () => void): void;
1041
1041
  exportToPowerPoint(options?: OrgChart.exportPowerPontOptions, callback?: () => void): void;
1042
+ exportToPDF(options?: OrgChart.exportPDFOptions, callback?: () => void): void;
1042
1043
 
1043
1044
  /**
1044
1045
  * Imports CSV file.
@@ -1523,7 +1524,9 @@ declare class OrgChart {
1523
1524
  */
1524
1525
  nodeMenuUI: OrgChart.menuUI;
1525
1526
 
1526
- powerPointPreviewUI: OrgChart.exportUI;
1527
+ powerPointPreviewUI: OrgChart.powerPointPreviewUI;
1528
+
1529
+ pdfPreviewUI: OrgChart.pdfPreviewUI;
1527
1530
 
1528
1531
  /**
1529
1532
  * The chart filterUI object.
@@ -3160,7 +3163,7 @@ declare namespace OrgChart {
3160
3163
  show(x: number | HTMLElement, y?: number, firstNodeId?: string | number, secondNodeId?: string | number, menu?: { [key: string]: menu }): void;
3161
3164
  }
3162
3165
 
3163
- interface exportUI {
3166
+ interface powerPointPreviewUI {
3164
3167
  /**
3165
3168
  * The width of the EXPORT UI
3166
3169
  */
@@ -3173,6 +3176,19 @@ declare namespace OrgChart {
3173
3176
  show(options: OrgChart.exportPowerPontOptions): void;
3174
3177
  }
3175
3178
 
3179
+ interface pdfPreviewUI {
3180
+ /**
3181
+ * The width of the EXPORT UI
3182
+ */
3183
+ get width(): number;
3184
+ get instance(): OrgChart;
3185
+ get options(): OrgChart.exportPDFOptions;
3186
+ init(obj: OrgChart): void;
3187
+ isVisible(): boolean;
3188
+ hide(): void;
3189
+ show(options: OrgChart.exportPDFOptions): void;
3190
+ }
3191
+
3176
3192
  /**
3177
3193
  * Circle Menu UI
3178
3194
  * ```typescript
@@ -3724,7 +3740,6 @@ declare namespace OrgChart {
3724
3740
 
3725
3741
  interface exportPowerPontOptions {
3726
3742
  openInNewTab?: boolean,
3727
- landscape?: boolean,
3728
3743
  filename?: string,
3729
3744
  // width?: number,
3730
3745
  // height?: number,
@@ -3751,6 +3766,35 @@ declare namespace OrgChart {
3751
3766
  footer?: string
3752
3767
  }
3753
3768
 
3769
+ interface exportPDFOptions {
3770
+ openInNewTab?: boolean,
3771
+ filename?: string,
3772
+ lanscape?: boolean,
3773
+ // width?: number,
3774
+ // height?: number,
3775
+ padding?: number,
3776
+ margin?: Array<number>,
3777
+ nodeId?: number | string,
3778
+ expandChildren?: boolean,
3779
+ childLevels?: boolean,
3780
+ parentLevels?: boolean,
3781
+ min?: boolean,
3782
+ pages?: Array<{
3783
+ chartInstance?: OrgChart,
3784
+ nodeId?: number | string,
3785
+ expandChildren?: boolean,
3786
+ childLevels?: boolean,
3787
+ parentLevels?: boolean,
3788
+ min?: boolean,
3789
+ header?: string,
3790
+ footer?: string,
3791
+ content?: string
3792
+ }>,
3793
+ format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal",
3794
+ header?: string,
3795
+ footer?: string
3796
+ }
3797
+
3754
3798
 
3755
3799
 
3756
3800
 
@@ -5275,7 +5319,12 @@ declare namespace OrgChart {
5275
5319
  /**
5276
5320
  * @ignore
5277
5321
  */
5278
- powerPointPreviewUI?: OrgChart.exportUI,
5322
+ powerPointPreviewUI?: OrgChart.powerPointPreviewUI,
5323
+
5324
+ /**
5325
+ * @ignore
5326
+ */
5327
+ pdfPreviewUI?: OrgChart.pdfPreviewUI,
5279
5328
  /**
5280
5329
  * @ignore
5281
5330
  */
package/orgchart.js CHANGED
@@ -1 +1 @@
1
- /* eslint-disable */
1
+ /* eslint-disable */
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":{"name":"BALKAN App"},"bugs":{"email":"support@balkan.app","url":"https://github.com/BALKANGraph/OrgChartJS/issues"},"deprecated":false,"description":"Ultimate Organizational Chart JavaScript library, Interactive Diagrams","files":["orgchart.js","orgchart.d.ts","package.json","README.md"],"homepage":"https://balkan.app/","keywords":["diagram","chart","tree","orgchart","graph","svg","hierarchy","family-tree","decision-tree","visualization","tree-layout","hierarchical","javascript","js","html","html5"],"license":"SEE LICENSE IN https://balkan.app","main":"orgchart.js","types":"orgchart.d.ts","name":"@balkangraph/orgchart.js","repository":{"type":"git","url":"https://github.com/BALKANGraph/OrgChartJS"},"dependencies":{},"version":"8.18.12"}
1
+ {"author":{"name":"BALKAN App"},"bugs":{"email":"support@balkan.app","url":"https://github.com/BALKANGraph/OrgChartJS/issues"},"deprecated":false,"description":"Ultimate Organizational Chart JavaScript library, Interactive Diagrams","files":["orgchart.js","orgchart.d.ts","package.json","README.md"],"homepage":"https://balkan.app/","keywords":["diagram","chart","tree","orgchart","graph","svg","hierarchy","family-tree","decision-tree","visualization","tree-layout","hierarchical","javascript","js","html","html5"],"license":"SEE LICENSE IN https://balkan.app","main":"orgchart.js","types":"orgchart.d.ts","name":"@balkangraph/orgchart.js","repository":{"type":"git","url":"https://github.com/BALKANGraph/OrgChartJS"},"dependencies":{},"version":"8.18.14"}