@balkangraph/orgchart.js 8.19.40 → 8.19.41

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
@@ -921,30 +921,8 @@ declare class OrgChart {
921
921
  * ```
922
922
  */
923
923
  getMenuButton(): HTMLElement;
924
- /**
925
- * Exports the details form to PDF.
926
- * ```typescript
927
- * let chart = new OrgChart('#tree', {});
928
- * ...
929
- * chart.exportPDFProfile({nodeId: 2});
930
- * ```
931
- * @param options export options
932
- * @param callback called when the export completes
933
- * {@link https://balkan.app/OrgChartJS/Docs/ExportingPdfPng#profile | See doc...}
934
- */
935
- exportPDFProfile(options: OrgChart.exportOptions, callback?: () => void): void;
936
- /**
937
- * Exports the details form to PDF.
938
- * ```typescript
939
- * let chart = new OrgChart('#tree', {});
940
- * ...
941
- * chart.exportPNGProfile({nodeId: 2});
942
- * ```
943
- * @param options export options
944
- * @param callback called when the export completes
945
- * {@link https://balkan.app/OrgChartJS/Docs/ExportingPdfPng#profile | See doc...}
946
- */
947
- exportPNGProfile(options: OrgChart.exportOptions, callback?: () => void): void;
924
+
925
+
948
926
  /**
949
927
  * Exports to CSV
950
928
  * ```typescript
@@ -989,42 +967,7 @@ declare class OrgChart {
989
967
  * @param id node id
990
968
  */
991
969
  shareProfile(id: string | number): void;
992
- /**
993
- * Exports to PDF document
994
- * ```typescript
995
- * let chart = new OrgChart('#tree', {});
996
- * ...
997
- * chart.exportPDF();
998
- * ```
999
- * @param options export options
1000
- * @param callback called when the export completes
1001
- * {@link https://balkan.app/OrgChartJS/Docs/ExportingPdfPng#pdfOptions | See doc...}
1002
- */
1003
- exportPDF(options?: OrgChart.exportOptions, callback?: () => void): void;
1004
- /**
1005
- * Exports to PNG document
1006
- * ```typescript
1007
- * let chart = new OrgChart('#tree', {});
1008
- * ...
1009
- * chart.exportPNG();
1010
- * ```
1011
- * @param options export options
1012
- * @param callback called when the export completes
1013
- * {@link https://balkan.app/OrgChartJS/Docs/ExportingPdfPng#pngOptions | See doc...}
1014
- */
1015
- exportPNG(options?: OrgChart.exportOptions, callback?: () => void): void;
1016
- /**
1017
- * Exports to SVG document
1018
- * ```typescript
1019
- * let chart = new OrgChart('#tree', {});
1020
- * ...
1021
- * chart.exportSVG();
1022
- * ```
1023
- * @param options export options
1024
- * @param callback called when the export completes
1025
- * {@link https://balkan.app/OrgChartJS/Docs/ExportingOther#svgOptions | See doc...}
1026
- */
1027
- exportSVG(options?: OrgChart.exportOptions, callback?: () => void): void;
970
+
1028
971
  /**
1029
972
  * Exports to Visio document
1030
973
  * ```typescript
@@ -1377,13 +1320,7 @@ declare class OrgChart {
1377
1320
  *
1378
1321
  * this property is initialized only for CSV/XML/SVG exports
1379
1322
  */
1380
- content: string
1381
- /**
1382
- * export options
1383
- *
1384
- * this property is initialized only for SVG exports
1385
- */
1386
- options: OrgChart.exportOptions,
1323
+ content: string,
1387
1324
  /**
1388
1325
  * add extra styles
1389
1326
  *
@@ -1642,39 +1579,6 @@ declare class OrgChart {
1642
1579
 
1643
1580
  static fileUploadDialog(callback: (file: any) => void): void;
1644
1581
 
1645
- /**
1646
- * Exports multiple charts or a chart by teams.
1647
- * ```typescript
1648
- * let chart1 = new OrgChart('#tree', {});
1649
- * let chart2 = new OrgChart('#tree', {});
1650
- * let chart3 = new OrgChart('#tree', {});
1651
- * let chart4 = new OrgChart('#tree', {});
1652
- * document.getElementById('btn_export').addEventListener('click', function(){
1653
- * OrgChart.exportPDFFromCharts([
1654
- * {chartInstance: chart1, scale: 'fit', format: 'A4', header: 'OrgChart 1' },
1655
- * {chartInstance: chart2, scale: 'fit', format: 'A4', header: 'OrgChart 2' },
1656
- * {chartInstance: chart3, scale: 'fit', format: 'A4', header: 'OrgChart 3' },
1657
- * {chartInstance: chart4, scale: 'fit', format: 'A4', header: 'OrgChart 4' },
1658
- * ], "test.pdf");
1659
- * });
1660
- * ```
1661
- */
1662
- static exportPDFFromCharts(optionList: Array<{
1663
- chartInstance: OrgChart,
1664
- childLevels?: number,
1665
- parentLevels?: number,
1666
- margin?: Array<number>,
1667
- padding?: number,
1668
- landscape?: boolean,
1669
- type?: "preview" | "nodes",
1670
- scale?: "fit" | number,
1671
- format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal",
1672
- header?: string,
1673
- footer?: string,
1674
- expandChildren?: boolean,
1675
- min?: boolean,
1676
- nodeId? : number | string
1677
- }>, filename?: string, openInNewTab?: boolean, callback?: (arrayBuffer: ArrayBuffer) => void): void;
1678
1582
 
1679
1583
  /**
1680
1584
  * Checks if the screen is mobile
@@ -2280,10 +2184,6 @@ declare class OrgChart {
2280
2184
  * @ignore
2281
2185
  */
2282
2186
  static editUI: any;
2283
- /**
2284
- * @ignore
2285
- */
2286
- static pdfPrevUI: OrgChart.pdfPrevUI;
2287
2187
  // static menuUI: any;
2288
2188
  /**
2289
2189
  * @ignore
@@ -3328,32 +3228,7 @@ declare namespace OrgChart {
3328
3228
  instance: OrgChart;
3329
3229
  }
3330
3230
 
3331
- interface pdfPrevUI {
3332
- /**
3333
- * Shows the PDF Preview UI
3334
- * ```typescript
3335
- * function pdf() {
3336
- * OrgChart.pdfPrevUI.show(chart, {
3337
- * format: "A4",
3338
- * header: 'My Header',
3339
- * footer: 'My Footer. Page {current-page} of {total-pages}'
3340
- * });
3341
- * }
3342
- * ```
3343
- */
3344
- show(chart: OrgChart, options: exportOptions): pdfPrevUI;
3345
-
3346
- /**
3347
- * Hide the PDF Preview UI
3348
- * ```typescript
3349
- * chart.element.querySelector('#boc-prev-cancel').addEventListener('click', function () {
3350
- * OrgChart.pdfPrevUI.hide(chart);
3351
- * });
3352
- * ```
3353
- */
3354
- hide(chart: OrgChart): void;
3355
3231
 
3356
- }
3357
3232
 
3358
3233
  interface keyNavigation {
3359
3234
  /**
@@ -3764,39 +3639,7 @@ declare namespace OrgChart {
3764
3639
  bottom?: string
3765
3640
  }
3766
3641
 
3767
- /**
3768
- * Exports to PDF document
3769
- * ```typescript
3770
- * let chart = new OrgChart('#tree', {});
3771
- * ...
3772
- * chart.exportPDF({
3773
- * format: "A4"
3774
- * });
3775
- * ```
3776
- * {@link https://balkan.app/OrgChartJS/Docs/ExportingPdfPng | See doc...}
3777
- */
3778
- interface exportOptions {
3779
- margin?: Array<number>,
3780
- padding?: number,
3781
- landscape?: boolean,
3782
- filename?: string,
3783
- scale?: "fit" | number,
3784
- format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal",
3785
- header?: string,
3786
- footer?: string,
3787
- openInNewTab?: boolean,
3788
- expandChildren?: boolean,
3789
- /**
3790
- * Export parents of nodeId
3791
- */
3792
- parentLevels?: boolean,
3793
- /**
3794
- * Export children of nodeId
3795
- */
3796
- childLevels?: boolean,
3797
- min?: boolean,
3798
- nodeId? : number | string
3799
- }
3642
+
3800
3643
 
3801
3644
 
3802
3645
 
@@ -5465,15 +5308,8 @@ declare namespace OrgChart {
5465
5308
  * @ignore
5466
5309
  */
5467
5310
  UI?: any,
5468
- /**
5469
- * The URL to the export server. Default value - *https://balkan.app/export*
5470
- * ```typescript
5471
- * var chart = new OrgChart('#tree', {
5472
- * exportUrl: "https://balkan.app/export"
5473
- * });
5474
- * ```
5475
- */
5476
- exportUrl?: string,
5311
+
5312
+
5477
5313
 
5478
5314
  /**
5479
5315
  * The URL to the export server. Default value - *https://serverjs.balkan.app*
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.40"}
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.41"}