@mindfusion/graphs 4.0.0 → 4.0.2
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 +57 -0
- package/package.json +1 -2
package/graphs.d.ts
CHANGED
|
@@ -559,6 +559,11 @@ declare module "Graphs/Graph" {
|
|
|
559
559
|
* @returns {Graph} The newly created tree.
|
|
560
560
|
*/
|
|
561
561
|
tree(root: Vertex, enableAssistants: boolean, compactAssistants: boolean): Graph;
|
|
562
|
+
collectLevels(parent: any): void;
|
|
563
|
+
/**
|
|
564
|
+
* @private
|
|
565
|
+
*/
|
|
566
|
+
private childrenOf;
|
|
562
567
|
/**
|
|
563
568
|
* Reassigns tree levels when "assistants" are enabled.
|
|
564
569
|
* @private
|
|
@@ -1883,6 +1888,57 @@ declare module "Graphs/OrthogonalLayout" {
|
|
|
1883
1888
|
import { Layout } from "Graphs/Layout";
|
|
1884
1889
|
import DrawingGrid from "Graphs/DrawingGrid";
|
|
1885
1890
|
}
|
|
1891
|
+
declare module "Graphs/RadialTreeLayout" {
|
|
1892
|
+
/**
|
|
1893
|
+
* @class Implements a radial tree layout algorithm.
|
|
1894
|
+
* @augments Layout
|
|
1895
|
+
*/
|
|
1896
|
+
export class RadialTreeLayout extends Layout {
|
|
1897
|
+
set levelDistance(arg: number);
|
|
1898
|
+
/**
|
|
1899
|
+
* Gets or sets the space to leave between adjacent levels of the tree.
|
|
1900
|
+
* @type {Number}
|
|
1901
|
+
* @summary The space to leave between adjacent levels of the tree.
|
|
1902
|
+
*/
|
|
1903
|
+
get levelDistance(): number;
|
|
1904
|
+
set keepRootPosition(arg: boolean);
|
|
1905
|
+
/**
|
|
1906
|
+
* Gets or sets a value indicating whether to keep the root node at its original position.
|
|
1907
|
+
* @type {Boolean}
|
|
1908
|
+
* @summary true if the root node should be kept at its original position, or false otherwise.
|
|
1909
|
+
*/
|
|
1910
|
+
get keepRootPosition(): boolean;
|
|
1911
|
+
set direction(arg: number);
|
|
1912
|
+
/**
|
|
1913
|
+
* Gets or sets the orientation of the arranged graph.
|
|
1914
|
+
* @type {LayoutDirection}
|
|
1915
|
+
* @summary A member of the LayoutDirection enumeration.
|
|
1916
|
+
*/
|
|
1917
|
+
get direction(): number;
|
|
1918
|
+
set stretchFactor(arg: number);
|
|
1919
|
+
/**
|
|
1920
|
+
* Gets or sets the stretch factor in radial layouts.
|
|
1921
|
+
* @type {Number}
|
|
1922
|
+
* @summary The stretch factor.
|
|
1923
|
+
*/
|
|
1924
|
+
get stretchFactor(): number;
|
|
1925
|
+
/**
|
|
1926
|
+
* Applies the layout to the specified graph.
|
|
1927
|
+
* @param {Graph} graph The graph to arrange.
|
|
1928
|
+
*/
|
|
1929
|
+
arrange(graph: any): any;
|
|
1930
|
+
tree: any;
|
|
1931
|
+
arrangeLevel(parentLevel: any): any;
|
|
1932
|
+
calcBounds(): any;
|
|
1933
|
+
calcRadius(level: any): any;
|
|
1934
|
+
getType(): any;
|
|
1935
|
+
_levelDistance: number;
|
|
1936
|
+
_keepRootPosition: boolean;
|
|
1937
|
+
_direction: number;
|
|
1938
|
+
_stretchFactor: number;
|
|
1939
|
+
}
|
|
1940
|
+
import { Layout } from "Graphs/Layout";
|
|
1941
|
+
}
|
|
1886
1942
|
declare module "@mindfusion/graphs" {
|
|
1887
1943
|
import { AssistantPosition, AssistantType, Anchoring, LayoutDirection, TreeLayoutLinkType, MultipleGraphsPlacement, Orientation } from "Graphs/Enum";
|
|
1888
1944
|
export { AssistantPosition, AssistantType, Anchoring, LayoutDirection, TreeLayoutLinkType, MultipleGraphsPlacement, Orientation };
|
|
@@ -1897,4 +1953,5 @@ declare module "@mindfusion/graphs" {
|
|
|
1897
1953
|
export { TreeLayout } from "Graphs/TreeLayout";
|
|
1898
1954
|
export { TreeMapLayout } from "Graphs/TreeMapLayout";
|
|
1899
1955
|
export { OrthogonalLayout } from "Graphs/OrthogonalLayout";
|
|
1956
|
+
export { RadialTreeLayout } from "Graphs/RadialTreeLayout";
|
|
1900
1957
|
}
|