@balkangraph/orgchart.js 9.0.46 → 9.0.48
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 +122 -42
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1071,7 +1071,7 @@ declare class OrgChart {
|
|
|
1071
1071
|
* {@link https://balkan.app/OrgChartJS/Docs/ExportingOther | See doc...}
|
|
1072
1072
|
*/
|
|
1073
1073
|
exportToVisio(options?: OrgChart.exportVisioOptions, callback?: () => void): void;
|
|
1074
|
-
exportToPowerPoint(options?: OrgChart.
|
|
1074
|
+
exportToPowerPoint(options?: OrgChart.exportPowerPointOptions, callback?: () => void): void;
|
|
1075
1075
|
exportToPDF(options?: OrgChart.exportPDFOptions, callback?: () => void): void;
|
|
1076
1076
|
exportToPNG(options?: OrgChart.exportPNGOptions, callback?: () => void): void;
|
|
1077
1077
|
exportToSVG(options?: OrgChart.exportSVGOptions, callback?: () => void): void;
|
|
@@ -1732,19 +1732,9 @@ declare class OrgChart {
|
|
|
1732
1732
|
*
|
|
1733
1733
|
* The method measures the provided value and inserts line breaks so the text
|
|
1734
1734
|
* fits inside the specified width. If the text exceeds the allowed number of
|
|
1735
|
-
* lines, it will be truncated according to the internal wrapping rules.
|
|
1736
|
-
*
|
|
1737
|
-
* See [Text Overflow](https://balkan.app/OrgChartJS/Docs/TextOverflow) doc page for more details
|
|
1738
|
-
* ```typescript
|
|
1739
|
-
* let chart = new OrgChart('#tree', {});
|
|
1740
|
-
* chart.onField(function (args) {
|
|
1741
|
-
* var val = OrgChart.wrapText(args.value, OrgChart.templates.ana.field_1)
|
|
1742
|
-
* args.value = val;
|
|
1743
|
-
* });
|
|
1744
|
-
* chart.load(nodes);
|
|
1745
|
-
* ```
|
|
1735
|
+
* lines, it will be truncated according to the internal wrapping rules.
|
|
1746
1736
|
*/
|
|
1747
|
-
static wrapText(value: Object, svgElementAsSring: string, width?: number, lines
|
|
1737
|
+
static wrapText(value: Object, svgElementAsSring: string, width?: number, lines?: number): string;
|
|
1748
1738
|
|
|
1749
1739
|
static filterUI: {
|
|
1750
1740
|
/**
|
|
@@ -2294,7 +2284,7 @@ interface nodeData {
|
|
|
2294
2284
|
/**
|
|
2295
2285
|
* the subtree parent id
|
|
2296
2286
|
*/
|
|
2297
|
-
|
|
2287
|
+
stpid?: number | string,
|
|
2298
2288
|
|
|
2299
2289
|
/**
|
|
2300
2290
|
* Set custom configuration for the tagged node
|
|
@@ -3272,7 +3262,7 @@ declare namespace OrgChart {
|
|
|
3272
3262
|
*/
|
|
3273
3263
|
get width(): number;
|
|
3274
3264
|
get instance(): OrgChart;
|
|
3275
|
-
get options(): OrgChart.
|
|
3265
|
+
get options(): OrgChart.exportPowerPointOptions;
|
|
3276
3266
|
|
|
3277
3267
|
locExport: string;
|
|
3278
3268
|
locCancel: string;
|
|
@@ -3306,7 +3296,11 @@ declare namespace OrgChart {
|
|
|
3306
3296
|
init(obj: OrgChart): void;
|
|
3307
3297
|
isVisible(): boolean;
|
|
3308
3298
|
hide(): void;
|
|
3309
|
-
show(options: OrgChart.
|
|
3299
|
+
show(options: OrgChart.exportPowerPointOptions): void;
|
|
3300
|
+
|
|
3301
|
+
selectPage(index: number) : void;
|
|
3302
|
+
removePage(index: number) : void;
|
|
3303
|
+
addPage(page: OrgChart.exportPowerPointPage) : void;
|
|
3310
3304
|
}
|
|
3311
3305
|
|
|
3312
3306
|
interface pdfPreviewUI {
|
|
@@ -3359,7 +3353,12 @@ declare namespace OrgChart {
|
|
|
3359
3353
|
isVisible(): boolean;
|
|
3360
3354
|
hide(): void;
|
|
3361
3355
|
show(options: OrgChart.exportPDFOptions): void;
|
|
3362
|
-
|
|
3356
|
+
|
|
3357
|
+
selectPage(index: number) : void;
|
|
3358
|
+
removePage(index: number) : void;
|
|
3359
|
+
toggelePrintTreeOrProfile() : void;
|
|
3360
|
+
toggleLanscape(): void;
|
|
3361
|
+
addPage(page: OrgChart.exportPDFPage) : void;
|
|
3363
3362
|
}
|
|
3364
3363
|
|
|
3365
3364
|
|
|
@@ -3405,10 +3404,60 @@ declare namespace OrgChart {
|
|
|
3405
3404
|
isVisible(): boolean;
|
|
3406
3405
|
hide(): void;
|
|
3407
3406
|
show(options: OrgChart.exportPNGOptions): void;
|
|
3407
|
+
selectPage(index: number) : void;
|
|
3408
|
+
removePage(index: number) : void;
|
|
3409
|
+
addPage(page: OrgChart.exportPNGPage) : void;
|
|
3408
3410
|
}
|
|
3409
3411
|
|
|
3412
|
+
|
|
3410
3413
|
|
|
3411
|
-
|
|
3414
|
+
|
|
3415
|
+
interface svgPreviewUI {
|
|
3416
|
+
/**
|
|
3417
|
+
* The width of the EXPORT UI
|
|
3418
|
+
*/
|
|
3419
|
+
get width(): number;
|
|
3420
|
+
get instance(): OrgChart;
|
|
3421
|
+
get options(): OrgChart.exportPNGOptions;
|
|
3422
|
+
|
|
3423
|
+
|
|
3424
|
+
locExport: string;
|
|
3425
|
+
locCancel: string;
|
|
3426
|
+
locParentLevels: string;
|
|
3427
|
+
locChildLevels: string;
|
|
3428
|
+
locClickToAdd: string;
|
|
3429
|
+
locAddNew: string;
|
|
3430
|
+
locRemove: string;
|
|
3431
|
+
|
|
3432
|
+
/**
|
|
3433
|
+
* Buttons visibility configuration.
|
|
3434
|
+
* Each flag controls whether the corresponding UI button is displayed.
|
|
3435
|
+
*
|
|
3436
|
+
* - `true` → show the button
|
|
3437
|
+
* - `false` → hide the button
|
|
3438
|
+
*/
|
|
3439
|
+
buttons: {
|
|
3440
|
+
/** Show / hide the parent levels navigation button */
|
|
3441
|
+
parentLevels: boolean;
|
|
3442
|
+
|
|
3443
|
+
/** Show / hide the child levels navigation button */
|
|
3444
|
+
childLevels: boolean;
|
|
3445
|
+
|
|
3446
|
+
/** Show / hide the remove page button */
|
|
3447
|
+
removePage: boolean;
|
|
3448
|
+
|
|
3449
|
+
/** Show / hide the add new page button */
|
|
3450
|
+
addNewPage: boolean;
|
|
3451
|
+
},
|
|
3452
|
+
|
|
3453
|
+
init(obj: OrgChart): void;
|
|
3454
|
+
isVisible(): boolean;
|
|
3455
|
+
hide(): void;
|
|
3456
|
+
show(options: OrgChart.exportPNGOptions): void;
|
|
3457
|
+
selectPage(index: number) : void;
|
|
3458
|
+
removePage(index: number) : void;
|
|
3459
|
+
addPage(page: OrgChart.exportSVGPage) : void;
|
|
3460
|
+
}
|
|
3412
3461
|
|
|
3413
3462
|
/**
|
|
3414
3463
|
* Circle Menu UI
|
|
@@ -3909,8 +3958,21 @@ declare namespace OrgChart {
|
|
|
3909
3958
|
|
|
3910
3959
|
|
|
3911
3960
|
|
|
3961
|
+
interface exportPowerPointPage {
|
|
3962
|
+
chartInstance?: OrgChart,
|
|
3963
|
+
nodeId?: number | string,
|
|
3964
|
+
expandChildren?: boolean,
|
|
3965
|
+
childLevels?: number,
|
|
3966
|
+
parentLevels?: number,
|
|
3967
|
+
min?: boolean,
|
|
3968
|
+
header?: string,
|
|
3969
|
+
footer?: string,
|
|
3970
|
+
content?: string
|
|
3971
|
+
}
|
|
3972
|
+
|
|
3973
|
+
|
|
3912
3974
|
|
|
3913
|
-
interface
|
|
3975
|
+
interface exportPowerPointOptions {
|
|
3914
3976
|
openInNewTab?: boolean,
|
|
3915
3977
|
fileName?: string,
|
|
3916
3978
|
// width?: number,
|
|
@@ -3921,22 +3983,25 @@ declare namespace OrgChart {
|
|
|
3921
3983
|
childLevels?: number,
|
|
3922
3984
|
parentLevels?: number,
|
|
3923
3985
|
min?: boolean,
|
|
3924
|
-
pages?: Array<
|
|
3925
|
-
chartInstance?: OrgChart,
|
|
3926
|
-
nodeId?: number | string,
|
|
3927
|
-
expandChildren?: boolean,
|
|
3928
|
-
childLevels?: number,
|
|
3929
|
-
parentLevels?: number,
|
|
3930
|
-
min?: boolean,
|
|
3931
|
-
header?: string,
|
|
3932
|
-
footer?: string,
|
|
3933
|
-
content?: string
|
|
3934
|
-
}>,
|
|
3986
|
+
pages?: Array<OrgChart.exportPowerPointPage>,
|
|
3935
3987
|
format?: "Screen" | "Widescreen" | "Standard",
|
|
3936
3988
|
header?: string,
|
|
3937
3989
|
footer?: string
|
|
3938
3990
|
}
|
|
3939
3991
|
|
|
3992
|
+
interface exportPDFPage {
|
|
3993
|
+
isProfile?: boolean,
|
|
3994
|
+
chartInstance?: OrgChart,
|
|
3995
|
+
nodeId?: number | string,
|
|
3996
|
+
expandChildren?: boolean,
|
|
3997
|
+
childLevels?: number,
|
|
3998
|
+
parentLevels?: number,
|
|
3999
|
+
min?: boolean,
|
|
4000
|
+
header?: string,
|
|
4001
|
+
footer?: string,
|
|
4002
|
+
content?: string
|
|
4003
|
+
}
|
|
4004
|
+
|
|
3940
4005
|
interface exportPDFOptions {
|
|
3941
4006
|
openInNewTab?: boolean,
|
|
3942
4007
|
fileName?: string,
|
|
@@ -3949,8 +4014,13 @@ declare namespace OrgChart {
|
|
|
3949
4014
|
childLevels?: number,
|
|
3950
4015
|
parentLevels?: number,
|
|
3951
4016
|
min?: boolean,
|
|
3952
|
-
pages?: Array<
|
|
3953
|
-
|
|
4017
|
+
pages?: Array<OrgChart.exportPDFPage>,
|
|
4018
|
+
format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal" | "auto",
|
|
4019
|
+
header?: string,
|
|
4020
|
+
footer?: string
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
interface exportPNGPage {
|
|
3954
4024
|
chartInstance?: OrgChart,
|
|
3955
4025
|
nodeId?: number | string,
|
|
3956
4026
|
expandChildren?: boolean,
|
|
@@ -3960,12 +4030,7 @@ declare namespace OrgChart {
|
|
|
3960
4030
|
header?: string,
|
|
3961
4031
|
footer?: string,
|
|
3962
4032
|
content?: string
|
|
3963
|
-
}
|
|
3964
|
-
format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal" | "auto",
|
|
3965
|
-
header?: string,
|
|
3966
|
-
footer?: string
|
|
3967
|
-
}
|
|
3968
|
-
|
|
4033
|
+
}
|
|
3969
4034
|
interface exportPNGOptions {
|
|
3970
4035
|
openInNewTab?: boolean,
|
|
3971
4036
|
fileName?: string,
|
|
@@ -3976,7 +4041,13 @@ declare namespace OrgChart {
|
|
|
3976
4041
|
childLevels?: number,
|
|
3977
4042
|
parentLevels?: number,
|
|
3978
4043
|
min?: boolean,
|
|
3979
|
-
pages?: Array<
|
|
4044
|
+
pages?: Array<OrgChart.exportPNGPage>,
|
|
4045
|
+
header?: string,
|
|
4046
|
+
footer?: string
|
|
4047
|
+
}
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
interface exportSVGPage {
|
|
3980
4051
|
chartInstance?: OrgChart,
|
|
3981
4052
|
nodeId?: number | string,
|
|
3982
4053
|
expandChildren?: boolean,
|
|
@@ -3986,13 +4057,22 @@ declare namespace OrgChart {
|
|
|
3986
4057
|
header?: string,
|
|
3987
4058
|
footer?: string,
|
|
3988
4059
|
content?: string
|
|
3989
|
-
}
|
|
3990
|
-
|
|
4060
|
+
}
|
|
4061
|
+
interface exportSVGOptions {
|
|
4062
|
+
openInNewTab?: boolean,
|
|
4063
|
+
fileName?: string,
|
|
4064
|
+
//landscape?: boolean,
|
|
4065
|
+
padding?: number,
|
|
4066
|
+
margin?: Array<number>,
|
|
4067
|
+
expandChildren?: boolean,
|
|
4068
|
+
childLevels?: number,
|
|
4069
|
+
parentLevels?: number,
|
|
4070
|
+
min?: boolean,
|
|
4071
|
+
pages?: Array<OrgChart.exportSVGPage>,
|
|
3991
4072
|
header?: string,
|
|
3992
4073
|
footer?: string
|
|
3993
4074
|
}
|
|
3994
4075
|
|
|
3995
|
-
interface exportSVGOptions extends exportPNGOptions {}
|
|
3996
4076
|
|
|
3997
4077
|
interface exportVisioOptions {
|
|
3998
4078
|
fileName?: string,
|
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":"9.00.
|
|
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":"9.00.48"}
|