@visactor/vchart-types 2.0.23-alpha.5 → 2.0.23-alpha.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.
@@ -1,9 +1,11 @@
1
+ import type { DataView } from '@visactor/vdataset';
1
2
  import type { IComponent } from '../../../interface';
2
- import type { IAggrType, IMarkerPositionsSpec, IDataPointSpec, IMarkerSpec, IDataPos, IDataPosCallback, IMarkerLabelSpec, IMarkerCrossSeriesSpec, OffsetPoint, MarkerStateValue, MarkerStateCallback, IMarkerSupportSeries } from '../../interface';
3
+ import type { IAggrType, IMarkerAttributeContext, IMarkerPositionsSpec, IDataPointSpec, IMarkerSpec, IDataPos, IDataPosCallback, IMarkerLabelSpec, IMarkerCrossSeriesSpec, OffsetPoint, MarkerStateValue, MarkerStateCallback, IMarkerSupportSeries } from '../../interface';
3
4
  import type { IRegressType } from '../../mark-area/interface';
4
5
  import type { IMarkLineTheme } from './theme';
5
6
  import type { Datum, ILineMarkSpec, IPoint } from '../../../../typings';
6
7
  import type { BaseMarkerAnimation, MarkCommonLineAnimationType } from '@visactor/vrender-components';
8
+ import type { IRegion } from '../../../../region/interface';
7
9
  export type IMarkLine = IComponent;
8
10
  export type IMarkLineSpec = (IMarkerSpec & (IMarkLineXSpec | IMarkLineYSpec | IMarkLineXYSpec | IMarkLineXYY1Spec | IMarkLineYXX1Spec | IMarkLineAngleSpec | IMarkLineRadiusSpec | IMarkLineAngRadRad1Spec | IMarkLineRadAngAng1Spec | IMarkLineAngRadSpec | IMarkLineCoordinateSpec | IMarkerPositionsSpec) & IMarkLineTheme & BaseMarkerAnimation<MarkCommonLineAnimationType>) | (IStepMarkLineSpec & BaseMarkerAnimation<MarkCommonLineAnimationType>);
9
11
  export interface IMarkLineXSpec extends IMarkerCrossSeriesSpec {
@@ -64,7 +66,12 @@ export type IMarkLineCoordinateSpec = {
64
66
  export type IStepMarkLineSpec = IMarkerSpec & {
65
67
  type: 'type-step';
66
68
  connectDirection: 'top' | 'bottom' | 'left' | 'right';
67
- expandDistance?: number | string;
69
+ expandDistance?: number | string | ((markerData: DataView, context: IMarkerAttributeContext & {
70
+ region: IRegion;
71
+ startRegion: IRegion;
72
+ endRegion: IRegion;
73
+ coordinatePoints: IPoint[];
74
+ }) => number | string);
68
75
  label?: IMarkerLabelSpec;
69
76
  line?: {
70
77
  multiSegment?: boolean;
@@ -21,7 +21,6 @@ export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeries
21
21
  private _sizeField;
22
22
  private _shape;
23
23
  private _shapeField;
24
- private _enableLabelAnimationHook?;
25
24
  protected _invalidType: IScatterInvalidType;
26
25
  setAttrFromSpec(): void;
27
26
  private _getSeriesAttribute;
@@ -36,8 +35,6 @@ export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeries
36
35
  initLabelMarkStyle(labelMark?: ILabelMark): void;
37
36
  private _updateSymbolGraphicPosition;
38
37
  private _ensureLabelGraphicPostMatrix;
39
- private _isGeoCoordinateSeries;
40
- private _refreshLabelComponent;
41
38
  handleZoom(e: any): void;
42
39
  handlePan(e: any): void;
43
40
  onLayoutEnd(): void;