@balkangraph/orgchart.js 8.17.6 → 8.18.1

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
@@ -86,10 +86,16 @@ declare class OrgChart {
86
86
  excel: (w: string| number, h: string| number, c: string| number) => string,
87
87
  /**
88
88
  * ```typescript
89
- * let powerpointIcon = OrgChart.icon.powerpoint(24, 24, "#7A7A7A");
89
+ * let powerPointIcon = OrgChart.icon.powerpoint(24, 24, "#7A7A7A");
90
90
  * ```
91
91
  */
92
92
  powerpoint: (w: string| number, h: string| number, c: string| number) => string,
93
+ /**
94
+ * ```typescript
95
+ * let powerPointPreviewIcon = OrgChart.icon.pppreview(24, 24, "#7A7A7A");
96
+ * ```
97
+ */
98
+ pppreview: (w: string| number, h: string| number, c: string| number) => string,
93
99
  /**
94
100
  * ```typescript
95
101
  * let editIcon = OrgChart.icon.edit(24, 24, "#7A7A7A");
@@ -1032,33 +1038,7 @@ declare class OrgChart {
1032
1038
  * {@link https://balkan.app/OrgChartJS/Docs/Exporting | See doc...}
1033
1039
  */
1034
1040
  exportVisio(options?: OrgChart.exportOptions, callback?: () => void): void;
1035
- exportToPowerPoint(options?: {
1036
- openInNewTab?: boolean,
1037
- landscape?: boolean,
1038
- filename?: string,
1039
- // width?: number,
1040
- // height?: number,
1041
- padding?: number,
1042
- margin?: Array<number>,
1043
- nodeId?: number | string,
1044
- expandChildren?: boolean,
1045
- childLevels?: boolean,
1046
- parentLevels?: boolean,
1047
- min?: boolean,
1048
- pages?: Array<{
1049
- chartInstance?: OrgChart,
1050
- nodeId?: number | string,
1051
- expandChildren?: boolean,
1052
- childLevels?: boolean,
1053
- parentLevels?: boolean,
1054
- min?: boolean,
1055
- header?: string,
1056
- footer?: string
1057
- }>,
1058
- format?: "Screen" | "Widescreen" | "Standard" | "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal",
1059
- header?: string,
1060
- footer?: string
1061
- }, callback?: () => void): void;
1041
+ exportToPowerPoint(options?: OrgChart.exportPowerPontOptions, callback?: () => void): void;
1062
1042
 
1063
1043
  /**
1064
1044
  * Imports CSV file.
@@ -1543,6 +1523,8 @@ declare class OrgChart {
1543
1523
  */
1544
1524
  nodeMenuUI: OrgChart.menuUI;
1545
1525
 
1526
+ powerPointPreviewUI: OrgChart.exportUI;
1527
+
1546
1528
  /**
1547
1529
  * The chart filterUI object.
1548
1530
  * ```typescript
@@ -3170,6 +3152,15 @@ declare namespace OrgChart {
3170
3152
  show(x: number | HTMLElement, y?: number, firstNodeId?: string | number, secondNodeId?: string | number, menu?: { [key: string]: menu }): void;
3171
3153
  }
3172
3154
 
3155
+ interface exportUI {
3156
+ get instance(): OrgChart;
3157
+ get options(): OrgChart.exportPowerPontOptions;
3158
+ init(obj: OrgChart): void;
3159
+ isVisible(): boolean;
3160
+ hide(): void;
3161
+ show(options: OrgChart.exportPowerPontOptions): void;
3162
+ }
3163
+
3173
3164
  /**
3174
3165
  * Circle Menu UI
3175
3166
  * ```typescript
@@ -3718,6 +3709,36 @@ declare namespace OrgChart {
3718
3709
  }
3719
3710
 
3720
3711
 
3712
+
3713
+ interface exportPowerPontOptions {
3714
+ openInNewTab?: boolean,
3715
+ landscape?: boolean,
3716
+ filename?: string,
3717
+ // width?: number,
3718
+ // height?: number,
3719
+ padding?: number,
3720
+ margin?: Array<number>,
3721
+ nodeId?: number | string,
3722
+ expandChildren?: boolean,
3723
+ childLevels?: boolean,
3724
+ parentLevels?: boolean,
3725
+ min?: boolean,
3726
+ pages?: Array<{
3727
+ chartInstance?: OrgChart,
3728
+ nodeId?: number | string,
3729
+ expandChildren?: boolean,
3730
+ childLevels?: boolean,
3731
+ parentLevels?: boolean,
3732
+ min?: boolean,
3733
+ header?: string,
3734
+ footer?: string
3735
+ }>,
3736
+ format?: "Screen" | "Widescreen" | "Standard",
3737
+ header?: string,
3738
+ footer?: string
3739
+ }
3740
+
3741
+
3721
3742
 
3722
3743
 
3723
3744
  /**
@@ -4649,7 +4670,9 @@ declare namespace OrgChart {
4649
4670
  */
4650
4671
  aiChatTools?: Array<OrgChart.aiChatTool>,
4651
4672
  /**
4652
- * With the toolbar enabled allows you to change the layout, zoom in/out, expand all nodes, etc.
4673
+ * Shows a toolbar
4674
+ *
4675
+ * The toolbar options allow you to change the layout, zoom in/out, expand all nodes, etc.
4653
4676
  * ```typescript
4654
4677
  * var chart = new OrgChart('#tree', {
4655
4678
  * toolbar: {
@@ -5236,6 +5259,10 @@ declare namespace OrgChart {
5236
5259
  * @ignore
5237
5260
  */
5238
5261
  nodeMenuUI?: OrgChart.menuUI,
5262
+ /**
5263
+ * @ignore
5264
+ */
5265
+ powerPointPreviewUI?: OrgChart.exportUI,
5239
5266
  /**
5240
5267
  * @ignore
5241
5268
  */
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.17.06"}
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.18.01"}