@fluentui/react-charting 5.11.0 → 5.12.0
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/CHANGELOG.json +36 -1
- package/CHANGELOG.md +13 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/TreeChart.d.ts +1 -0
- package/lib/TreeChart.js +2 -0
- package/lib/TreeChart.js.map +1 -0
- package/lib/Utilities.d.ts +1 -1
- package/lib/Utilities.js +4 -2
- package/lib/Utilities.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.base.d.ts +18 -0
- package/lib/components/TreeChart/TreeChart.base.js +239 -0
- package/lib/components/TreeChart/TreeChart.base.js.map +1 -0
- package/lib/components/TreeChart/TreeChart.d.ts +3 -0
- package/lib/components/TreeChart/TreeChart.js +5 -0
- package/lib/components/TreeChart/TreeChart.js.map +1 -0
- package/lib/components/TreeChart/TreeChart.styles.d.ts +2 -0
- package/lib/components/TreeChart/TreeChart.styles.js +20 -0
- package/lib/components/TreeChart/TreeChart.styles.js.map +1 -0
- package/lib/components/TreeChart/TreeChart.types.d.ts +88 -0
- package/lib/components/TreeChart/TreeChart.types.js +11 -0
- package/lib/components/TreeChart/TreeChart.types.js.map +1 -0
- package/lib/components/TreeChart/index.d.ts +2 -0
- package/lib/components/TreeChart/index.js +3 -0
- package/lib/components/TreeChart/index.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/TreeChart.d.ts +1 -0
- package/lib-amd/TreeChart.js +6 -0
- package/lib-amd/TreeChart.js.map +1 -0
- package/lib-amd/Utilities.d.ts +1 -1
- package/lib-amd/Utilities.js +3 -1
- package/lib-amd/Utilities.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.base.d.ts +18 -0
- package/lib-amd/components/TreeChart/TreeChart.base.js +238 -0
- package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -0
- package/lib-amd/components/TreeChart/TreeChart.d.ts +3 -0
- package/lib-amd/components/TreeChart/TreeChart.js +7 -0
- package/lib-amd/components/TreeChart/TreeChart.js.map +1 -0
- package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +2 -0
- package/lib-amd/components/TreeChart/TreeChart.styles.js +25 -0
- package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -0
- package/lib-amd/components/TreeChart/TreeChart.types.d.ts +88 -0
- package/lib-amd/components/TreeChart/TreeChart.types.js +16 -0
- package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -0
- package/lib-amd/components/TreeChart/index.d.ts +2 -0
- package/lib-amd/components/TreeChart/index.js +7 -0
- package/lib-amd/components/TreeChart/index.js.map +1 -0
- package/lib-amd/index.d.ts +1 -0
- package/lib-amd/index.js +2 -1
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/TreeChart.d.ts +1 -0
- package/lib-commonjs/TreeChart.js +5 -0
- package/lib-commonjs/TreeChart.js.map +1 -0
- package/lib-commonjs/Utilities.d.ts +1 -1
- package/lib-commonjs/Utilities.js +6 -4
- package/lib-commonjs/Utilities.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.base.d.ts +18 -0
- package/lib-commonjs/components/TreeChart/TreeChart.base.js +242 -0
- package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -0
- package/lib-commonjs/components/TreeChart/TreeChart.d.ts +3 -0
- package/lib-commonjs/components/TreeChart/TreeChart.js +8 -0
- package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -0
- package/lib-commonjs/components/TreeChart/TreeChart.styles.d.ts +2 -0
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js +24 -0
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -0
- package/lib-commonjs/components/TreeChart/TreeChart.types.d.ts +88 -0
- package/lib-commonjs/components/TreeChart/TreeChart.types.js +14 -0
- package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -0
- package/lib-commonjs/components/TreeChart/index.d.ts +2 -0
- package/lib-commonjs/components/TreeChart/index.js +6 -0
- package/lib-commonjs/components/TreeChart/index.js.map +1 -0
- package/lib-commonjs/index.d.ts +1 -0
- package/lib-commonjs/index.js +1 -0
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +6 -4
- package/src/components/TreeChart/TreeChart.types.ts +89 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
|
|
2
|
+
import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
|
+
export interface ITreeChartDataPoint {
|
|
4
|
+
name: string;
|
|
5
|
+
subname: string;
|
|
6
|
+
metric?: string | undefined;
|
|
7
|
+
fill: string;
|
|
8
|
+
children?: Array<ITreeChartDataPoint>;
|
|
9
|
+
}
|
|
10
|
+
export declare enum NodesComposition {
|
|
11
|
+
long = 1,
|
|
12
|
+
compact = 0
|
|
13
|
+
}
|
|
14
|
+
export declare enum TreeTraverse {
|
|
15
|
+
preOrder = 1,
|
|
16
|
+
levelOrder = 0
|
|
17
|
+
}
|
|
18
|
+
export interface ITreeProps {
|
|
19
|
+
/**
|
|
20
|
+
* An object of chart data points for the Tree chart
|
|
21
|
+
*/
|
|
22
|
+
treeData: ITreeChartDataPoint;
|
|
23
|
+
/**
|
|
24
|
+
* compostion for three layer chart, long: composition = 1; compact: composition = 0
|
|
25
|
+
*/
|
|
26
|
+
composition?: NodesComposition.long | NodesComposition.compact | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* traversal order for tree chart, preOrder = 1, levelOrder = 0
|
|
29
|
+
*/
|
|
30
|
+
treeTraversal?: TreeTraverse.preOrder | TreeTraverse.levelOrder;
|
|
31
|
+
/**
|
|
32
|
+
* Width of SVG tree chart
|
|
33
|
+
* * @default 1200
|
|
34
|
+
*/
|
|
35
|
+
width?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Height of SVG tree chart
|
|
38
|
+
* * @default 700
|
|
39
|
+
*/
|
|
40
|
+
height?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Margin for the SVG tree chart
|
|
43
|
+
*/
|
|
44
|
+
marign?: {
|
|
45
|
+
left: number;
|
|
46
|
+
right: number;
|
|
47
|
+
top: number;
|
|
48
|
+
bottom: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
52
|
+
*/
|
|
53
|
+
styles?: IStyleFunctionOrObject<ITreeStyleProps, ITreeStyles>;
|
|
54
|
+
/**
|
|
55
|
+
* Additional CSS class(es) to apply to the TreeChart.
|
|
56
|
+
*/
|
|
57
|
+
className?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Theme (provided through customization.)
|
|
60
|
+
*/
|
|
61
|
+
theme?: ITheme;
|
|
62
|
+
}
|
|
63
|
+
export interface ITreeState {
|
|
64
|
+
_width: number;
|
|
65
|
+
_height: number;
|
|
66
|
+
}
|
|
67
|
+
export interface ITreeDataStructure {
|
|
68
|
+
id: number;
|
|
69
|
+
children: unknown;
|
|
70
|
+
dataName: string;
|
|
71
|
+
subName: string;
|
|
72
|
+
metricName?: string | undefined;
|
|
73
|
+
fill: string;
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
parentID: number;
|
|
77
|
+
}
|
|
78
|
+
export interface ITreeStyleProps {
|
|
79
|
+
theme: ITheme;
|
|
80
|
+
className?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface ITreeStyles {
|
|
83
|
+
link: IStyle;
|
|
84
|
+
rectNode: IStyle;
|
|
85
|
+
rectText: IStyle;
|
|
86
|
+
rectSubText: IStyle;
|
|
87
|
+
rectMetricText: IStyle;
|
|
88
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TreeTraverse = exports.NodesComposition = void 0;
|
|
4
|
+
var NodesComposition;
|
|
5
|
+
(function (NodesComposition) {
|
|
6
|
+
NodesComposition[NodesComposition["long"] = 1] = "long";
|
|
7
|
+
NodesComposition[NodesComposition["compact"] = 0] = "compact";
|
|
8
|
+
})(NodesComposition = exports.NodesComposition || (exports.NodesComposition = {}));
|
|
9
|
+
var TreeTraverse;
|
|
10
|
+
(function (TreeTraverse) {
|
|
11
|
+
TreeTraverse[TreeTraverse["preOrder"] = 1] = "preOrder";
|
|
12
|
+
TreeTraverse[TreeTraverse["levelOrder"] = 0] = "levelOrder";
|
|
13
|
+
})(TreeTraverse = exports.TreeTraverse || (exports.TreeTraverse = {}));
|
|
14
|
+
//# sourceMappingURL=TreeChart.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeChart.types.js","sourceRoot":"../src/","sources":["components/TreeChart/TreeChart.types.ts"],"names":[],"mappings":";;;AAWA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,uDAAQ,CAAA;IACR,6DAAW,CAAA;AACb,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,uDAAY,CAAA;IACZ,2DAAc,CAAA;AAChB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB","sourcesContent":["import { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\n\nexport interface ITreeChartDataPoint {\n name: string;\n subname: string;\n metric?: string | undefined;\n fill: string;\n children?: Array<ITreeChartDataPoint>;\n}\n\nexport enum NodesComposition {\n long = 1,\n compact = 0,\n}\n\nexport enum TreeTraverse {\n preOrder = 1,\n levelOrder = 0,\n}\n\nexport interface ITreeProps {\n /**\n * An object of chart data points for the Tree chart\n */\n treeData: ITreeChartDataPoint;\n /**\n * compostion for three layer chart, long: composition = 1; compact: composition = 0\n */\n composition?: NodesComposition.long | NodesComposition.compact | undefined;\n /**\n * traversal order for tree chart, preOrder = 1, levelOrder = 0\n */\n treeTraversal?: TreeTraverse.preOrder | TreeTraverse.levelOrder;\n /**\n * Width of SVG tree chart\n * * @default 1200\n */\n width?: number;\n /**\n * Height of SVG tree chart\n * * @default 700\n */\n height?: number;\n /**\n * Margin for the SVG tree chart\n */\n marign?: { left: number; right: number; top: number; bottom: number };\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ITreeStyleProps, ITreeStyles>;\n /**\n * Additional CSS class(es) to apply to the TreeChart.\n */\n className?: string;\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n}\nexport interface ITreeState {\n _width: number;\n _height: number;\n}\n\nexport interface ITreeDataStructure {\n id: number;\n children: unknown;\n dataName: string;\n subName: string;\n metricName?: string | undefined;\n fill: string;\n x: number;\n y: number;\n parentID: number;\n}\n\nexport interface ITreeStyleProps {\n theme: ITheme;\n className?: string;\n}\nexport interface ITreeStyles {\n link: IStyle;\n rectNode: IStyle;\n rectText: IStyle;\n rectSubText: IStyle;\n rectMetricText: IStyle;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/TreeChart/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,4DAAkC","sourcesContent":["export * from './TreeChart';\nexport * from './TreeChart.types';\n"]}
|
package/lib-commonjs/index.d.ts
CHANGED
package/lib-commonjs/index.js
CHANGED
|
@@ -16,6 +16,7 @@ tslib_1.__exportStar(require("./types/index"), exports);
|
|
|
16
16
|
tslib_1.__exportStar(require("./utilities/ChartHoverCard/index"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./HeatMapChart"), exports);
|
|
18
18
|
tslib_1.__exportStar(require("./SankeyChart"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./TreeChart"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./Sparkline"), exports);
|
|
20
21
|
require("./version");
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,uDAA6B;AAC7B,oDAA0B;AAC1B,sDAA4B;AAC5B,sDAA4B;AAC5B,qDAA2B;AAC3B,4DAAkC;AAClC,6DAAmC;AACnC,oEAA0C;AAC1C,oEAA0C;AAC1C,2DAAiC;AACjC,wDAA8B;AAC9B,2EAAiD;AACjD,yDAA+B;AAC/B,wDAA8B;AAC9B,sDAA4B;AAE5B,qBAAmB","sourcesContent":["export * from './HorizontalBarChart';\nexport * from './DonutChart';\nexport * from './Legends';\nexport * from './LineChart';\nexport * from './AreaChart';\nexport * from './PieChart';\nexport * from './StackedBarChart';\nexport * from './VerticalBarChart';\nexport * from './VerticalStackedBarChart';\nexport * from './GroupedVerticalBarChart';\nexport * from './CartesianChart';\nexport * from './types/index';\nexport * from './utilities/ChartHoverCard/index';\nexport * from './HeatMapChart';\nexport * from './SankeyChart';\nexport * from './Sparkline';\n\nimport './version';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,uDAA6B;AAC7B,oDAA0B;AAC1B,sDAA4B;AAC5B,sDAA4B;AAC5B,qDAA2B;AAC3B,4DAAkC;AAClC,6DAAmC;AACnC,oEAA0C;AAC1C,oEAA0C;AAC1C,2DAAiC;AACjC,wDAA8B;AAC9B,2EAAiD;AACjD,yDAA+B;AAC/B,wDAA8B;AAC9B,sDAA4B;AAC5B,sDAA4B;AAE5B,qBAAmB","sourcesContent":["export * from './HorizontalBarChart';\nexport * from './DonutChart';\nexport * from './Legends';\nexport * from './LineChart';\nexport * from './AreaChart';\nexport * from './PieChart';\nexport * from './StackedBarChart';\nexport * from './VerticalBarChart';\nexport * from './VerticalStackedBarChart';\nexport * from './GroupedVerticalBarChart';\nexport * from './CartesianChart';\nexport * from './types/index';\nexport * from './utilities/ChartHoverCard/index';\nexport * from './HeatMapChart';\nexport * from './SankeyChart';\nexport * from './TreeChart';\nexport * from './Sparkline';\n\nimport './version';\n"]}
|
package/lib-commonjs/version.js
CHANGED
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Do not modify this file; it is generated as part of publish.
|
|
4
4
|
// The checked in version is a placeholder only and will not be updated.
|
|
5
5
|
var set_version_1 = require("@fluentui/set-version");
|
|
6
|
-
set_version_1.setVersion('@fluentui/react-charting', '5.
|
|
6
|
+
set_version_1.setVersion('@fluentui/react-charting', '5.12.0');
|
|
7
7
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"../src/","sources":["version.ts"],"names":[],"mappings":";;AAAA,+DAA+D;AAC/D,wEAAwE;AACxE,qDAAmD;AACnD,wBAAU,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nimport { setVersion } from '@fluentui/set-version';\nsetVersion('@fluentui/react-charting', '5.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"../src/","sources":["version.ts"],"names":[],"mappings":";;AAAA,+DAA+D;AAC/D,wEAAwE;AACxE,qDAAmD;AACnD,wBAAU,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nimport { setVersion } from '@fluentui/set-version';\nsetVersion('@fluentui/react-charting', '5.12.0');"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-charting",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.0",
|
|
4
4
|
"description": "Experimental React charting components for building experiences for Microsoft 365.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -28,17 +28,18 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@fluentui/eslint-plugin": "*",
|
|
31
|
-
"@fluentui/react": "^8.
|
|
31
|
+
"@fluentui/react": "^8.80.0",
|
|
32
32
|
"@types/react-addons-test-utils": "0.14.18",
|
|
33
33
|
"@fluentui/scripts": "^1.0.0",
|
|
34
34
|
"@fluentui/jest-serializer-merge-styles": "^8.0.19"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@fluentui/react-focus": "^8.7.
|
|
37
|
+
"@fluentui/react-focus": "^8.7.3",
|
|
38
38
|
"@microsoft/load-themed-styles": "^1.10.26",
|
|
39
39
|
"@types/d3-array": "1.2.1",
|
|
40
40
|
"@types/d3-axis": "1.0.10",
|
|
41
41
|
"@types/d3-format": "^1.3.1",
|
|
42
|
+
"@types/d3-hierarchy": "2.0.0",
|
|
42
43
|
"@types/d3-sankey": "^0.11.0",
|
|
43
44
|
"@types/d3-scale": "2.0.0",
|
|
44
45
|
"@types/d3-selection": "1.4.1",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"d3-array": "1.2.1",
|
|
49
50
|
"d3-axis": "1.0.8",
|
|
50
51
|
"d3-format": "^1.4.4",
|
|
52
|
+
"d3-hierarchy": "2.0.0",
|
|
51
53
|
"d3-sankey": "^0.12.3",
|
|
52
54
|
"d3-scale": "2.0.0",
|
|
53
55
|
"d3-selection": "1.3.0",
|
|
@@ -56,7 +58,7 @@
|
|
|
56
58
|
"tslib": "^2.1.0"
|
|
57
59
|
},
|
|
58
60
|
"peerDependencies": {
|
|
59
|
-
"@fluentui/react": "^8.
|
|
61
|
+
"@fluentui/react": "^8.80.0",
|
|
60
62
|
"@types/react": ">=16.8.0 <18.0.0",
|
|
61
63
|
"@types/react-dom": ">=16.8.0 <18.0.0",
|
|
62
64
|
"react": ">=16.8.0 <18.0.0",
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { IStyle, ITheme } from '@fluentui/react/lib/Styling';
|
|
2
|
+
import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
|
+
|
|
4
|
+
export interface ITreeChartDataPoint {
|
|
5
|
+
name: string;
|
|
6
|
+
subname: string;
|
|
7
|
+
metric?: string | undefined;
|
|
8
|
+
fill: string;
|
|
9
|
+
children?: Array<ITreeChartDataPoint>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum NodesComposition {
|
|
13
|
+
long = 1,
|
|
14
|
+
compact = 0,
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum TreeTraverse {
|
|
18
|
+
preOrder = 1,
|
|
19
|
+
levelOrder = 0,
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ITreeProps {
|
|
23
|
+
/**
|
|
24
|
+
* An object of chart data points for the Tree chart
|
|
25
|
+
*/
|
|
26
|
+
treeData: ITreeChartDataPoint;
|
|
27
|
+
/**
|
|
28
|
+
* compostion for three layer chart, long: composition = 1; compact: composition = 0
|
|
29
|
+
*/
|
|
30
|
+
composition?: NodesComposition.long | NodesComposition.compact | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* traversal order for tree chart, preOrder = 1, levelOrder = 0
|
|
33
|
+
*/
|
|
34
|
+
treeTraversal?: TreeTraverse.preOrder | TreeTraverse.levelOrder;
|
|
35
|
+
/**
|
|
36
|
+
* Width of SVG tree chart
|
|
37
|
+
* * @default 1200
|
|
38
|
+
*/
|
|
39
|
+
width?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Height of SVG tree chart
|
|
42
|
+
* * @default 700
|
|
43
|
+
*/
|
|
44
|
+
height?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Margin for the SVG tree chart
|
|
47
|
+
*/
|
|
48
|
+
marign?: { left: number; right: number; top: number; bottom: number };
|
|
49
|
+
/**
|
|
50
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
51
|
+
*/
|
|
52
|
+
styles?: IStyleFunctionOrObject<ITreeStyleProps, ITreeStyles>;
|
|
53
|
+
/**
|
|
54
|
+
* Additional CSS class(es) to apply to the TreeChart.
|
|
55
|
+
*/
|
|
56
|
+
className?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Theme (provided through customization.)
|
|
59
|
+
*/
|
|
60
|
+
theme?: ITheme;
|
|
61
|
+
}
|
|
62
|
+
export interface ITreeState {
|
|
63
|
+
_width: number;
|
|
64
|
+
_height: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface ITreeDataStructure {
|
|
68
|
+
id: number;
|
|
69
|
+
children: unknown;
|
|
70
|
+
dataName: string;
|
|
71
|
+
subName: string;
|
|
72
|
+
metricName?: string | undefined;
|
|
73
|
+
fill: string;
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
parentID: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface ITreeStyleProps {
|
|
80
|
+
theme: ITheme;
|
|
81
|
+
className?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface ITreeStyles {
|
|
84
|
+
link: IStyle;
|
|
85
|
+
rectNode: IStyle;
|
|
86
|
+
rectText: IStyle;
|
|
87
|
+
rectSubText: IStyle;
|
|
88
|
+
rectMetricText: IStyle;
|
|
89
|
+
}
|