@balkangraph/orgchart.js 8.17.3 → 8.17.5
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 +46 -11
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -232,11 +232,11 @@ declare class OrgChart {
|
|
|
232
232
|
/**
|
|
233
233
|
* old node data
|
|
234
234
|
*/
|
|
235
|
-
oldData:
|
|
235
|
+
oldData: nodeData,
|
|
236
236
|
/**
|
|
237
237
|
* new node data
|
|
238
238
|
*/
|
|
239
|
-
newData:
|
|
239
|
+
newData: nodeData
|
|
240
240
|
}) => void): OrgChart;
|
|
241
241
|
|
|
242
242
|
/**
|
|
@@ -293,7 +293,7 @@ declare class OrgChart {
|
|
|
293
293
|
/**
|
|
294
294
|
* new added data node
|
|
295
295
|
*/
|
|
296
|
-
data:
|
|
296
|
+
data: nodeData
|
|
297
297
|
}) => void): OrgChart;
|
|
298
298
|
/**
|
|
299
299
|
* The onDrag event occurs when a node is dragged. *enableDragDrop* option has to be turned on.
|
|
@@ -433,7 +433,7 @@ declare class OrgChart {
|
|
|
433
433
|
* @param callback called at the end of animation
|
|
434
434
|
* @param fireEvent indicates if the add event will be called or not
|
|
435
435
|
*/
|
|
436
|
-
addNode(data:
|
|
436
|
+
addNode(data: nodeData, callback?: () => void, fireEvent?: boolean): void;
|
|
437
437
|
|
|
438
438
|
/**
|
|
439
439
|
* Removes specified node from nodes collection, redraws the chart and fires remove event.
|
|
@@ -457,7 +457,7 @@ declare class OrgChart {
|
|
|
457
457
|
* ```
|
|
458
458
|
* @param id identification number of the node
|
|
459
459
|
*/
|
|
460
|
-
get(id: string | number):
|
|
460
|
+
get(id: string | number): nodeData;
|
|
461
461
|
/**
|
|
462
462
|
* If specified node has assistant/s or partner/s as children will return false.
|
|
463
463
|
* ```typescript
|
|
@@ -552,10 +552,12 @@ declare class OrgChart {
|
|
|
552
552
|
* { id: 3, pid: 1, name: "Caden Ellison" }
|
|
553
553
|
* ]);
|
|
554
554
|
* ```
|
|
555
|
-
* @param data
|
|
555
|
+
* @param data nodes data array
|
|
556
556
|
* @param callback function called after the load
|
|
557
557
|
*/
|
|
558
|
-
load(data: Array<
|
|
558
|
+
load(data: Array<nodeData>, callback?: () => void): OrgChart;
|
|
559
|
+
|
|
560
|
+
|
|
559
561
|
|
|
560
562
|
/**
|
|
561
563
|
* Updates the node data, redraws the chart and fires update event.
|
|
@@ -568,7 +570,7 @@ declare class OrgChart {
|
|
|
568
570
|
* @param callback function called when the animation completes
|
|
569
571
|
* @param fireEvent if it set to true the update event is called
|
|
570
572
|
*/
|
|
571
|
-
updateNode(data:
|
|
573
|
+
updateNode(data: nodeData, callback?: () => void, fireEvent?: boolean): void;
|
|
572
574
|
|
|
573
575
|
/**
|
|
574
576
|
* Loads nodes from xml.
|
|
@@ -1043,7 +1045,7 @@ declare class OrgChart {
|
|
|
1043
1045
|
childLevels?: boolean,
|
|
1044
1046
|
parentLevels?: boolean,
|
|
1045
1047
|
min?: boolean,
|
|
1046
|
-
pages?: {
|
|
1048
|
+
pages?: Array<{
|
|
1047
1049
|
chartInstance?: OrgChart,
|
|
1048
1050
|
nodeId?: number | string,
|
|
1049
1051
|
expandChildren?: boolean,
|
|
@@ -1052,7 +1054,7 @@ declare class OrgChart {
|
|
|
1052
1054
|
min?: boolean,
|
|
1053
1055
|
header?: string,
|
|
1054
1056
|
footer?: string
|
|
1055
|
-
}
|
|
1057
|
+
}>,
|
|
1056
1058
|
format?: "Screen" | "Widescreen" | "Standard" | "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal",
|
|
1057
1059
|
header?: string,
|
|
1058
1060
|
footer?: string
|
|
@@ -2314,9 +2316,39 @@ declare class OrgChart {
|
|
|
2314
2316
|
static grCloseTag: any;
|
|
2315
2317
|
}
|
|
2316
2318
|
|
|
2317
|
-
|
|
2319
|
+
/**
|
|
2320
|
+
* The node JSON data
|
|
2321
|
+
* ```ts
|
|
2322
|
+
* { id: 2, pid: 1, tags: ["HR"], name: "Anna Smith" }
|
|
2323
|
+
* ```
|
|
2324
|
+
*/
|
|
2325
|
+
interface nodeData {
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* the id of the node
|
|
2329
|
+
*/
|
|
2318
2330
|
id: number | string,
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
* the parent id
|
|
2334
|
+
*/
|
|
2319
2335
|
pid?: number | string,
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* the parent partner id
|
|
2339
|
+
*/
|
|
2340
|
+
ppid?: number | string,
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* the subtree parent id
|
|
2344
|
+
*/
|
|
2345
|
+
stPid?: number | string,
|
|
2346
|
+
|
|
2347
|
+
/**
|
|
2348
|
+
* Set custom configuration for the tagged node
|
|
2349
|
+
*{@link https://balkan.app/OrgChartJS/Docs/Tags | See Tags doc page...}
|
|
2350
|
+
*/
|
|
2351
|
+
tags?: Array<string>,
|
|
2320
2352
|
[key: string]: any
|
|
2321
2353
|
}
|
|
2322
2354
|
|
|
@@ -4747,6 +4779,9 @@ declare namespace OrgChart {
|
|
|
4747
4779
|
* - Change node menu, circle menu and context menu items for tagged node/s {@link https://balkan.app/OrgChartJS/Docs/Menus | See doc...}
|
|
4748
4780
|
* - Set the node level {@link https://balkan.app/OrgChartJS/Demos/SubLevels | See demo...}
|
|
4749
4781
|
* - Set specific options for sub trees like layout templates etc {@link https://balkan.app/OrgChartJS/Docs/SubTrees | See doc...}
|
|
4782
|
+
* * - Set specific options for sub trees like layout templates, etc. {@link https://balkan.app/OrgChartJS/Docs/SubTrees | See doc...}
|
|
4783
|
+
* - Set custom CSS, for example node color, field color, etc. {@link https://balkan.app/OrgChartJS/Docs/CSSCustomization | See CSS doc page...}
|
|
4784
|
+
* - {@link https://balkan.app/OrgChartJS/Docs/Tags | See Tags doc page...}
|
|
4750
4785
|
* ```typescript
|
|
4751
4786
|
* var chart = new OrgChart('#tree', {
|
|
4752
4787
|
* tags: {
|
package/orgchart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
1
|
+
/* eslint-disable */
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"author":{"name":"BALKAN App"},"bugs":{"email":"support@balkan.app","url":"https://github.com/BALKANGraph/OrgChartJS/issues"},"deprecated":false,"description":"Ultimate Organizational Chart JavaScript library, Interactive Diagrams","files":["orgchart.js","orgchart.d.ts","package.json","README.md"],"homepage":"https://balkan.app/","keywords":["diagram","chart","tree","orgchart","graph","svg","hierarchy","family-tree","decision-tree","visualization","tree-layout","hierarchical","javascript","js","html","html5"],"license":"SEE LICENSE IN https://balkan.app","main":"orgchart.js","types":"orgchart.d.ts","name":"@balkangraph/orgchart.js","repository":{"type":"git","url":"https://github.com/BALKANGraph/OrgChartJS"},"dependencies":{},"version":"8.17.
|
|
1
|
+
{"author":{"name":"BALKAN App"},"bugs":{"email":"support@balkan.app","url":"https://github.com/BALKANGraph/OrgChartJS/issues"},"deprecated":false,"description":"Ultimate Organizational Chart JavaScript library, Interactive Diagrams","files":["orgchart.js","orgchart.d.ts","package.json","README.md"],"homepage":"https://balkan.app/","keywords":["diagram","chart","tree","orgchart","graph","svg","hierarchy","family-tree","decision-tree","visualization","tree-layout","hierarchical","javascript","js","html","html5"],"license":"SEE LICENSE IN https://balkan.app","main":"orgchart.js","types":"orgchart.d.ts","name":"@balkangraph/orgchart.js","repository":{"type":"git","url":"https://github.com/BALKANGraph/OrgChartJS"},"dependencies":{},"version":"8.17.05"}
|