@balkangraph/orgchart.js 8.10.19 → 8.11.1
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 +22 -5
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -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
|
|
@@ -2248,6 +2244,21 @@ declare class OrgChartBase {
|
|
|
2248
2244
|
*/
|
|
2249
2245
|
removeNode(id: string | number, callback?: () => void, fireEvent?: boolean): void;
|
|
2250
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
|
+
|
|
2251
2262
|
|
|
2252
2263
|
|
|
2253
2264
|
/**
|
|
@@ -2369,7 +2380,13 @@ declare class OrgChartBase {
|
|
|
2369
2380
|
}
|
|
2370
2381
|
|
|
2371
2382
|
declare namespace OrgChart {
|
|
2372
|
-
|
|
2383
|
+
interface move {
|
|
2384
|
+
left?: boolean,
|
|
2385
|
+
right?: boolean,
|
|
2386
|
+
up?: boolean,
|
|
2387
|
+
down?: boolean,
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2373
2390
|
interface node {
|
|
2374
2391
|
/**
|
|
2375
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
|