@balkangraph/orgchart.js 8.14.42 → 8.14.45

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
@@ -1462,6 +1462,13 @@ declare namespace OrgChart {
1462
1462
  template?: string,
1463
1463
  label?: string
1464
1464
  }
1465
+ interface backdrop {
1466
+ id?: string | number,
1467
+ levels?: number,
1468
+ color?: string,
1469
+ opacity?: number,
1470
+ except?: Array<string | number>
1471
+ }
1465
1472
  interface dottedLine {
1466
1473
  from?: string | number,
1467
1474
  to?: string | number,
@@ -2002,6 +2009,19 @@ declare namespace OrgChart {
2002
2009
  */
2003
2010
  slinks?: Array<OrgChart.link>,
2004
2011
 
2012
+ /**
2013
+ * Adds backdrops to the specidied nodes.
2014
+ * ```typescript
2015
+ * var chart = new OrgChart('#tree', {
2016
+ * backdrops: [
2017
+ * { id: 5, levels: 2, color: '#039BE5', opacity: 0.2 }
2018
+ * ]
2019
+ * });
2020
+ * ```
2021
+ */
2022
+ backdrops?: Array<OrgChart.backdrop>,
2023
+
2024
+
2005
2025
  /**
2006
2026
  * Adds dotted line.
2007
2027
  * ```typescript
@@ -2044,6 +2064,15 @@ declare namespace OrgChart {
2044
2064
  * ```
2045
2065
  */
2046
2066
  siblingSeparation?: number,
2067
+ /**
2068
+ * The padding between the node and the backdrop. Default value - *15*
2069
+ * ```typescript
2070
+ * var chart = new OrgChart('#tree', {
2071
+ * backdropSeparation: 15
2072
+ * });
2073
+ * ```
2074
+ */
2075
+ backdropSeparation?: number,
2047
2076
  /**
2048
2077
  * The gap between subtrees. Default value - *40*
2049
2078
  * ```typescript