@devtable/dashboard 8.16.0 → 8.17.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/dist/dashboard.es.js +4000 -3880
- package/dist/dashboard.umd.js +51 -51
- package/dist/plugins/viz-components/radar-chart/editors/dimensions/dimension.d.ts +11 -0
- package/dist/plugins/viz-components/radar-chart/{panel/dimensions.d.ts → editors/dimensions/index.d.ts} +1 -1
- package/dist/plugins/viz-components/radar-chart/option/index.d.ts +3 -1
- package/dist/plugins/viz-components/radar-chart/type.d.ts +7 -0
- package/dist/plugins/viz-components/radar-chart/viz-radar-chart-editor.d.ts +3 -0
- package/package.json +1 -1
- package/dist/plugins/viz-components/radar-chart/viz-radar-chart-panel.d.ts +0 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFieldArrayRemove } from 'react-hook-form';
|
|
3
|
+
import { IRadarChartConf } from '../../type';
|
|
4
|
+
interface IDimensionField {
|
|
5
|
+
control: Control<IRadarChartConf, $TSFixMe>;
|
|
6
|
+
index: number;
|
|
7
|
+
remove: UseFieldArrayRemove;
|
|
8
|
+
data: $TSFixMe[];
|
|
9
|
+
}
|
|
10
|
+
export declare function DimensionField({ control, index, remove, data }: IDimensionField): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { IRadarChartConf } from '
|
|
3
|
+
import { IRadarChartConf } from '../../type';
|
|
4
4
|
interface IDimensionsField {
|
|
5
5
|
control: Control<IRadarChartConf, $TSFixMe>;
|
|
6
6
|
watch: UseFormWatch<IRadarChartConf>;
|
|
@@ -28,7 +28,9 @@ export declare function getOption(conf: IRadarChartConf, data: $TSFixMe[]): {
|
|
|
28
28
|
};
|
|
29
29
|
legend: {
|
|
30
30
|
show: boolean;
|
|
31
|
+
bottom: number;
|
|
31
32
|
left: string;
|
|
33
|
+
type: string;
|
|
32
34
|
};
|
|
33
35
|
series: {
|
|
34
36
|
type: string;
|
|
@@ -42,7 +44,7 @@ export declare function getOption(conf: IRadarChartConf, data: $TSFixMe[]): {
|
|
|
42
44
|
};
|
|
43
45
|
areaStyle: {
|
|
44
46
|
opacity: number;
|
|
45
|
-
};
|
|
47
|
+
} | undefined;
|
|
46
48
|
label: {
|
|
47
49
|
show: boolean;
|
|
48
50
|
formatter: ({ dimensionIndex, value }: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
export interface IRadarChartDimension {
|
|
3
|
+
id: string;
|
|
3
4
|
name: string;
|
|
4
5
|
data_key: string;
|
|
5
6
|
max: number;
|
|
@@ -7,6 +8,12 @@ export interface IRadarChartDimension {
|
|
|
7
8
|
}
|
|
8
9
|
export interface IRadarChartConf {
|
|
9
10
|
series_name_key: string;
|
|
11
|
+
background: {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
};
|
|
14
|
+
label: {
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
};
|
|
10
17
|
dimensions: IRadarChartDimension[];
|
|
11
18
|
}
|
|
12
19
|
export declare const DEFAULT_CONFIG: IRadarChartConf;
|
package/package.json
CHANGED