@balkangraph/orgchart.js 8.15.21 → 8.15.23
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 +43 -1
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1779,12 +1779,20 @@ declare class OrgChart {
|
|
|
1779
1779
|
|
|
1780
1780
|
|
|
1781
1781
|
/**
|
|
1782
|
+
* You can change the smooth and the speed of the scroll
|
|
1783
|
+
* or you can change the values for any specific browser
|
|
1782
1784
|
* ```typescript
|
|
1785
|
+
* OrgChart.scroll.smooth = 12;
|
|
1786
|
+
* OrgChart.scroll.speed = 120;
|
|
1787
|
+
* OrgChart.scroll.safari = {
|
|
1788
|
+
* smooth: 12,
|
|
1789
|
+
* speed: 500
|
|
1790
|
+
* }
|
|
1783
1791
|
* let chart = new OrgChart(document.getElementById("tree"), {
|
|
1784
1792
|
* ...
|
|
1785
1793
|
* showXScroll: true,
|
|
1786
1794
|
* });
|
|
1787
|
-
* ```
|
|
1795
|
+
* ```
|
|
1788
1796
|
*/
|
|
1789
1797
|
static scroll: {
|
|
1790
1798
|
smooth?: number,
|
|
@@ -2864,6 +2872,40 @@ declare namespace OrgChart {
|
|
|
2864
2872
|
|
|
2865
2873
|
/**
|
|
2866
2874
|
* When you implement function calling in a prompt, you create a tools object, which contains one or more function declarations.
|
|
2875
|
+
* ```typescript
|
|
2876
|
+
* var chart = new OrgChart('#tree', {
|
|
2877
|
+
* enableAI: true,
|
|
2878
|
+
* aiChatTools: [{
|
|
2879
|
+
* functionName: 'sendEmail',
|
|
2880
|
+
* functionDescription: 'Send an email to a given employee with a subject and message.',
|
|
2881
|
+
* functionParameters: {
|
|
2882
|
+
* type: "object",
|
|
2883
|
+
* properties: {
|
|
2884
|
+
* to: {
|
|
2885
|
+
* type: "string",
|
|
2886
|
+
* description: "The employee email address."
|
|
2887
|
+
* },
|
|
2888
|
+
* subject: {
|
|
2889
|
+
* type: "string",
|
|
2890
|
+
* description: "Email subject line."
|
|
2891
|
+
* },
|
|
2892
|
+
* body: {
|
|
2893
|
+
* type: "string",
|
|
2894
|
+
* description: "Body of the email message."
|
|
2895
|
+
* }
|
|
2896
|
+
* },
|
|
2897
|
+
* required: [
|
|
2898
|
+
* "to",
|
|
2899
|
+
* "subject",
|
|
2900
|
+
* "body"
|
|
2901
|
+
* },
|
|
2902
|
+
* additionalProperties: false
|
|
2903
|
+
* },
|
|
2904
|
+
* strict: true
|
|
2905
|
+
* }]
|
|
2906
|
+
* });
|
|
2907
|
+
* ```
|
|
2908
|
+
* [Go to AI doc page for more details](https://balkan.app/OrgChartJS/Docs/AI)
|
|
2867
2909
|
*/
|
|
2868
2910
|
interface aiChatTool {
|
|
2869
2911
|
/**
|