@balkangraph/orgchart.js 8.19.2 → 8.19.4

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
@@ -1040,6 +1040,7 @@ declare class OrgChart {
1040
1040
  exportVisio(options?: OrgChart.exportOptions, callback?: () => void): void;
1041
1041
  exportToPowerPoint(options?: OrgChart.exportPowerPontOptions, callback?: () => void): void;
1042
1042
  exportToPDF(options?: OrgChart.exportPDFOptions, callback?: () => void): void;
1043
+ exportToPNG(options?: OrgChart.exportPNGOptions, callback?: () => void): void;
1043
1044
 
1044
1045
  /**
1045
1046
  * Imports CSV file.
@@ -1488,6 +1489,18 @@ declare class OrgChart {
1488
1489
  */
1489
1490
  element: HTMLElement;
1490
1491
 
1492
+ /**
1493
+ * The tree div element.
1494
+ * ```typescript
1495
+ * let chart = new OrgChart('#tree', {});
1496
+ * let mainElement = chart.mainElement;
1497
+ * ```
1498
+ */
1499
+ mainElement: HTMLElement;
1500
+
1501
+ get leftElement(): HTMLElement;
1502
+
1503
+
1491
1504
  /**
1492
1505
  * The chart editUI object.
1493
1506
  * ```typescript
@@ -1527,6 +1540,7 @@ declare class OrgChart {
1527
1540
  powerPointPreviewUI: OrgChart.powerPointPreviewUI;
1528
1541
 
1529
1542
  pdfPreviewUI: OrgChart.pdfPreviewUI;
1543
+ pngPreviewUI: OrgChart.pngPreviewUI;
1530
1544
 
1531
1545
  /**
1532
1546
  * The chart filterUI object.
@@ -3189,6 +3203,19 @@ declare namespace OrgChart {
3189
3203
  show(options: OrgChart.exportPDFOptions): void;
3190
3204
  }
3191
3205
 
3206
+ interface pngPreviewUI {
3207
+ /**
3208
+ * The width of the EXPORT UI
3209
+ */
3210
+ get width(): number;
3211
+ get instance(): OrgChart;
3212
+ get options(): OrgChart.exportPNGOptions;
3213
+ init(obj: OrgChart): void;
3214
+ isVisible(): boolean;
3215
+ hide(): void;
3216
+ show(options: OrgChart.exportPNGOptions): void;
3217
+ }
3218
+
3192
3219
  /**
3193
3220
  * Circle Menu UI
3194
3221
  * ```typescript
@@ -3793,6 +3820,33 @@ declare namespace OrgChart {
3793
3820
  footer?: string
3794
3821
  }
3795
3822
 
3823
+ interface exportPNGOptions {
3824
+ openInNewTab?: boolean,
3825
+ fileName?: string,
3826
+ //landscape?: boolean,
3827
+ width?: number,
3828
+ height?: number,
3829
+ padding?: number,
3830
+ margin?: Array<number>,
3831
+ expandChildren?: boolean,
3832
+ childLevels?: boolean,
3833
+ parentLevels?: boolean,
3834
+ min?: boolean,
3835
+ pages?: Array<{
3836
+ chartInstance?: OrgChart,
3837
+ nodeId?: number | string,
3838
+ expandChildren?: boolean,
3839
+ childLevels?: boolean,
3840
+ parentLevels?: boolean,
3841
+ min?: boolean,
3842
+ header?: string,
3843
+ footer?: string,
3844
+ content?: string
3845
+ }>,
3846
+ //format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal",
3847
+ header?: string,
3848
+ footer?: string
3849
+ }
3796
3850
 
3797
3851
 
3798
3852
 
@@ -5323,6 +5377,12 @@ declare namespace OrgChart {
5323
5377
  * @ignore
5324
5378
  */
5325
5379
  pdfPreviewUI?: OrgChart.pdfPreviewUI,
5380
+
5381
+ /**
5382
+ * @ignore
5383
+ */
5384
+ pngPreviewUI?: OrgChart.pngPreviewUI,
5385
+
5326
5386
  /**
5327
5387
  * @ignore
5328
5388
  */
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.19.02"}
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.19.04"}