@balkangraph/orgchart.js 8.14.65 → 8.14.67

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
@@ -13,6 +13,12 @@ declare class OrgChart extends OrgChartBase {
13
13
 
14
14
 
15
15
  /**
16
+ * ```typescript
17
+ * var chart = new OrgChart('#tree', {});
18
+ * chart.load(nodes);
19
+ * chart.update({ id: 1, name: "Updated Name", title: "Updated Title" });
20
+ * chart.draw();
21
+ * ```
16
22
  * Updates the node data
17
23
  * @param newData node data
18
24
  */
@@ -708,7 +714,7 @@ declare class OrgChart extends OrgChartBase {
708
714
  expandChildren?: boolean,
709
715
  min?: boolean,
710
716
  nodeId? : number | string
711
- }>, filename?: string, openInNewTab?: boolean, callback: (arrayBuffer: ArrayBuffer) => void): void;
717
+ }>, filename?: string, openInNewTab?: boolean, callback?: (arrayBuffer: ArrayBuffer) => void): void;
712
718
 
713
719
  static isMobile(): boolean;
714
720
  /**