@devtable/dashboard 6.30.0 → 6.32.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.
@@ -1,3 +1,3 @@
1
- import { ICartesianChartConf } from '../type';
2
1
  import { ITemplateVariable } from '~/utils/template';
2
+ import { ICartesianChartConf } from '../type';
3
3
  export declare function getOption(conf: ICartesianChartConf, data: $TSFixMe[], variables: ITemplateVariable[]): any;
@@ -1,2 +1,9 @@
1
- import { ICartesianChartConf } from '../type';
2
- export declare function getLegend(conf: ICartesianChartConf): Record<string, any>;
1
+ export declare type TEchartsSeriesType = 'line' | 'bar' | 'scatter';
2
+ interface IEchartsSeriesItem {
3
+ name: string;
4
+ color?: string;
5
+ type: TEchartsSeriesType;
6
+ hide_in_legend: boolean;
7
+ }
8
+ export declare function getLegend(series: IEchartsSeriesItem[]): Record<string, any>;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ICartesianChartConf } from '../../type';
2
+ export declare function getLabelFormatters(conf: ICartesianChartConf): Record<string, (params: $TSFixMe) => string>;
@@ -0,0 +1,3 @@
1
+ import { AnyObject } from '~/types';
2
+ import { ITemplateVariable } from '~/utils/template';
3
+ export declare function getVariableValueMap(data: AnyObject[], variables: ITemplateVariable[]): Record<string, string | number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "6.30.0",
3
+ "version": "6.32.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",