@balkangraph/orgchart.js 8.15.6 → 8.15.8
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 +73 -2
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1348,7 +1348,20 @@ declare class OrgChart {
|
|
|
1348
1348
|
event: any
|
|
1349
1349
|
}) => void): OrgChart;
|
|
1350
1350
|
|
|
1351
|
-
|
|
1351
|
+
/**
|
|
1352
|
+
* In onAIToolCalls we parse the AI responce to our functions
|
|
1353
|
+
* ```typescript
|
|
1354
|
+
* chart.onAIToolCalls(function(args){
|
|
1355
|
+
* for(var toolCall of args.toolCalls){
|
|
1356
|
+
* if (toolCall.FunctionName == 'sendEmail'){
|
|
1357
|
+
* toolCall.FunctionResult = sendEmail(toolCall.FunctionArguments);
|
|
1358
|
+
* }
|
|
1359
|
+
* }
|
|
1360
|
+
* });
|
|
1361
|
+
* ```
|
|
1362
|
+
* [Go to AI doc page for more details](https://balkan.app/OrgChartJS/Docs/AI)
|
|
1363
|
+
* @param listener
|
|
1364
|
+
*/
|
|
1352
1365
|
onAIToolCalls(listener: (this: OrgChart, args: {
|
|
1353
1366
|
toolCalls: Array<{
|
|
1354
1367
|
FunctionName : string,
|
|
@@ -2891,12 +2904,70 @@ declare namespace OrgChart {
|
|
|
2891
2904
|
}
|
|
2892
2905
|
}
|
|
2893
2906
|
|
|
2894
|
-
|
|
2907
|
+
/**
|
|
2908
|
+
* Toolbar buttons. Set to true if you'd like to show a button
|
|
2909
|
+
*/
|
|
2895
2910
|
interface toolbar {
|
|
2911
|
+
|
|
2912
|
+
/**
|
|
2913
|
+
* Shows the layout options
|
|
2914
|
+
* ```typescript
|
|
2915
|
+
* var chart = new OrgChart('#tree', {
|
|
2916
|
+
* toolbar: {
|
|
2917
|
+
* layout: true
|
|
2918
|
+
* }
|
|
2919
|
+
* });
|
|
2920
|
+
* ```
|
|
2921
|
+
*/
|
|
2896
2922
|
layout?: boolean,
|
|
2923
|
+
|
|
2924
|
+
/**
|
|
2925
|
+
*
|
|
2926
|
+
* Zoom plus and minus buttons
|
|
2927
|
+
* ```typescript
|
|
2928
|
+
* var chart = new OrgChart('#tree', {
|
|
2929
|
+
* toolbar: {
|
|
2930
|
+
* zoom: true
|
|
2931
|
+
* }
|
|
2932
|
+
* });
|
|
2933
|
+
* ```
|
|
2934
|
+
*/
|
|
2897
2935
|
zoom?: boolean,
|
|
2936
|
+
|
|
2937
|
+
/**
|
|
2938
|
+
* Fit to screen option
|
|
2939
|
+
* ```typescript
|
|
2940
|
+
* var chart = new OrgChart('#tree', {
|
|
2941
|
+
* toolbar: {
|
|
2942
|
+
* fit: true
|
|
2943
|
+
* }
|
|
2944
|
+
* });
|
|
2945
|
+
* ```
|
|
2946
|
+
*/
|
|
2898
2947
|
fit?: boolean,
|
|
2948
|
+
|
|
2949
|
+
/**
|
|
2950
|
+
* Expand all nodes button
|
|
2951
|
+
* ```typescript
|
|
2952
|
+
* var chart = new OrgChart('#tree', {
|
|
2953
|
+
* toolbar: {
|
|
2954
|
+
* expandAll: true
|
|
2955
|
+
* }
|
|
2956
|
+
* });
|
|
2957
|
+
* ```
|
|
2958
|
+
*/
|
|
2899
2959
|
expandAll?: boolean,
|
|
2960
|
+
|
|
2961
|
+
/**
|
|
2962
|
+
* Switch to fullscreen button
|
|
2963
|
+
* ```typescript
|
|
2964
|
+
* var chart = new OrgChart('#tree', {
|
|
2965
|
+
* toolbar: {
|
|
2966
|
+
* fullScreen: true
|
|
2967
|
+
* }
|
|
2968
|
+
* });
|
|
2969
|
+
* ```
|
|
2970
|
+
*/
|
|
2900
2971
|
fullScreen?: boolean
|
|
2901
2972
|
}
|
|
2902
2973
|
|