@mindfusion/graphs 4.0.2 → 4.0.3

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/graphs.d.ts CHANGED
@@ -527,6 +527,17 @@ declare module "Graphs/Factory" {
527
527
  export default class Factory {
528
528
  }
529
529
  }
530
+ declare module "Graphs/TreeHelper" {
531
+ export default class TreeHelper {
532
+ constructor(reversedLinks: any);
533
+ reversedLinks: any;
534
+ parentNode(edge: any): any;
535
+ childNode(edge: any): any;
536
+ parentEdges(vertex: any): any;
537
+ childEdges(vertex: any): any;
538
+ assignPoints(edge: any, points: any): void;
539
+ }
540
+ }
530
541
  declare module "Graphs/Graph" {
531
542
  /**
532
543
  * @class Represents a graph.
@@ -558,7 +569,7 @@ declare module "Graphs/Graph" {
558
569
  * @param {Boolean} compactAssistants
559
570
  * @returns {Graph} The newly created tree.
560
571
  */
561
- tree(root: Vertex, enableAssistants: boolean, compactAssistants: boolean): Graph;
572
+ tree(root: Vertex, reversedLinks: any, enableAssistants: boolean, compactAssistants: boolean): Graph;
562
573
  collectLevels(parent: any): void;
563
574
  /**
564
575
  * @private
@@ -915,11 +926,19 @@ declare module "Graphs/BorderedTreeLayout" {
915
926
  * @summary A member of the TreeLayoutLinkType enumeration.
916
927
  */
917
928
  get linkType(): number;
929
+ set reversedLinks(arg: boolean);
930
+ /**
931
+ * Gets or sets a value indicating the link direction that relates parent nodes to child nodes.
932
+ * @type {Boolean}
933
+ * @summary true to indicate reversed direction (links point to parent nodes), or false otherwise.
934
+ */
935
+ get reversedLinks(): boolean;
918
936
  /**
919
937
  * Applies the layout to the specified graph.
920
938
  * @param {Graph} graph The graph to arrange.
921
939
  */
922
940
  arrange(graph: any): any;
941
+ treeHelper: TreeHelper;
923
942
  /**
924
943
  * @private
925
944
  */
@@ -959,8 +978,10 @@ declare module "Graphs/BorderedTreeLayout" {
959
978
  _keepRootPosition: boolean;
960
979
  _direction: number;
961
980
  _linkType: number;
981
+ _reversedLinks: boolean;
962
982
  }
963
983
  import { Layout } from "Graphs/Layout";
984
+ import TreeHelper from "Graphs/TreeHelper";
964
985
  }
965
986
  declare module "Graphs/LayoutUtils" {
966
987
  export default LayoutUtils;
@@ -1500,11 +1521,19 @@ declare module "Graphs/TreeLayout" {
1500
1521
  * are arranged as close to each other as possible, or false otherwise.
1501
1522
  */
1502
1523
  get compactAssistants(): boolean;
1524
+ set reversedLinks(arg: boolean);
1525
+ /**
1526
+ * Gets or sets a value indicating the link direction that relates parent nodes to child nodes.
1527
+ * @type {Boolean}
1528
+ * @summary true to indicate reversed direction (links point to parent nodes), or false otherwise.
1529
+ */
1530
+ get reversedLinks(): boolean;
1503
1531
  /**
1504
1532
  * Applies the layout to the specified graph.
1505
1533
  * @param {Graph} graph The graph to arrange.
1506
1534
  */
1507
1535
  arrange(graph: any): any;
1536
+ treeHelper: TreeHelper;
1508
1537
  /**
1509
1538
  * @private
1510
1539
  */
@@ -1557,8 +1586,10 @@ declare module "Graphs/TreeLayout" {
1557
1586
  _linkType: number;
1558
1587
  _enableAssistants: boolean;
1559
1588
  _compactAssistants: boolean;
1589
+ _reversedLinks: boolean;
1560
1590
  }
1561
1591
  import { Layout } from "Graphs/Layout";
1592
+ import TreeHelper from "Graphs/TreeHelper";
1562
1593
  }
1563
1594
  declare module "Graphs/TreeMapLayout" {
1564
1595
  /**
@@ -1922,11 +1953,19 @@ declare module "Graphs/RadialTreeLayout" {
1922
1953
  * @summary The stretch factor.
1923
1954
  */
1924
1955
  get stretchFactor(): number;
1956
+ set reversedLinks(arg: boolean);
1957
+ /**
1958
+ * Gets or sets a value indicating the link direction that relates parent nodes to child nodes.
1959
+ * @type {Boolean}
1960
+ * @summary true to indicate reversed direction (links point to parent nodes), or false otherwise.
1961
+ */
1962
+ get reversedLinks(): boolean;
1925
1963
  /**
1926
1964
  * Applies the layout to the specified graph.
1927
1965
  * @param {Graph} graph The graph to arrange.
1928
1966
  */
1929
1967
  arrange(graph: any): any;
1968
+ treeHelper: TreeHelper;
1930
1969
  tree: any;
1931
1970
  arrangeLevel(parentLevel: any): any;
1932
1971
  calcBounds(): any;
@@ -1936,8 +1975,10 @@ declare module "Graphs/RadialTreeLayout" {
1936
1975
  _keepRootPosition: boolean;
1937
1976
  _direction: number;
1938
1977
  _stretchFactor: number;
1978
+ _reversedLinks: boolean;
1939
1979
  }
1940
1980
  import { Layout } from "Graphs/Layout";
1981
+ import TreeHelper from "Graphs/TreeHelper";
1941
1982
  }
1942
1983
  declare module "@mindfusion/graphs" {
1943
1984
  import { AssistantPosition, AssistantType, Anchoring, LayoutDirection, TreeLayoutLinkType, MultipleGraphsPlacement, Orientation } from "Graphs/Enum";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "email": "info@mindfusion.eu",
5
5
  "url": "https://mindfusion.eu"
6
6
  },
7
- "version": "4.0.2",
7
+ "version": "4.0.3",
8
8
  "description": "Graphs for @mindfusion/diagramming",
9
9
  "keywords": [
10
10
  "graphs library"