balkan-orgchart-react 9.1.68 → 9.1.80
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/index.es.d.ts +344 -292
- package/index.es.js +19066 -3773
- package/index.umd.js +303 -115
- package/package.json +60 -58
- package/readme.md +103 -13
package/index.es.d.ts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
|
-
export declare const Employee: ({ children, title, name, photo, assistant, partner, ...rest }: OrgChartEmployeeProps) => JSX.Element;
|
|
4
|
+
export declare const Employee: ({ children, title, name, photo, assistant, partner, template, ...rest }: OrgChartEmployeeProps) => JSX.Element;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
declare interface OrgChartEmployeeProps {
|
|
7
|
+
children?: default_2.ReactNode;
|
|
8
|
+
title?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
photo?: string;
|
|
11
|
+
assistant?: boolean;
|
|
12
|
+
partner?: boolean;
|
|
13
|
+
template?: string;
|
|
14
|
+
tags?: Array<string>;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
7
17
|
|
|
8
18
|
/**
|
|
9
19
|
* ```typescript
|
|
@@ -37,7 +47,7 @@ export declare const OrgChart: default_2.ForwardRefExoticComponent<OrgChartProps
|
|
|
37
47
|
* </html>
|
|
38
48
|
* ```
|
|
39
49
|
*/
|
|
40
|
-
declare class
|
|
50
|
+
export declare class OrgChartJS {
|
|
41
51
|
/**
|
|
42
52
|
* ```typescript
|
|
43
53
|
* let chart = new OrgChart('#tree', {});
|
|
@@ -45,7 +55,7 @@ declare class OrgChart_2 {
|
|
|
45
55
|
* @param element HTML element or string selector for example '#tree'
|
|
46
56
|
* @param options configuration options
|
|
47
57
|
*/
|
|
48
|
-
constructor(element?: HTMLElement | string | null, options?:
|
|
58
|
+
constructor(element?: HTMLElement | string | null, options?: OrgChartJS.options);
|
|
49
59
|
|
|
50
60
|
|
|
51
61
|
/**
|
|
@@ -61,7 +71,7 @@ declare class OrgChart_2 {
|
|
|
61
71
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
62
72
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
63
73
|
*/
|
|
64
|
-
on(type: "init" | "field" | "update" | "add" | "remove" | "renderbuttons" | "label" | "render-link" | "drag" | "drop" | "redraw" | "expcollclick" | "exportstart" | "exportend" | "click" | "dbclick" | "slink-click" | "clink-click" | "up-click" | "searchclick" | "import" | "updated" | "key-down" | "visibility-change" | "renderdefs" | "render" | "prerender" | "screen-reader-text" | "ready" | "ripple" | "node-initialized" | "nodes-initialized" | "node-layout", listener: (sender:
|
|
74
|
+
on(type: "init" | "field" | "update" | "add" | "remove" | "renderbuttons" | "label" | "render-link" | "drag" | "drop" | "redraw" | "expcollclick" | "exportstart" | "exportend" | "click" | "dbclick" | "slink-click" | "clink-click" | "up-click" | "searchclick" | "import" | "updated" | "key-down" | "visibility-change" | "renderdefs" | "render" | "prerender" | "screen-reader-text" | "ready" | "ripple" | "node-initialized" | "nodes-initialized" | "node-layout", listener: (sender: OrgChartJS, args?: any, args1?: any, args2?: any) => void | boolean): OrgChartJS;
|
|
65
75
|
|
|
66
76
|
|
|
67
77
|
|
|
@@ -76,7 +86,7 @@ declare class OrgChart_2 {
|
|
|
76
86
|
* @category Event Listeners
|
|
77
87
|
* @param listener
|
|
78
88
|
*/
|
|
79
|
-
onUpdateNode(listener: (this:
|
|
89
|
+
onUpdateNode(listener: (this: OrgChartJS, args: OrgChartJS.updateNodeEventArgs) => void): OrgChartJS;
|
|
80
90
|
|
|
81
91
|
/**
|
|
82
92
|
* Occurs when new nodes are added, removed, updated or imported, also when slink or clink is added or removed and after undo or redo operations.
|
|
@@ -89,7 +99,7 @@ declare class OrgChart_2 {
|
|
|
89
99
|
* ```
|
|
90
100
|
* @category Event Listeners
|
|
91
101
|
*/
|
|
92
|
-
onUpdated(listener: (this:
|
|
102
|
+
onUpdated(listener: (this: OrgChartJS) => void): OrgChartJS;
|
|
93
103
|
|
|
94
104
|
|
|
95
105
|
/**
|
|
@@ -103,7 +113,7 @@ declare class OrgChart_2 {
|
|
|
103
113
|
* @category Event Listeners
|
|
104
114
|
* @param listener
|
|
105
115
|
*/
|
|
106
|
-
onRemoveNode(listener: (this:
|
|
116
|
+
onRemoveNode(listener: (this: OrgChartJS, args: OrgChartJS.removeNodeEventArgs) => void): OrgChartJS;
|
|
107
117
|
|
|
108
118
|
/**
|
|
109
119
|
* Occurs when a node has been added by addNode method.
|
|
@@ -116,7 +126,7 @@ declare class OrgChart_2 {
|
|
|
116
126
|
* @category Event Listeners
|
|
117
127
|
* @param listener
|
|
118
128
|
*/
|
|
119
|
-
onAddNode(listener: (this:
|
|
129
|
+
onAddNode(listener: (this: OrgChartJS, args: OrgChartJS.addNodeEventArgs) => void): OrgChartJS;
|
|
120
130
|
/**
|
|
121
131
|
* The onDrag event occurs when a node is dragged. *enableDragDrop* option has to be turned on.
|
|
122
132
|
* ```typescript
|
|
@@ -128,7 +138,7 @@ declare class OrgChart_2 {
|
|
|
128
138
|
* @category Event Listeners
|
|
129
139
|
* @param listener
|
|
130
140
|
*/
|
|
131
|
-
onDrag(listener: (this:
|
|
141
|
+
onDrag(listener: (this: OrgChartJS, args: OrgChartJS.dragEventArgs) => void): OrgChartJS;
|
|
132
142
|
/**
|
|
133
143
|
* The onDrop event occurs when a node is dropped. *enableDragDrop* option has to be turned on.
|
|
134
144
|
* ```typescript
|
|
@@ -140,7 +150,7 @@ declare class OrgChart_2 {
|
|
|
140
150
|
* @category Event Listeners
|
|
141
151
|
* @param listener
|
|
142
152
|
*/
|
|
143
|
-
onDrop(listener: (this:
|
|
153
|
+
onDrop(listener: (this: OrgChartJS, args: OrgChartJS.dropEventArgs) => void): OrgChartJS;
|
|
144
154
|
|
|
145
155
|
|
|
146
156
|
|
|
@@ -155,7 +165,7 @@ declare class OrgChart_2 {
|
|
|
155
165
|
* @category Event Listeners
|
|
156
166
|
* @param listener
|
|
157
167
|
*/
|
|
158
|
-
onInit(listener: (this:
|
|
168
|
+
onInit(listener: (this: OrgChartJS) => void): OrgChartJS;
|
|
159
169
|
|
|
160
170
|
/**
|
|
161
171
|
* The onRedraw event occurs when the chart is redrawed.
|
|
@@ -168,7 +178,7 @@ declare class OrgChart_2 {
|
|
|
168
178
|
* @category Event Listeners
|
|
169
179
|
* @param listener
|
|
170
180
|
*/
|
|
171
|
-
onRedraw(listener: (this:
|
|
181
|
+
onRedraw(listener: (this: OrgChartJS) => void): OrgChartJS;
|
|
172
182
|
|
|
173
183
|
/**
|
|
174
184
|
* The onExpandCollapseButtonClick event occurs when the chart is redrawed.
|
|
@@ -182,7 +192,7 @@ declare class OrgChart_2 {
|
|
|
182
192
|
* @category Event Listeners
|
|
183
193
|
* @param listener
|
|
184
194
|
*/
|
|
185
|
-
onExpandCollapseButtonClick(listener: (this:
|
|
195
|
+
onExpandCollapseButtonClick(listener: (this: OrgChartJS, args: OrgChartJS.expandCollapseButtonClickEventArgs) => void): OrgChartJS;
|
|
186
196
|
|
|
187
197
|
/**
|
|
188
198
|
* Occurs in the beginning of the export. Extra css styles can be added to the exported document using this event listener or show loading image.
|
|
@@ -197,7 +207,7 @@ declare class OrgChart_2 {
|
|
|
197
207
|
* @category Event Listeners
|
|
198
208
|
* @param listener
|
|
199
209
|
*/
|
|
200
|
-
onExportStart(listener: (this:
|
|
210
|
+
onExportStart(listener: (this: OrgChartJS, args: OrgChartJS.exportStartEventArgs) => void): OrgChartJS;
|
|
201
211
|
|
|
202
212
|
/**
|
|
203
213
|
* Occurs in the beginning of the export. Use this event listener to hide loading image or upload exported document to your server using ArrayBuffer argument.
|
|
@@ -211,7 +221,7 @@ declare class OrgChart_2 {
|
|
|
211
221
|
* @category Event Listeners
|
|
212
222
|
* @param listener
|
|
213
223
|
*/
|
|
214
|
-
onExportEnd(listener: (this:
|
|
224
|
+
onExportEnd(listener: (this: OrgChartJS, args: OrgChartJS.exportEndEventArgs) => void): OrgChartJS;
|
|
215
225
|
|
|
216
226
|
/**
|
|
217
227
|
* On node click event listener.
|
|
@@ -225,7 +235,7 @@ declare class OrgChart_2 {
|
|
|
225
235
|
* @category Event Listeners
|
|
226
236
|
* @param listener
|
|
227
237
|
*/
|
|
228
|
-
onNodeClick(listener: (this:
|
|
238
|
+
onNodeClick(listener: (this: OrgChartJS, args: OrgChartJS.nodeClickEventArgs) => void): OrgChartJS;
|
|
229
239
|
|
|
230
240
|
|
|
231
241
|
/**
|
|
@@ -239,7 +249,7 @@ declare class OrgChart_2 {
|
|
|
239
249
|
* @category Event Listeners
|
|
240
250
|
* @param listener
|
|
241
251
|
*/
|
|
242
|
-
onCanvasClick(listener: (this:
|
|
252
|
+
onCanvasClick(listener: (this: OrgChartJS, args: OrgChartJS.canvasClickEventArgs) => void): OrgChartJS;
|
|
243
253
|
|
|
244
254
|
/**
|
|
245
255
|
* In onAIToolCalls we parse the AI responce to our functions
|
|
@@ -255,7 +265,7 @@ declare class OrgChart_2 {
|
|
|
255
265
|
* [Go to AI doc page for more details](https://balkan.app/OrgChartJS/Docs/AI)
|
|
256
266
|
* @param listener
|
|
257
267
|
*/
|
|
258
|
-
onAIToolCalls(listener: (this:
|
|
268
|
+
onAIToolCalls(listener: (this: OrgChartJS, args: OrgChartJS.aiToolCallsEventArgs) => void): OrgChartJS;
|
|
259
269
|
|
|
260
270
|
/**
|
|
261
271
|
* On node double click event listener.
|
|
@@ -269,7 +279,7 @@ declare class OrgChart_2 {
|
|
|
269
279
|
* @category Event Listeners
|
|
270
280
|
* @param listener
|
|
271
281
|
*/
|
|
272
|
-
onNodeDoubleClick(listener: (this:
|
|
282
|
+
onNodeDoubleClick(listener: (this: OrgChartJS, args: OrgChartJS.nodeDoubleClickEventArgs) => void): OrgChartJS;
|
|
273
283
|
|
|
274
284
|
|
|
275
285
|
/**
|
|
@@ -524,7 +534,7 @@ declare class OrgChart_2 {
|
|
|
524
534
|
* chart.load(nodes)
|
|
525
535
|
* ```
|
|
526
536
|
*/
|
|
527
|
-
nodes: { [key in any]:
|
|
537
|
+
nodes: { [key in any]: OrgChartJS.node };
|
|
528
538
|
|
|
529
539
|
/**
|
|
530
540
|
* Returns true if chart is visible
|
|
@@ -560,7 +570,7 @@ declare class OrgChart_2 {
|
|
|
560
570
|
* ```
|
|
561
571
|
* @param newData node data
|
|
562
572
|
*/
|
|
563
|
-
update(newData: object):
|
|
573
|
+
update(newData: object): OrgChartJS;
|
|
564
574
|
|
|
565
575
|
/**
|
|
566
576
|
* Removes specified node from nodes collection
|
|
@@ -573,7 +583,7 @@ declare class OrgChart_2 {
|
|
|
573
583
|
|
|
574
584
|
* @param id identification number of the node
|
|
575
585
|
*/
|
|
576
|
-
remove(id: string | number):
|
|
586
|
+
remove(id: string | number): OrgChartJS;
|
|
577
587
|
/**
|
|
578
588
|
* Adds new node to the nodes collection
|
|
579
589
|
* ```typescript
|
|
@@ -585,7 +595,7 @@ declare class OrgChart_2 {
|
|
|
585
595
|
|
|
586
596
|
* @param data node data
|
|
587
597
|
*/
|
|
588
|
-
add(data: object):
|
|
598
|
+
add(data: object): OrgChartJS;
|
|
589
599
|
|
|
590
600
|
/**
|
|
591
601
|
* Adds new node to the nodes collection, redraws the chart and fires remove event
|
|
@@ -598,7 +608,7 @@ declare class OrgChart_2 {
|
|
|
598
608
|
* @param callback called at the end of animation
|
|
599
609
|
* @param fireEvent indicates if the add event will be called or not
|
|
600
610
|
*/
|
|
601
|
-
addNode(data:
|
|
611
|
+
addNode(data: OrgChartJS.nodeData, callback?: () => void, fireEvent?: boolean): void;
|
|
602
612
|
|
|
603
613
|
/**
|
|
604
614
|
* Removes specified node from nodes collection, redraws the chart and fires remove event.
|
|
@@ -621,7 +631,7 @@ declare class OrgChart_2 {
|
|
|
621
631
|
* @param element
|
|
622
632
|
* @param options
|
|
623
633
|
*/
|
|
624
|
-
init(element?: HTMLElement | string | null, options?:
|
|
634
|
+
init(element?: HTMLElement | string | null, options?: OrgChartJS.options): void;
|
|
625
635
|
|
|
626
636
|
|
|
627
637
|
/**
|
|
@@ -633,7 +643,7 @@ declare class OrgChart_2 {
|
|
|
633
643
|
* ```
|
|
634
644
|
* @param id identification number of the node
|
|
635
645
|
*/
|
|
636
|
-
get(id: string | number):
|
|
646
|
+
get(id: string | number): OrgChartJS.nodeData;
|
|
637
647
|
/**
|
|
638
648
|
* If specified node has assistant/s or partner/s as children will return false.
|
|
639
649
|
* ```typescript
|
|
@@ -731,7 +741,7 @@ declare class OrgChart_2 {
|
|
|
731
741
|
* @param data nodes data array
|
|
732
742
|
* @param callback function called after the load
|
|
733
743
|
*/
|
|
734
|
-
load(data: Array<
|
|
744
|
+
load(data: Array<OrgChartJS.nodeData>, callback?: () => void): OrgChartJS;
|
|
735
745
|
|
|
736
746
|
|
|
737
747
|
|
|
@@ -746,7 +756,7 @@ declare class OrgChart_2 {
|
|
|
746
756
|
* @param callback function called when the animation completes
|
|
747
757
|
* @param fireEvent if it set to true the update event is called
|
|
748
758
|
*/
|
|
749
|
-
updateNode(data:
|
|
759
|
+
updateNode(data: OrgChartJS.nodeData, callback?: () => void, fireEvent?: boolean): void;
|
|
750
760
|
|
|
751
761
|
/**
|
|
752
762
|
* Loads nodes from xml.
|
|
@@ -758,7 +768,7 @@ declare class OrgChart_2 {
|
|
|
758
768
|
* @param xml Xml with node structure
|
|
759
769
|
* @param callback function called after the load
|
|
760
770
|
*/
|
|
761
|
-
loadXML(xml: string, callback?: () => void):
|
|
771
|
+
loadXML(xml: string, callback?: () => void): OrgChartJS;
|
|
762
772
|
/**
|
|
763
773
|
* Gets nodes as xml.
|
|
764
774
|
* ```typescript
|
|
@@ -779,7 +789,7 @@ declare class OrgChart_2 {
|
|
|
779
789
|
* @param actionParams parameters for the action
|
|
780
790
|
* @param callback called when the animation completes
|
|
781
791
|
*/
|
|
782
|
-
draw(action?:
|
|
792
|
+
draw(action?: OrgChartJS.action, actionParams?: any, callback?: () => void): void;
|
|
783
793
|
/**
|
|
784
794
|
* Gets the width of the container.
|
|
785
795
|
* ```typescript
|
|
@@ -912,7 +922,7 @@ declare class OrgChart_2 {
|
|
|
912
922
|
* ```
|
|
913
923
|
* @param nodeId
|
|
914
924
|
*/
|
|
915
|
-
getNode(nodeId: string | number):
|
|
925
|
+
getNode(nodeId: string | number): OrgChartJS.node;
|
|
916
926
|
|
|
917
927
|
|
|
918
928
|
/**
|
|
@@ -926,7 +936,7 @@ declare class OrgChart_2 {
|
|
|
926
936
|
* @param lcn lyout config name for the specified sub tree
|
|
927
937
|
*/
|
|
928
938
|
|
|
929
|
-
setLayout(layout:
|
|
939
|
+
setLayout(layout: OrgChartJS.layout | number, lcn?: string): void;
|
|
930
940
|
/**
|
|
931
941
|
* Sets orientation.
|
|
932
942
|
* ```typescript
|
|
@@ -938,7 +948,7 @@ declare class OrgChart_2 {
|
|
|
938
948
|
* @param lcn lyout config name for the specified sub tree
|
|
939
949
|
* @param callback called at the end of animation
|
|
940
950
|
*/
|
|
941
|
-
setOrientation(orientation:
|
|
951
|
+
setOrientation(orientation: OrgChartJS.orientation, lcn?: string, callback?: () => void): void;
|
|
942
952
|
|
|
943
953
|
/**
|
|
944
954
|
* ```typescript
|
|
@@ -980,7 +990,7 @@ declare class OrgChart_2 {
|
|
|
980
990
|
* ```
|
|
981
991
|
* @param node
|
|
982
992
|
*/
|
|
983
|
-
getCollapsedIds(node:
|
|
993
|
+
getCollapsedIds(node: OrgChartJS.node): Array<string | number>;
|
|
984
994
|
/**
|
|
985
995
|
* State to url.
|
|
986
996
|
* ```typescript
|
|
@@ -1036,7 +1046,7 @@ declare class OrgChart_2 {
|
|
|
1036
1046
|
* @param label link label
|
|
1037
1047
|
* @param template link template, for example 'orange'
|
|
1038
1048
|
*/
|
|
1039
|
-
addClink(from: string | number, to: string | number, label?: string, template?: string):
|
|
1049
|
+
addClink(from: string | number, to: string | number, label?: string, template?: string): OrgChartJS;
|
|
1040
1050
|
/**
|
|
1041
1051
|
* Removes curved link.
|
|
1042
1052
|
* ```typescript
|
|
@@ -1048,7 +1058,7 @@ declare class OrgChart_2 {
|
|
|
1048
1058
|
* @param from from node with id
|
|
1049
1059
|
* @param to to node with id
|
|
1050
1060
|
*/
|
|
1051
|
-
removeClink(from: string | number, to: string | number):
|
|
1061
|
+
removeClink(from: string | number, to: string | number): OrgChartJS;
|
|
1052
1062
|
/**
|
|
1053
1063
|
* Adds second link.
|
|
1054
1064
|
* ```typescript
|
|
@@ -1062,7 +1072,7 @@ declare class OrgChart_2 {
|
|
|
1062
1072
|
* @param label link label
|
|
1063
1073
|
* @param template link template, for example 'orange'
|
|
1064
1074
|
*/
|
|
1065
|
-
addSlink(from: string | number, to: string | number, label?: string, template?: string):
|
|
1075
|
+
addSlink(from: string | number, to: string | number, label?: string, template?: string): OrgChartJS;
|
|
1066
1076
|
/**
|
|
1067
1077
|
* Removes second link.
|
|
1068
1078
|
* ```typescript
|
|
@@ -1074,7 +1084,7 @@ declare class OrgChart_2 {
|
|
|
1074
1084
|
* @param from from node with id
|
|
1075
1085
|
* @param to to node with id
|
|
1076
1086
|
*/
|
|
1077
|
-
removeSlink(from: string | number, to: string | number):
|
|
1087
|
+
removeSlink(from: string | number, to: string | number): OrgChartJS;
|
|
1078
1088
|
/**
|
|
1079
1089
|
* Gets svg html element
|
|
1080
1090
|
* ```typescript
|
|
@@ -1115,7 +1125,7 @@ declare class OrgChart_2 {
|
|
|
1115
1125
|
* @param filename The name of the exported file
|
|
1116
1126
|
* {@link https://balkan.app/OrgChartJS/Docs/ExportingOther#options | See doc...}
|
|
1117
1127
|
*/
|
|
1118
|
-
exportToCSV(filename?: string |
|
|
1128
|
+
exportToCSV(filename?: string | OrgChartJS.exportCSVXMLJSONOptions): void;
|
|
1119
1129
|
/**
|
|
1120
1130
|
* Exports to XML
|
|
1121
1131
|
* ```typescript
|
|
@@ -1126,7 +1136,7 @@ declare class OrgChart_2 {
|
|
|
1126
1136
|
* @param filename The name of the exported file
|
|
1127
1137
|
* {@link https://balkan.app/OrgChartJS/Docs/ExportingOther#options | See doc...}
|
|
1128
1138
|
*/
|
|
1129
|
-
exportToXML(filename: string |
|
|
1139
|
+
exportToXML(filename: string | OrgChartJS.exportCSVXMLJSONOptions): void;
|
|
1130
1140
|
/**
|
|
1131
1141
|
* Exports to JSON
|
|
1132
1142
|
* ```typescript
|
|
@@ -1137,7 +1147,7 @@ declare class OrgChart_2 {
|
|
|
1137
1147
|
* @param filename The name of the exported file
|
|
1138
1148
|
* {@link https://balkan.app/OrgChartJS/Docs/ExportingOther#options | See doc...}
|
|
1139
1149
|
*/
|
|
1140
|
-
exportToJSON(filename?: string |
|
|
1150
|
+
exportToJSON(filename?: string | OrgChartJS.exportCSVXMLJSONOptions ): void;
|
|
1141
1151
|
|
|
1142
1152
|
/**
|
|
1143
1153
|
* ```typescript
|
|
@@ -1161,11 +1171,11 @@ declare class OrgChart_2 {
|
|
|
1161
1171
|
* @param callback called when the export completes
|
|
1162
1172
|
* {@link https://balkan.app/OrgChartJS/Docs/ExportingOther | See doc...}
|
|
1163
1173
|
*/
|
|
1164
|
-
exportToVisio(options?:
|
|
1165
|
-
exportToPowerPoint(options?:
|
|
1166
|
-
exportToPDF(options?:
|
|
1167
|
-
exportToPNG(options?:
|
|
1168
|
-
exportToSVG(options?:
|
|
1174
|
+
exportToVisio(options?: OrgChartJS.exportVisioOptions, callback?: () => void): void;
|
|
1175
|
+
exportToPowerPoint(options?: OrgChartJS.exportPowerPointOptions, callback?: () => void): void;
|
|
1176
|
+
exportToPDF(options?: OrgChartJS.exportPDFOptions, callback?: () => void): void;
|
|
1177
|
+
exportToPNG(options?: OrgChartJS.exportPNGOptions, callback?: () => void): void;
|
|
1178
|
+
exportToSVG(options?: OrgChartJS.exportSVGOptions, callback?: () => void): void;
|
|
1169
1179
|
exportToPDFProfile(nodeId: number | string, callback?: () => void): void;
|
|
1170
1180
|
|
|
1171
1181
|
|
|
@@ -1229,7 +1239,7 @@ declare class OrgChart_2 {
|
|
|
1229
1239
|
* @param front show on front or back
|
|
1230
1240
|
* @param anim animation type
|
|
1231
1241
|
*/
|
|
1232
|
-
magnify(id: string | number, scale: number, front?: boolean, anim?:
|
|
1242
|
+
magnify(id: string | number, scale: number, front?: boolean, anim?: OrgChartJS.anim | null, callback?: () => void): void;
|
|
1233
1243
|
|
|
1234
1244
|
/**
|
|
1235
1245
|
* Starts the move
|
|
@@ -1243,7 +1253,7 @@ declare class OrgChart_2 {
|
|
|
1243
1253
|
* @param func the name of the animation function, for example OrgChart.anim.inSin
|
|
1244
1254
|
* @param duration duration before going to 100 percent speed
|
|
1245
1255
|
*/
|
|
1246
|
-
moveStart(movePosition:
|
|
1256
|
+
moveStart(movePosition: OrgChartJS.move, tick?: () => void, func?: OrgChartJS.anim, duration?: number): void;
|
|
1247
1257
|
|
|
1248
1258
|
/**
|
|
1249
1259
|
* Ends the move
|
|
@@ -1344,7 +1354,7 @@ declare class OrgChart_2 {
|
|
|
1344
1354
|
* let editUI = chart.editUI;
|
|
1345
1355
|
* ```
|
|
1346
1356
|
*/
|
|
1347
|
-
editUI:
|
|
1357
|
+
editUI: OrgChartJS.editUI;
|
|
1348
1358
|
|
|
1349
1359
|
/**
|
|
1350
1360
|
* The chart aiUI object.
|
|
@@ -1353,7 +1363,7 @@ declare class OrgChart_2 {
|
|
|
1353
1363
|
* let aiUI = chart.aiUI;
|
|
1354
1364
|
* ```
|
|
1355
1365
|
*/
|
|
1356
|
-
aiUI:
|
|
1366
|
+
aiUI: OrgChartJS.aiUI;
|
|
1357
1367
|
|
|
1358
1368
|
/**
|
|
1359
1369
|
* The chart orgScribeUI object.
|
|
@@ -1362,7 +1372,7 @@ declare class OrgChart_2 {
|
|
|
1362
1372
|
* let orgScribeUI = chart.orgScribeUI;
|
|
1363
1373
|
* ```
|
|
1364
1374
|
*/
|
|
1365
|
-
orgScribeUI:
|
|
1375
|
+
orgScribeUI: OrgChartJS.orgScribeUI;
|
|
1366
1376
|
|
|
1367
1377
|
/**
|
|
1368
1378
|
* The chart searchUI object.
|
|
@@ -1371,7 +1381,7 @@ declare class OrgChart_2 {
|
|
|
1371
1381
|
* let searchUI = chart.searchUI;
|
|
1372
1382
|
* ```
|
|
1373
1383
|
*/
|
|
1374
|
-
searchUI:
|
|
1384
|
+
searchUI: OrgChartJS.searchUI;
|
|
1375
1385
|
|
|
1376
1386
|
/**
|
|
1377
1387
|
* The chart nodeMenuUI object.
|
|
@@ -1380,13 +1390,13 @@ declare class OrgChart_2 {
|
|
|
1380
1390
|
* let nodeMenuUI = chart.nodeMenuUI;
|
|
1381
1391
|
* ```
|
|
1382
1392
|
*/
|
|
1383
|
-
nodeMenuUI:
|
|
1393
|
+
nodeMenuUI: OrgChartJS.menuUI;
|
|
1384
1394
|
|
|
1385
|
-
powerPointPreviewUI:
|
|
1395
|
+
powerPointPreviewUI: OrgChartJS.powerPointPreviewUI;
|
|
1386
1396
|
|
|
1387
|
-
pdfPreviewUI:
|
|
1388
|
-
svgPreviewUI:
|
|
1389
|
-
pngPreviewUI:
|
|
1397
|
+
pdfPreviewUI: OrgChartJS.pdfPreviewUI;
|
|
1398
|
+
svgPreviewUI: OrgChartJS.pngPreviewUI;
|
|
1399
|
+
pngPreviewUI: OrgChartJS.pngPreviewUI;
|
|
1390
1400
|
|
|
1391
1401
|
/**
|
|
1392
1402
|
* The chart filterUI object.
|
|
@@ -1395,17 +1405,17 @@ declare class OrgChart_2 {
|
|
|
1395
1405
|
* let filterUI = chart.filterUI;
|
|
1396
1406
|
* ```
|
|
1397
1407
|
*/
|
|
1398
|
-
filterUI:
|
|
1408
|
+
filterUI: OrgChartJS.filterUI;
|
|
1399
1409
|
|
|
1400
1410
|
/**
|
|
1401
1411
|
* @ignore
|
|
1402
1412
|
*/
|
|
1403
|
-
xScrollUI:
|
|
1413
|
+
xScrollUI: OrgChartJS.xScrollUI;
|
|
1404
1414
|
|
|
1405
1415
|
/**
|
|
1406
1416
|
* @ignore
|
|
1407
1417
|
*/
|
|
1408
|
-
yScrollUI:
|
|
1418
|
+
yScrollUI: OrgChartJS.yScrollUI;
|
|
1409
1419
|
|
|
1410
1420
|
/**
|
|
1411
1421
|
* The chart undoRedoUI object.
|
|
@@ -1414,7 +1424,7 @@ declare class OrgChart_2 {
|
|
|
1414
1424
|
* let undoRedoUI = chart.undoRedoUI;
|
|
1415
1425
|
* ```
|
|
1416
1426
|
*/
|
|
1417
|
-
undoRedoUI:
|
|
1427
|
+
undoRedoUI: OrgChartJS.undoRedoUI;
|
|
1418
1428
|
|
|
1419
1429
|
/**
|
|
1420
1430
|
* The chart nodeCircleMenuUI object.
|
|
@@ -1423,7 +1433,7 @@ declare class OrgChart_2 {
|
|
|
1423
1433
|
* let nodeCircleMenuUI = chart.nodeCircleMenuUI;
|
|
1424
1434
|
* ```
|
|
1425
1435
|
*/
|
|
1426
|
-
nodeCircleMenuUI:
|
|
1436
|
+
nodeCircleMenuUI: OrgChartJS.circleMenuUI;
|
|
1427
1437
|
|
|
1428
1438
|
/**
|
|
1429
1439
|
* The chart controlsUI object.
|
|
@@ -1432,7 +1442,7 @@ declare class OrgChart_2 {
|
|
|
1432
1442
|
* let controlsUI = chart.controlsUI;
|
|
1433
1443
|
* ```
|
|
1434
1444
|
*/
|
|
1435
|
-
controlsUI:
|
|
1445
|
+
controlsUI: OrgChartJS.controlsUI;
|
|
1436
1446
|
|
|
1437
1447
|
/**
|
|
1438
1448
|
* The chart nodeContextMenuUI object.
|
|
@@ -1441,7 +1451,7 @@ declare class OrgChart_2 {
|
|
|
1441
1451
|
* let nodeContextMenuUI = chart.nodeContextMenuUI;
|
|
1442
1452
|
* ```
|
|
1443
1453
|
*/
|
|
1444
|
-
nodeContextMenuUI:
|
|
1454
|
+
nodeContextMenuUI: OrgChartJS.menuUI;
|
|
1445
1455
|
|
|
1446
1456
|
/**
|
|
1447
1457
|
* The chart menuUI object.
|
|
@@ -1450,7 +1460,7 @@ declare class OrgChart_2 {
|
|
|
1450
1460
|
* let menuUI = chart.menuUI;
|
|
1451
1461
|
* ```
|
|
1452
1462
|
*/
|
|
1453
|
-
menuUI:
|
|
1463
|
+
menuUI: OrgChartJS.menuUI;
|
|
1454
1464
|
|
|
1455
1465
|
/**
|
|
1456
1466
|
* The chart toolbarUI object.
|
|
@@ -1459,7 +1469,7 @@ declare class OrgChart_2 {
|
|
|
1459
1469
|
* let toolbarUI = chart.toolbarUI;
|
|
1460
1470
|
* ```
|
|
1461
1471
|
*/
|
|
1462
|
-
toolbarUI:
|
|
1472
|
+
toolbarUI: OrgChartJS.toolbarUI;
|
|
1463
1473
|
|
|
1464
1474
|
/**
|
|
1465
1475
|
* The chart config object.
|
|
@@ -1468,7 +1478,7 @@ declare class OrgChart_2 {
|
|
|
1468
1478
|
* let config = chart.config;
|
|
1469
1479
|
* ```
|
|
1470
1480
|
*/
|
|
1471
|
-
config:
|
|
1481
|
+
config: OrgChartJS.options;
|
|
1472
1482
|
|
|
1473
1483
|
/**
|
|
1474
1484
|
* All root nodes in the chart
|
|
@@ -1480,7 +1490,7 @@ declare class OrgChart_2 {
|
|
|
1480
1490
|
* chart.load(nodes)
|
|
1481
1491
|
* ```
|
|
1482
1492
|
*/
|
|
1483
|
-
roots: Array<
|
|
1493
|
+
roots: Array<OrgChartJS.node>;
|
|
1484
1494
|
|
|
1485
1495
|
/**
|
|
1486
1496
|
* Opens file upload dialog
|
|
@@ -1528,7 +1538,7 @@ declare class OrgChart_2 {
|
|
|
1528
1538
|
* ```
|
|
1529
1539
|
* @param node
|
|
1530
1540
|
*/
|
|
1531
|
-
static getRootOf(node:
|
|
1541
|
+
static getRootOf(node: OrgChartJS.node): OrgChartJS.node;
|
|
1532
1542
|
|
|
1533
1543
|
/**
|
|
1534
1544
|
* is null, empty or undefined
|
|
@@ -1628,7 +1638,7 @@ declare class OrgChart_2 {
|
|
|
1628
1638
|
* @param chart
|
|
1629
1639
|
* @returns void
|
|
1630
1640
|
*/
|
|
1631
|
-
show: (chart:
|
|
1641
|
+
show: (chart: OrgChartJS) => void,
|
|
1632
1642
|
/**
|
|
1633
1643
|
* ```typescript
|
|
1634
1644
|
* let chart = new OrgChart('#tree', {});
|
|
@@ -1641,7 +1651,7 @@ declare class OrgChart_2 {
|
|
|
1641
1651
|
* @param chart
|
|
1642
1652
|
* @returns void
|
|
1643
1653
|
*/
|
|
1644
|
-
hide: (chart:
|
|
1654
|
+
hide: (chart: OrgChartJS) => void
|
|
1645
1655
|
}
|
|
1646
1656
|
/**
|
|
1647
1657
|
* ```typescript
|
|
@@ -1651,7 +1661,7 @@ declare class OrgChart_2 {
|
|
|
1651
1661
|
* ```
|
|
1652
1662
|
*/
|
|
1653
1663
|
static clinkTemplates: {
|
|
1654
|
-
[key: string]:
|
|
1664
|
+
[key: string]: OrgChartJS.linkTemplate
|
|
1655
1665
|
}
|
|
1656
1666
|
/**
|
|
1657
1667
|
* ```typescript
|
|
@@ -1661,7 +1671,7 @@ declare class OrgChart_2 {
|
|
|
1661
1671
|
* ```
|
|
1662
1672
|
*/
|
|
1663
1673
|
static slinkTemplates: {
|
|
1664
|
-
[key: string]:
|
|
1674
|
+
[key: string]: OrgChartJS.linkTemplate
|
|
1665
1675
|
}
|
|
1666
1676
|
|
|
1667
1677
|
/**
|
|
@@ -1671,7 +1681,7 @@ declare class OrgChart_2 {
|
|
|
1671
1681
|
* `<rect x="0" y="0" height="80" width="300" fill="#039BE5" stroke-width="1" stroke="#686868" rx="40" ry="40"></rect>`;
|
|
1672
1682
|
* ```
|
|
1673
1683
|
*/
|
|
1674
|
-
static templates: { [key: string]:
|
|
1684
|
+
static templates: { [key: string]: OrgChartJS.template} ;
|
|
1675
1685
|
|
|
1676
1686
|
|
|
1677
1687
|
/**
|
|
@@ -1731,7 +1741,7 @@ declare class OrgChart_2 {
|
|
|
1731
1741
|
* @param func - funcition to animate with
|
|
1732
1742
|
* @param callback - callback function
|
|
1733
1743
|
*/
|
|
1734
|
-
static animate(element: Object, attrStart?: Object, attrEnd?: Object, duration?: number, func?:
|
|
1744
|
+
static animate(element: Object, attrStart?: Object, attrEnd?: Object, duration?: number, func?: OrgChartJS.anim, callback?: Function, tick?: Function): void;
|
|
1735
1745
|
|
|
1736
1746
|
/**
|
|
1737
1747
|
* Minimap options.
|
|
@@ -1764,7 +1774,13 @@ declare class OrgChart_2 {
|
|
|
1764
1774
|
position: Object
|
|
1765
1775
|
};
|
|
1766
1776
|
|
|
1767
|
-
|
|
1777
|
+
/**
|
|
1778
|
+
* OrgChart version
|
|
1779
|
+
* ```typescript
|
|
1780
|
+
* OrgChart.VERSION;
|
|
1781
|
+
* ```
|
|
1782
|
+
*/
|
|
1783
|
+
static VERSION: string;
|
|
1768
1784
|
/**
|
|
1769
1785
|
* @ignore
|
|
1770
1786
|
*/
|
|
@@ -2128,22 +2144,19 @@ declare class OrgChart_2 {
|
|
|
2128
2144
|
static grCloseTag: any;
|
|
2129
2145
|
}
|
|
2130
2146
|
|
|
2131
|
-
declare namespace
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
interface updateNodeEventArgs{
|
|
2147
|
+
export declare namespace OrgChartJS {
|
|
2148
|
+
export interface updateNodeEventArgs{
|
|
2136
2149
|
/**
|
|
2137
2150
|
* old node data
|
|
2138
2151
|
*/
|
|
2139
|
-
oldData:
|
|
2152
|
+
oldData: OrgChartJS.nodeData,
|
|
2140
2153
|
/**
|
|
2141
2154
|
* new node data
|
|
2142
2155
|
*/
|
|
2143
|
-
newData:
|
|
2156
|
+
newData: OrgChartJS.nodeData
|
|
2144
2157
|
}
|
|
2145
2158
|
|
|
2146
|
-
interface removeNodeEventArgs{
|
|
2159
|
+
export interface removeNodeEventArgs{
|
|
2147
2160
|
/**
|
|
2148
2161
|
* node id
|
|
2149
2162
|
*/
|
|
@@ -2157,14 +2170,14 @@ declare namespace OrgChart_2 {
|
|
|
2157
2170
|
}
|
|
2158
2171
|
}
|
|
2159
2172
|
|
|
2160
|
-
interface addNodeEventArgs{
|
|
2173
|
+
export interface addNodeEventArgs{
|
|
2161
2174
|
/**
|
|
2162
2175
|
* new added data node
|
|
2163
2176
|
*/
|
|
2164
|
-
data:
|
|
2177
|
+
data: OrgChartJS.nodeData
|
|
2165
2178
|
}
|
|
2166
2179
|
|
|
2167
|
-
interface dragEventArgs{
|
|
2180
|
+
export interface dragEventArgs{
|
|
2168
2181
|
/**
|
|
2169
2182
|
* dragged node id
|
|
2170
2183
|
*/
|
|
@@ -2178,7 +2191,7 @@ declare namespace OrgChart_2 {
|
|
|
2178
2191
|
nodeIds: Array<string | number>
|
|
2179
2192
|
}
|
|
2180
2193
|
|
|
2181
|
-
interface dropEventArgs{
|
|
2194
|
+
export interface dropEventArgs{
|
|
2182
2195
|
/**
|
|
2183
2196
|
* dragged node id
|
|
2184
2197
|
*/
|
|
@@ -2197,7 +2210,7 @@ declare namespace OrgChart_2 {
|
|
|
2197
2210
|
event: MouseEvent
|
|
2198
2211
|
}
|
|
2199
2212
|
|
|
2200
|
-
interface expandCollapseButtonClickEventArgs{
|
|
2213
|
+
export interface expandCollapseButtonClickEventArgs{
|
|
2201
2214
|
/**
|
|
2202
2215
|
* Indicates id the operation is collaps or expand
|
|
2203
2216
|
*/
|
|
@@ -2212,7 +2225,7 @@ declare namespace OrgChart_2 {
|
|
|
2212
2225
|
ids: Array<number | string>
|
|
2213
2226
|
}
|
|
2214
2227
|
|
|
2215
|
-
interface exportStartEventArgs {
|
|
2228
|
+
export interface exportStartEventArgs {
|
|
2216
2229
|
options: {
|
|
2217
2230
|
childLevels?: number,
|
|
2218
2231
|
expandChildren?: boolean,
|
|
@@ -2229,7 +2242,7 @@ declare namespace OrgChart_2 {
|
|
|
2229
2242
|
parentLevels?: number,
|
|
2230
2243
|
type?: string,
|
|
2231
2244
|
pages?: Array<{
|
|
2232
|
-
chartInstance?:
|
|
2245
|
+
chartInstance?: OrgChartJS,
|
|
2233
2246
|
childLevels?: number,
|
|
2234
2247
|
expandChildren?: boolean,
|
|
2235
2248
|
footer?: string,
|
|
@@ -2252,7 +2265,7 @@ declare namespace OrgChart_2 {
|
|
|
2252
2265
|
/**
|
|
2253
2266
|
* for PDF/PNG
|
|
2254
2267
|
*/
|
|
2255
|
-
interface exportEndEventArgs {
|
|
2268
|
+
export interface exportEndEventArgs {
|
|
2256
2269
|
/**
|
|
2257
2270
|
* the array buffer is the exported document, you can save it on a server or send it via email
|
|
2258
2271
|
*
|
|
@@ -2291,11 +2304,11 @@ declare namespace OrgChart_2 {
|
|
|
2291
2304
|
styles: string,
|
|
2292
2305
|
}
|
|
2293
2306
|
|
|
2294
|
-
interface nodeClickEventArgs {
|
|
2307
|
+
export interface nodeClickEventArgs {
|
|
2295
2308
|
/**
|
|
2296
2309
|
* node JSON object
|
|
2297
2310
|
*/
|
|
2298
|
-
node:
|
|
2311
|
+
node: OrgChartJS.node,
|
|
2299
2312
|
/**
|
|
2300
2313
|
* the browser event
|
|
2301
2314
|
*/
|
|
@@ -2303,7 +2316,7 @@ declare namespace OrgChart_2 {
|
|
|
2303
2316
|
}
|
|
2304
2317
|
|
|
2305
2318
|
|
|
2306
|
-
interface canvasClickEventArgs {
|
|
2319
|
+
export interface canvasClickEventArgs {
|
|
2307
2320
|
/**
|
|
2308
2321
|
* the browser event
|
|
2309
2322
|
*/
|
|
@@ -2311,7 +2324,7 @@ declare namespace OrgChart_2 {
|
|
|
2311
2324
|
}
|
|
2312
2325
|
|
|
2313
2326
|
|
|
2314
|
-
interface aiToolCallsEventArgs {
|
|
2327
|
+
export interface aiToolCallsEventArgs {
|
|
2315
2328
|
toolCalls: Array<{
|
|
2316
2329
|
FunctionName : string,
|
|
2317
2330
|
FunctionResult : string,
|
|
@@ -2320,7 +2333,7 @@ declare namespace OrgChart_2 {
|
|
|
2320
2333
|
}
|
|
2321
2334
|
|
|
2322
2335
|
|
|
2323
|
-
interface nodeDoubleClickEventArgs {
|
|
2336
|
+
export interface nodeDoubleClickEventArgs {
|
|
2324
2337
|
/**
|
|
2325
2338
|
* clicked node data
|
|
2326
2339
|
*/
|
|
@@ -2334,7 +2347,7 @@ declare namespace OrgChart_2 {
|
|
|
2334
2347
|
* { id: 2, pid: 1, tags: ["HR"], name: "Anna Smith" }
|
|
2335
2348
|
* ```
|
|
2336
2349
|
*/
|
|
2337
|
-
interface nodeData {
|
|
2350
|
+
export interface nodeData {
|
|
2338
2351
|
|
|
2339
2352
|
/**
|
|
2340
2353
|
* the id of the node
|
|
@@ -2356,6 +2369,11 @@ declare namespace OrgChart_2 {
|
|
|
2356
2369
|
*/
|
|
2357
2370
|
stpid?: number | string,
|
|
2358
2371
|
|
|
2372
|
+
/**
|
|
2373
|
+
* The template name associated with the specified node.
|
|
2374
|
+
*/
|
|
2375
|
+
template?: string,
|
|
2376
|
+
|
|
2359
2377
|
/**
|
|
2360
2378
|
* Set custom configuration for the tagged node
|
|
2361
2379
|
*{@link https://balkan.app/OrgChartJS/Docs/Tags | See Tags doc page...}
|
|
@@ -2409,7 +2427,7 @@ declare namespace OrgChart_2 {
|
|
|
2409
2427
|
*/
|
|
2410
2428
|
const treeRightOffset: any;
|
|
2411
2429
|
|
|
2412
|
-
interface options {
|
|
2430
|
+
export interface options {
|
|
2413
2431
|
/**
|
|
2414
2432
|
* With the drag and drop features enabled you can move nodes easily and change the tree structure. Default value - *false*.
|
|
2415
2433
|
* ```typescript
|
|
@@ -2476,7 +2494,7 @@ declare namespace OrgChart_2 {
|
|
|
2476
2494
|
* chart.load(nodes)
|
|
2477
2495
|
* ```
|
|
2478
2496
|
*/
|
|
2479
|
-
interface node {
|
|
2497
|
+
export interface node {
|
|
2480
2498
|
/**
|
|
2481
2499
|
* the same id you provided in the source node
|
|
2482
2500
|
*/
|
|
@@ -2662,7 +2680,7 @@ declare namespace OrgChart_2 {
|
|
|
2662
2680
|
* OrgChart.templates.myTemplate = Object.assign({}, OrgChart.templates.ana);
|
|
2663
2681
|
* ```
|
|
2664
2682
|
*/
|
|
2665
|
-
interface template
|
|
2683
|
+
export interface template
|
|
2666
2684
|
{
|
|
2667
2685
|
/**
|
|
2668
2686
|
* SVG <defs?> of the template
|
|
@@ -2685,6 +2703,26 @@ declare namespace OrgChart_2 {
|
|
|
2685
2703
|
*/
|
|
2686
2704
|
size?: Array<number>,
|
|
2687
2705
|
|
|
2706
|
+
/**
|
|
2707
|
+
* Inner spacing around the node content area.
|
|
2708
|
+
*
|
|
2709
|
+
* Order of values:
|
|
2710
|
+
* [top, right, bottom, left]
|
|
2711
|
+
*
|
|
2712
|
+
* Example:
|
|
2713
|
+
* OrgChart.templates.myTemplate.padding = [10, 15, 10, 15];
|
|
2714
|
+
*
|
|
2715
|
+
* Meaning:
|
|
2716
|
+
* - top: 10px
|
|
2717
|
+
* - right: 15px
|
|
2718
|
+
* - bottom: 10px
|
|
2719
|
+
* - left: 15px
|
|
2720
|
+
*
|
|
2721
|
+
* Use this to prevent content from touching the edges of the node
|
|
2722
|
+
* and to control internal layout spacing.
|
|
2723
|
+
*/
|
|
2724
|
+
padding?: [number, number, number, number],
|
|
2725
|
+
|
|
2688
2726
|
/**
|
|
2689
2727
|
* Size of the expandCollapse button
|
|
2690
2728
|
* ```typescript
|
|
@@ -2724,19 +2762,9 @@ declare namespace OrgChart_2 {
|
|
|
2724
2762
|
ripple?: {
|
|
2725
2763
|
radius?: number,
|
|
2726
2764
|
color?: string,
|
|
2727
|
-
rect?:
|
|
2765
|
+
rect?: { x: number, y: number, width: number, height: number }
|
|
2728
2766
|
},
|
|
2729
2767
|
|
|
2730
|
-
/**
|
|
2731
|
-
* Assistance link
|
|
2732
|
-
* ```typescript
|
|
2733
|
-
* OrgChart.templates.myTemplate.assistanseLink =
|
|
2734
|
-
* `<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="2px" fill="none"
|
|
2735
|
-
* d="M{xa},{ya} {xb},{yb} {xc},{yc} {xd},{yd} L{xe},{ye}" />`;
|
|
2736
|
-
* }
|
|
2737
|
-
* ```
|
|
2738
|
-
*/
|
|
2739
|
-
assistanseLink?: string,
|
|
2740
2768
|
|
|
2741
2769
|
/**
|
|
2742
2770
|
* Template main svg definition
|
|
@@ -2781,7 +2809,7 @@ declare namespace OrgChart_2 {
|
|
|
2781
2809
|
* `<rect x="0" y="0" height="{h}" width="{w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>`;
|
|
2782
2810
|
* ```
|
|
2783
2811
|
*/
|
|
2784
|
-
node?: string | ((node:
|
|
2812
|
+
node?: string | ((node: OrgChartJS.node, data: OrgChartJS.nodeData, template: OrgChartJS.template, config: OrgChartJS.options) => string),
|
|
2785
2813
|
|
|
2786
2814
|
/**
|
|
2787
2815
|
* Plus/expand button
|
|
@@ -2792,7 +2820,7 @@ declare namespace OrgChart_2 {
|
|
|
2792
2820
|
* <line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#aeaeae"></line>`;
|
|
2793
2821
|
* ```
|
|
2794
2822
|
*/
|
|
2795
|
-
plus?: string | ((node:
|
|
2823
|
+
plus?: string | ((node: OrgChartJS.node, data: OrgChartJS.nodeData, template: OrgChartJS.template, config: OrgChartJS.options) => string),
|
|
2796
2824
|
|
|
2797
2825
|
/**
|
|
2798
2826
|
* Minus/collapse button
|
|
@@ -2802,7 +2830,7 @@ declare namespace OrgChart_2 {
|
|
|
2802
2830
|
* <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line>`;
|
|
2803
2831
|
* ```
|
|
2804
2832
|
*/
|
|
2805
|
-
minus?: string | ((node:
|
|
2833
|
+
minus?: string | ((node: OrgChartJS.node, data: OrgChartJS.nodeData, template: OrgChartJS.template, config: OrgChartJS.options) => string),
|
|
2806
2834
|
|
|
2807
2835
|
/**
|
|
2808
2836
|
* Node menu button
|
|
@@ -2815,7 +2843,7 @@ declare namespace OrgChart_2 {
|
|
|
2815
2843
|
* </g>`;
|
|
2816
2844
|
* ```
|
|
2817
2845
|
*/
|
|
2818
|
-
nodeMenuButton?: string | ((node:
|
|
2846
|
+
nodeMenuButton?: string | ((node: OrgChartJS.node, data: OrgChartJS.nodeData, template: OrgChartJS.template, config: OrgChartJS.options) => string),
|
|
2819
2847
|
|
|
2820
2848
|
/**
|
|
2821
2849
|
* Menu button
|
|
@@ -2839,7 +2867,7 @@ declare namespace OrgChart_2 {
|
|
|
2839
2867
|
* </image>`;
|
|
2840
2868
|
* ```
|
|
2841
2869
|
*/
|
|
2842
|
-
img_0?: string | ((node:
|
|
2870
|
+
img_0?: string | ((node: OrgChartJS.node, data: OrgChartJS.nodeData, template: OrgChartJS.template, config: OrgChartJS.options) => string),
|
|
2843
2871
|
|
|
2844
2872
|
/**
|
|
2845
2873
|
* Link label
|
|
@@ -2883,7 +2911,7 @@ declare namespace OrgChart_2 {
|
|
|
2883
2911
|
* OrgChart.templates.myTemplate.min.field_1 = "";
|
|
2884
2912
|
* ```
|
|
2885
2913
|
*/
|
|
2886
|
-
min?:
|
|
2914
|
+
min?: OrgChartJS.template,
|
|
2887
2915
|
|
|
2888
2916
|
|
|
2889
2917
|
/**
|
|
@@ -2919,12 +2947,12 @@ declare namespace OrgChart_2 {
|
|
|
2919
2947
|
* chart.load(nodes)
|
|
2920
2948
|
* ```
|
|
2921
2949
|
*/
|
|
2922
|
-
interface editUI {
|
|
2950
|
+
export interface editUI {
|
|
2923
2951
|
/**
|
|
2924
2952
|
* Inits edit ui
|
|
2925
2953
|
* @param obj
|
|
2926
2954
|
*/
|
|
2927
|
-
init(obj:
|
|
2955
|
+
init(obj: OrgChartJS): void;
|
|
2928
2956
|
/**
|
|
2929
2957
|
* The on() method of the editUI interface sets up a function that will be called whenever the specified event is delivered to the target. *
|
|
2930
2958
|
* @category Event Listeners
|
|
@@ -2961,7 +2989,7 @@ declare namespace OrgChart_2 {
|
|
|
2961
2989
|
* chart.load(nodes)
|
|
2962
2990
|
* ```
|
|
2963
2991
|
*/
|
|
2964
|
-
interface aiUI {
|
|
2992
|
+
export interface aiUI {
|
|
2965
2993
|
/**
|
|
2966
2994
|
* The width of the ai UI
|
|
2967
2995
|
*/
|
|
@@ -2974,7 +3002,7 @@ declare namespace OrgChart_2 {
|
|
|
2974
3002
|
* Inits ai ui
|
|
2975
3003
|
* @param obj
|
|
2976
3004
|
*/
|
|
2977
|
-
init(obj:
|
|
3005
|
+
init(obj: OrgChartJS): void;
|
|
2978
3006
|
/**
|
|
2979
3007
|
* Shows the ai form
|
|
2980
3008
|
* @param dontFocus if true the imput will not be focused
|
|
@@ -3002,7 +3030,7 @@ declare namespace OrgChart_2 {
|
|
|
3002
3030
|
* chart.load(nodes)
|
|
3003
3031
|
* ```
|
|
3004
3032
|
*/
|
|
3005
|
-
interface orgScribeUI {
|
|
3033
|
+
export interface orgScribeUI {
|
|
3006
3034
|
/**
|
|
3007
3035
|
* The width of the orgscribe UI
|
|
3008
3036
|
*/
|
|
@@ -3015,7 +3043,7 @@ declare namespace OrgChart_2 {
|
|
|
3015
3043
|
* Inits orgscribe ui
|
|
3016
3044
|
* @param obj
|
|
3017
3045
|
*/
|
|
3018
|
-
init(obj:
|
|
3046
|
+
init(obj: OrgChartJS): void;
|
|
3019
3047
|
/**
|
|
3020
3048
|
* Shows the orgscribe form
|
|
3021
3049
|
* @param dontFocus if true the imput will not be focused
|
|
@@ -3032,11 +3060,11 @@ declare namespace OrgChart_2 {
|
|
|
3032
3060
|
isVisible(): boolean;
|
|
3033
3061
|
}
|
|
3034
3062
|
|
|
3035
|
-
interface searchUI {
|
|
3063
|
+
export interface searchUI {
|
|
3036
3064
|
/**
|
|
3037
3065
|
* @ignore
|
|
3038
3066
|
*/
|
|
3039
|
-
init(obj:
|
|
3067
|
+
init(obj: OrgChartJS): void;
|
|
3040
3068
|
|
|
3041
3069
|
/**
|
|
3042
3070
|
* The on() method of the searchUI interface sets up a function that will be called whenever the specified event is delivered to the target. *
|
|
@@ -3131,7 +3159,7 @@ declare namespace OrgChart_2 {
|
|
|
3131
3159
|
/**
|
|
3132
3160
|
* @ignore
|
|
3133
3161
|
*/
|
|
3134
|
-
instance:
|
|
3162
|
+
instance: OrgChartJS;
|
|
3135
3163
|
/**
|
|
3136
3164
|
* @ignore
|
|
3137
3165
|
*/
|
|
@@ -3139,11 +3167,11 @@ declare namespace OrgChart_2 {
|
|
|
3139
3167
|
}
|
|
3140
3168
|
|
|
3141
3169
|
|
|
3142
|
-
interface filterUI {
|
|
3170
|
+
export interface filterUI {
|
|
3143
3171
|
/**
|
|
3144
3172
|
* @ignore
|
|
3145
3173
|
*/
|
|
3146
|
-
init(instance:
|
|
3174
|
+
init(instance: OrgChartJS): void;
|
|
3147
3175
|
|
|
3148
3176
|
/**
|
|
3149
3177
|
* @ignore
|
|
@@ -3225,13 +3253,13 @@ declare namespace OrgChart_2 {
|
|
|
3225
3253
|
/**
|
|
3226
3254
|
* @ignore
|
|
3227
3255
|
*/
|
|
3228
|
-
instance:
|
|
3256
|
+
instance: OrgChartJS;
|
|
3229
3257
|
}
|
|
3230
3258
|
|
|
3231
3259
|
/**
|
|
3232
3260
|
* @ignore
|
|
3233
3261
|
*/
|
|
3234
|
-
interface xScrollUI {
|
|
3262
|
+
export interface xScrollUI {
|
|
3235
3263
|
addListener(svg: HTMLElement): void;
|
|
3236
3264
|
create(width: number): void;
|
|
3237
3265
|
setPosition(width: number): void;
|
|
@@ -3242,7 +3270,7 @@ declare namespace OrgChart_2 {
|
|
|
3242
3270
|
/**
|
|
3243
3271
|
* @ignore
|
|
3244
3272
|
*/
|
|
3245
|
-
interface yScrollUI {
|
|
3273
|
+
export interface yScrollUI {
|
|
3246
3274
|
addListener(svg: HTMLElement): void;
|
|
3247
3275
|
create(width: number): void;
|
|
3248
3276
|
setPosition(width: number): void;
|
|
@@ -3262,8 +3290,8 @@ declare namespace OrgChart_2 {
|
|
|
3262
3290
|
* chart.load(nodes)
|
|
3263
3291
|
* ```
|
|
3264
3292
|
*/
|
|
3265
|
-
interface menuUI {
|
|
3266
|
-
init(obj:
|
|
3293
|
+
export interface menuUI {
|
|
3294
|
+
init(obj: OrgChartJS, menu: { [key: string]: menu }): void;
|
|
3267
3295
|
/**
|
|
3268
3296
|
* The on() method of the menuUI interface sets up a function that will be called whenever the specified event is delivered to the target. *
|
|
3269
3297
|
* @category Event Listeners
|
|
@@ -3311,8 +3339,8 @@ declare namespace OrgChart_2 {
|
|
|
3311
3339
|
* chart.load(nodes)
|
|
3312
3340
|
* ```
|
|
3313
3341
|
*/
|
|
3314
|
-
interface controlsUI {
|
|
3315
|
-
init(obj:
|
|
3342
|
+
export interface controlsUI {
|
|
3343
|
+
init(obj: OrgChartJS): void;
|
|
3316
3344
|
|
|
3317
3345
|
/**
|
|
3318
3346
|
* Hieds controls
|
|
@@ -3324,14 +3352,14 @@ declare namespace OrgChart_2 {
|
|
|
3324
3352
|
show(): void;
|
|
3325
3353
|
}
|
|
3326
3354
|
|
|
3327
|
-
interface powerPointPreviewUI {
|
|
3355
|
+
export interface powerPointPreviewUI {
|
|
3328
3356
|
/**
|
|
3329
3357
|
* The width of the EXPORT UI
|
|
3330
3358
|
*/
|
|
3331
3359
|
get width(): number;
|
|
3332
|
-
get instance():
|
|
3333
|
-
get options():
|
|
3334
|
-
get selectedPage():
|
|
3360
|
+
get instance(): OrgChartJS;
|
|
3361
|
+
get options(): OrgChartJS.exportPowerPointOptions;
|
|
3362
|
+
get selectedPage(): OrgChartJS.exportPowerPointPage;
|
|
3335
3363
|
|
|
3336
3364
|
locExport: string;
|
|
3337
3365
|
locCancel: string;
|
|
@@ -3362,25 +3390,25 @@ declare namespace OrgChart_2 {
|
|
|
3362
3390
|
addNewPage: boolean;
|
|
3363
3391
|
},
|
|
3364
3392
|
|
|
3365
|
-
init(obj:
|
|
3393
|
+
init(obj: OrgChartJS): void;
|
|
3366
3394
|
refresh(): void;
|
|
3367
3395
|
isVisible(): boolean;
|
|
3368
3396
|
hide(): void;
|
|
3369
|
-
show(options:
|
|
3397
|
+
show(options: OrgChartJS.exportPowerPointOptions): void;
|
|
3370
3398
|
|
|
3371
3399
|
selectPage(index: number) : void;
|
|
3372
3400
|
removePage(index: number) : void;
|
|
3373
|
-
addPage(page:
|
|
3401
|
+
addPage(page: OrgChartJS.exportPowerPointPage) : void;
|
|
3374
3402
|
}
|
|
3375
3403
|
|
|
3376
|
-
interface pdfPreviewUI {
|
|
3404
|
+
export interface pdfPreviewUI {
|
|
3377
3405
|
/**
|
|
3378
3406
|
* The width of the EXPORT UI
|
|
3379
3407
|
*/
|
|
3380
3408
|
get width(): number;
|
|
3381
|
-
get instance():
|
|
3382
|
-
get options():
|
|
3383
|
-
get selectedPage():
|
|
3409
|
+
get instance(): OrgChartJS;
|
|
3410
|
+
get options(): OrgChartJS.exportPDFOptions;
|
|
3411
|
+
get selectedPage(): OrgChartJS.exportPDFPage;
|
|
3384
3412
|
|
|
3385
3413
|
locExport: string;
|
|
3386
3414
|
locCancel: string;
|
|
@@ -3420,28 +3448,28 @@ declare namespace OrgChart_2 {
|
|
|
3420
3448
|
landscapePortrait: boolean;
|
|
3421
3449
|
},
|
|
3422
3450
|
|
|
3423
|
-
init(obj:
|
|
3451
|
+
init(obj: OrgChartJS): void;
|
|
3424
3452
|
refresh(): void;
|
|
3425
3453
|
isVisible(): boolean;
|
|
3426
3454
|
hide(): void;
|
|
3427
|
-
show(options:
|
|
3455
|
+
show(options: OrgChartJS.exportPDFOptions): void;
|
|
3428
3456
|
|
|
3429
3457
|
selectPage(index: number) : void;
|
|
3430
3458
|
removePage(index: number) : void;
|
|
3431
3459
|
toggelePrintTreeOrProfile() : void;
|
|
3432
3460
|
toggleLanscape(): void;
|
|
3433
|
-
addPage(page:
|
|
3461
|
+
addPage(page: OrgChartJS.exportPDFPage) : void;
|
|
3434
3462
|
}
|
|
3435
3463
|
|
|
3436
3464
|
|
|
3437
|
-
interface pngPreviewUI {
|
|
3465
|
+
export interface pngPreviewUI {
|
|
3438
3466
|
/**
|
|
3439
3467
|
* The width of the EXPORT UI
|
|
3440
3468
|
*/
|
|
3441
3469
|
get width(): number;
|
|
3442
|
-
get instance():
|
|
3443
|
-
get options():
|
|
3444
|
-
get selectedPage():
|
|
3470
|
+
get instance(): OrgChartJS;
|
|
3471
|
+
get options(): OrgChartJS.exportPNGOptions;
|
|
3472
|
+
get selectedPage(): OrgChartJS.exportPNGPage;
|
|
3445
3473
|
|
|
3446
3474
|
|
|
3447
3475
|
locExport: string;
|
|
@@ -3473,27 +3501,27 @@ declare namespace OrgChart_2 {
|
|
|
3473
3501
|
addNewPage: boolean;
|
|
3474
3502
|
},
|
|
3475
3503
|
|
|
3476
|
-
init(obj:
|
|
3504
|
+
init(obj: OrgChartJS): void;
|
|
3477
3505
|
refresh(): void;
|
|
3478
3506
|
isVisible(): boolean;
|
|
3479
3507
|
hide(): void;
|
|
3480
|
-
show(options:
|
|
3508
|
+
show(options: OrgChartJS.exportPNGOptions): void;
|
|
3481
3509
|
selectPage(index: number) : void;
|
|
3482
3510
|
removePage(index: number) : void;
|
|
3483
|
-
addPage(page:
|
|
3511
|
+
addPage(page: OrgChartJS.exportPNGPage) : void;
|
|
3484
3512
|
}
|
|
3485
3513
|
|
|
3486
3514
|
|
|
3487
3515
|
|
|
3488
3516
|
|
|
3489
|
-
interface svgPreviewUI {
|
|
3517
|
+
export interface svgPreviewUI {
|
|
3490
3518
|
/**
|
|
3491
3519
|
* The width of the EXPORT UI
|
|
3492
3520
|
*/
|
|
3493
3521
|
get width(): number;
|
|
3494
|
-
get instance():
|
|
3495
|
-
get options():
|
|
3496
|
-
get selectedPage():
|
|
3522
|
+
get instance(): OrgChartJS;
|
|
3523
|
+
get options(): OrgChartJS.exportPNGOptions;
|
|
3524
|
+
get selectedPage(): OrgChartJS.exportPNGPage;
|
|
3497
3525
|
|
|
3498
3526
|
|
|
3499
3527
|
locExport: string;
|
|
@@ -3525,14 +3553,14 @@ declare namespace OrgChart_2 {
|
|
|
3525
3553
|
addNewPage: boolean;
|
|
3526
3554
|
},
|
|
3527
3555
|
|
|
3528
|
-
init(obj:
|
|
3556
|
+
init(obj: OrgChartJS): void;
|
|
3529
3557
|
refresh(): void;
|
|
3530
3558
|
isVisible(): boolean;
|
|
3531
3559
|
hide(): void;
|
|
3532
|
-
show(options:
|
|
3560
|
+
show(options: OrgChartJS.exportPNGOptions): void;
|
|
3533
3561
|
selectPage(index: number) : void;
|
|
3534
3562
|
removePage(index: number) : void;
|
|
3535
|
-
addPage(page:
|
|
3563
|
+
addPage(page: OrgChartJS.exportSVGPage) : void;
|
|
3536
3564
|
}
|
|
3537
3565
|
|
|
3538
3566
|
/**
|
|
@@ -3544,13 +3572,13 @@ declare namespace OrgChart_2 {
|
|
|
3544
3572
|
* });
|
|
3545
3573
|
* ```
|
|
3546
3574
|
*/
|
|
3547
|
-
interface circleMenuUI {
|
|
3575
|
+
export interface circleMenuUI {
|
|
3548
3576
|
/**
|
|
3549
3577
|
* Inits circle menu instance
|
|
3550
3578
|
* @param obj
|
|
3551
3579
|
* @param menu
|
|
3552
3580
|
*/
|
|
3553
|
-
init(obj:
|
|
3581
|
+
init(obj: OrgChartJS, menu: { [key: string]: menu }): void;
|
|
3554
3582
|
/**
|
|
3555
3583
|
* Shows circle menu
|
|
3556
3584
|
*
|
|
@@ -3578,13 +3606,13 @@ declare namespace OrgChart_2 {
|
|
|
3578
3606
|
on(type: "click" | "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args: any, args1: any, args2: any) => void | boolean): circleMenuUI;
|
|
3579
3607
|
}
|
|
3580
3608
|
|
|
3581
|
-
interface undoRedoUI {
|
|
3609
|
+
export interface undoRedoUI {
|
|
3582
3610
|
/**
|
|
3583
3611
|
* Inits undoRedoUI
|
|
3584
3612
|
* @ignore
|
|
3585
3613
|
* @param instance
|
|
3586
3614
|
*/
|
|
3587
|
-
init(instance:
|
|
3615
|
+
init(instance: OrgChartJS): void;
|
|
3588
3616
|
/**
|
|
3589
3617
|
* Refreshes the UI buttonss
|
|
3590
3618
|
* @ignore
|
|
@@ -3615,12 +3643,12 @@ declare namespace OrgChart_2 {
|
|
|
3615
3643
|
*/
|
|
3616
3644
|
redoStepsCount: number
|
|
3617
3645
|
}) => void): undoRedoUI;
|
|
3618
|
-
instance:
|
|
3646
|
+
instance: OrgChartJS;
|
|
3619
3647
|
}
|
|
3620
3648
|
|
|
3621
3649
|
|
|
3622
3650
|
|
|
3623
|
-
interface keyNavigation {
|
|
3651
|
+
export interface keyNavigation {
|
|
3624
3652
|
/**
|
|
3625
3653
|
* Set focus to specified id on initial load
|
|
3626
3654
|
* ```typescript
|
|
@@ -3637,13 +3665,13 @@ declare namespace OrgChart_2 {
|
|
|
3637
3665
|
/**
|
|
3638
3666
|
* Toolbar UI
|
|
3639
3667
|
*/
|
|
3640
|
-
interface toolbarUI {
|
|
3668
|
+
export interface toolbarUI {
|
|
3641
3669
|
/**
|
|
3642
3670
|
* @ignore
|
|
3643
3671
|
* @param obj
|
|
3644
3672
|
* @param toolbar
|
|
3645
3673
|
*/
|
|
3646
|
-
init(obj:
|
|
3674
|
+
init(obj: OrgChartJS, toolbar: toolbar): void;
|
|
3647
3675
|
|
|
3648
3676
|
/**
|
|
3649
3677
|
* Shows the layout
|
|
@@ -3804,7 +3832,7 @@ declare namespace OrgChart_2 {
|
|
|
3804
3832
|
* ```
|
|
3805
3833
|
* [Go to AI doc page for more details](https://balkan.app/OrgChartJS/Docs/AI)
|
|
3806
3834
|
*/
|
|
3807
|
-
interface aiChatTool {
|
|
3835
|
+
export interface aiChatTool {
|
|
3808
3836
|
/**
|
|
3809
3837
|
* The unique identifier for the function within the API call.
|
|
3810
3838
|
*/
|
|
@@ -3848,7 +3876,7 @@ declare namespace OrgChart_2 {
|
|
|
3848
3876
|
*
|
|
3849
3877
|
* For better experiense please use the new feature Controls instead of Toolbars.
|
|
3850
3878
|
*/
|
|
3851
|
-
interface toolbar {
|
|
3879
|
+
export interface toolbar {
|
|
3852
3880
|
|
|
3853
3881
|
/**
|
|
3854
3882
|
* Shows the layout options
|
|
@@ -3915,7 +3943,7 @@ declare namespace OrgChart_2 {
|
|
|
3915
3943
|
/**
|
|
3916
3944
|
* miniMap options
|
|
3917
3945
|
*/
|
|
3918
|
-
interface miniMap {
|
|
3946
|
+
export interface miniMap {
|
|
3919
3947
|
|
|
3920
3948
|
/**
|
|
3921
3949
|
* Array of colors to use for the miniMap
|
|
@@ -4001,7 +4029,7 @@ declare namespace OrgChart_2 {
|
|
|
4001
4029
|
* }
|
|
4002
4030
|
* ```
|
|
4003
4031
|
*/
|
|
4004
|
-
position?:
|
|
4032
|
+
position?: OrgChartJS.position,
|
|
4005
4033
|
|
|
4006
4034
|
/**
|
|
4007
4035
|
* Draggable option
|
|
@@ -4024,7 +4052,7 @@ declare namespace OrgChart_2 {
|
|
|
4024
4052
|
* };
|
|
4025
4053
|
* ```
|
|
4026
4054
|
*/
|
|
4027
|
-
interface position {
|
|
4055
|
+
export interface position {
|
|
4028
4056
|
top?: string,
|
|
4029
4057
|
left?: string,
|
|
4030
4058
|
right?: string,
|
|
@@ -4034,8 +4062,8 @@ declare namespace OrgChart_2 {
|
|
|
4034
4062
|
|
|
4035
4063
|
|
|
4036
4064
|
|
|
4037
|
-
interface exportPowerPointPage {
|
|
4038
|
-
chartInstance?:
|
|
4065
|
+
export interface exportPowerPointPage {
|
|
4066
|
+
chartInstance?: OrgChartJS,
|
|
4039
4067
|
nodeId?: number | string,
|
|
4040
4068
|
expandChildren?: boolean,
|
|
4041
4069
|
childLevels?: number,
|
|
@@ -4048,7 +4076,7 @@ declare namespace OrgChart_2 {
|
|
|
4048
4076
|
|
|
4049
4077
|
|
|
4050
4078
|
|
|
4051
|
-
interface exportPowerPointOptions {
|
|
4079
|
+
export interface exportPowerPointOptions {
|
|
4052
4080
|
openInNewTab?: boolean,
|
|
4053
4081
|
fileName?: string,
|
|
4054
4082
|
// width?: number,
|
|
@@ -4059,15 +4087,15 @@ declare namespace OrgChart_2 {
|
|
|
4059
4087
|
childLevels?: number,
|
|
4060
4088
|
parentLevels?: number,
|
|
4061
4089
|
min?: boolean,
|
|
4062
|
-
pages?: Array<
|
|
4090
|
+
pages?: Array<OrgChartJS.exportPowerPointPage>,
|
|
4063
4091
|
format?: "Screen" | "Widescreen" | "Standard",
|
|
4064
4092
|
header?: string,
|
|
4065
4093
|
footer?: string
|
|
4066
4094
|
}
|
|
4067
4095
|
|
|
4068
|
-
interface exportPDFPage {
|
|
4096
|
+
export interface exportPDFPage {
|
|
4069
4097
|
isProfile?: boolean,
|
|
4070
|
-
chartInstance?:
|
|
4098
|
+
chartInstance?: OrgChartJS,
|
|
4071
4099
|
nodeId?: number | string,
|
|
4072
4100
|
expandChildren?: boolean,
|
|
4073
4101
|
childLevels?: number,
|
|
@@ -4078,7 +4106,7 @@ declare namespace OrgChart_2 {
|
|
|
4078
4106
|
content?: string
|
|
4079
4107
|
}
|
|
4080
4108
|
|
|
4081
|
-
interface exportPDFOptions {
|
|
4109
|
+
export interface exportPDFOptions {
|
|
4082
4110
|
openInNewTab?: boolean,
|
|
4083
4111
|
fileName?: string,
|
|
4084
4112
|
landscape?: boolean,
|
|
@@ -4090,14 +4118,14 @@ declare namespace OrgChart_2 {
|
|
|
4090
4118
|
childLevels?: number,
|
|
4091
4119
|
parentLevels?: number,
|
|
4092
4120
|
min?: boolean,
|
|
4093
|
-
pages?: Array<
|
|
4121
|
+
pages?: Array<OrgChartJS.exportPDFPage>,
|
|
4094
4122
|
format?: "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal" | "auto",
|
|
4095
4123
|
header?: string,
|
|
4096
4124
|
footer?: string
|
|
4097
4125
|
}
|
|
4098
4126
|
|
|
4099
|
-
interface exportPNGPage {
|
|
4100
|
-
chartInstance?:
|
|
4127
|
+
export interface exportPNGPage {
|
|
4128
|
+
chartInstance?: OrgChartJS,
|
|
4101
4129
|
nodeId?: number | string,
|
|
4102
4130
|
expandChildren?: boolean,
|
|
4103
4131
|
childLevels?: number,
|
|
@@ -4107,7 +4135,7 @@ declare namespace OrgChart_2 {
|
|
|
4107
4135
|
footer?: string,
|
|
4108
4136
|
content?: string
|
|
4109
4137
|
}
|
|
4110
|
-
interface exportPNGOptions {
|
|
4138
|
+
export interface exportPNGOptions {
|
|
4111
4139
|
openInNewTab?: boolean,
|
|
4112
4140
|
fileName?: string,
|
|
4113
4141
|
//landscape?: boolean,
|
|
@@ -4117,14 +4145,14 @@ declare namespace OrgChart_2 {
|
|
|
4117
4145
|
childLevels?: number,
|
|
4118
4146
|
parentLevels?: number,
|
|
4119
4147
|
min?: boolean,
|
|
4120
|
-
pages?: Array<
|
|
4148
|
+
pages?: Array<OrgChartJS.exportPNGPage>,
|
|
4121
4149
|
header?: string,
|
|
4122
4150
|
footer?: string
|
|
4123
4151
|
}
|
|
4124
4152
|
|
|
4125
4153
|
|
|
4126
|
-
interface exportSVGPage {
|
|
4127
|
-
chartInstance?:
|
|
4154
|
+
export interface exportSVGPage {
|
|
4155
|
+
chartInstance?: OrgChartJS,
|
|
4128
4156
|
nodeId?: number | string,
|
|
4129
4157
|
expandChildren?: boolean,
|
|
4130
4158
|
childLevels?: number,
|
|
@@ -4134,7 +4162,7 @@ declare namespace OrgChart_2 {
|
|
|
4134
4162
|
footer?: string,
|
|
4135
4163
|
content?: string
|
|
4136
4164
|
}
|
|
4137
|
-
interface exportSVGOptions {
|
|
4165
|
+
export interface exportSVGOptions {
|
|
4138
4166
|
openInNewTab?: boolean,
|
|
4139
4167
|
fileName?: string,
|
|
4140
4168
|
//landscape?: boolean,
|
|
@@ -4144,13 +4172,13 @@ declare namespace OrgChart_2 {
|
|
|
4144
4172
|
childLevels?: number,
|
|
4145
4173
|
parentLevels?: number,
|
|
4146
4174
|
min?: boolean,
|
|
4147
|
-
pages?: Array<
|
|
4175
|
+
pages?: Array<OrgChartJS.exportSVGPage>,
|
|
4148
4176
|
header?: string,
|
|
4149
4177
|
footer?: string
|
|
4150
4178
|
}
|
|
4151
4179
|
|
|
4152
4180
|
|
|
4153
|
-
interface exportVisioOptions {
|
|
4181
|
+
export interface exportVisioOptions {
|
|
4154
4182
|
fileName?: string,
|
|
4155
4183
|
padding?: number,
|
|
4156
4184
|
margin?: Array<number>,
|
|
@@ -4173,7 +4201,7 @@ declare namespace OrgChart_2 {
|
|
|
4173
4201
|
* ```
|
|
4174
4202
|
* {@link https://balkan.app/OrgChartJS/Docs/ExportingOther#options | See doc...}
|
|
4175
4203
|
*/
|
|
4176
|
-
interface exportCSVXMLJSONOptions {
|
|
4204
|
+
export interface exportCSVXMLJSONOptions {
|
|
4177
4205
|
filename?: string,
|
|
4178
4206
|
expandChildren?: boolean,
|
|
4179
4207
|
min?: boolean,
|
|
@@ -4187,7 +4215,7 @@ declare namespace OrgChart_2 {
|
|
|
4187
4215
|
* '<text transform="translate(300, 750) rotate(-90)" fill="#F57C00" text-anchor="middle" x="{x}" y="{y}">{val}</text>';
|
|
4188
4216
|
* ```
|
|
4189
4217
|
*/
|
|
4190
|
-
interface linkTemplate {
|
|
4218
|
+
export interface linkTemplate {
|
|
4191
4219
|
defs?: string,
|
|
4192
4220
|
link?: string,
|
|
4193
4221
|
label?: string,
|
|
@@ -4209,12 +4237,14 @@ declare namespace OrgChart_2 {
|
|
|
4209
4237
|
* ```
|
|
4210
4238
|
* {@link https://balkan.app/OrgChartJS/Docs/Menus#yourMenu | See doc...}
|
|
4211
4239
|
*/
|
|
4212
|
-
interface menu
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4240
|
+
export interface menu { [key: string]: menuItem; }
|
|
4241
|
+
|
|
4242
|
+
export interface menuItem {
|
|
4243
|
+
text: string;
|
|
4244
|
+
icon?: string;
|
|
4245
|
+
onClick?: () => void;
|
|
4246
|
+
devider?: boolean;
|
|
4247
|
+
subMenu?: Record<string, menuItem>;
|
|
4218
4248
|
}
|
|
4219
4249
|
|
|
4220
4250
|
/**
|
|
@@ -4232,13 +4262,13 @@ declare namespace OrgChart_2 {
|
|
|
4232
4262
|
* ```
|
|
4233
4263
|
* {@link https://balkan.app/OrgChartJS/Docs/Controls | See doc...}
|
|
4234
4264
|
*/
|
|
4235
|
-
interface controls {
|
|
4265
|
+
export interface controls {
|
|
4236
4266
|
[key: string]: {
|
|
4237
4267
|
title: string,
|
|
4238
4268
|
icon?: string,
|
|
4239
4269
|
onClick?: Function,
|
|
4240
4270
|
isOn?: boolean,
|
|
4241
|
-
anchor?:
|
|
4271
|
+
anchor?: OrgChartJS.anchor
|
|
4242
4272
|
}
|
|
4243
4273
|
}
|
|
4244
4274
|
/**
|
|
@@ -4262,7 +4292,7 @@ declare namespace OrgChart_2 {
|
|
|
4262
4292
|
* ```
|
|
4263
4293
|
* {@link https://balkan.app/OrgChartJS/Docs/Menus | See doc...}
|
|
4264
4294
|
*/
|
|
4265
|
-
interface circleMenu {
|
|
4295
|
+
export interface circleMenu {
|
|
4266
4296
|
[key: string]: {
|
|
4267
4297
|
text: string,
|
|
4268
4298
|
icon?: string,
|
|
@@ -4285,7 +4315,7 @@ declare namespace OrgChart_2 {
|
|
|
4285
4315
|
* ```
|
|
4286
4316
|
* {@link https://balkan.app/OrgChartJS/Docs/Edit | See doc...}
|
|
4287
4317
|
*/
|
|
4288
|
-
interface editFormElement {
|
|
4318
|
+
export interface editFormElement {
|
|
4289
4319
|
type?: string,
|
|
4290
4320
|
label?: string,
|
|
4291
4321
|
binding?: string,
|
|
@@ -4306,7 +4336,7 @@ declare namespace OrgChart_2 {
|
|
|
4306
4336
|
* });
|
|
4307
4337
|
* ```
|
|
4308
4338
|
*/
|
|
4309
|
-
interface link {
|
|
4339
|
+
export interface link {
|
|
4310
4340
|
from?: string | number,
|
|
4311
4341
|
to?: string | number,
|
|
4312
4342
|
template?: string,
|
|
@@ -4316,7 +4346,7 @@ declare namespace OrgChart_2 {
|
|
|
4316
4346
|
/**
|
|
4317
4347
|
* @ignore
|
|
4318
4348
|
*/
|
|
4319
|
-
interface backdrop {
|
|
4349
|
+
export interface backdrop {
|
|
4320
4350
|
id?: string | number,
|
|
4321
4351
|
levels?: number,
|
|
4322
4352
|
color?: string,
|
|
@@ -4335,7 +4365,7 @@ declare namespace OrgChart_2 {
|
|
|
4335
4365
|
* ```
|
|
4336
4366
|
* {@link https://balkan.app/OrgChartJS/Docs/DottedLine | See doc...}
|
|
4337
4367
|
*/
|
|
4338
|
-
interface dottedLine {
|
|
4368
|
+
export interface dottedLine {
|
|
4339
4369
|
from?: string | number,
|
|
4340
4370
|
to?: string | number,
|
|
4341
4371
|
tags?: Array<string>
|
|
@@ -4352,7 +4382,7 @@ declare namespace OrgChart_2 {
|
|
|
4352
4382
|
* });
|
|
4353
4383
|
* ```
|
|
4354
4384
|
*/
|
|
4355
|
-
interface orderBy {
|
|
4385
|
+
export interface orderBy {
|
|
4356
4386
|
field?: string,
|
|
4357
4387
|
desc?: boolean
|
|
4358
4388
|
}
|
|
@@ -4367,7 +4397,7 @@ declare namespace OrgChart_2 {
|
|
|
4367
4397
|
* });
|
|
4368
4398
|
* ```
|
|
4369
4399
|
*/
|
|
4370
|
-
interface move {
|
|
4400
|
+
export interface move {
|
|
4371
4401
|
left?: boolean,
|
|
4372
4402
|
right?: boolean,
|
|
4373
4403
|
up?: boolean,
|
|
@@ -4377,7 +4407,7 @@ declare namespace OrgChart_2 {
|
|
|
4377
4407
|
/**
|
|
4378
4408
|
* Set the chart orientation
|
|
4379
4409
|
*/
|
|
4380
|
-
enum orientation {
|
|
4410
|
+
export enum orientation {
|
|
4381
4411
|
|
|
4382
4412
|
/**
|
|
4383
4413
|
* top orientation (default)
|
|
@@ -4476,7 +4506,7 @@ declare namespace OrgChart_2 {
|
|
|
4476
4506
|
}
|
|
4477
4507
|
|
|
4478
4508
|
|
|
4479
|
-
enum anchor {
|
|
4509
|
+
export enum anchor {
|
|
4480
4510
|
top_right,
|
|
4481
4511
|
right_top,
|
|
4482
4512
|
bottom_right,
|
|
@@ -4494,7 +4524,7 @@ declare namespace OrgChart_2 {
|
|
|
4494
4524
|
/**
|
|
4495
4525
|
* Specifies the layout of the chart
|
|
4496
4526
|
*/
|
|
4497
|
-
enum layout {
|
|
4527
|
+
export enum layout {
|
|
4498
4528
|
|
|
4499
4529
|
/**
|
|
4500
4530
|
* The default layout
|
|
@@ -4613,7 +4643,7 @@ declare namespace OrgChart_2 {
|
|
|
4613
4643
|
/**
|
|
4614
4644
|
* Specifies the alignment of the nodes inside OrgChart JS
|
|
4615
4645
|
*/
|
|
4616
|
-
enum align {
|
|
4646
|
+
export enum align {
|
|
4617
4647
|
|
|
4618
4648
|
/**
|
|
4619
4649
|
* Centered
|
|
@@ -4644,7 +4674,7 @@ declare namespace OrgChart_2 {
|
|
|
4644
4674
|
* });
|
|
4645
4675
|
* ```
|
|
4646
4676
|
*/
|
|
4647
|
-
enum anim {
|
|
4677
|
+
export enum anim {
|
|
4648
4678
|
inPow,
|
|
4649
4679
|
outPow,
|
|
4650
4680
|
inOutPow,
|
|
@@ -4668,7 +4698,7 @@ declare namespace OrgChart_2 {
|
|
|
4668
4698
|
/**
|
|
4669
4699
|
* Defines how the initial chart scale is calculated to fit the container.
|
|
4670
4700
|
*/
|
|
4671
|
-
enum match {
|
|
4701
|
+
export enum match {
|
|
4672
4702
|
|
|
4673
4703
|
/**
|
|
4674
4704
|
* Scales the chart to fit the container **height**.
|
|
@@ -4728,7 +4758,7 @@ declare namespace OrgChart_2 {
|
|
|
4728
4758
|
/**
|
|
4729
4759
|
* Add movable functionality
|
|
4730
4760
|
*/
|
|
4731
|
-
enum movable {
|
|
4761
|
+
export enum movable {
|
|
4732
4762
|
|
|
4733
4763
|
/**
|
|
4734
4764
|
* Moves the node
|
|
@@ -4767,7 +4797,7 @@ declare namespace OrgChart_2 {
|
|
|
4767
4797
|
/**
|
|
4768
4798
|
* [Example with all actions](https://code.balkan.app/org-chart-js/which-action-triggers-redraw#JS)
|
|
4769
4799
|
*/
|
|
4770
|
-
enum action {
|
|
4800
|
+
export enum action {
|
|
4771
4801
|
|
|
4772
4802
|
/**
|
|
4773
4803
|
* OrgChart.action.update = 7;
|
|
@@ -4996,7 +5026,7 @@ declare namespace OrgChart_2 {
|
|
|
4996
5026
|
|
|
4997
5027
|
|
|
4998
5028
|
|
|
4999
|
-
interface options {
|
|
5029
|
+
export interface options {
|
|
5000
5030
|
/**
|
|
5001
5031
|
* Enables or disables the browser events handlers like click, pan, zoom, pinch, etc. Default value - *true*.
|
|
5002
5032
|
* ```typescript
|
|
@@ -5073,7 +5103,7 @@ declare namespace OrgChart_2 {
|
|
|
5073
5103
|
* ```
|
|
5074
5104
|
* {@link https://balkan.app/OrgChartJS/Docs/KeyNavigation | See doc...}
|
|
5075
5105
|
*/
|
|
5076
|
-
keyNavigation?: boolean |
|
|
5106
|
+
keyNavigation?: boolean | OrgChartJS.keyNavigation,
|
|
5077
5107
|
/**
|
|
5078
5108
|
* Shows mini map over the expanded tree. Default value - *false*.
|
|
5079
5109
|
* ```typescript
|
|
@@ -5098,7 +5128,7 @@ declare namespace OrgChart_2 {
|
|
|
5098
5128
|
* ```
|
|
5099
5129
|
* {@link https://balkan.app/OrgChartJS/Docs/Controls | See doc...}
|
|
5100
5130
|
*/
|
|
5101
|
-
controls?:
|
|
5131
|
+
controls?: OrgChartJS.controls;
|
|
5102
5132
|
|
|
5103
5133
|
|
|
5104
5134
|
/**
|
|
@@ -5116,7 +5146,7 @@ declare namespace OrgChart_2 {
|
|
|
5116
5146
|
* ```
|
|
5117
5147
|
* {@link https://balkan.app/OrgChartJS/Docs/Menus | See doc...}
|
|
5118
5148
|
*/
|
|
5119
|
-
nodeMenu?:
|
|
5149
|
+
nodeMenu?: OrgChartJS.menu;
|
|
5120
5150
|
/**
|
|
5121
5151
|
* With node circle menu you can add, edit, remove node or create clink/slink with drga and drop. Before setting this option make sure that you defined nodeCircleMenuButton in the ysed template.
|
|
5122
5152
|
* ```typescript
|
|
@@ -5138,7 +5168,7 @@ declare namespace OrgChart_2 {
|
|
|
5138
5168
|
* ```
|
|
5139
5169
|
* {@link https://balkan.app/OrgChartJS/Docs/Menus | See doc...}
|
|
5140
5170
|
*/
|
|
5141
|
-
nodeCircleMenu?:
|
|
5171
|
+
nodeCircleMenu?: OrgChartJS.circleMenu,
|
|
5142
5172
|
/**
|
|
5143
5173
|
* Customizable context menu. Also you can define your own node operation.
|
|
5144
5174
|
* ```typescript
|
|
@@ -5154,7 +5184,7 @@ declare namespace OrgChart_2 {
|
|
|
5154
5184
|
* ```
|
|
5155
5185
|
* {@link https://balkan.app/OrgChartJS/Docs/Menus | See doc...}
|
|
5156
5186
|
*/
|
|
5157
|
-
nodeContextMenu?:
|
|
5187
|
+
nodeContextMenu?: OrgChartJS.menu,
|
|
5158
5188
|
/**
|
|
5159
5189
|
* Enables export to csv, export to svg and other OrgChart operations. Also you can define your own OrgChart operation.
|
|
5160
5190
|
* ```typescript
|
|
@@ -5168,7 +5198,7 @@ declare namespace OrgChart_2 {
|
|
|
5168
5198
|
* ```
|
|
5169
5199
|
* {@link https://balkan.app/OrgChartJS/Docs/Menus | See doc...}
|
|
5170
5200
|
*/
|
|
5171
|
-
menu?:
|
|
5201
|
+
menu?: OrgChartJS.menu,
|
|
5172
5202
|
|
|
5173
5203
|
/**
|
|
5174
5204
|
* Array of tools called by the AI
|
|
@@ -5182,7 +5212,7 @@ declare namespace OrgChart_2 {
|
|
|
5182
5212
|
* ```
|
|
5183
5213
|
* {@link https://balkan.app/OrgChartJS/Docs/AI | See doc...}
|
|
5184
5214
|
*/
|
|
5185
|
-
aiChatTools?: Array<
|
|
5215
|
+
aiChatTools?: Array<OrgChartJS.aiChatTool>,
|
|
5186
5216
|
/**
|
|
5187
5217
|
* Shows a toolbar
|
|
5188
5218
|
*
|
|
@@ -5199,7 +5229,7 @@ declare namespace OrgChart_2 {
|
|
|
5199
5229
|
* });
|
|
5200
5230
|
* ```
|
|
5201
5231
|
*/
|
|
5202
|
-
toolbar?:
|
|
5232
|
+
toolbar?: OrgChartJS.toolbar,
|
|
5203
5233
|
|
|
5204
5234
|
/**
|
|
5205
5235
|
* nodeMouseClick can accept the following values:
|
|
@@ -5216,7 +5246,7 @@ declare namespace OrgChart_2 {
|
|
|
5216
5246
|
* });
|
|
5217
5247
|
* ```
|
|
5218
5248
|
*/
|
|
5219
|
-
nodeMouseClick?:
|
|
5249
|
+
nodeMouseClick?: OrgChartJS.action,
|
|
5220
5250
|
/**
|
|
5221
5251
|
* nodeMouseDbClick can accept the following values:
|
|
5222
5252
|
* - OrgChart.action.edit - will open the edit view for the clicked node on the right hand side
|
|
@@ -5231,7 +5261,7 @@ declare namespace OrgChart_2 {
|
|
|
5231
5261
|
* });
|
|
5232
5262
|
* ```
|
|
5233
5263
|
*/
|
|
5234
|
-
nodeMouseDbClick?:
|
|
5264
|
+
nodeMouseDbClick?: OrgChartJS.action,
|
|
5235
5265
|
/**
|
|
5236
5266
|
* mouseScrool can accept the following values:
|
|
5237
5267
|
* - OrgChart.action.zoom - will zoom in/out on mouse scroll
|
|
@@ -5247,7 +5277,7 @@ declare namespace OrgChart_2 {
|
|
|
5247
5277
|
* });
|
|
5248
5278
|
* ```
|
|
5249
5279
|
*/
|
|
5250
|
-
mouseScrool?:
|
|
5280
|
+
mouseScrool?: OrgChartJS.action,
|
|
5251
5281
|
/**
|
|
5252
5282
|
* Shows horizontal scrollbar. Default value - *false*.
|
|
5253
5283
|
* ```typescript
|
|
@@ -5267,7 +5297,7 @@ declare namespace OrgChart_2 {
|
|
|
5267
5297
|
* });
|
|
5268
5298
|
* ```
|
|
5269
5299
|
*/
|
|
5270
|
-
movable?:
|
|
5300
|
+
movable?: OrgChartJS.movable,
|
|
5271
5301
|
/**
|
|
5272
5302
|
* Shows vertical scrollbar. Default value - *false*.
|
|
5273
5303
|
* ```typescript
|
|
@@ -5324,17 +5354,17 @@ declare namespace OrgChart_2 {
|
|
|
5324
5354
|
[key: string]: {
|
|
5325
5355
|
template?: "ana" | "ula" | "olivia" | "belinda" | "rony" | "mery" | "polina" | "mila" | "diva" | "luba" | "isla" | "deborah" | "base" | "group" | "invisibleGroup" | "treeListItem" | "clara" | (string & {}),
|
|
5326
5356
|
subLevels?: number,
|
|
5327
|
-
nodeMenu?:
|
|
5328
|
-
nodeCircleMenu?:
|
|
5329
|
-
nodeContextMenu?:
|
|
5357
|
+
nodeMenu?: OrgChartJS.menu,
|
|
5358
|
+
nodeCircleMenu?: OrgChartJS.circleMenu,
|
|
5359
|
+
nodeContextMenu?: OrgChartJS.menu,
|
|
5330
5360
|
min?: boolean,
|
|
5331
5361
|
subTreeConfig?: {
|
|
5332
|
-
orientation?:
|
|
5362
|
+
orientation?: OrgChartJS.orientation,
|
|
5333
5363
|
levelSeparation?: number,
|
|
5334
5364
|
mixedHierarchyNodesSeparation?: number,
|
|
5335
5365
|
subtreeSeparation?: number,
|
|
5336
5366
|
siblingSeparation?: number,
|
|
5337
|
-
layout?:
|
|
5367
|
+
layout?: OrgChartJS.layout | number,
|
|
5338
5368
|
columns?: number,
|
|
5339
5369
|
collapse?: {
|
|
5340
5370
|
level?: number,
|
|
@@ -5448,7 +5478,7 @@ declare namespace OrgChart_2 {
|
|
|
5448
5478
|
* });
|
|
5449
5479
|
* ```
|
|
5450
5480
|
*/
|
|
5451
|
-
nodes?: Array<
|
|
5481
|
+
nodes?: Array<OrgChartJS.nodeData>,
|
|
5452
5482
|
/**
|
|
5453
5483
|
* Adds curved link.
|
|
5454
5484
|
* ```typescript
|
|
@@ -5461,7 +5491,7 @@ declare namespace OrgChart_2 {
|
|
|
5461
5491
|
* });
|
|
5462
5492
|
* ```
|
|
5463
5493
|
*/
|
|
5464
|
-
clinks?: Array<
|
|
5494
|
+
clinks?: Array<OrgChartJS.link>,
|
|
5465
5495
|
/**
|
|
5466
5496
|
* Adds second link.
|
|
5467
5497
|
* ```typescript
|
|
@@ -5474,12 +5504,12 @@ declare namespace OrgChart_2 {
|
|
|
5474
5504
|
* });
|
|
5475
5505
|
* ```
|
|
5476
5506
|
*/
|
|
5477
|
-
slinks?: Array<
|
|
5507
|
+
slinks?: Array<OrgChartJS.link>,
|
|
5478
5508
|
|
|
5479
5509
|
/**
|
|
5480
5510
|
* @ignore
|
|
5481
5511
|
*/
|
|
5482
|
-
backdrops?: Array<
|
|
5512
|
+
backdrops?: Array<OrgChartJS.backdrop>,
|
|
5483
5513
|
|
|
5484
5514
|
|
|
5485
5515
|
/**
|
|
@@ -5492,7 +5522,7 @@ declare namespace OrgChart_2 {
|
|
|
5492
5522
|
* });
|
|
5493
5523
|
* ```
|
|
5494
5524
|
*/
|
|
5495
|
-
dottedLines?: Array<
|
|
5525
|
+
dottedLines?: Array<OrgChartJS.dottedLine>,
|
|
5496
5526
|
|
|
5497
5527
|
/**
|
|
5498
5528
|
* Adds group dotted line.
|
|
@@ -5504,7 +5534,7 @@ declare namespace OrgChart_2 {
|
|
|
5504
5534
|
* });
|
|
5505
5535
|
* ```
|
|
5506
5536
|
*/
|
|
5507
|
-
groupDottedLines?: Array<
|
|
5537
|
+
groupDottedLines?: Array<OrgChartJS.dottedLine>,
|
|
5508
5538
|
|
|
5509
5539
|
/**
|
|
5510
5540
|
* The gap between each level. Default value - *60*
|
|
@@ -5623,7 +5653,7 @@ declare namespace OrgChart_2 {
|
|
|
5623
5653
|
* });
|
|
5624
5654
|
* ```
|
|
5625
5655
|
*/
|
|
5626
|
-
orientation?:
|
|
5656
|
+
orientation?: OrgChartJS.orientation,
|
|
5627
5657
|
/**
|
|
5628
5658
|
* Sets the layout algoritm:
|
|
5629
5659
|
* - OrgChart.layout.normal
|
|
@@ -5643,7 +5673,7 @@ declare namespace OrgChart_2 {
|
|
|
5643
5673
|
* });
|
|
5644
5674
|
* ```
|
|
5645
5675
|
*/
|
|
5646
|
-
layout?:
|
|
5676
|
+
layout?: OrgChartJS.layout | number,
|
|
5647
5677
|
/**
|
|
5648
5678
|
* Sets the maximum number of columns in grid layout, it has to be even nymber or 'dynamic' string
|
|
5649
5679
|
* The default id 'dynamic', that means that the maximum colomn numbers are dinamicly calculated
|
|
@@ -5670,7 +5700,7 @@ declare namespace OrgChart_2 {
|
|
|
5670
5700
|
* ```
|
|
5671
5701
|
* {@link https://balkan.app/OrgChartJS/Docs/Layout | See doc...}
|
|
5672
5702
|
*/
|
|
5673
|
-
scaleInitial?: number |
|
|
5703
|
+
scaleInitial?: number | OrgChartJS.match,
|
|
5674
5704
|
/**
|
|
5675
5705
|
* Determines the minimum scale factor. Default value - *0.1*
|
|
5676
5706
|
* ```typescript
|
|
@@ -5716,7 +5746,7 @@ declare namespace OrgChart_2 {
|
|
|
5716
5746
|
* });
|
|
5717
5747
|
* ```
|
|
5718
5748
|
*/
|
|
5719
|
-
orderBy?: string | Array<string> |
|
|
5749
|
+
orderBy?: string | Array<string> | OrgChartJS.orderBy | Array<OrgChartJS.orderBy>,
|
|
5720
5750
|
/**
|
|
5721
5751
|
* Filter the OrgChart by the specified fields.
|
|
5722
5752
|
* ```typescript
|
|
@@ -5750,73 +5780,73 @@ declare namespace OrgChart_2 {
|
|
|
5750
5780
|
* ```
|
|
5751
5781
|
* [Go to edit doc page for more details](https://balkan.app/OrgChartJS/Docs/Edit#custom)
|
|
5752
5782
|
*/
|
|
5753
|
-
editUI?:
|
|
5783
|
+
editUI?: OrgChartJS.editUI,
|
|
5754
5784
|
/**
|
|
5755
5785
|
* @ignore
|
|
5756
5786
|
*/
|
|
5757
|
-
aiUI?:
|
|
5787
|
+
aiUI?: OrgChartJS.aiUI,
|
|
5758
5788
|
/**
|
|
5759
5789
|
* @ignore
|
|
5760
5790
|
*/
|
|
5761
|
-
orgScribeUI?:
|
|
5791
|
+
orgScribeUI?: OrgChartJS.orgScribeUI,
|
|
5762
5792
|
/**
|
|
5763
5793
|
* @ignore
|
|
5764
5794
|
*/
|
|
5765
|
-
searchUI?:
|
|
5795
|
+
searchUI?: OrgChartJS.searchUI,
|
|
5766
5796
|
/**
|
|
5767
5797
|
* @ignore
|
|
5768
5798
|
*/
|
|
5769
|
-
filterUI?:
|
|
5799
|
+
filterUI?: OrgChartJS.filterUI,
|
|
5770
5800
|
/**
|
|
5771
5801
|
* @ignore
|
|
5772
5802
|
*/
|
|
5773
|
-
xScrollUI?:
|
|
5803
|
+
xScrollUI?: OrgChartJS.xScrollUI,
|
|
5774
5804
|
/**
|
|
5775
5805
|
* @ignore
|
|
5776
5806
|
*/
|
|
5777
|
-
yScrollUI?:
|
|
5807
|
+
yScrollUI?: OrgChartJS.yScrollUI,
|
|
5778
5808
|
/**
|
|
5779
5809
|
* @ignore
|
|
5780
5810
|
*/
|
|
5781
|
-
nodeMenuUI?:
|
|
5811
|
+
nodeMenuUI?: OrgChartJS.menuUI,
|
|
5782
5812
|
/**
|
|
5783
5813
|
* @ignore
|
|
5784
5814
|
*/
|
|
5785
|
-
powerPointPreviewUI?:
|
|
5815
|
+
powerPointPreviewUI?: OrgChartJS.powerPointPreviewUI,
|
|
5786
5816
|
|
|
5787
5817
|
/**
|
|
5788
5818
|
* @ignore
|
|
5789
5819
|
*/
|
|
5790
|
-
pdfPreviewUI?:
|
|
5820
|
+
pdfPreviewUI?: OrgChartJS.pdfPreviewUI,
|
|
5791
5821
|
|
|
5792
5822
|
/**
|
|
5793
5823
|
* @ignore
|
|
5794
5824
|
*/
|
|
5795
|
-
svgPreviewUI?:
|
|
5825
|
+
svgPreviewUI?: OrgChartJS.svgPreviewUI,
|
|
5796
5826
|
|
|
5797
5827
|
/**
|
|
5798
5828
|
* @ignore
|
|
5799
5829
|
*/
|
|
5800
|
-
pngPreviewUI?:
|
|
5830
|
+
pngPreviewUI?: OrgChartJS.pngPreviewUI,
|
|
5801
5831
|
|
|
5802
5832
|
/**
|
|
5803
5833
|
* @ignore
|
|
5804
5834
|
*/
|
|
5805
|
-
nodeCircleMenuUI?:
|
|
5835
|
+
nodeCircleMenuUI?: OrgChartJS.circleMenuUI,
|
|
5806
5836
|
/**
|
|
5807
5837
|
* @ignore
|
|
5808
5838
|
*/
|
|
5809
|
-
nodeContextMenuUI?:
|
|
5839
|
+
nodeContextMenuUI?: OrgChartJS.menuUI,
|
|
5810
5840
|
|
|
5811
5841
|
/**
|
|
5812
5842
|
* @ignore
|
|
5813
5843
|
*/
|
|
5814
|
-
controlsUI?:
|
|
5844
|
+
controlsUI?: OrgChartJS.controlsUI,
|
|
5815
5845
|
|
|
5816
5846
|
/**
|
|
5817
5847
|
* @ignore
|
|
5818
5848
|
*/
|
|
5819
|
-
toolbarUI?:
|
|
5849
|
+
toolbarUI?: OrgChartJS.toolbarUI,
|
|
5820
5850
|
/**
|
|
5821
5851
|
* @ignore
|
|
5822
5852
|
*/
|
|
@@ -5824,11 +5854,11 @@ declare namespace OrgChart_2 {
|
|
|
5824
5854
|
/**
|
|
5825
5855
|
* @ignore
|
|
5826
5856
|
*/
|
|
5827
|
-
menuUI?:
|
|
5857
|
+
menuUI?: OrgChartJS.menuUI,
|
|
5828
5858
|
/**
|
|
5829
5859
|
* @ignore
|
|
5830
5860
|
*/
|
|
5831
|
-
undoRedoUI?:
|
|
5861
|
+
undoRedoUI?: OrgChartJS.undoRedoUI,
|
|
5832
5862
|
/**
|
|
5833
5863
|
* @ignore
|
|
5834
5864
|
*/
|
|
@@ -5857,7 +5887,7 @@ declare namespace OrgChart_2 {
|
|
|
5857
5887
|
* });
|
|
5858
5888
|
* ```
|
|
5859
5889
|
*/
|
|
5860
|
-
align?:
|
|
5890
|
+
align?: OrgChartJS.align | number,
|
|
5861
5891
|
/**
|
|
5862
5892
|
* Can be used to control the transition of the nodes on expand/collapse operation. Default value - *func: OrgChart.anim.outPow, duration: 200*
|
|
5863
5893
|
* ```typescript
|
|
@@ -5870,7 +5900,7 @@ declare namespace OrgChart_2 {
|
|
|
5870
5900
|
/**
|
|
5871
5901
|
* defines how long time an animation should take to complete
|
|
5872
5902
|
*/
|
|
5873
|
-
func?:
|
|
5903
|
+
func?: OrgChartJS.anim,
|
|
5874
5904
|
/**
|
|
5875
5905
|
* Easing functions specify the speed at which an animation progresses at different points within the animation.
|
|
5876
5906
|
*/
|
|
@@ -5998,7 +6028,7 @@ declare namespace OrgChart_2 {
|
|
|
5998
6028
|
} | null
|
|
5999
6029
|
},
|
|
6000
6030
|
// elements?: { [key: string]: OrgChart.editFormElement | Array<OrgChart.editFormElement> }
|
|
6001
|
-
elements?: Array<
|
|
6031
|
+
elements?: Array<OrgChartJS.editFormElement | Array<OrgChartJS.editFormElement>>
|
|
6002
6032
|
}
|
|
6003
6033
|
}
|
|
6004
6034
|
|
|
@@ -6008,42 +6038,64 @@ declare namespace OrgChart_2 {
|
|
|
6008
6038
|
var ui: {
|
|
6009
6039
|
defs(fromrender: string): string;
|
|
6010
6040
|
lonely(config: Object): string;
|
|
6011
|
-
pointer(config: Object, action:
|
|
6012
|
-
node(node:
|
|
6013
|
-
nodeBtns(config: Object, node:
|
|
6014
|
-
expandCollapseBtn(chart:
|
|
6015
|
-
link(node:
|
|
6041
|
+
pointer(config: Object, action: OrgChartJS.action, scale: number): string;
|
|
6042
|
+
node(node: OrgChartJS.node, data: Object, animations: OrgChartJS.anim, config: Object, x: number | undefined, y: number | undefined, nodeBinding: Object | undefined, action: OrgChartJS.action, scale: number, sender: Object): string;
|
|
6043
|
+
nodeBtns(config: Object, node: OrgChartJS.node, data: Object, action: OrgChartJS.action, t: Object, sender: Object): string;
|
|
6044
|
+
expandCollapseBtn(chart: OrgChartJS, node: OrgChartJS.node, data: Object, config: Object, layoutConfigs: any, action: OrgChartJS.action, scale: number): string;
|
|
6045
|
+
link(node: OrgChartJS.node, obj: Object, scale: number, bordersByRootIdAndLevel: Object, nodes: Object, action: OrgChartJS.action): Array<string>;
|
|
6016
6046
|
svg(width: number, height: number, viewBox: Array<number>, config: Object, content: string, scale: number): string;
|
|
6017
6047
|
menuButton(config: Object): string;
|
|
6018
6048
|
};
|
|
6019
6049
|
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
children?: default_2.ReactNode;
|
|
6025
|
-
title?: string;
|
|
6026
|
-
name?: string;
|
|
6027
|
-
photo?: string;
|
|
6028
|
-
assistant?: boolean;
|
|
6029
|
-
partner?: boolean;
|
|
6030
|
-
tags?: Array<string>;
|
|
6031
|
-
[key: string]: unknown;
|
|
6050
|
+
/**
|
|
6051
|
+
* @ignore
|
|
6052
|
+
*/
|
|
6053
|
+
var t: any;
|
|
6032
6054
|
}
|
|
6033
6055
|
|
|
6034
|
-
declare type OrgChartOptions = Omit<
|
|
6056
|
+
declare type OrgChartOptions = Omit<OrgChartJS.options, 'nodes' | 'UI' | 'aiUI' | 'editUI' | 'orgScribeUI' | 'powerPointPreviewUI' | 'pdfPreviewUI' | 'svgPreviewUI' | 'pngPreviewUI' | 'filterUI' | 'searchUI' | 'xScrollUI' | 'yScrollUI' | 'nodeMenuUI' | 'controlsUI' | 'nodeCircleMenuUI' | 'nodeContextMenuUI' | 'toolbarUI' | 'notifierUI' | 'menuUI' | 'undoRedoUI'>;
|
|
6035
6057
|
|
|
6036
6058
|
declare interface OrgChartProps extends Partial<OrgChartOptions> {
|
|
6037
6059
|
id?: string;
|
|
6038
6060
|
children?: default_2.ReactNode;
|
|
6039
6061
|
className?: string;
|
|
6040
6062
|
style?: default_2.CSSProperties;
|
|
6041
|
-
data?: Array<
|
|
6042
|
-
onUpdateNode?: (this:
|
|
6063
|
+
data?: Array<OrgChartJS.nodeData>;
|
|
6064
|
+
onUpdateNode?: (this: OrgChartJS, args: OrgChartJS.updateNodeEventArgs) => void;
|
|
6065
|
+
onUpdated?: (this: OrgChartJS) => void;
|
|
6066
|
+
onRemoveNode?: (this: OrgChartJS, args: OrgChartJS.removeNodeEventArgs) => void;
|
|
6067
|
+
onAddNode?: (this: OrgChartJS, args: OrgChartJS.addNodeEventArgs) => void;
|
|
6068
|
+
onDrag?: (this: OrgChartJS, args: OrgChartJS.dragEventArgs) => void;
|
|
6069
|
+
onDrop?: (this: OrgChartJS, args: OrgChartJS.dropEventArgs) => void;
|
|
6070
|
+
onInit?: (this: OrgChartJS) => void;
|
|
6071
|
+
onRedraw?: (this: OrgChartJS) => void;
|
|
6072
|
+
onExpandCollapseButtonClick?: (this: OrgChartJS, args: OrgChartJS.expandCollapseButtonClickEventArgs) => void;
|
|
6073
|
+
onExportStart?: (this: OrgChartJS, args: OrgChartJS.exportStartEventArgs) => void;
|
|
6074
|
+
onExportEnd?: (this: OrgChartJS, args: OrgChartJS.exportEndEventArgs) => void;
|
|
6075
|
+
onNodeClick?: (this: OrgChartJS, args: OrgChartJS.nodeClickEventArgs) => void;
|
|
6076
|
+
onCanvasClick?: (this: OrgChartJS, args: OrgChartJS.canvasClickEventArgs) => void;
|
|
6077
|
+
onAIToolCalls?: (this: OrgChartJS, args: OrgChartJS.aiToolCallsEventArgs) => void;
|
|
6078
|
+
onNodeDoubleClick?: (this: OrgChartJS, args: OrgChartJS.nodeDoubleClickEventArgs) => void;
|
|
6043
6079
|
}
|
|
6044
6080
|
|
|
6045
|
-
export declare
|
|
6046
|
-
|
|
6047
|
-
}
|
|
6081
|
+
export declare const OrgChartReact: default_2.ForwardRefExoticComponent<OrgChartProps & default_2.RefAttributes<OrgChartJS>>;
|
|
6082
|
+
|
|
6083
|
+
export declare const Template: ({ name, baseTemplateName, renderNode, renderPlus, renderMinus, renderNodeMenuButton, nodeWidth, nodeHeight, padding, treeListMaxHeight, editFormHeaderColor, rippleRadius, rippleColor }: TemplateProps) => null;
|
|
6084
|
+
|
|
6085
|
+
declare type TemplateProps = {
|
|
6086
|
+
name: string;
|
|
6087
|
+
baseTemplateName?: string;
|
|
6088
|
+
nodeWidth?: number;
|
|
6089
|
+
nodeHeight?: number;
|
|
6090
|
+
padding?: [number, number, number, number];
|
|
6091
|
+
treeListMaxHeight?: number;
|
|
6092
|
+
editFormHeaderColor?: string;
|
|
6093
|
+
rippleRadius?: number;
|
|
6094
|
+
rippleColor?: string;
|
|
6095
|
+
renderNode?: (node: OrgChartJS.node, data: OrgChartJS.nodeData, template: OrgChartJS.template, config: OrgChartJS.options) => default_2.ReactNode;
|
|
6096
|
+
renderPlus?: (node: OrgChartJS.node, data: OrgChartJS.nodeData, template: OrgChartJS.template, config: OrgChartJS.options) => default_2.ReactNode;
|
|
6097
|
+
renderMinus?: (node: OrgChartJS.node, data: OrgChartJS.nodeData, template: OrgChartJS.template, config: OrgChartJS.options) => default_2.ReactNode;
|
|
6098
|
+
renderNodeMenuButton?: (node: OrgChartJS.node, data: OrgChartJS.nodeData, template: OrgChartJS.template, config: OrgChartJS.options) => default_2.ReactNode;
|
|
6099
|
+
};
|
|
6048
6100
|
|
|
6049
6101
|
export { }
|