@balkangraph/orgchart.js 8.2.64 → 8.2.68

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
@@ -131,7 +131,7 @@ declare class OrgChart extends OrgChartBase {
131
131
  * Gets the current scale of the chart.
132
132
  * @param viewBox
133
133
  */
134
- getScale(viewBox?: Array<number>): void;
134
+ getScale(viewBox?: Array<number>): number;
135
135
  /**
136
136
  * Animates specified node with ripple animation - highlight the node.
137
137
  * @param id the id of the node
@@ -151,7 +151,7 @@ declare class OrgChart extends OrgChartBase {
151
151
  rippleId: string | number,
152
152
  vertical: boolean,
153
153
  horizontal: boolean
154
- }, callback?: () => void): void;
154
+ } | null, callback?: () => void): void;
155
155
  /**
156
156
  * Fits the content to the visible area.
157
157
  * @param callback called when the animation completes
@@ -171,6 +171,15 @@ declare class OrgChart extends OrgChartBase {
171
171
  * @param layout layout type
172
172
  * @param lcn lyout config name for the specified sub tree
173
173
  */
174
+
175
+ /**
176
+ * Adds new node to the nodes collection, redraws the chart and fires remove event
177
+ * @param data node data
178
+ * @param callback called at the end of animation
179
+ * @param fireEvent indicates if the add event will be called or not
180
+ */
181
+ addNode(data: object, callback?: () => void, fireEvent?: boolean): void;
182
+
174
183
  setLayout(layout: OrgChart.layout | number, lcn?: string): void;
175
184
  /**
176
185
  * Sets orientation.
@@ -766,6 +775,9 @@ declare class OrgChart extends OrgChartBase {
766
775
  static attr: any;
767
776
  static toolbarUI: any;
768
777
  static elements: any;
778
+
779
+ static expcollOpenTag: any;
780
+ static grCloseTag: any;
769
781
  }
770
782
 
771
783
  declare namespace OrgChart {
@@ -1973,6 +1985,21 @@ declare namespace OrgChart {
1973
1985
  elements?: Array<OrgChart.editFormElement | Array<OrgChart.editFormElement>>
1974
1986
  }
1975
1987
  }
1988
+
1989
+ var ui: {
1990
+ defs(fromrender: string): string;
1991
+ lonely(config: Object): string;
1992
+ pointer(config: Object, action: OrgChart.action, scale: number): string;
1993
+ node(node: OrgChart.node, data: Object, animations: OrgChart.anim, config: Object, x: number | undefined, y: number | undefined, nodeBinding: Object | undefined, action: OrgChart.action, scale: number, sender: Object): string;
1994
+ nodeBtns(config: Object, node: OrgChart.node, action: OrgChart.action, t: Object, sender: Object): string;
1995
+ expandCollapseBtn(chart: OrgChart, node: OrgChart.node, layoutConfigs: any, action: OrgChart.action, scale: number): string;
1996
+ link(node: OrgChart.node, obj: Object, scale: number, bordersByRootIdAndLevel: Object, nodes: Object, action: OrgChart.action): Array<string>;
1997
+ svg(width: number, height: number, viewBox: Array<number>, config: Object, content: string, scale: number): string;
1998
+ menuButton(config: Object): string;
1999
+
2000
+ };
2001
+
2002
+ var t: any;
1976
2003
  }
1977
2004
 
1978
2005
  declare class OrgChartBase {
@@ -1992,13 +2019,7 @@ declare class OrgChartBase {
1992
2019
  */
1993
2020
  removeNode(id: string | number, callback?: () => void, fireEvent?: boolean): void;
1994
2021
 
1995
- /**
1996
- * Adds new node to the nodes collection, redraws the chart and fires remove event
1997
- * @param data node data
1998
- * @param callback called at the end of animation
1999
- * @param fireEvent indicates if the add event will be called or not
2000
- */
2001
- addNode(data: object, callback?: () => void, fireEvent?: boolean): void;
2022
+
2002
2023
 
2003
2024
  /**
2004
2025
  * The on() method of the OrgChart class sets up a function that will be called whenever the specified event is delivered to the target. *
@@ -2006,7 +2027,7 @@ declare class OrgChartBase {
2006
2027
  * @param type A case-sensitive string representing the event type to listen for.
2007
2028
  * @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
2008
2029
  */
2009
- on(type: "init" | "field" | "update" | "add" | "remove" | "renderbuttons" | "label" | "render-link" | "drag" | "drop" | "redraw" | "expcollclick" | "exportstart" | "exportend" | "click" | "dbclick" | "slink-click" | "clink-click" | "up-click" | "import" | "adding" | "added" | "updated" | "key-down" | "visibility-change" | "renderdefs" | "render" | "prerender" | "screen-reader-text" | "removed" | "ready" | "ripple", listener: (sender: OrgChart, args?: any, args1?: any, args2?: any) => void | boolean): OrgChart;
2030
+ on(type: "init" | "field" | "update" | "add" | "remove" | "renderbuttons" | "label" | "render-link" | "drag" | "drop" | "redraw" | "expcollclick" | "exportstart" | "exportend" | "click" | "dbclick" | "slink-click" | "clink-click" | "up-click" | "searchclick" | "import" | "adding" | "added" | "updated" | "key-down" | "visibility-change" | "renderdefs" | "render" | "prerender" | "screen-reader-text" | "removed" | "ready" | "ripple", listener: (sender: OrgChart, args?: any, args1?: any, args2?: any) => void | boolean): OrgChart;
2010
2031
 
2011
2032
  /**
2012
2033
  * Occurs when the node data has been updated by updateNode method.