@balkangraph/orgchart.js 8.17.4 → 8.17.6

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 CHANGED
@@ -434,7 +434,6 @@ declare class OrgChart {
434
434
  * @param fireEvent indicates if the add event will be called or not
435
435
  */
436
436
  addNode(data: nodeData, callback?: () => void, fireEvent?: boolean): void;
437
- // addNode(data: object, callback?: () => void, fireEvent?: boolean): void;
438
437
 
439
438
  /**
440
439
  * Removes specified node from nodes collection, redraws the chart and fires remove event.
@@ -557,7 +556,8 @@ declare class OrgChart {
557
556
  * @param callback function called after the load
558
557
  */
559
558
  load(data: Array<nodeData>, callback?: () => void): OrgChart;
560
- // load(data: Array<object>, callback?: () => void): OrgChart;
559
+
560
+
561
561
 
562
562
  /**
563
563
  * Updates the node data, redraws the chart and fires update event.
@@ -1045,7 +1045,7 @@ declare class OrgChart {
1045
1045
  childLevels?: boolean,
1046
1046
  parentLevels?: boolean,
1047
1047
  min?: boolean,
1048
- pages?: {
1048
+ pages?: Array<{
1049
1049
  chartInstance?: OrgChart,
1050
1050
  nodeId?: number | string,
1051
1051
  expandChildren?: boolean,
@@ -1054,7 +1054,7 @@ declare class OrgChart {
1054
1054
  min?: boolean,
1055
1055
  header?: string,
1056
1056
  footer?: string
1057
- },
1057
+ }>,
1058
1058
  format?: "Screen" | "Widescreen" | "Standard" | "A1" | "A2" | "A3" | "A4" | "A5" | "A4" | "Letter" | "Legal",
1059
1059
  header?: string,
1060
1060
  footer?: string
@@ -2316,6 +2316,12 @@ declare class OrgChart {
2316
2316
  static grCloseTag: any;
2317
2317
  }
2318
2318
 
2319
+ /**
2320
+ * The node JSON data
2321
+ * ```ts
2322
+ * { id: 2, pid: 1, tags: ["HR"], name: "Anna Smith" }
2323
+ * ```
2324
+ */
2319
2325
  interface nodeData {
2320
2326
 
2321
2327
  /**
@@ -4772,7 +4778,8 @@ declare namespace OrgChart {
4772
4778
  * - Set node as assistant {@link https://balkan.app/OrgChartJS/Docs/Assistant | See doc...}
4773
4779
  * - Change node menu, circle menu and context menu items for tagged node/s {@link https://balkan.app/OrgChartJS/Docs/Menus | See doc...}
4774
4780
  * - Set the node level {@link https://balkan.app/OrgChartJS/Demos/SubLevels | See demo...}
4775
- * - Set specific options for sub trees like layout templates, etc. {@link https://balkan.app/OrgChartJS/Docs/SubTrees | See doc...}
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...}
4776
4783
  * - Set custom CSS, for example node color, field color, etc. {@link https://balkan.app/OrgChartJS/Docs/CSSCustomization | See CSS doc page...}
4777
4784
  * - {@link https://balkan.app/OrgChartJS/Docs/Tags | See Tags doc page...}
4778
4785
  * ```typescript
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.04"}
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.06"}