@balkangraph/orgchart.js 8.12.4 → 8.12.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
@@ -222,6 +222,15 @@ declare class OrgChart extends OrgChartBase {
222
222
  * Destroys the object.
223
223
  */
224
224
  destroy(): void;
225
+ /**
226
+ * Replaces the id, pid, stpid, ppid and the ids in clinks, slinks, dottedLines, groupDottedLines.
227
+ * After the replacment updates the UI
228
+ * @param old_new_ids dictionary containing old and new ids
229
+ * @param callback called when the replacment completes
230
+ */
231
+ replaceIds(old_new_ids: {
232
+ [key: string]: string | number
233
+ }, callback?: () => void): void;
225
234
  /**
226
235
  * Adds curved link.
227
236
  * @param from from node with id
@@ -662,6 +671,15 @@ declare class OrgChart extends OrgChartBase {
662
671
  static isNEU(val: any): boolean;
663
672
  static gradientCircleForDefs(id: string | number, colors: Array<string> | string, r: number, strokeWidth: number): string;
664
673
  static convertCsvToNodes(text: string) : Array<Object>;
674
+ /**
675
+ * SVG Path rounding function. Takes an input path string or commands and outputs a path
676
+ * string where all line-line corners have been rounded.
677
+ * @param commands The SVG input path or commands array
678
+ * @param radius
679
+ * @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.
680
+ * @returns A new SVG path string with the rounding
681
+ */
682
+ static roundPathCorners(commands: string | Array<Array<any>>, radius: number, useFractionalRadius: boolean) : string;
665
683
  static convertNodesToCsv(nodes: Array<Object>) : string;
666
684
  static wrapText(text: string, field: Object): string;
667
685
  /**