@balkangraph/orgchart.js 8.10.18 → 8.11.0
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 +32 -8
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -283,19 +283,19 @@ declare class OrgChart extends OrgChartBase {
|
|
|
283
283
|
* @param filename The name of the exported file
|
|
284
284
|
* {@link https://balkan.app/OrgChartJS/Docs/Exporting | See doc...}
|
|
285
285
|
*/
|
|
286
|
-
exportCSV(filename: string): void;
|
|
286
|
+
exportCSV(filename: string | OrgChart.exportCSVXMLJSONOptions): void;
|
|
287
287
|
/**
|
|
288
288
|
* Exports to XML
|
|
289
289
|
* @param filename The name of the exported file
|
|
290
290
|
* {@link https://balkan.app/OrgChartJS/Docs/Exporting | See doc...}
|
|
291
291
|
*/
|
|
292
|
-
exportXML(filename: string): void;
|
|
292
|
+
exportXML(filename: string | OrgChart.exportCSVXMLJSONOptions): void;
|
|
293
293
|
/**
|
|
294
294
|
* Exports to JSON
|
|
295
295
|
* @param filename The name of the exported file
|
|
296
296
|
* {@link https://balkan.app/OrgChartJS/Docs/Exporting | See doc...}
|
|
297
297
|
*/
|
|
298
|
-
exportJSON(filename: string): void;
|
|
298
|
+
exportJSON(filename: string | OrgChart.exportCSVXMLJSONOptions ): void;
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
301
|
* Shares node data, uses build-in device sharing functionallity.
|
|
@@ -777,10 +777,6 @@ declare class OrgChart extends OrgChartBase {
|
|
|
777
777
|
/**
|
|
778
778
|
* @ignore
|
|
779
779
|
*/
|
|
780
|
-
static MOVE_INTERVAL: number;
|
|
781
|
-
/**
|
|
782
|
-
* @ignore
|
|
783
|
-
*/
|
|
784
780
|
static CLINK_CURVE: number;
|
|
785
781
|
/**
|
|
786
782
|
* @ignore
|
|
@@ -1218,6 +1214,13 @@ declare namespace OrgChart {
|
|
|
1218
1214
|
nodeId? : number | string
|
|
1219
1215
|
}
|
|
1220
1216
|
|
|
1217
|
+
interface exportCSVXMLJSONOptions {
|
|
1218
|
+
filename?: string,
|
|
1219
|
+
expandChildren?: boolean,
|
|
1220
|
+
min?: boolean,
|
|
1221
|
+
nodeId? : number | string
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1221
1224
|
interface linkTemplate {
|
|
1222
1225
|
defs?: string,
|
|
1223
1226
|
link?: string,
|
|
@@ -2241,6 +2244,21 @@ declare class OrgChartBase {
|
|
|
2241
2244
|
*/
|
|
2242
2245
|
removeNode(id: string | number, callback?: () => void, fireEvent?: boolean): void;
|
|
2243
2246
|
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* Starts the move
|
|
2250
|
+
* @param movePosition move position
|
|
2251
|
+
* @param tick callback function in each step
|
|
2252
|
+
* @param func the name of the animation function, for example OrgChart.anim.inSin
|
|
2253
|
+
* @param duration duration before going to 100 percent speed
|
|
2254
|
+
*/
|
|
2255
|
+
moveStart(movePosition: OrgChart.move, tick?: () => void, func?: OrgChart.anim, duration?: number): void;
|
|
2256
|
+
/**
|
|
2257
|
+
* Ends the move
|
|
2258
|
+
*/
|
|
2259
|
+
moveEnd(): void;
|
|
2260
|
+
|
|
2261
|
+
|
|
2244
2262
|
|
|
2245
2263
|
|
|
2246
2264
|
/**
|
|
@@ -2362,7 +2380,13 @@ declare class OrgChartBase {
|
|
|
2362
2380
|
}
|
|
2363
2381
|
|
|
2364
2382
|
declare namespace OrgChart {
|
|
2365
|
-
|
|
2383
|
+
interface move {
|
|
2384
|
+
left?: boolean,
|
|
2385
|
+
right?: boolean,
|
|
2386
|
+
up?: boolean,
|
|
2387
|
+
down?: boolean,
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2366
2390
|
interface node {
|
|
2367
2391
|
/**
|
|
2368
2392
|
* same pid you provided in the source node, the default value is null if not provided or if node with the same id does not exist
|