@balkangraph/orgchart.js 9.0.47 → 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 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.exportPowerPontOptions, callback?: () => void): void;
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;
@@ -3262,7 +3262,7 @@ declare namespace OrgChart {
3262
3262
  */
3263
3263
  get width(): number;
3264
3264
  get instance(): OrgChart;
3265
- get options(): OrgChart.exportPowerPontOptions;
3265
+ get options(): OrgChart.exportPowerPointOptions;
3266
3266
 
3267
3267
  locExport: string;
3268
3268
  locCancel: string;
@@ -3296,7 +3296,11 @@ declare namespace OrgChart {
3296
3296
  init(obj: OrgChart): void;
3297
3297
  isVisible(): boolean;
3298
3298
  hide(): void;
3299
- show(options: OrgChart.exportPowerPontOptions): void;
3299
+ show(options: OrgChart.exportPowerPointOptions): void;
3300
+
3301
+ selectPage(index: number) : void;
3302
+ removePage(index: number) : void;
3303
+ addPage(page: OrgChart.exportPowerPointPage) : void;
3300
3304
  }
3301
3305
 
3302
3306
  interface pdfPreviewUI {
@@ -3349,7 +3353,12 @@ declare namespace OrgChart {
3349
3353
  isVisible(): boolean;
3350
3354
  hide(): void;
3351
3355
  show(options: OrgChart.exportPDFOptions): void;
3352
-
3356
+
3357
+ selectPage(index: number) : void;
3358
+ removePage(index: number) : void;
3359
+ toggelePrintTreeOrProfile() : void;
3360
+ toggleLanscape(): void;
3361
+ addPage(page: OrgChart.exportPDFPage) : void;
3353
3362
  }
3354
3363
 
3355
3364
 
@@ -3395,10 +3404,60 @@ declare namespace OrgChart {
3395
3404
  isVisible(): boolean;
3396
3405
  hide(): void;
3397
3406
  show(options: OrgChart.exportPNGOptions): void;
3407
+ selectPage(index: number) : void;
3408
+ removePage(index: number) : void;
3409
+ addPage(page: OrgChart.exportPNGPage) : void;
3398
3410
  }
3399
3411
 
3412
+
3400
3413
 
3401
- interface svgPreviewUI extends OrgChart.pngPreviewUI {}
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
+ }
3402
3461
 
3403
3462
  /**
3404
3463
  * Circle Menu UI
@@ -3899,8 +3958,21 @@ declare namespace OrgChart {
3899
3958
 
3900
3959
 
3901
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
+
3902
3974
 
3903
- interface exportPowerPontOptions {
3975
+ interface exportPowerPointOptions {
3904
3976
  openInNewTab?: boolean,
3905
3977
  fileName?: string,
3906
3978
  // width?: number,
@@ -3911,22 +3983,25 @@ declare namespace OrgChart {
3911
3983
  childLevels?: number,
3912
3984
  parentLevels?: number,
3913
3985
  min?: boolean,
3914
- pages?: Array<{
3915
- chartInstance?: OrgChart,
3916
- nodeId?: number | string,
3917
- expandChildren?: boolean,
3918
- childLevels?: number,
3919
- parentLevels?: number,
3920
- min?: boolean,
3921
- header?: string,
3922
- footer?: string,
3923
- content?: string
3924
- }>,
3986
+ pages?: Array<OrgChart.exportPowerPointPage>,
3925
3987
  format?: "Screen" | "Widescreen" | "Standard",
3926
3988
  header?: string,
3927
3989
  footer?: string
3928
3990
  }
3929
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
+
3930
4005
  interface exportPDFOptions {
3931
4006
  openInNewTab?: boolean,
3932
4007
  fileName?: string,
@@ -3939,8 +4014,13 @@ declare namespace OrgChart {
3939
4014
  childLevels?: number,
3940
4015
  parentLevels?: number,
3941
4016
  min?: boolean,
3942
- pages?: Array<{
3943
- isProfile?: boolean,
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 {
3944
4024
  chartInstance?: OrgChart,
3945
4025
  nodeId?: number | string,
3946
4026
  expandChildren?: boolean,
@@ -3950,12 +4030,7 @@ declare namespace OrgChart {
3950
4030
  header?: string,
3951
4031
  footer?: string,
3952
4032
  content?: string
3953
- }>,
3954
- format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal" | "auto",
3955
- header?: string,
3956
- footer?: string
3957
- }
3958
-
4033
+ }
3959
4034
  interface exportPNGOptions {
3960
4035
  openInNewTab?: boolean,
3961
4036
  fileName?: string,
@@ -3966,7 +4041,13 @@ declare namespace OrgChart {
3966
4041
  childLevels?: number,
3967
4042
  parentLevels?: number,
3968
4043
  min?: boolean,
3969
- pages?: Array<{
4044
+ pages?: Array<OrgChart.exportPNGPage>,
4045
+ header?: string,
4046
+ footer?: string
4047
+ }
4048
+
4049
+
4050
+ interface exportSVGPage {
3970
4051
  chartInstance?: OrgChart,
3971
4052
  nodeId?: number | string,
3972
4053
  expandChildren?: boolean,
@@ -3976,13 +4057,22 @@ declare namespace OrgChart {
3976
4057
  header?: string,
3977
4058
  footer?: string,
3978
4059
  content?: string
3979
- }>,
3980
-
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>,
3981
4072
  header?: string,
3982
4073
  footer?: string
3983
4074
  }
3984
4075
 
3985
- interface exportSVGOptions extends exportPNGOptions {}
3986
4076
 
3987
4077
  interface exportVisioOptions {
3988
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.47"}
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"}