@visactor/vchart-types 2.1.0-alpha.2 → 2.1.0-alpha.4

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.
@@ -127,12 +127,20 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
127
127
  componentOnlyUpdatedComponents: IComponent[];
128
128
  hasNonComponentOnlyUpdate: boolean;
129
129
  };
130
+ private _canChangeMarkerComponentsWithoutRemake;
131
+ private _canAddMarkerComponentsWithoutRemake;
132
+ private _isMarkerAdditionSpecSafeWithoutRemake;
130
133
  private _canRemoveMarkerComponentsWithoutRemake;
131
134
  private _isOnlyMarkerComponentsRemoved;
132
135
  private _isComponentSpecKey;
133
136
  private _isOnlyComponentSpecsChanged;
134
137
  private _isOnlySeriesSpecsChanged;
135
138
  private _canSkipChartDataStages;
139
+ private _isComponentScaleDomainOnlyUpdate;
140
+ private _reRunStackDataFlow;
141
+ private _getModelSpecIndex;
142
+ private _hasComponentForSpecInfo;
143
+ private _createMissingMarkerComponentsForSpecs;
136
144
  private _removeMarkerComponentsForEmptySpecs;
137
145
  private _removeComponent;
138
146
  updateSeriesSpec(result: IUpdateSpecResult): void;
@@ -57,6 +57,7 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
57
57
  private _initAxisDataZoomMap;
58
58
  protected initEvent(): void;
59
59
  _compareSpec(spec: T, prevSpec: T): import("../../model/interface").IUpdateSpecResult;
60
+ protected _isComponentOnlySpecChange(spec: T, prevSpec: T): boolean;
60
61
  onLayoutEnd(): void;
61
62
  protected _updateBrushComponent(region: IRegion, componentIndex: number): void;
62
63
  protected _shouldEnableInteractive(): boolean;
@@ -42,6 +42,9 @@ export declare abstract class BaseCrossHair<T extends ICartesianCrosshairSpec |
42
42
  setAttrFromSpec(): void;
43
43
  created(): void;
44
44
  _compareSpec(spec: T, prevSpec: T): import("../../model/interface").IUpdateSpecResult;
45
+ private _isComponentOnlySpecChange;
46
+ private _isFieldComponentOnlySpecChange;
47
+ private _isLineComponentOnlySpecChange;
45
48
  protected _initEvent(): void;
46
49
  private _registerEvent;
47
50
  private _eventOff;
@@ -19,6 +19,9 @@ export declare class CustomMark extends BaseComponent<ICustomMarkSpec<EnableMark
19
19
  private _createExtensionMark;
20
20
  initEvent(): void;
21
21
  _compareSpec(spec: ICustomMarkSpec<EnableMarkType>, prevSpec: ICustomMarkSpec<EnableMarkType>): import("../..").IUpdateSpecResult;
22
+ protected _isComponentOnlySpecChange(spec: ICustomMarkSpec<EnableMarkType>, prevSpec: ICustomMarkSpec<EnableMarkType>): boolean;
23
+ reInit(spec?: ICustomMarkSpec<EnableMarkType>): void;
24
+ private _updateMarkStyleWithSpec;
22
25
  private _getMarkAttributeContext;
23
26
  private _getLayoutRect;
24
27
  getBoundsInRect(rect: ILayoutRect): {
@@ -77,6 +77,8 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
77
77
  initLayout(): void;
78
78
  init(option: IModelInitOption): void;
79
79
  _compareSpec(spec: AdaptiveSpec<T, 'width' | 'height'>, prevSpec: AdaptiveSpec<T, 'width' | 'height'>): import("../../model/interface").IUpdateSpecResult;
80
+ protected _getComponentOnlySpecKeys(): Record<string, boolean>;
81
+ protected _isComponentOnlySpecChange(spec: AdaptiveSpec<T, 'width' | 'height'>, prevSpec: AdaptiveSpec<T, 'width' | 'height'>): boolean;
80
82
  reInit(spec?: AdaptiveSpec<T, 'width' | 'height'>): void;
81
83
  onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect): void;
82
84
  updateLayoutAttribute(): void;
@@ -36,6 +36,7 @@ export declare class DataZoom<T extends IDataZoomSpec = IDataZoomSpec> extends D
36
36
  created(): void;
37
37
  updateLayoutAttribute(): void;
38
38
  protected _beforeLayoutEnd(): void;
39
+ protected _getComponentOnlySpecKeys(): Record<string, boolean>;
39
40
  clear(): void;
40
41
  getBoundsInRect(rect: ILayoutRect): IBoundsLike;
41
42
  setAttrFromSpec(): void;
@@ -22,6 +22,7 @@ export declare class ScrollBar<T extends IScrollBarSpec = IScrollBarSpec> extend
22
22
  constructor(spec: T, options: IComponentOption);
23
23
  protected _handleChange(start: number, end: number, updateComponent?: boolean): void;
24
24
  protected _handleDataCollectionChange(): void;
25
+ protected _getComponentOnlySpecKeys(): Record<string, boolean>;
25
26
  protected _beforeLayoutEnd(): void;
26
27
  onLayoutEnd(): void;
27
28
  protected _updateScaleRange(): void;
@@ -27,6 +27,7 @@ export declare class Indicator<T extends IIndicatorSpec> extends BaseComponent<T
27
27
  static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
