@balkangraph/orgchart.js 8.19.37 → 8.19.39
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 +49 -60
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1036,11 +1036,11 @@ declare class OrgChart {
|
|
|
1036
1036
|
* @param callback called when the export completes
|
|
1037
1037
|
* {@link https://balkan.app/OrgChartJS/Docs/ExportingOther | See doc...}
|
|
1038
1038
|
*/
|
|
1039
|
-
exportToVisio(options?: OrgChart.
|
|
1039
|
+
exportToVisio(options?: OrgChart.exportVisioOptions, callback?: () => void): void;
|
|
1040
1040
|
exportToPowerPoint(options?: OrgChart.exportPowerPontOptions, callback?: () => void): void;
|
|
1041
1041
|
exportToPDF(options?: OrgChart.exportPDFOptions, callback?: () => void): void;
|
|
1042
1042
|
exportToPNG(options?: OrgChart.exportPNGOptions, callback?: () => void): void;
|
|
1043
|
-
exportToSVG(options?: OrgChart.
|
|
1043
|
+
exportToSVG(options?: OrgChart.exportSVGOptions, callback?: () => void): void;
|
|
1044
1044
|
exportToPDFProfile(nodeId: number | string, callback?: () => void): void;
|
|
1045
1045
|
|
|
1046
1046
|
|
|
@@ -1286,7 +1286,7 @@ declare class OrgChart {
|
|
|
1286
1286
|
* ```typescript
|
|
1287
1287
|
* let chart = new OrgChart('#tree', {});
|
|
1288
1288
|
* chart.onExportStart(() => {
|
|
1289
|
-
* args.styles += '<link href="
|
|
1289
|
+
* args.styles += '<link href="[link to my styles]" rel="stylesheet">';
|
|
1290
1290
|
* //return false; to cancel the operation
|
|
1291
1291
|
* });
|
|
1292
1292
|
* chart.load(nodes);
|
|
@@ -1294,50 +1294,25 @@ declare class OrgChart {
|
|
|
1294
1294
|
* @category Event Listeners
|
|
1295
1295
|
* @param listener
|
|
1296
1296
|
*/
|
|
1297
|
-
onExportStart(listener: (this: OrgChart, args:
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
styles: string,
|
|
1317
|
-
/**
|
|
1318
|
-
* an object that discribes pages to be exported
|
|
1319
|
-
*
|
|
1320
|
-
* this property is initialized only for PDF/PNG exports
|
|
1321
|
-
*/
|
|
1322
|
-
pages: any,
|
|
1323
|
-
/**
|
|
1324
|
-
* extension
|
|
1325
|
-
*
|
|
1326
|
-
* this property is initialized only for CSV/XML
|
|
1327
|
-
*/
|
|
1328
|
-
ext: string,
|
|
1329
|
-
/**
|
|
1330
|
-
* filename, you can change the filename here
|
|
1331
|
-
*
|
|
1332
|
-
* this property is initialized only for CSV/XML exports
|
|
1333
|
-
*/
|
|
1334
|
-
filename: string,
|
|
1335
|
-
/**
|
|
1336
|
-
* array of node objects
|
|
1337
|
-
*
|
|
1338
|
-
* this property is initialized only for CSV/XML exports
|
|
1339
|
-
*/
|
|
1340
|
-
nodes: Array<object>
|
|
1297
|
+
onExportStart(listener: (this: OrgChart, args: {
|
|
1298
|
+
options: {
|
|
1299
|
+
childLevels?: number,
|
|
1300
|
+
expandChildren?: boolean,
|
|
1301
|
+
fileName?: string,
|
|
1302
|
+
footer?: string,
|
|
1303
|
+
header?: string,
|
|
1304
|
+
height?: number,
|
|
1305
|
+
width?: number,
|
|
1306
|
+
landscape?: boolean,
|
|
1307
|
+
margin?: Array<number>,
|
|
1308
|
+
min?: boolean,
|
|
1309
|
+
openInNewTab?: boolean,
|
|
1310
|
+
padding?: number,
|
|
1311
|
+
parentLevels?: number,
|
|
1312
|
+
styles?: string,
|
|
1313
|
+
type?: string,
|
|
1314
|
+
pages?: Array<SVGElement>
|
|
1315
|
+
}
|
|
1341
1316
|
}) => void): OrgChart;
|
|
1342
1317
|
|
|
1343
1318
|
/**
|
|
@@ -3817,15 +3792,15 @@ declare namespace OrgChart {
|
|
|
3817
3792
|
padding?: number,
|
|
3818
3793
|
margin?: Array<number>,
|
|
3819
3794
|
expandChildren?: boolean,
|
|
3820
|
-
childLevels?:
|
|
3821
|
-
parentLevels?:
|
|
3795
|
+
childLevels?: number,
|
|
3796
|
+
parentLevels?: number,
|
|
3822
3797
|
min?: boolean,
|
|
3823
3798
|
pages?: Array<{
|
|
3824
3799
|
chartInstance?: OrgChart,
|
|
3825
3800
|
nodeId?: number | string,
|
|
3826
3801
|
expandChildren?: boolean,
|
|
3827
|
-
childLevels?:
|
|
3828
|
-
parentLevels?:
|
|
3802
|
+
childLevels?: number,
|
|
3803
|
+
parentLevels?: number,
|
|
3829
3804
|
min?: boolean,
|
|
3830
3805
|
header?: string,
|
|
3831
3806
|
footer?: string,
|
|
@@ -3845,16 +3820,16 @@ declare namespace OrgChart {
|
|
|
3845
3820
|
padding?: number,
|
|
3846
3821
|
margin?: Array<number>,
|
|
3847
3822
|
expandChildren?: boolean,
|
|
3848
|
-
childLevels?:
|
|
3849
|
-
parentLevels?:
|
|
3823
|
+
childLevels?: number,
|
|
3824
|
+
parentLevels?: number,
|
|
3850
3825
|
min?: boolean,
|
|
3851
3826
|
pages?: Array<{
|
|
3852
3827
|
isProfile?: boolean,
|
|
3853
3828
|
chartInstance?: OrgChart,
|
|
3854
3829
|
nodeId?: number | string,
|
|
3855
3830
|
expandChildren?: boolean,
|
|
3856
|
-
childLevels?:
|
|
3857
|
-
parentLevels?:
|
|
3831
|
+
childLevels?: number,
|
|
3832
|
+
parentLevels?: number,
|
|
3858
3833
|
min?: boolean,
|
|
3859
3834
|
header?: string,
|
|
3860
3835
|
footer?: string,
|
|
@@ -3872,16 +3847,16 @@ declare namespace OrgChart {
|
|
|
3872
3847
|
padding?: number,
|
|
3873
3848
|
margin?: Array<number>,
|
|
3874
3849
|
expandChildren?: boolean,
|
|
3875
|
-
childLevels?:
|
|
3876
|
-
parentLevels?:
|
|
3850
|
+
childLevels?: number,
|
|
3851
|
+
parentLevels?: number,
|
|
3877
3852
|
min?: boolean,
|
|
3878
3853
|
pages?: Array<{
|
|
3879
3854
|
chartInstance?: OrgChart,
|
|
3880
3855
|
nodeId?: number | string,
|
|
3881
3856
|
expandChildren?: boolean,
|
|
3882
|
-
childLevels?:
|
|
3883
|
-
parentLevels?:
|
|
3884
|
-
min?: boolean,
|
|
3857
|
+
childLevels?: number,
|
|
3858
|
+
parentLevels?: number,
|
|
3859
|
+
min?: boolean,e
|
|
3885
3860
|
header?: string,
|
|
3886
3861
|
footer?: string,
|
|
3887
3862
|
content?: string
|
|
@@ -3891,6 +3866,20 @@ declare namespace OrgChart {
|
|
|
3891
3866
|
footer?: string
|
|
3892
3867
|
}
|
|
3893
3868
|
|
|
3869
|
+
interface exportSVGOptions extends exportPNGOptions {}
|
|
3870
|
+
|
|
3871
|
+
interface exportVisioOptions {
|
|
3872
|
+
fileName?: string,
|
|
3873
|
+
padding?: number,
|
|
3874
|
+
margin?: Array<number>,
|
|
3875
|
+
expandChildren?: boolean,
|
|
3876
|
+
childLevels?: number,
|
|
3877
|
+
parentLevels?: number,
|
|
3878
|
+
min?: boolean,
|
|
3879
|
+
header?: string,
|
|
3880
|
+
footer?: string
|
|
3881
|
+
}
|
|
3882
|
+
|
|
3894
3883
|
|
|
3895
3884
|
|
|
3896
3885
|
/**
|
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.39"}
|