@balkangraph/orgchart.js 8.11.1 → 8.11.3
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 +27 -22
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -357,7 +357,21 @@ declare class OrgChart extends OrgChartBase {
|
|
|
357
357
|
* @param front show on front or back
|
|
358
358
|
* @param anim animation type
|
|
359
359
|
*/
|
|
360
|
-
magnify(id: string | number, scale: number, front?: boolean, anim?: OrgChart.anim | null, callback?: () => void): void;
|
|
360
|
+
magnify(id: string | number, scale: number, front?: boolean, anim?: OrgChart.anim | null, callback?: () => void): void;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Starts the move
|
|
364
|
+
* @param movePosition move position
|
|
365
|
+
* @param tick callback function in each step
|
|
366
|
+
* @param func the name of the animation function, for example OrgChart.anim.inSin
|
|
367
|
+
* @param duration duration before going to 100 percent speed
|
|
368
|
+
*/
|
|
369
|
+
moveStart(movePosition: OrgChart.move, tick?: () => void, func?: OrgChart.anim, duration?: number): void;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Ends the move
|
|
373
|
+
*/
|
|
374
|
+
moveEnd(): void;
|
|
361
375
|
|
|
362
376
|
/**
|
|
363
377
|
* The onField() method of the OrgChart class sets up a function that will be called whenever the specified event is delivered to the target.
|
|
@@ -391,7 +405,11 @@ declare class OrgChart extends OrgChartBase {
|
|
|
391
405
|
/**
|
|
392
406
|
* name of the field
|
|
393
407
|
*/
|
|
394
|
-
name: string
|
|
408
|
+
name: string
|
|
409
|
+
/**
|
|
410
|
+
* field template name
|
|
411
|
+
*/
|
|
412
|
+
field: string
|
|
395
413
|
}) => void | boolean): OrgChart;
|
|
396
414
|
|
|
397
415
|
/**
|
|
@@ -1265,6 +1283,13 @@ declare namespace OrgChart {
|
|
|
1265
1283
|
field?: string,
|
|
1266
1284
|
desc?: boolean
|
|
1267
1285
|
}
|
|
1286
|
+
interface move {
|
|
1287
|
+
left?: boolean,
|
|
1288
|
+
right?: boolean,
|
|
1289
|
+
up?: boolean,
|
|
1290
|
+
down?: boolean,
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1268
1293
|
enum orientation {
|
|
1269
1294
|
top,
|
|
1270
1295
|
bottom,
|
|
@@ -2245,19 +2270,6 @@ declare class OrgChartBase {
|
|
|
2245
2270
|
removeNode(id: string | number, callback?: () => void, fireEvent?: boolean): void;
|
|
2246
2271
|
|
|
2247
2272
|
|
|
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
2273
|
|
|
2262
2274
|
|
|
2263
2275
|
|
|
@@ -2380,13 +2392,6 @@ declare class OrgChartBase {
|
|
|
2380
2392
|
}
|
|
2381
2393
|
|
|
2382
2394
|
declare namespace OrgChart {
|
|
2383
|
-
interface move {
|
|
2384
|
-
left?: boolean,
|
|
2385
|
-
right?: boolean,
|
|
2386
|
-
up?: boolean,
|
|
2387
|
-
down?: boolean,
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
2395
|
interface node {
|
|
2391
2396
|
/**
|
|
2392
2397
|
* 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
|