@balkangraph/orgchart.js 8.19.39 → 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 +26 -174
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -921,30 +921,8 @@ declare class OrgChart {
|
|
|
921
921
|
* ```
|
|
922
922
|
*/
|
|
923
923
|
getMenuButton(): HTMLElement;
|
|
924
|
-
|
|
925
|
-
|
|
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
|
|
@@ -1309,10 +1252,26 @@ declare class OrgChart {
|
|
|
1309
1252
|
openInNewTab?: boolean,
|
|
1310
1253
|
padding?: number,
|
|
1311
1254
|
parentLevels?: number,
|
|
1312
|
-
styles?: string,
|
|
1313
1255
|
type?: string,
|
|
1314
|
-
pages?: Array<
|
|
1315
|
-
|
|
1256
|
+
pages?: Array<{
|
|
1257
|
+
chartInstance?: OrgChart,
|
|
1258
|
+
childLevels?: number,
|
|
1259
|
+
expandChildren?: boolean,
|
|
1260
|
+
footer?: string,
|
|
1261
|
+
header?: string,
|
|
1262
|
+
margin?: Array<number>,
|
|
1263
|
+
min?: boolean,
|
|
1264
|
+
padding?: number,
|
|
1265
|
+
parentLevels?: number,
|
|
1266
|
+
isProfile?: boolean,
|
|
1267
|
+
nodeId?: number | string,
|
|
1268
|
+
content?: string,
|
|
1269
|
+
height?: number,
|
|
1270
|
+
width?: number,
|
|
1271
|
+
}>
|
|
1272
|
+
},
|
|
1273
|
+
pages?: Array<SVGElement>,
|
|
1274
|
+
styles?: string
|
|
1316
1275
|
}) => void): OrgChart;
|
|
1317
1276
|
|
|
1318
1277
|
/**
|
|
@@ -1361,13 +1320,7 @@ declare class OrgChart {
|
|
|
1361
1320
|
*
|
|
1362
1321
|
* this property is initialized only for CSV/XML/SVG exports
|
|
1363
1322
|
*/
|
|
1364
|
-
content: string
|
|
1365
|
-
/**
|
|
1366
|
-
* export options
|
|
1367
|
-
*
|
|
1368
|
-
* this property is initialized only for SVG exports
|
|
1369
|
-
*/
|
|
1370
|
-
options: OrgChart.exportOptions,
|
|
1323
|
+
content: string,
|
|
1371
1324
|
/**
|
|
1372
1325
|
* add extra styles
|
|
1373
1326
|
*
|
|
@@ -1626,39 +1579,6 @@ declare class OrgChart {
|
|
|
1626
1579
|
|
|
1627
1580
|
static fileUploadDialog(callback: (file: any) => void): void;
|
|
1628
1581
|
|
|
1629
|
-
/**
|
|
1630
|
-
* Exports multiple charts or a chart by teams.
|
|
1631
|
-
* ```typescript
|
|
1632
|
-
* let chart1 = new OrgChart('#tree', {});
|
|
1633
|
-
* let chart2 = new OrgChart('#tree', {});
|
|
1634
|
-
* let chart3 = new OrgChart('#tree', {});
|
|
1635
|
-
* let chart4 = new OrgChart('#tree', {});
|
|
1636
|
-
* document.getElementById('btn_export').addEventListener('click', function(){
|
|
1637
|
-
* OrgChart.exportPDFFromCharts([
|
|
1638
|
-
* {chartInstance: chart1, scale: 'fit', format: 'A4', header: 'OrgChart 1' },
|
|
1639
|
-
* {chartInstance: chart2, scale: 'fit', format: 'A4', header: 'OrgChart 2' },
|
|
1640
|
-
* {chartInstance: chart3, scale: 'fit', format: 'A4', header: 'OrgChart 3' },
|
|
1641
|
-
* {chartInstance: chart4, scale: 'fit', format: 'A4', header: 'OrgChart 4' },
|
|
1642
|
-
* ], "test.pdf");
|
|
1643
|
-
* });
|
|
1644
|
-
* ```
|
|
1645
|
-
*/
|
|
1646
|
-
static exportPDFFromCharts(optionList: Array<{
|
|
1647
|
-
chartInstance: OrgChart,
|
|
1648
|
-
childLevels?: number,
|
|
1649
|
-
parentLevels?: number,
|
|
1650
|
-
margin?: Array<number>,
|
|
1651
|
-
padding?: number,
|
|
1652
|
-
landscape?: boolean,
|
|
1653
|
-
type?: "preview" | "nodes",
|
|
1654
|
-
scale?: "fit" | number,
|
|
1655
|
-
format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal",
|
|
1656
|
-
header?: string,
|
|
1657
|
-
footer?: string,
|
|
1658
|
-
expandChildren?: boolean,
|
|
1659
|
-
min?: boolean,
|
|
1660
|
-
nodeId? : number | string
|
|
1661
|
-
}>, filename?: string, openInNewTab?: boolean, callback?: (arrayBuffer: ArrayBuffer) => void): void;
|
|
1662
1582
|
|
|
1663
1583
|
/**
|
|
1664
1584
|
* Checks if the screen is mobile
|
|
@@ -2264,10 +2184,6 @@ declare class OrgChart {
|
|
|
2264
2184
|
* @ignore
|
|
2265
2185
|
*/
|
|
2266
2186
|
static editUI: any;
|
|
2267
|
-
/**
|
|
2268
|
-
* @ignore
|
|
2269
|
-
*/
|
|
2270
|
-
static pdfPrevUI: OrgChart.pdfPrevUI;
|
|
2271
2187
|
// static menuUI: any;
|
|
2272
2188
|
/**
|
|
2273
2189
|
* @ignore
|
|
@@ -3312,32 +3228,7 @@ declare namespace OrgChart {
|
|
|
3312
3228
|
instance: OrgChart;
|
|
3313
3229
|
}
|
|
3314
3230
|
|
|
3315
|
-
interface pdfPrevUI {
|
|
3316
|
-
/**
|
|
3317
|
-
* Shows the PDF Preview UI
|
|
3318
|
-
* ```typescript
|
|
3319
|
-
* function pdf() {
|
|
3320
|
-
* OrgChart.pdfPrevUI.show(chart, {
|
|
3321
|
-
* format: "A4",
|
|
3322
|
-
* header: 'My Header',
|
|
3323
|
-
* footer: 'My Footer. Page {current-page} of {total-pages}'
|
|
3324
|
-
* });
|
|
3325
|
-
* }
|
|
3326
|
-
* ```
|
|
3327
|
-
*/
|
|
3328
|
-
show(chart: OrgChart, options: exportOptions): pdfPrevUI;
|
|
3329
|
-
|
|
3330
|
-
/**
|
|
3331
|
-
* Hide the PDF Preview UI
|
|
3332
|
-
* ```typescript
|
|
3333
|
-
* chart.element.querySelector('#boc-prev-cancel').addEventListener('click', function () {
|
|
3334
|
-
* OrgChart.pdfPrevUI.hide(chart);
|
|
3335
|
-
* });
|
|
3336
|
-
* ```
|
|
3337
|
-
*/
|
|
3338
|
-
hide(chart: OrgChart): void;
|
|
3339
3231
|
|
|
3340
|
-
}
|
|
3341
3232
|
|
|
3342
3233
|
interface keyNavigation {
|
|
3343
3234
|
/**
|
|
@@ -3748,39 +3639,7 @@ declare namespace OrgChart {
|
|
|
3748
3639
|
bottom?: string
|
|
3749
3640
|
}
|
|
3750
3641
|
|
|
3751
|
-
|
|
3752
|
-
* Exports to PDF document
|
|
3753
|
-
* ```typescript
|
|
3754
|
-
* let chart = new OrgChart('#tree', {});
|
|
3755
|
-
* ...
|
|
3756
|
-
* chart.exportPDF({
|
|
3757
|
-
* format: "A4"
|
|
3758
|
-
* });
|
|
3759
|
-
* ```
|
|
3760
|
-
* {@link https://balkan.app/OrgChartJS/Docs/ExportingPdfPng | See doc...}
|
|
3761
|
-
*/
|
|
3762
|
-
interface exportOptions {
|
|
3763
|
-
margin?: Array<number>,
|
|
3764
|
-
padding?: number,
|
|
3765
|
-
landscape?: boolean,
|
|
3766
|
-
filename?: string,
|
|
3767
|
-
scale?: "fit" | number,
|
|
3768
|
-
format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal",
|
|
3769
|
-
header?: string,
|
|
3770
|
-
footer?: string,
|
|
3771
|
-
openInNewTab?: boolean,
|
|
3772
|
-
expandChildren?: boolean,
|
|
3773
|
-
/**
|
|
3774
|
-
* Export parents of nodeId
|
|
3775
|
-
*/
|
|
3776
|
-
parentLevels?: boolean,
|
|
3777
|
-
/**
|
|
3778
|
-
* Export children of nodeId
|
|
3779
|
-
*/
|
|
3780
|
-
childLevels?: boolean,
|
|
3781
|
-
min?: boolean,
|
|
3782
|
-
nodeId? : number | string
|
|
3783
|
-
}
|
|
3642
|
+
|
|
3784
3643
|
|
|
3785
3644
|
|
|
3786
3645
|
|
|
@@ -5449,15 +5308,8 @@ declare namespace OrgChart {
|
|
|
5449
5308
|
* @ignore
|
|
5450
5309
|
*/
|
|
5451
5310
|
UI?: any,
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
* ```typescript
|
|
5455
|
-
* var chart = new OrgChart('#tree', {
|
|
5456
|
-
* exportUrl: "https://balkan.app/export"
|
|
5457
|
-
* });
|
|
5458
|
-
* ```
|
|
5459
|
-
*/
|
|
5460
|
-
exportUrl?: string,
|
|
5311
|
+
|
|
5312
|
+
|
|
5461
5313
|
|
|
5462
5314
|
/**
|
|
5463
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.
|
|
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"}
|