@mindfusion/graphs 4.0.1 → 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/dist/cjs/graphs.js +1 -1
- package/dist/esm/graphs.js +1 -1
- package/dist/umd/graphs.js +1 -1
- package/graphs.d.ts +99 -1
- package/package.json +1 -2
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,12 @@ 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;
|
|
573
|
+
collectLevels(parent: any): void;
|
|
574
|
+
/**
|
|
575
|
+
* @private
|
|
576
|
+
*/
|
|
577
|
+
private childrenOf;
|
|
562
578
|
/**
|
|
563
579
|
* Reassigns tree levels when "assistants" are enabled.
|
|
564
580
|
* @private
|
|
@@ -910,11 +926,19 @@ declare module "Graphs/BorderedTreeLayout" {
|
|
|
910
926
|
* @summary A member of the TreeLayoutLinkType enumeration.
|
|
911
927
|
*/
|
|
912
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;
|
|
913
936
|
/**
|
|
914
937
|
* Applies the layout to the specified graph.
|
|
915
938
|
* @param {Graph} graph The graph to arrange.
|
|
916
939
|
*/
|
|
917
940
|
arrange(graph: any): any;
|
|
941
|
+
treeHelper: TreeHelper;
|
|
918
942
|
/**
|
|
919
943
|
* @private
|
|
920
944
|
*/
|
|
@@ -954,8 +978,10 @@ declare module "Graphs/BorderedTreeLayout" {
|
|
|
954
978
|
_keepRootPosition: boolean;
|
|
955
979
|
_direction: number;
|
|
956
980
|
_linkType: number;
|
|
981
|
+
_reversedLinks: boolean;
|
|
957
982
|
}
|
|
958
983
|
import { Layout } from "Graphs/Layout";
|
|
984
|
+
import TreeHelper from "Graphs/TreeHelper";
|
|
959
985
|
}
|
|
960
986
|
declare module "Graphs/LayoutUtils" {
|
|
961
987
|
export default LayoutUtils;
|
|
@@ -1495,11 +1521,19 @@ declare module "Graphs/TreeLayout" {
|
|
|
1495
1521
|
* are arranged as close to each other as possible, or false otherwise.
|
|
1496
1522
|
*/
|
|
1497
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;
|
|
1498
1531
|
/**
|
|
1499
1532
|
* Applies the layout to the specified graph.
|
|
1500
1533
|
* @param {Graph} graph The graph to arrange.
|
|
1501
1534
|
*/
|
|
1502
1535
|
arrange(graph: any): any;
|
|
1536
|
+
treeHelper: TreeHelper;
|
|
1503
1537
|
/**
|
|
1504
1538
|
* @private
|
|
1505
1539
|
*/
|
|
@@ -1552,8 +1586,10 @@ declare module "Graphs/TreeLayout" {
|
|
|
1552
1586
|
_linkType: number;
|
|
1553
1587
|
_enableAssistants: boolean;
|
|
1554
1588
|
_compactAssistants: boolean;
|
|
1589
|
+
_reversedLinks: boolean;
|
|
1555
1590
|
}
|
|
1556
1591
|
import { Layout } from "Graphs/Layout";
|
|
1592
|
+
import TreeHelper from "Graphs/TreeHelper";
|
|
1557
1593
|
}
|
|
1558
1594
|
declare module "Graphs/TreeMapLayout" {
|
|
1559
1595
|
/**
|
|
@@ -1883,6 +1919,67 @@ declare module "Graphs/OrthogonalLayout" {
|
|
|
1883
1919
|
import { Layout } from "Graphs/Layout";
|
|
1884
1920
|
import DrawingGrid from "Graphs/DrawingGrid";
|
|
1885
1921
|
}
|
|
1922
|
+
declare module "Graphs/RadialTreeLayout" {
|
|
1923
|
+
/**
|
|
1924
|
+
* @class Implements a radial tree layout algorithm.
|
|
1925
|
+
* @augments Layout
|
|
1926
|
+
*/
|
|
1927
|
+
export class RadialTreeLayout extends Layout {
|
|
1928
|
+
set levelDistance(arg: number);
|
|
1929
|
+
/**
|
|
1930
|
+
* Gets or sets the space to leave between adjacent levels of the tree.
|
|
1931
|
+
* @type {Number}
|
|
1932
|
+
* @summary The space to leave between adjacent levels of the tree.
|
|
1933
|
+
*/
|
|
1934
|
+
get levelDistance(): number;
|
|
1935
|
+
set keepRootPosition(arg: boolean);
|
|
1936
|
+
/**
|
|
1937
|
+
* Gets or sets a value indicating whether to keep the root node at its original position.
|
|
1938
|
+
* @type {Boolean}
|
|
1939
|
+
* @summary true if the root node should be kept at its original position, or false otherwise.
|
|
1940
|
+
*/
|
|
1941
|
+
get keepRootPosition(): boolean;
|
|
1942
|
+
set direction(arg: number);
|
|
1943
|
+
/**
|
|
1944
|
+
* Gets or sets the orientation of the arranged graph.
|
|
1945
|
+
* @type {LayoutDirection}
|
|
1946
|
+
* @summary A member of the LayoutDirection enumeration.
|
|
1947
|
+
*/
|
|
1948
|
+
get direction(): number;
|
|
1949
|
+
set stretchFactor(arg: number);
|
|
1950
|
+
/**
|
|
1951
|
+
* Gets or sets the stretch factor in radial layouts.
|
|
1952
|
+
* @type {Number}
|
|
1953
|
+
* @summary The stretch factor.
|
|
1954
|
+
*/
|
|
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;
|
|
1963
|
+
/**
|
|
1964
|
+
* Applies the layout to the specified graph.
|
|
1965
|
+
* @param {Graph} graph The graph to arrange.
|
|
1966
|
+
*/
|
|
1967
|
+
arrange(graph: any): any;
|
|
1968
|
+
treeHelper: TreeHelper;
|
|
1969
|
+
tree: any;
|
|
1970
|
+
arrangeLevel(parentLevel: any): any;
|
|
1971
|
+
calcBounds(): any;
|
|
1972
|
+
calcRadius(level: any): any;
|
|
1973
|
+
getType(): any;
|
|
1974
|
+
_levelDistance: number;
|
|
1975
|
+
_keepRootPosition: boolean;
|
|
1976
|
+
_direction: number;
|
|
1977
|
+
_stretchFactor: number;
|
|
1978
|
+
_reversedLinks: boolean;
|
|
1979
|
+
}
|
|
1980
|
+
import { Layout } from "Graphs/Layout";
|
|
1981
|
+
import TreeHelper from "Graphs/TreeHelper";
|
|
1982
|
+
}
|
|
1886
1983
|
declare module "@mindfusion/graphs" {
|
|
1887
1984
|
import { AssistantPosition, AssistantType, Anchoring, LayoutDirection, TreeLayoutLinkType, MultipleGraphsPlacement, Orientation } from "Graphs/Enum";
|
|
1888
1985
|
export { AssistantPosition, AssistantType, Anchoring, LayoutDirection, TreeLayoutLinkType, MultipleGraphsPlacement, Orientation };
|
|
@@ -1897,4 +1994,5 @@ declare module "@mindfusion/graphs" {
|
|
|
1897
1994
|
export { TreeLayout } from "Graphs/TreeLayout";
|
|
1898
1995
|
export { TreeMapLayout } from "Graphs/TreeMapLayout";
|
|
1899
1996
|
export { OrthogonalLayout } from "Graphs/OrthogonalLayout";
|
|
1997
|
+
export { RadialTreeLayout } from "Graphs/RadialTreeLayout";
|
|
1900
1998
|
}
|