@visactor/vchart-types 2.0.10-alpha.0 → 2.0.10-alpha.1

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.
@@ -154,7 +154,7 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
154
154
  };
155
155
  protected _getEncoderOfStyle: (stateName: string, style: Partial<IAttrs<T>>) => Record<string, (datum: Datum) => any>;
156
156
  protected _setGraphicFromMarkConfig: (g: IMarkGraphic) => void;
157
- protected _setStateOfGraphic: (g: IMarkGraphic) => void;
157
+ protected _setStateOfGraphic: (g: IMarkGraphic, hasAnimation?: boolean) => void;
158
158
  protected _addProgressiveGraphic(parent: IGroup, g: IMarkGraphic): void;
159
159
  protected _runEncoder(graphics: IMarkGraphic[], noGroupEncode?: boolean): void;
160
160
  protected _runApplyGraphic(graphics: IMarkGraphic[]): void;
@@ -1,5 +1,5 @@
1
1
  import type { IModelEvaluateOption, IModelInitOption } from '../../model/interface';
2
- import type { BoxPlotShaftShape, IOutlierMarkSpec } from '../../typings';
2
+ import type { BoxPlotShaftShape, IOutlierMarkSpec, Datum, DirectionType } from '../../typings';
3
3
  import { CartesianSeries } from '../cartesian/cartesian';
4
4
  import type { SeriesMarkMap } from '../interface';
5
5
  import { SeriesTypeEnum } from '../interface/type';
@@ -15,6 +15,7 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
15
15
  boxPlot: import("./interface").IBoxPlotSeriesTheme;
16
16
  };
17
17
  static readonly mark: SeriesMarkMap;
18
+ protected _bandPosition: number;
18
19
  protected _minField: string;
19
20
  getMinField(): string;
20
21
  protected _maxField: string;
@@ -51,6 +52,7 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
51
52
  compileData(): void;
52
53
  init(option: IModelInitOption): void;
53
54
  private _getMarkWidth;
55
+ protected _getPosition(direction: DirectionType, datum: Datum): number;
54
56
  onLayoutEnd(): void;
55
57
  private _initAnimationSpec;
56
58
  initAnimation(): void;
@@ -1,6 +1,6 @@
1
1
  import type { IAnimationSpec } from '../../animation/spec';
2
2
  import type { IMarkProgressiveConfig } from '../../mark/interface';
3
- import type { DirectionType, IBoxPlotMarkSpec, IOutlierMarkSpec, IMarkSpec, IMarkTheme } from '../../typings';
3
+ import type { DirectionType, IBoxPlotMarkSpec, IOutlierMarkSpec, IMarkSpec, IMarkTheme, ISymbolMarkSpec } from '../../typings';
4
4
  import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
5
5
  import type { SeriesMarkNameEnum } from '../interface/type';
6
6
  export interface IBoxPlotSeriesSpec extends Omit<ICartesianSeriesSpec, 'xField' | 'yField' | 'direction'>, IAnimationSpec<SeriesMarkNameEnum.boxPlot, string>, IMarkProgressiveConfig {
@@ -13,9 +13,14 @@ export interface IBoxPlotSeriesSpec extends Omit<ICartesianSeriesSpec, 'xField'
13
13
  q1Field?: string;
14
14
  medianField?: string;
15
15
  q3Field?: string;
16
- [SeriesMarkNameEnum.boxPlot]?: IMarkSpec<IBoxPlotMarkSpec>;
17
16
  outliersField?: string;
17
+ [SeriesMarkNameEnum.boxPlot]?: IMarkSpec<IBoxPlotMarkSpec>;
18
+ [SeriesMarkNameEnum.outlier]?: IMarkSpec<ISymbolMarkSpec>;
18
19
  outliersStyle?: IOutlierMarkSpec;
20
+ boxWidth?: number | string;
21
+ boxMinWidth?: number | string;
22
+ boxMaxWidth?: number | string;
23
+ boxGapInGroup?: number | string | (number | string)[];
19
24
  }
20
25
  export interface IBoxPlotSeriesTheme extends ICartesianSeriesTheme {
21
26
  [SeriesMarkNameEnum.boxPlot]?: Partial<IMarkTheme<IBoxPlotMarkSpec>>;
@@ -159,8 +159,8 @@ export interface IRectMarkSpec extends IFillMarkSpec {
159
159
  }
160
160
  export interface IBoxPlotMarkSpec extends ICommonSpec {
161
161
  lineWidth?: number;
162
- boxWidth?: number;
163
- shaftWidth?: number;
162
+ boxWidth?: number | string;
163
+ shaftWidth?: number | string;
164
164
  shaftShape?: BoxPlotShaftShape;
165
165
  boxFill?: string;
166
166
  shaftFillOpacity?: number;
@@ -271,7 +271,7 @@ export type GradientType = 'linear' | 'radial' | 'conical';
271
271
  export type IGradient = IGradientLinear | IGradientRadial | IGradientConical;
272
272
  export type LineStrokeCap = 'butt' | 'round' | 'square';
273
273
  export type LineStrokeJoin = 'arcs' | 'bevel' | 'miter' | 'miter-clip' | 'round';
274
- export type BoxPlotShaftShape = 'line' | 'bar';
274
+ export type BoxPlotShaftShape = 'line' | 'bar' | 'filled-line';
275
275
  export interface IThresholdStyle extends IVisualSpecStyle<number, string> {
276
276
  domain: number[];
277
277
  field: string;