@devtable/dashboard 8.15.1 → 8.16.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 +17069 -15935
- package/dist/dashboard.umd.js +112 -90
- package/dist/plugins/common-echarts-fields/axis-label-overflow/axis-label-overflow-field.d.ts +8 -0
- package/dist/plugins/common-echarts-fields/axis-label-overflow/index.d.ts +4 -0
- package/dist/plugins/{viz-components/cartesian/panel/x-axis/x-axis-label-overflow → common-echarts-fields/axis-label-overflow}/overflow-field.d.ts +3 -3
- package/dist/plugins/common-echarts-fields/axis-label-overflow/overflow-option.d.ts +7 -0
- package/dist/plugins/common-echarts-fields/axis-label-overflow/types.d.ts +10 -0
- package/dist/plugins/common-echarts-fields/tooltip-metric/index.d.ts +1 -0
- package/dist/plugins/common-echarts-fields/tooltip-metric/types.d.ts +5 -0
- package/dist/plugins/viz-components/boxplot-chart/index.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/type.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/index.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/type.d.ts +2 -2
- package/dist/plugins/viz-components/heatmap/editors/heat_block/index.d.ts +10 -0
- package/dist/plugins/viz-components/heatmap/editors/tooltip/index.d.ts +10 -0
- package/dist/plugins/viz-components/heatmap/editors/tooltip/metric.d.ts +11 -0
- package/dist/plugins/viz-components/heatmap/editors/tooltip/metrics.d.ts +10 -0
- package/dist/plugins/viz-components/heatmap/editors/x-axis/index.d.ts +10 -0
- package/dist/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +8 -0
- package/dist/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +3 -0
- package/dist/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/index.d.ts +10 -0
- package/dist/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/types.d.ts +8 -0
- package/dist/plugins/viz-components/heatmap/editors/y-axis/index.d.ts +11 -0
- package/dist/plugins/viz-components/heatmap/index.d.ts +2 -0
- package/dist/plugins/viz-components/heatmap/option/formatters.d.ts +11 -0
- package/dist/plugins/viz-components/heatmap/option/grid.d.ts +7 -0
- package/dist/plugins/viz-components/heatmap/option/index.d.ts +3 -0
- package/dist/plugins/viz-components/heatmap/option/series.d.ts +14 -0
- package/dist/plugins/viz-components/heatmap/option/tooltip.d.ts +8 -0
- package/dist/plugins/viz-components/heatmap/option/visual-map.d.ts +10 -0
- package/dist/plugins/viz-components/heatmap/option/x-axis.d.ts +28 -0
- package/dist/plugins/viz-components/heatmap/option/y-axis.d.ts +30 -0
- package/dist/plugins/viz-components/heatmap/triggers/click-heat-block.d.ts +7 -0
- package/dist/plugins/viz-components/heatmap/triggers/index.d.ts +1 -0
- package/dist/plugins/viz-components/heatmap/type.d.ts +36 -0
- package/dist/plugins/viz-components/heatmap/viz-heatmap-editor.d.ts +3 -0
- package/dist/plugins/viz-components/heatmap/viz-heatmap.d.ts +3 -0
- package/dist/plugins/viz-components/pareto-chart/type.d.ts +2 -2
- package/dist/plugins/viz-components/scatter-chart/type.d.ts +7 -11
- package/package.json +1 -1
- package/dist/plugins/viz-components/cartesian/panel/x-axis/x-axis-label-overflow/index.d.ts +0 -8
- package/dist/plugins/viz-components/cartesian/panel/x-axis/x-axis-label-overflow/types.d.ts +0 -10
- package/dist/plugins/viz-components/cartesian/panel/x-axis/x-axis-label-overflow/utils.d.ts +0 -7
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IAxisLabelOverflow } from './types';
|
|
3
|
+
interface ILabelOverflowField {
|
|
4
|
+
value: IAxisLabelOverflow;
|
|
5
|
+
onChange: (v: IAxisLabelOverflow) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const LabelOverflowField: import("react").ForwardRefExoticComponent<ILabelOverflowField & import("react").RefAttributes<unknown>>;
|
|
8
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { IEchartsOverflow } from './types';
|
|
3
3
|
interface IOverflowField {
|
|
4
4
|
sectionTitle?: string;
|
|
5
|
-
value:
|
|
6
|
-
onChange: (v:
|
|
5
|
+
value: IEchartsOverflow;
|
|
6
|
+
onChange: (v: IEchartsOverflow) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const OverflowField: import("react").ForwardRefExoticComponent<IOverflowField & import("react").RefAttributes<unknown>>;
|
|
9
9
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IAxisLabelOverflow } from './types';
|
|
2
|
+
export declare function getLabelOverflowStyleInTooltip({ overflow, width }: IAxisLabelOverflow['in_tooltip']): string;
|
|
3
|
+
export declare function getLabelOverflowOptionOnAxis(on_axis: IAxisLabelOverflow['on_axis']): {
|
|
4
|
+
width: number;
|
|
5
|
+
overflow: "truncate" | "break" | "breakAll";
|
|
6
|
+
ellipsis: "...";
|
|
7
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface IEchartsOverflow {
|
|
2
|
+
width: number;
|
|
3
|
+
overflow: 'truncate' | 'break' | 'breakAll';
|
|
4
|
+
ellipsis: '...';
|
|
5
|
+
}
|
|
6
|
+
export interface IAxisLabelOverflow {
|
|
7
|
+
on_axis: IEchartsOverflow;
|
|
8
|
+
in_tooltip: IEchartsOverflow;
|
|
9
|
+
}
|
|
10
|
+
export declare const DEFAULT_AXIS_LABEL_OVERFLOW: IAxisLabelOverflow;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VersionBasedMigrator } from '~/plugins/plugin-data-migrator';
|
|
2
2
|
import { VizComponent } from '~/types/plugin';
|
|
3
3
|
export declare class VizBoxplotChartMigrator extends VersionBasedMigrator {
|
|
4
|
-
readonly VERSION =
|
|
4
|
+
readonly VERSION = 6;
|
|
5
5
|
configVersions(): void;
|
|
6
6
|
}
|
|
7
7
|
export declare const BoxplotChartVizComponent: VizComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
|
+
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
2
3
|
import { IXAxisLabelFormatter } from '../cartesian/panel/x-axis/x-axis-label-formatter/types';
|
|
3
|
-
import { IXAxisLabelOverflow } from '../cartesian/panel/x-axis/x-axis-label-overflow/types';
|
|
4
4
|
export interface IBoxplotReferenceLine {
|
|
5
5
|
name: string;
|
|
6
6
|
template: string;
|
|
@@ -13,7 +13,7 @@ export interface IBoxplotChartConf {
|
|
|
13
13
|
axisLabel: {
|
|
14
14
|
rotate: number;
|
|
15
15
|
formatter: IXAxisLabelFormatter;
|
|
16
|
-
overflow:
|
|
16
|
+
overflow: IAxisLabelOverflow;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
y_axis: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { VizComponent } from '~/types/plugin';
|
|
2
1
|
import { VersionBasedMigrator } from '~/plugins/plugin-data-migrator';
|
|
2
|
+
import { VizComponent } from '~/types/plugin';
|
|
3
3
|
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
4
|
-
readonly VERSION =
|
|
4
|
+
readonly VERSION = 10;
|
|
5
5
|
configVersions(): void;
|
|
6
6
|
}
|
|
7
7
|
export declare const CartesianVizComponent: VizComponent;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
|
+
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
2
3
|
import { AggregationType } from '~/utils/aggregation';
|
|
3
4
|
import { TEchartsDataZoomConfig } from './panel/echarts-zooming-field/types';
|
|
4
5
|
import { TScatterSize } from './panel/scatter-size-select/types';
|
|
5
6
|
import { IXAxisLabelFormatter } from './panel/x-axis/x-axis-label-formatter/types';
|
|
6
|
-
import { IXAxisLabelOverflow } from './panel/x-axis/x-axis-label-overflow/types';
|
|
7
7
|
export interface ICartesianChartSeriesItem {
|
|
8
8
|
type: 'line' | 'bar' | 'scatter';
|
|
9
9
|
name: string;
|
|
@@ -89,7 +89,7 @@ export interface ICartesianChartConf {
|
|
|
89
89
|
axisLabel: {
|
|
90
90
|
rotate: number;
|
|
91
91
|
formatter: IXAxisLabelFormatter;
|
|
92
|
-
overflow:
|
|
92
|
+
overflow: IAxisLabelOverflow;
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
series: ICartesianChartSeriesItem[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { IHeatmapConf } from '../../type';
|
|
4
|
+
interface IHeatBlockField {
|
|
5
|
+
control: Control<IHeatmapConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<IHeatmapConf>;
|
|
7
|
+
data: $TSFixMe[];
|
|
8
|
+
}
|
|
9
|
+
export declare function HeatBlockField({ data, control, watch }: IHeatBlockField): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { IHeatmapConf } from '../../type';
|
|
4
|
+
interface ITooltipField {
|
|
5
|
+
control: Control<IHeatmapConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<IHeatmapConf>;
|
|
7
|
+
data: $TSFixMe[];
|
|
8
|
+
}
|
|
9
|
+
export declare function TooltipField({ data, control, watch }: ITooltipField): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control } from 'react-hook-form';
|
|
3
|
+
import { IHeatmapConf } from '../../type';
|
|
4
|
+
interface ITooltipMetricField {
|
|
5
|
+
control: Control<IHeatmapConf, $TSFixMe>;
|
|
6
|
+
data: $TSFixMe[];
|
|
7
|
+
index: number;
|
|
8
|
+
remove: (index: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const TooltipMetricField: ({ control, data, index, remove }: ITooltipMetricField) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { IHeatmapConf } from '../../type';
|
|
4
|
+
interface ITooltipMetricsField {
|
|
5
|
+
control: Control<IHeatmapConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<IHeatmapConf>;
|
|
7
|
+
data: $TSFixMe[];
|
|
8
|
+
}
|
|
9
|
+
export declare const TooltipMetricsField: ({ control, watch, data }: ITooltipMetricsField) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { IHeatmapConf } from '../../type';
|
|
4
|
+
interface IXAxisField {
|
|
5
|
+
control: Control<IHeatmapConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<IHeatmapConf>;
|
|
7
|
+
data: $TSFixMe[];
|
|
8
|
+
}
|
|
9
|
+
export declare function XAxisField({ data, control, watch }: IXAxisField): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IXAxisLabelFormatterFunctionEditor {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (v: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const XAxisLabelFormatterFunctionEditor: ({ disabled, value, onChange, }: IXAxisLabelFormatterFunctionEditor) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { IXAxisLabelFormatter } from './types';
|
|
4
|
+
interface IXAxisLabelFormatterField {
|
|
5
|
+
value: IXAxisLabelFormatter;
|
|
6
|
+
onChange: (v: IXAxisLabelFormatter) => void;
|
|
7
|
+
data: AnyObject[];
|
|
8
|
+
}
|
|
9
|
+
export declare const XAxisLabelFormatterField: import("react").ForwardRefExoticComponent<IXAxisLabelFormatterField & import("react").RefAttributes<unknown>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { AnyObject } from '~/types';
|
|
4
|
+
import { IHeatmapConf } from '../../type';
|
|
5
|
+
interface IYAxisField {
|
|
6
|
+
watch: UseFormWatch<IHeatmapConf>;
|
|
7
|
+
control: Control<IHeatmapConf, $TSFixMe>;
|
|
8
|
+
data: AnyObject[];
|
|
9
|
+
}
|
|
10
|
+
export declare function YAxisField({ control, watch, data }: IYAxisField): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormatterFuncType } from '../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
2
|
+
import { IHeatmapConf } from '../type';
|
|
3
|
+
export declare type LabelFormattersType = {
|
|
4
|
+
x_axis: FormatterFuncType;
|
|
5
|
+
y_axis: FormatterFuncType;
|
|
6
|
+
};
|
|
7
|
+
export declare function getLabelFormatters(conf: IHeatmapConf): LabelFormattersType;
|
|
8
|
+
export declare type ValueFormattersType = {
|
|
9
|
+
heat_block: FormatterFuncType;
|
|
10
|
+
};
|
|
11
|
+
export declare function getValueFormatters(conf: IHeatmapConf): ValueFormattersType;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
2
|
+
import { IHeatmapConf } from '../type';
|
|
3
|
+
export declare function getSeries(conf: IHeatmapConf, data: AnyObject[]): {
|
|
4
|
+
type: string;
|
|
5
|
+
name: string;
|
|
6
|
+
xAxisId: string;
|
|
7
|
+
yAxisIndex: number;
|
|
8
|
+
datasetIndex: number;
|
|
9
|
+
itemStyle: {
|
|
10
|
+
borderColor: string;
|
|
11
|
+
borderWidth: number;
|
|
12
|
+
};
|
|
13
|
+
data: any[][];
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CallbackDataParams } from 'echarts/types/dist/shared';
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { IHeatmapConf } from '../type';
|
|
4
|
+
import { LabelFormattersType, ValueFormattersType } from './formatters';
|
|
5
|
+
export declare function getTooltip(conf: IHeatmapConf, data: AnyObject[], labelFormatters: LabelFormattersType, valueFormatters: ValueFormattersType): {
|
|
6
|
+
confine: boolean;
|
|
7
|
+
formatter: (params: CallbackDataParams) => string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
2
|
+
import { FormatterFuncType } from '../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
3
|
+
import { IHeatmapConf } from '../type';
|
|
4
|
+
export declare function getXAxis(conf: IHeatmapConf, data: AnyObject[], formatterFunc: FormatterFuncType): {
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
data: any[];
|
|
8
|
+
name: string;
|
|
9
|
+
align: string;
|
|
10
|
+
axisTick: {
|
|
11
|
+
show: boolean;
|
|
12
|
+
alignWithLabel: boolean;
|
|
13
|
+
};
|
|
14
|
+
axisLabel: {
|
|
15
|
+
formatter: FormatterFuncType;
|
|
16
|
+
width: number;
|
|
17
|
+
overflow: "truncate" | "break" | "breakAll";
|
|
18
|
+
ellipsis: "...";
|
|
19
|
+
rotate: number;
|
|
20
|
+
};
|
|
21
|
+
nameLocation: string;
|
|
22
|
+
nameGap: number;
|
|
23
|
+
nameTextStyle: {
|
|
24
|
+
fontWeight: string;
|
|
25
|
+
align: string;
|
|
26
|
+
};
|
|
27
|
+
z: number;
|
|
28
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
2
|
+
import { FormatterFuncType } from '../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
3
|
+
import { IHeatmapConf } from '../type';
|
|
4
|
+
export declare function getYAxis(conf: IHeatmapConf, data: AnyObject[], formatterFunc: FormatterFuncType): {
|
|
5
|
+
type: string;
|
|
6
|
+
data: any[];
|
|
7
|
+
axisLabel: {
|
|
8
|
+
formatter: FormatterFuncType;
|
|
9
|
+
width: number;
|
|
10
|
+
overflow: "truncate" | "break" | "breakAll";
|
|
11
|
+
ellipsis: "...";
|
|
12
|
+
rotate: number;
|
|
13
|
+
};
|
|
14
|
+
axisLine: {
|
|
15
|
+
show: boolean;
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
axisTick: {
|
|
19
|
+
show: boolean;
|
|
20
|
+
alignWithLabel: boolean;
|
|
21
|
+
};
|
|
22
|
+
nameTextStyle: {
|
|
23
|
+
fontWeight: string;
|
|
24
|
+
align: "right" | "center" | "left";
|
|
25
|
+
};
|
|
26
|
+
nameLocation: string;
|
|
27
|
+
nameGap: number;
|
|
28
|
+
z: number;
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ITriggerConfigProps, ITriggerSchema } from '~/types/plugin';
|
|
3
|
+
export declare function ClickHeatBlockSettings(props: ITriggerConfigProps): JSX.Element;
|
|
4
|
+
export declare const ClickHeatBlock: ITriggerSchema;
|
|
5
|
+
export interface IClickHeatBlockConfig {
|
|
6
|
+
foo: '';
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClickHeatBlock } from './click-heat-block';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
|
+
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
|
+
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
4
|
+
import { IXAxisLabelFormatter } from '../cartesian/panel/x-axis/x-axis-label-formatter/types';
|
|
5
|
+
export interface IHeatmapConf {
|
|
6
|
+
x_axis: {
|
|
7
|
+
name: string;
|
|
8
|
+
data_key: string;
|
|
9
|
+
axisLabel: {
|
|
10
|
+
rotate: number;
|
|
11
|
+
formatter: IXAxisLabelFormatter;
|
|
12
|
+
overflow: IAxisLabelOverflow;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
y_axis: {
|
|
16
|
+
name: string;
|
|
17
|
+
data_key: string;
|
|
18
|
+
nameAlignment: 'left' | 'center' | 'right';
|
|
19
|
+
axisLabel: {
|
|
20
|
+
rotate: number;
|
|
21
|
+
formatter: IXAxisLabelFormatter;
|
|
22
|
+
overflow: IAxisLabelOverflow;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
heat_block: {
|
|
26
|
+
min: number;
|
|
27
|
+
max: number;
|
|
28
|
+
name: string;
|
|
29
|
+
data_key: '';
|
|
30
|
+
value_formatter: TNumbroFormat;
|
|
31
|
+
};
|
|
32
|
+
tooltip: {
|
|
33
|
+
metrics: IEchartsTooltipMetric[];
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare const DEFAULT_CONFIG: IHeatmapConf;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
|
+
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
2
3
|
import { TEchartsDataZoomConfig } from '../cartesian/panel/echarts-zooming-field/types';
|
|
3
4
|
import { IXAxisLabelFormatter } from '../cartesian/panel/x-axis/x-axis-label-formatter/types';
|
|
4
|
-
import { IXAxisLabelOverflow } from '../cartesian/panel/x-axis/x-axis-label-overflow/types';
|
|
5
5
|
export declare const DEFAULT_PARETO_MARK_LINE: {
|
|
6
6
|
label_template: string;
|
|
7
7
|
color: string;
|
|
@@ -13,7 +13,7 @@ export interface IParetoChartConf {
|
|
|
13
13
|
axisLabel: {
|
|
14
14
|
rotate: number;
|
|
15
15
|
formatter: IXAxisLabelFormatter;
|
|
16
|
-
overflow:
|
|
16
|
+
overflow: IAxisLabelOverflow;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
data_key: string;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { TEchartsDataZoomConfig } from '../cartesian/panel/echarts-zooming-field/types';
|
|
2
2
|
import { TSeriesColor } from './editors/scatter/series-color-select/types';
|
|
3
|
-
import {
|
|
3
|
+
import { IEchartsOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
4
4
|
import { ICartesianReferenceArea, ICartesianReferenceLine, IYAxisConf } from '../cartesian/type';
|
|
5
5
|
import { TScatterSize } from './editors/scatter/scatter-size-select/types';
|
|
6
6
|
import { IXAxisLabelFormatter } from './editors/x-axis/x-axis-label-formatter/types';
|
|
7
|
-
|
|
8
|
-
id: string;
|
|
9
|
-
data_key: string;
|
|
10
|
-
name: string;
|
|
11
|
-
}
|
|
7
|
+
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
12
8
|
export interface IScatterLabelOverflow {
|
|
13
|
-
label:
|
|
14
|
-
tooltip:
|
|
9
|
+
label: IEchartsOverflow;
|
|
10
|
+
tooltip: IEchartsOverflow;
|
|
15
11
|
}
|
|
16
12
|
export interface IScatterChartConf {
|
|
17
13
|
x_axis: {
|
|
@@ -38,14 +34,14 @@ export interface IScatterChartConf {
|
|
|
38
34
|
};
|
|
39
35
|
};
|
|
40
36
|
tooltip: {
|
|
41
|
-
metrics:
|
|
37
|
+
metrics: IEchartsTooltipMetric[];
|
|
42
38
|
};
|
|
43
39
|
reference_lines: ICartesianReferenceLine[];
|
|
44
40
|
reference_areas: ICartesianReferenceArea[];
|
|
45
41
|
dataZoom: TEchartsDataZoomConfig;
|
|
46
42
|
}
|
|
47
43
|
export declare const DEFAULT_SCATTER_CHART_LABEL_OVERFLOW: {
|
|
48
|
-
label:
|
|
49
|
-
tooltip:
|
|
44
|
+
label: IEchartsOverflow;
|
|
45
|
+
tooltip: IEchartsOverflow;
|
|
50
46
|
};
|
|
51
47
|
export declare const DEFAULT_CONFIG: IScatterChartConf;
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IXAxisLabelOverflow } from './types';
|
|
3
|
-
interface IXAxisLabelOverflowField {
|
|
4
|
-
value: IXAxisLabelOverflow;
|
|
5
|
-
onChange: (v: IXAxisLabelOverflow) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const XAxisLabelOverflowField: import("react").ForwardRefExoticComponent<IXAxisLabelOverflowField & import("react").RefAttributes<unknown>>;
|
|
8
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface IOverflow {
|
|
2
|
-
width: number;
|
|
3
|
-
overflow: 'truncate' | 'break' | 'breakAll';
|
|
4
|
-
ellipsis: '...';
|
|
5
|
-
}
|
|
6
|
-
export interface IXAxisLabelOverflow {
|
|
7
|
-
x_axis: IOverflow;
|
|
8
|
-
tooltip: IOverflow;
|
|
9
|
-
}
|
|
10
|
-
export declare const DEFAULT_X_AXIS_LABEL_OVERFLOW: IXAxisLabelOverflow;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IXAxisLabelOverflow } from './types';
|
|
2
|
-
export declare function getXAxisLabelOptionInXAxis(x_axis: IXAxisLabelOverflow['x_axis']): {
|
|
3
|
-
width: number;
|
|
4
|
-
overflow: "truncate" | "break" | "breakAll";
|
|
5
|
-
ellipsis: "...";
|
|
6
|
-
};
|
|
7
|
-
export declare function getXAxisLabelStyleInTooltip(tooltip: IXAxisLabelOverflow['tooltip']): string;
|