@visactor/vchart-types 2.0.5-alpha.5 → 2.0.6

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.
@@ -92,6 +92,7 @@ export type IMarkerSpec = IComponentSpec & {
92
92
  clip?: boolean;
93
93
  name?: string;
94
94
  coordinateType?: string;
95
+ includeFullBand?: boolean;
95
96
  };
96
97
  export type IMarkerSymbol = IMarkerRef & {
97
98
  visible: boolean;
@@ -5,7 +5,7 @@ import type { IDataPos, IMarkerAttributeContext, IMarkerLabelSpec, IMarkerState,
5
5
  import type { IRegion } from '../../region/interface';
6
6
  import type { OffsetPoint } from './interface';
7
7
  export declare function isAggrSpec(spec: IDataPos): boolean;
8
- export declare function xyLayout(data: DataView, startRelativeSeries: IMarkerSupportSeries, endRelativeSeries: IMarkerSupportSeries, relativeSeries: IMarkerSupportSeries, autoRange: boolean): IPoint[][];
8
+ export declare function xyLayout(data: DataView, startRelativeSeries: IMarkerSupportSeries, endRelativeSeries: IMarkerSupportSeries, relativeSeries: IMarkerSupportSeries, autoRange: boolean, includeFullBand?: boolean): IPoint[][];
9
9
  export declare function polarLayout(data: DataView, startRelativeSeries: IMarkerSupportSeries, endRelativeSeries: IMarkerSupportSeries, relativeSeries: IMarkerSupportSeries, autoRange: boolean): IPolarPoint[][];
10
10
  export declare function geoLayout(data: DataView, relativeSeries: IMarkerSupportSeries): IPoint[][];
11
11
  export declare function cartesianCoordinateLayout(data: DataView, relativeSeries: IMarkerSupportSeries, autoRange: boolean, coordinatesOffset: OffsetPoint[] | OffsetPoint): IPoint[];
@@ -8,6 +8,7 @@ export interface IWaterfallOpt {
8
8
  startAs: string;
9
9
  endAs: string;
10
10
  total: IWaterfallSeriesSpec['total'];
11
+ calculationMode: 'increase' | 'decrease';
11
12
  seriesFieldName: {
12
13
  total: string;
13
14
  increase: string;
@@ -22,5 +23,6 @@ export interface IWaterfallFillEndOpt {
22
23
  valueField: string;
23
24
  seriesField?: string;
24
25
  total: IWaterfallSeriesSpec['total'];
26
+ calculationMode: IWaterfallSeriesSpec['calculationMode'];
25
27
  }
26
28
  export declare const waterfallFillTotal: (data: Array<Datum>, op: IWaterfallFillEndOpt) => Datum[];
package/types/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './chart';
5
5
  export * from './chart/base';
6
6
  export * from './chart/cartesian';
7
7
  export * from './chart/common';
8
+ export * from './chart/stack';
8
9
  export * from './series';
9
10
  export * from './mark';
10
11
  export * from './component';
@@ -23,6 +23,9 @@ export declare class FormatterPlugin extends BasePlugin implements IChartPlugin
23
23
  protected _format(text: string | number | string[] | number[], datum: any, formatter: string | string[]): string | number | (string | number)[];
24
24
  protected _formatSingleLine(text: string | number, datum: any, formatter: string): string | number;
25
25
  protected _formatSingleText(text: string | number, formatter: string): string | number;
26
+ private _calcFormatter;
27
+ private _calculateMathExpression;
28
+ private _isValidMathExpression;
26
29
  release(): void;
27
30
  }
28
31
  export declare const registerFormatPlugin: () => void;
@@ -49,6 +49,8 @@ export interface IRegionSpec extends ILayoutItemSpec {
49
49
  export interface IGeoRegionSpec extends IRegionSpec {
50
50
  coordinate?: 'geo';
51
51
  roam?: boolean | {
52
+ zoom?: boolean;
53
+ drag?: boolean;
52
54
  blank?: boolean;
53
55
  };
54
56
  longitudeField?: string;
@@ -49,6 +49,7 @@ export interface IWaterfallSeriesSpec extends Omit<IBarSeriesSpec, 'type' | 'lab
49
49
  visible: boolean;
50
50
  offset?: number;
51
51
  };
52
+ calculationMode?: 'increase' | 'decrease';
52
53
  }
53
54
  export interface IWaterfallSeriesTheme extends IBarSeriesTheme {
54
55
  seriesFieldName: {