@devtable/dashboard 10.14.2 → 10.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.
@@ -0,0 +1,8 @@
1
+ import { Control, UseFormWatch } from 'react-hook-form';
2
+ import { IBoxplotChartConf } from '../../type';
3
+ interface Props {
4
+ control: Control<IBoxplotChartConf, $TSFixMe>;
5
+ watch: UseFormWatch<IBoxplotChartConf>;
6
+ }
7
+ export declare const LegendField: ({ control, watch }: Props) => import('./react/jsx-runtime').JSX.Element;
8
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { VersionBasedMigrator } from '~/components/plugins/plugin-data-migrator';
2
2
  import { VizComponent } from '~/types/plugin';
3
3
  export declare class VizBoxplotChartMigrator extends VersionBasedMigrator {
4
- readonly VERSION = 8;
4
+ readonly VERSION = 9;
5
5
  configVersions(): void;
6
6
  }
7
7
  export declare const BoxplotChartVizComponent: VizComponent;
@@ -0,0 +1,8 @@
1
+ import { IBoxplotChartConf } from '../type';
2
+ export declare function getGrid(conf: IBoxplotChartConf): {
3
+ top: number;
4
+ left: number;
5
+ right: number;
6
+ bottom: number;
7
+ containLabel: boolean;
8
+ };
@@ -8,6 +8,16 @@ export interface IBoxplotReferenceLine {
8
8
  template: string;
9
9
  variable_key: string;
10
10
  }
11
+ export declare type TLegendOrientation = 'horizontal' | 'vertical';
12
+ export declare type TBoxplotLegend = {
13
+ show: boolean;
14
+ top: string;
15
+ right: string;
16
+ bottom: string;
17
+ left: string;
18
+ orient: TLegendOrientation;
19
+ type: 'scroll';
20
+ };
11
21
  export interface IBoxplotChartConf {
12
22
  x_axis: {
13
23
  name: string;
@@ -28,6 +38,7 @@ export interface IBoxplotChartConf {
28
38
  };
29
39
  color: string;
30
40
  reference_lines: IBoxplotReferenceLine[];
41
+ legend: TBoxplotLegend;
31
42
  }
32
43
  export declare const DEFAULT_CONFIG: IBoxplotChartConf;
33
44
  export declare type TOutlierDataItem = [string, number, AnyObject];