28
28
  created(): void;
29
29
  setAttrFromSpec(): void;
30
+ _compareSpec(spec: T, prevSpec: T): import("../../model/interface").IUpdateSpecResult;
30
31
  protected initEvent(): void;
31
32
  updateDatum(datum: any): void;
32
33
  private initData;
@@ -40,6 +40,10 @@ export declare abstract class BaseMarker<T extends IMarkerSpec> extends BaseComp
40
40
  getStartRelativeSeries: () => IMarkerSupportSeries;
41
41
  getEndRelativeSeries: () => IMarkerSupportSeries;
42
42
  };
43
+ protected _getAutoRangeExtendDomainKeyPrefix(): string;
44
+ private _getAutoRangeExtendDomainKey;
45
+ private _clearAutoRangeExtendDomain;
46
+ private _updateMarkerLayout;
43
47
  private _getFieldInfoFromSpec;
44
48
  protected _processSpecByDims(dimSpec: {
45
49
  dim: 'x' | 'y' | 'angle' | 'radius' | 'areaName';
@@ -64,5 +68,8 @@ export declare abstract class BaseMarker<T extends IMarkerSpec> extends BaseComp
64
68
  protected _getNeedClearVRenderComponents(): IGraphic[];
65
69
  onLayoutStart(layoutRect: IRect, chartViewRect: ILayoutRect): void;
66
70
  _compareSpec(spec: T, prevSpec: T): import("../../model/interface").IUpdateSpecResult;
71
+ protected _isComponentOnlySpecChange(spec: T, prevSpec: T): boolean;
72
+ protected _isAutoRangeSpecChange(spec: T, prevSpec: T): boolean;
73
+ reInit(spec?: T): void;
67
74
  _initCommonDataView(): void;
68
75
  }
@@ -5,11 +5,11 @@ 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, includeFullBand?: boolean): IPoint[][];
9
- export declare function polarLayout(data: DataView, startRelativeSeries: IMarkerSupportSeries, endRelativeSeries: IMarkerSupportSeries, relativeSeries: IMarkerSupportSeries, autoRange: boolean): IPolarPoint[][];
8
+ export declare function xyLayout(data: DataView, startRelativeSeries: IMarkerSupportSeries, endRelativeSeries: IMarkerSupportSeries, relativeSeries: IMarkerSupportSeries, autoRange: boolean, includeFullBand?: boolean, autoRangeExtendDomainKeyPrefix?: string): IPoint[][];
9
+ export declare function polarLayout(data: DataView, startRelativeSeries: IMarkerSupportSeries, endRelativeSeries: IMarkerSupportSeries, relativeSeries: IMarkerSupportSeries, autoRange: boolean, autoRangeExtendDomainKeyPrefix?: string): IPolarPoint[][];
10
10
  export declare function geoLayout(data: DataView, relativeSeries: IMarkerSupportSeries): IPoint[][];
11
- export declare function cartesianCoordinateLayout(data: DataView, relativeSeries: IMarkerSupportSeries, autoRange: boolean, coordinatesOffset: OffsetPoint[] | OffsetPoint): IPoint[];
12
- export declare function polarCoordinateLayout(data: DataView, relativeSeries: IMarkerSupportSeries, autoRange: boolean): IPolarPoint[];
11
+ export declare function cartesianCoordinateLayout(data: DataView, relativeSeries: IMarkerSupportSeries, autoRange: boolean, coordinatesOffset: OffsetPoint[] | OffsetPoint, autoRangeExtendDomainKeyPrefix?: string): IPoint[];
12
+ export declare function polarCoordinateLayout(data: DataView, relativeSeries: IMarkerSupportSeries, autoRange: boolean, autoRangeExtendDomainKeyPrefix?: string): IPolarPoint[];
13
13
  export declare function positionLayout(positions: MarkerPositionPoint | MarkerPositionPoint[] | ((seriesData: Datum[], relativeSeries: IMarkerSupportSeries) => MarkerPositionPoint) | ((seriesData: Datum[], relativeSeries: IMarkerSupportSeries) => MarkerPositionPoint[]), series: IMarkerSupportSeries, regionRelative: boolean): IPoint[];
14
14
  export declare function computeClipRange(regions: IRegion[]): {
15
15
  minX: number;
@@ -29,6 +29,7 @@ export declare class Player extends BaseComponent<IPlayer> implements IComponent
29
29
  get orient(): IOrientType;
30
30
  set layoutOrient(v: IOrientType);
31
31
  setAttrFromSpec(): void;
32
+ _compareSpec(spec: IPlayer, prevSpec: IPlayer): import("../../model/interface").IUpdateSpecResult;
32
33
  afterSetLayoutStartPoint(pos: IPoint): void;
33
34
  getBoundsInRect(rect: ILayoutRect, fullSpace: ILayoutRect): {
34
35
  x1: number;
@@ -45,6 +45,7 @@ export declare class Tooltip extends BaseComponent<any> implements ITooltip {
45
45
  protected _releaseEvent(): void;
46
46
  onLayoutEnd(): void;
47
47
  created(): void;
48
+ _compareSpec(spec: ITooltipSpec, prevSpec: ITooltipSpec): import("../../model/interface").IUpdateSpecResult;
48
49
  release(): void;
49
50
  beforeRelease(): void;
50
51
  protected _initHandler(): void;