@balkangraph/orgchart.js 8.16.13 → 8.16.14
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 +14 -8
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -418,7 +418,7 @@ declare class OrgChart {
|
|
|
418
418
|
* ```
|
|
419
419
|
* @param id identification number of the node
|
|
420
420
|
*/
|
|
421
|
-
get(id: string | number):
|
|
421
|
+
get(id: string | number): Node;
|
|
422
422
|
/**
|
|
423
423
|
* If specified node has assistant/s or partner/s as children will return false.
|
|
424
424
|
* ```typescript
|
|
@@ -2213,14 +2213,20 @@ declare class OrgChart {
|
|
|
2213
2213
|
static grCloseTag: any;
|
|
2214
2214
|
}
|
|
2215
2215
|
|
|
2216
|
+
interface Node {
|
|
2217
|
+
id: number | string,
|
|
2218
|
+
pid?: number | string,
|
|
2219
|
+
[key: string]: any
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2216
2222
|
declare namespace OrgChart {
|
|
2217
2223
|
|
|
2218
|
-
interface node {
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
}
|
|
2224
|
+
// interface node {
|
|
2225
|
+
// /**
|
|
2226
|
+
// * 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
|
|
2227
|
+
// */
|
|
2228
|
+
// pid?: string | number,
|
|
2229
|
+
// }
|
|
2224
2230
|
/**
|
|
2225
2231
|
* deprecated, use OrgChart.align.center isntead
|
|
2226
2232
|
* @ignore
|
|
@@ -4600,7 +4606,7 @@ declare namespace OrgChart {
|
|
|
4600
4606
|
* });
|
|
4601
4607
|
* ```
|
|
4602
4608
|
*/
|
|
4603
|
-
showYScroll?: boolean
|
|
4609
|
+
showYScroll?: boolean,
|
|
4604
4610
|
/**
|
|
4605
4611
|
* Set template if you want to change the appearance of the chart. Org Chart JS comes with number of build-in templates:
|
|
4606
4612
|
* - ana
|