@balkangraph/orgchart.js 8.2.78 → 8.2.79

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.
Files changed (3) hide show
  1. package/orgchart.d.ts +113 -110
  2. package/orgchart.js +1 -1
  3. package/package.json +1 -1
package/orgchart.d.ts CHANGED
@@ -647,6 +647,7 @@ declare class OrgChart extends OrgChartBase {
647
647
  firefox?: { smooth?: number; speed?: number; },
648
648
  opera?: { smooth?: number; speed?: number; }
649
649
  };
650
+
650
651
 
651
652
  static events: {
652
653
  on(type: "node-created" | "layout", listener: (args: any, args1: any, args2: any) => void): void
@@ -800,6 +801,118 @@ declare namespace OrgChart {
800
801
 
801
802
  var template: object;
802
803
 
804
+ interface node {
805
+ /**
806
+ * the same id you provided in the source node
807
+ */
808
+ id?: string | number,
809
+ /**
810
+ * partner parent id, it is the partner parent node id of the partner node, it is the same ppid you provided in the source node, the default value is undefined.
811
+ */
812
+ ppid?: string | number,
813
+ /**
814
+ * a reference to the parent node, default value is null, if the nodes is collapse this proprty is not initalized and can be null even if pid is not null
815
+ */
816
+ parent?: node,
817
+ /**
818
+ * ub tree parent id, it is the parent node id of the root node of the sub tree, it is the same stpid you provided in the source node, the default value is null if not provided or if node with the same id does not exist.
819
+ */
820
+ stpid?: string | number,
821
+ /**
822
+ * - a reference to the parent node of a sub tree, default value is null, if the parent node is minimized this proprty is not initalized and can be null even if we have stpid
823
+ */
824
+ stParent?: node,
825
+ isPartner?: boolean,
826
+ partnerSeparation?: number,
827
+ /**
828
+ * array of ids, always initialized
829
+ */
830
+ childrenIds?: Array<string | number>,
831
+ /**
832
+ * array of children nodes, initialized on demand if all children are collpased it will be empty array
833
+ */
834
+ children?: Array<node>,
835
+ /**
836
+ * array of sub tree children root node ids, always initialized
837
+ */
838
+ stChildrenIds?: Array<string | number>,
839
+ /**
840
+ * array of sub tree children root nodes, initialized on demand if the node is minimized it will be empty array
841
+ */
842
+ stChildren?: Array<node>,
843
+ /**
844
+ * array of string values, the same array you provided in the source node
845
+ */
846
+ tags?: Array<string>,
847
+ /**
848
+ * template name, you can specify multiple templates with tags in one chart
849
+ */
850
+ templateName?: string,
851
+ /**
852
+ * a reference to the left node neighbor, the default value is undefined
853
+ */
854
+ leftNeighbor?: node | undefined,
855
+ /**
856
+ * a reference to the right node neighbor, the default value is undefined
857
+ */
858
+ rightNeighbor?: node | undefined,
859
+ /**
860
+ * x position, default value undefined
861
+ */
862
+ x?: number | undefined,
863
+ /**
864
+ * y position, default value undefined
865
+ */
866
+ y?: number | undefined,
867
+ /**
868
+ * width of the node, default value undefined
869
+ */
870
+ w?: number | undefined,
871
+ /**
872
+ * height of the node, default value undefined
873
+ */
874
+ h?: number | undefined,
875
+ /**
876
+ * if the node is assistant is true if not false if the node is not initialized is undefined
877
+ */
878
+ isAssistant?: boolean | undefined,
879
+ /**
880
+ * sub tree container nodes array, property only for the root node, default value undefined
881
+ */
882
+ stContainerNodes?: Array<node> | undefined,
883
+ /**
884
+ * it is set only if you define order option, default value undefined
885
+ */
886
+ order?: number | undefined,
887
+ /**
888
+ * true if the node is collpased, false if it is not and undefined if not initalized
889
+ */
890
+ collapsed?: boolean | undefined,
891
+ /**
892
+ * a level of the node starting from zero
893
+ */
894
+ level?: number,
895
+ /**
896
+ * true if the node is minimized, default value undefined
897
+ */
898
+ min?: boolean | undefined,
899
+ /**
900
+ * sub levels, default value undefined
901
+ */
902
+ subLevels?: number | undefined,
903
+ /**
904
+ * set only if the node contains sub trees and padding is defined in the template, default value undefined
905
+ */
906
+ padding?: number | undefined,
907
+ /**
908
+ * layout configuration name, default value undefined
909
+ */
910
+ lcn?: string | undefined,
911
+ /**
912
+ * for assistant nodes and mixed layout we create dynamic nodes called splits, default value undefined
913
+ */
914
+ isSplit?: boolean | undefined
915
+ }
803
916
 
804
917
 
805
918
  interface template
@@ -2041,120 +2154,10 @@ declare class OrgChartBase {
2041
2154
  declare namespace OrgChart {
2042
2155
 
2043
2156
  interface node {
2044
- /**
2045
- * the same id you provided in the source node
2046
- */
2047
- id?: string | number,
2048
2157
  /**
2049
2158
  * same pid you provided in the source node, the default value is null if not provided or if node with the same id does not exist
2050
2159
  */
2051
2160
  pid?: string | number,
2052
- /**
2053
- * partner parent id, it is the partner parent node id of the partner node, it is the same ppid you provided in the source node, the default value is undefined.
2054
- */
2055
- ppid?: string | number,
2056
- /**
2057
- * a reference to the parent node, default value is null, if the nodes is collapse this proprty is not initalized and can be null even if pid is not null
2058
- */
2059
- parent?: node,
2060
- /**
2061
- * ub tree parent id, it is the parent node id of the root node of the sub tree, it is the same stpid you provided in the source node, the default value is null if not provided or if node with the same id does not exist.
2062
- */
2063
- stpid?: string | number,
2064
- /**
2065
- * - a reference to the parent node of a sub tree, default value is null, if the parent node is minimized this proprty is not initalized and can be null even if we have stpid
2066
- */
2067
- stParent?: node,
2068
- isPartner?: boolean,
2069
- partnerSeparation?: number,
2070
- /**
2071
- * array of ids, always initialized
2072
- */
2073
- childrenIds?: Array<string | number>,
2074
- /**
2075
- * array of children nodes, initialized on demand if all children are collpased it will be empty array
2076
- */
2077
- children?: Array<node>,
2078
- /**
2079
- * array of sub tree children root node ids, always initialized
2080
- */
2081
- stChildrenIds?: Array<string | number>,
2082
- /**
2083
- * array of sub tree children root nodes, initialized on demand if the node is minimized it will be empty array
2084
- */
2085
- stChildren?: Array<node>,
2086
- /**
2087
- * array of string values, the same array you provided in the source node
2088
- */
2089
- tags?: Array<string>,
2090
- /**
2091
- * template name, you can specify multiple templates with tags in one chart
2092
- */
2093
- templateName?: string,
2094
- /**
2095
- * a reference to the left node neighbor, the default value is undefined
2096
- */
2097
- leftNeighbor?: node | undefined,
2098
- /**
2099
- * a reference to the right node neighbor, the default value is undefined
2100
- */
2101
- rightNeighbor?: node | undefined,
2102
- /**
2103
- * x position, default value undefined
2104
- */
2105
- x?: number | undefined,
2106
- /**
2107
- * y position, default value undefined
2108
- */
2109
- y?: number | undefined,
2110
- /**
2111
- * width of the node, default value undefined
2112
- */
2113
- w?: number | undefined,
2114
- /**
2115
- * height of the node, default value undefined
2116
- */
2117
- h?: number | undefined,
2118
- /**
2119
- * if the node is assistant is true if not false if the node is not initialized is undefined
2120
- */
2121
- isAssistant?: boolean | undefined,
2122
- /**
2123
- * sub tree container nodes array, property only for the root node, default value undefined
2124
- */
2125
- stContainerNodes?: Array<node> | undefined,
2126
- /**
2127
- * it is set only if you define order option, default value undefined
2128
- */
2129
- order?: number | undefined,
2130
- /**
2131
- * true if the node is collpased, false if it is not and undefined if not initalized
2132
- */
2133
- collapsed?: boolean | undefined,
2134
- /**
2135
- * a level of the node starting from zero
2136
- */
2137
- level?: number,
2138
- /**
2139
- * true if the node is minimized, default value undefined
2140
- */
2141
- min?: boolean | undefined,
2142
- /**
2143
- * sub levels, default value undefined
2144
- */
2145
- subLevels?: number | undefined,
2146
- /**
2147
- * set only if the node contains sub trees and padding is defined in the template, default value undefined
2148
- */
2149
- padding?: number | undefined,
2150
- /**
2151
- * layout configuration name, default value undefined
2152
- */
2153
- lcn?: string | undefined,
2154
- /**
2155
- * for assistant nodes and mixed layout we create dynamic nodes called splits, default value undefined
2156
- */
2157
- isSplit?: boolean | undefined
2158
2161
  }
2159
2162
  /**
2160
2163
  * deprecated, use OrgChart.align.center isntead