@balkangraph/orgchart.js 8.15.33 → 8.15.35
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 +42 -1
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -81,6 +81,12 @@ declare class OrgChart {
|
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
83
|
xml: (w: string| number, h: string| number, c: string| number) => string,
|
|
84
|
+
/**
|
|
85
|
+
* ```typescript
|
|
86
|
+
* let visioIcon = OrgChart.icon.visio(24, 24, "#7A7A7A");
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
visio: (w: string| number, h: string| number, c: string| number, x?: string| number, y?: string| number) => string,
|
|
84
90
|
/**
|
|
85
91
|
* ```typescript
|
|
86
92
|
* let linkIcon = OrgChart.icon.link(24, 24, "#7A7A7A");
|
|
@@ -970,6 +976,18 @@ declare class OrgChart {
|
|
|
970
976
|
* {@link https://balkan.app/OrgChartJS/Docs/Exporting | See doc...}
|
|
971
977
|
*/
|
|
972
978
|
exportSVG(options?: OrgChart.exportOptions, callback?: () => void): void;
|
|
979
|
+
/**
|
|
980
|
+
* Exports to Visio document
|
|
981
|
+
* ```typescript
|
|
982
|
+
* let chart = new OrgChart('#tree', {});
|
|
983
|
+
* ...
|
|
984
|
+
* chart.exportVisio();
|
|
985
|
+
* ```
|
|
986
|
+
* @param options export options
|
|
987
|
+
* @param callback called when the export completes
|
|
988
|
+
* {@link https://balkan.app/OrgChartJS/Docs/Exporting | See doc...}
|
|
989
|
+
*/
|
|
990
|
+
exportVisio(options?: OrgChart.exportOptions, callback?: () => void): void;
|
|
973
991
|
/**
|
|
974
992
|
* Imports CSV file.
|
|
975
993
|
* ```typescript
|
|
@@ -2810,6 +2828,18 @@ declare namespace OrgChart {
|
|
|
2810
2828
|
element: HTMLElement;
|
|
2811
2829
|
}
|
|
2812
2830
|
|
|
2831
|
+
|
|
2832
|
+
/**
|
|
2833
|
+
* Menu UI
|
|
2834
|
+
* ```typescript
|
|
2835
|
+
* let chart = new OrgChart("#tree", {
|
|
2836
|
+
* })
|
|
2837
|
+
* chart.onInit(() => {
|
|
2838
|
+
* chart.menuUI.show(chart.getMenuButton());
|
|
2839
|
+
* })
|
|
2840
|
+
* chart.load(nodes)
|
|
2841
|
+
* ```
|
|
2842
|
+
*/
|
|
2813
2843
|
interface menuUI {
|
|
2814
2844
|
init(obj: OrgChart, menu: { [key: string]: menu }): void;
|
|
2815
2845
|
/**
|
|
@@ -2847,6 +2877,15 @@ declare namespace OrgChart {
|
|
|
2847
2877
|
show(x: number | HTMLElement, y?: number, firstNodeId?: string | number, secondNodeId?: string | number, menu?: { [key: string]: menu }): void;
|
|
2848
2878
|
}
|
|
2849
2879
|
|
|
2880
|
+
/**
|
|
2881
|
+
* Circle Menu UI
|
|
2882
|
+
* ```typescript
|
|
2883
|
+
* var chart = new OrgChart('#tree', {});
|
|
2884
|
+
* chart.onInit(() => {
|
|
2885
|
+
* chart.nodeCircleMenuUI.show(1);
|
|
2886
|
+
* });
|
|
2887
|
+
* ```
|
|
2888
|
+
*/
|
|
2850
2889
|
interface circleMenuUI {
|
|
2851
2890
|
/**
|
|
2852
2891
|
* Inits circle menu instance
|
|
@@ -2856,6 +2895,8 @@ declare namespace OrgChart {
|
|
|
2856
2895
|
init(obj: OrgChart, menu: { [key: string]: menu }): void;
|
|
2857
2896
|
/**
|
|
2858
2897
|
* Shows circle menu
|
|
2898
|
+
*
|
|
2899
|
+
*
|
|
2859
2900
|
* @param nodeId
|
|
2860
2901
|
* @param menu
|
|
2861
2902
|
*/
|
|
@@ -4729,7 +4770,7 @@ declare namespace OrgChart {
|
|
|
4729
4770
|
exportUrl?: string,
|
|
4730
4771
|
|
|
4731
4772
|
/**
|
|
4732
|
-
* The URL to the export server. Default value - *https://
|
|
4773
|
+
* The URL to the export server. Default value - *https://serverjs.balkan.app*
|
|
4733
4774
|
* ```typescript
|
|
4734
4775
|
* var chart = new OrgChart('#tree', {
|
|
4735
4776
|
* serverUrl: "https://myDomain.com"
|