@balkangraph/orgchart.js 8.12.3 → 8.12.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 CHANGED
@@ -662,6 +662,15 @@ declare class OrgChart extends OrgChartBase {
662
662
  static isNEU(val: any): boolean;
663
663
  static gradientCircleForDefs(id: string | number, colors: Array<string> | string, r: number, strokeWidth: number): string;
664
664
  static convertCsvToNodes(text: string) : Array<Object>;
665
+ /**
666
+ * SVG Path rounding function. Takes an input path string or commands and outputs a path
667
+ * string where all line-line corners have been rounded.
668
+ * @param commands The SVG input path or commands array
669
+ * @param radius
670
+ * @param useFractionalRadius The amount to round the corners, either a value in the SVG coordinate space, or, if useFractionalRadius is true, a value from 0 to 1.
671
+ * @returns A new SVG path string with the rounding
672
+ */
673
+ static roundPathCorners(commands: string | Array<Array<any>>, radius: number, useFractionalRadius: boolean) : string;
665
674
  static convertNodesToCsv(nodes: Array<Object>) : string;
666
675
  static wrapText(text: string, field: Object): string;
667
676
  /**
@@ -2270,6 +2279,7 @@ declare class OrgChartBase {
2270
2279
  }
2271
2280
 
2272
2281
 
2282
+
2273
2283
  /**
2274
2284
  * Can update link
2275
2285
  * @param id child id
@@ -2297,6 +2307,14 @@ declare class OrgChartBase {
2297
2307
  */
2298
2308
  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" | "node-initialized" | "nodes-initialized" | "node-layout", listener: (sender: OrgChart, args?: any, args1?: any, args2?: any) => void | boolean): OrgChart;
2299
2309
 
2310
+ /**
2311
+ * Removes an event listener previously registered. The event listener to be removed is identified using a combination of the event type and the event listener function itself. Returns true if success and false if fail.
2312
+ * @param type A string which specifies the type of event for which to remove an event listener
2313
+ * @param listener The event listener function of the event handler to remove from the event target
2314
+ */
2315
+ removeListener(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" | "node-initialized" | "nodes-initialized" | "node-layout", listener?: () => void): boolean;
2316
+
2317
+
2300
2318
  /**
2301
2319
  * Occurs when the node data has been updated by updateNode method.
2302
2320
  * ```typescript