@visactor/vchart-types 2.1.0-alpha.13 → 2.1.0-alpha.15

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.
Files changed (71) hide show
  1. package/package.json +3 -3
  2. package/tsconfig.tsbuildinfo +1 -1
  3. package/types/chart/base/base-chart-transformer.d.ts +0 -3
  4. package/types/chart/base/base-chart.d.ts +9 -25
  5. package/types/chart/interface/chart.d.ts +0 -1
  6. package/types/chart/util.d.ts +1 -4
  7. package/types/compile/compiler.d.ts +0 -2
  8. package/types/compile/data/compilable-data.d.ts +1 -1
  9. package/types/compile/grammar-item.d.ts +1 -1
  10. package/types/compile/interface/compilable-item.d.ts +1 -1
  11. package/types/compile/interface/compiler.d.ts +1 -4
  12. package/types/component/axis/base-axis.d.ts +7 -2
  13. package/types/component/axis/cartesian/band-axis.d.ts +7 -1
  14. package/types/component/axis/polar/band-axis.d.ts +0 -2
  15. package/types/component/base/base-component.d.ts +7 -7
  16. package/types/component/brush/brush.d.ts +7 -3
  17. package/types/component/crosshair/base.d.ts +7 -4
  18. package/types/component/custom-mark/custom-mark.d.ts +7 -4
  19. package/types/component/data-zoom/data-filter-base-component.d.ts +7 -3
  20. package/types/component/data-zoom/data-zoom/data-zoom.d.ts +0 -1
  21. package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +0 -1
  22. package/types/component/geo/geo-coordinate.d.ts +7 -1
  23. package/types/component/indicator/indicator.d.ts +0 -1
  24. package/types/component/indicator/util.d.ts +3 -4
  25. package/types/component/label/base-label.d.ts +7 -1
  26. package/types/component/legend/base-legend.d.ts +7 -2
  27. package/types/component/marker/base-marker.d.ts +7 -14
  28. package/types/component/marker/utils.d.ts +4 -4
  29. package/types/component/player/player.d.ts +0 -1
  30. package/types/component/title/title.d.ts +7 -1
  31. package/types/component/tooltip/tooltip.d.ts +0 -1
  32. package/types/core/vchart.d.ts +1 -5
  33. package/types/data/transforms/box-plot.d.ts +1 -4
  34. package/types/data/transforms/correlation-center.d.ts +4 -10
  35. package/types/data/transforms/correlation.d.ts +15 -18
  36. package/types/data/transforms/funnel.d.ts +8 -10
  37. package/types/data/transforms/lookup.d.ts +3 -3
  38. package/types/data/transforms/map.d.ts +2 -8
  39. package/types/data/transforms/sankey.d.ts +4 -12
  40. package/types/data/transforms/stack-split.d.ts +1 -2
  41. package/types/data/transforms/treemap.d.ts +3 -5
  42. package/types/data/transforms/venn.d.ts +2 -4
  43. package/types/data/transforms/waterfall.d.ts +2 -4
  44. package/types/event/event.d.ts +0 -4
  45. package/types/mark/base/base-mark.d.ts +2 -13
  46. package/types/mark/component.d.ts +0 -9
  47. package/types/mark/interface/mark.d.ts +0 -2
  48. package/types/model/base-model.d.ts +15 -3
  49. package/types/model/interface.d.ts +0 -13
  50. package/types/region/region.d.ts +7 -1
  51. package/types/scale/color-ordinal-scale.d.ts +0 -1
  52. package/types/series/area/area.d.ts +0 -2
  53. package/types/series/bar/bar.d.ts +0 -3
  54. package/types/series/base/base-series.d.ts +7 -10
  55. package/types/series/base/constant.d.ts +0 -3
  56. package/types/series/box-plot/box-plot.d.ts +0 -2
  57. package/types/series/dot/dot.d.ts +0 -12
  58. package/types/series/heatmap/heatmap.d.ts +0 -2
  59. package/types/series/line/line.d.ts +0 -2
  60. package/types/series/mixin/line-mixin.d.ts +0 -1
  61. package/types/series/pie/pie.d.ts +7 -3
  62. package/types/series/polar/progress-like/progress-like.d.ts +0 -2
  63. package/types/series/polar/rose-like/rose-like.d.ts +0 -2
  64. package/types/series/progress/circular/circular.d.ts +0 -2
  65. package/types/series/progress/linear/linear.d.ts +0 -2
  66. package/types/series/scatter/scatter.d.ts +0 -2
  67. package/types/series/waterfall/waterfall.d.ts +0 -2
  68. package/types/compile/stage-app.d.ts +0 -23
  69. package/types/component/base/release-vrender-component.d.ts +0 -10
  70. package/types/data/data-view-utils.d.ts +0 -5
  71. package/types/util/graphic-state.d.ts +0 -4
@@ -1,7 +1,6 @@
1
1
  import type { DataView } from '@visactor/vdataset';
2
- type FunnelOptionValue<T> = T | (() => T);
3
2
  export interface IFunnelOpt {
4
- valueField: FunnelOptionValue<string>;
3
+ valueField: string;
5
4
  asTransformRatio: string;
6
5
  asReachRatio: string;
7
6
  asHeightRatio: string;
@@ -11,12 +10,12 @@ export interface IFunnelOpt {
11
10
  asCurrentValue: string;
12
11
  asLastValue: string;
13
12
  asNextValue: string;
14
- isCone?: FunnelOptionValue<boolean | undefined>;
15
- heightVisual?: FunnelOptionValue<boolean | undefined>;
16
- range?: FunnelOptionValue<{
17
- min?: number;
18
- max?: number;
19
- } | undefined>;
13
+ isCone?: boolean;
14
+ heightVisual?: boolean;
15
+ range?: {
16
+ min: number;
17
+ max: number;
18
+ };
20
19
  }
21
20
  export declare const funnel: (originData: Array<DataView>, op: IFunnelOpt) => {
22
21
  dataSet: import("@visactor/vdataset").DataSet;
@@ -44,5 +43,4 @@ export declare const funnel: (originData: Array<DataView>, op: IFunnelOpt) => {
44
43
  export interface IFunnelTransformOpt {
45
44
  asIsTransformLevel: string;
46
45
  }
47
- export declare const funnelTransform: (originData: Array<DataView>, op: IFunnelTransformOpt) => Record<string, unknown>[];
48
- export {};
46
+ export declare const funnelTransform: (originData: Array<DataView>, op: IFunnelTransformOpt) => any;
@@ -3,10 +3,10 @@ import type { Datum } from '../../typings';
3
3
  export interface ILookUpOpt {
4
4
  from: () => object[];
5
5
  key: string;
6
- fields: string | (() => string);
6
+ fields: string;
7
7
  values?: string[];
8
8
  as?: string[];
9
- default?: unknown;
10
- set?: (A: Datum, B?: Datum) => void;
9
+ default?: any;
10
+ set?: (A: Datum, B: Datum) => void;
11
11
  }
12
12
  export declare const lookup: (data: Array<DataView>, opt: ILookUpOpt) => DataView[];
@@ -1,12 +1,6 @@
1
1
  import type { GeoSourceType } from '../../typings/geo';
2
2
  export interface IMapOpt {
3
- nameMap: Record<string, unknown>;
3
+ nameMap: Record<string, string>;
4
4
  nameProperty: string;
5
5
  }
6
- type MapFeature = {
7
- properties?: Record<string, unknown>;
8
- [key: string]: unknown;
9
- };
10
- type MapOption = IMapOpt | (() => IMapOpt);
11
- export declare const map: (data: GeoSourceType, opt: MapOption) => MapFeature[];
12
- export {};
6
+ export declare const map: (data: GeoSourceType, opt: IMapOpt) => any;
@@ -1,4 +1,4 @@
1
- import { type SankeyOptions, type SankeyData } from '@visactor/vlayouts';
1
+ import type { SankeyOptions, SankeyData } from '@visactor/vlayouts';
2
2
  export interface ISankeyOpt extends SankeyOptions {
3
3
  targetField: string;
4
4
  sourceField: string;
@@ -10,18 +10,10 @@ export interface ISankeyOpt extends SankeyOptions {
10
10
  y1: number;
11
11
  };
12
12
  }
13
- type SankeyLayoutOption = ISankeyOpt | (() => ISankeyOpt);
14
- type SankeyFormatDatum = Record<string, unknown> & {
15
- id?: 'links' | 'nodes';
16
- values?: unknown;
17
- latestData?: SankeyData[];
18
- children?: SankeyFormatDatum[];
19
- };
20
- export declare const collectHierarchyField: <T>(set: Set<T>, data: SankeyFormatDatum[], field: string) => void;
21
- export declare const sankeyFormat: (data: SankeyFormatDatum[]) => SankeyData[];
22
- export declare const sankeyLayout: (data: SankeyData[], op: SankeyLayoutOption) => {
13
+ export declare const collectHierarchyField: (set: Set<any>, data: any[], field: string) => void;
14
+ export declare const sankeyFormat: (data: any[]) => SankeyData[];
15
+ export declare const sankeyLayout: (data: SankeyData[], op: ISankeyOpt) => {
23
16
  nodes: import("@visactor/vlayouts").SankeyNodeElement[];
24
17
  links: import("@visactor/vlayouts").SankeyLinkElement[];
25
18
  columns: import("@visactor/vlayouts").SankeyNodeElement[][];
26
19
  }[];
27
- export {};
@@ -3,5 +3,4 @@ import type { DataView } from '@visactor/vdataset';
3
3
  export interface IStackOption {
4
4
  fields: string[];
5
5
  }
6
- export type StackOption = IStackOption | (() => IStackOption);
7
- export declare const stackSplit: (data: Array<DataView>, op: StackOption) => ISeriesStackDataNode;
6
+ export declare const stackSplit: (data: Array<DataView>, op: IStackOption) => ISeriesStackDataNode;
@@ -1,5 +1,5 @@
1
- import { type TreemapNodeElement, type TreemapOptions } from '@visactor/vlayouts';
2
- interface ITreemapLayoutOptions extends TreemapOptions {
1
+ import type { TreemapNodeElement, TreemapOptions } from '@visactor/vlayouts';
2
+ export declare const treemapLayout: (data: Array<any>, op: TreemapOptions & {
3
3
  getViewBox: () => {
4
4
  x0: number;
5
5
  x1: number;
@@ -7,6 +7,4 @@ interface ITreemapLayoutOptions extends TreemapOptions {
7
7
  y1: number;
8
8
  };
9
9
  nameField: string;
10
- }
11
- export declare const treemapLayout: (data: Array<Record<string, unknown>>, op: ITreemapLayoutOptions | (() => ITreemapLayoutOptions)) => TreemapNodeElement[];
12
- export {};
10
+ }) => TreemapNodeElement[];
@@ -1,4 +1,4 @@
1
- interface IVennLayoutOptions {
1
+ export declare const vennLayout: (data: Array<any>, op: {
2
2
  setField: string;
3
3
  valueField: string;
4
4
  getViewBox: () => {
@@ -7,6 +7,4 @@ interface IVennLayoutOptions {
7
7
  y0: number;
8
8
  y1: number;
9
9
  };
10
- }
11
- export declare const vennLayout: (data: Array<Record<string, unknown>>, op: IVennLayoutOptions | (() => IVennLayoutOptions)) => (import("@visactor/vlayouts").IVennCircleDatum<any> | import("@visactor/vlayouts").IVennOverlapDatum<any>)[];
12
- export {};
10
+ }) => (import("@visactor/vlayouts").IVennCircleDatum<any> | import("@visactor/vlayouts").IVennOverlapDatum<any>)[];
@@ -17,8 +17,7 @@ export interface IWaterfallOpt {
17
17
  stackInverse: boolean;
18
18
  groupData: () => DataView;
19
19
  }
20
- export type WaterfallOption = IWaterfallOpt | (() => IWaterfallOpt);
21
- export declare const waterfall: (lastData: Array<Datum>, op: WaterfallOption) => Datum[];
20
+ export declare const waterfall: (lastData: Array<Datum>, op: IWaterfallOpt) => Datum[];
22
21
  export interface IWaterfallFillEndOpt {
23
22
  indexField: string;
24
23
  valueField: string;
@@ -26,5 +25,4 @@ export interface IWaterfallFillEndOpt {
26
25
  total: IWaterfallSeriesSpec['total'];
27
26
  calculationMode: IWaterfallSeriesSpec['calculationMode'];
28
27
  }
29
- export type WaterfallFillEndOption = IWaterfallFillEndOpt | (() => IWaterfallFillEndOpt);
30
- export declare const waterfallFillTotal: (data: Array<Datum>, op: WaterfallFillEndOption) => Datum[];
28
+ export declare const waterfallFillTotal: (data: Array<Datum>, op: IWaterfallFillEndOpt) => Datum[];
@@ -4,7 +4,6 @@ export declare class Event implements IEvent {
4
4
  private _eventDispatcher;
5
5
  private _mode;
6
6
  private _composedEventMap;
7
- private _eventHandlerMap;
8
7
  getComposedEventMap(): Map<EventCallback<EventParams>, {
9
8
  eventType: string;
10
9
  event: IComposedEvent;
@@ -21,7 +20,4 @@ export declare class Event implements IEvent {
21
20
  }): this;
22
21
  allow<Evt extends EventType>(eType: Evt): this;
23
22
  release(): void;
24
- private _addEventHandler;
25
- private _getEventHandler;
26
- private _removeEventHandler;
27
23
  }
@@ -5,7 +5,7 @@ import { MarkTypeEnum } from '../interface';
5
5
  import type { IMarkRaw, IMarkStateStyle, IMarkStyle, IMark, IMarkOption, StyleConvert, MarkInputStyle, GroupedData, IAttrs, IMarkGraphic, ProgressiveContext, IProgressiveTransformResult, MarkType, AnimationStateValues } from '../interface';
6
6
  import type { ICompilableMark, IMarkCompileOption, IMarkConfig, IMarkStateManager, StateValueType } from '../../compile/mark/interface';
7
7
  import type { ICompilableInitOption } from '../../compile/interface';
8
- import type { IGroupGraphicAttribute, IGroup, IGraphic, StateDefinitionsInput } from '@visactor/vrender-core';
8
+ import type { IGroupGraphicAttribute, IGroup, IGraphic } from '@visactor/vrender-core';
9
9
  import { GrammarItem } from '../../compile/grammar-item';
10
10
  import type { IModel } from '../../model/interface';
11
11
  import type { ICompilableData } from '../../compile/data/interface';
@@ -74,7 +74,7 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
74
74
  stopAnimationByState(state?: string): void;
75
75
  pauseAnimationByState(state?: string): void;
76
76
  resumeAnimationByState(state?: string): void;
77
- removeProduct(releaseDetach?: boolean): void;
77
+ removeProduct(): void;
78
78
  release(): void;
79
79
  protected _simpleStyle: T;
80
80
  setSimpleStyle(s: T): void;
@@ -82,11 +82,6 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
82
82
  protected _option: IMarkOption;
83
83
  protected _attributeContext: IModelMarkAttributeContext;
84
84
  protected _encoderOfState: Record<string, Record<string, (datum: Datum) => any>>;
85
- protected _sharedStateDefinitionsCacheKey?: string;
86
- protected _sharedStateDefinitionsCache?: StateDefinitionsInput<Record<string, unknown>>;
87
- protected _sharedStateDefinitionRefIds: WeakMap<object, number>;
88
- protected _sharedStateDefinitionRefId: number;
89
- protected _dynamicSharedStateNames: Set<string>;
90
85
  _extensionChannel: {
91
86
  [key: string | number | symbol]: string[];
92
87
  };
@@ -160,14 +155,8 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
160
155
  protected _getEncoderOfStyle: (stateName: string, style: Partial<IAttrs<T>>) => Record<string, (datum: Datum) => any>;
161
156
  protected _setGraphicFromMarkConfig: (g: IMarkGraphic) => void;
162
157
  protected _setStateOfGraphic: (g: IMarkGraphic, hasAnimation?: boolean) => void;
163
- protected _getSharedStateDefinitionRefId(value: unknown): string;
164
- protected _getSharedStateDefinitionValueKey(value: unknown): string;
165
- protected _isStaticSharedStateAttribute(stateName: string, key: string): boolean;
166
- protected _applySharedStateDefinitions(): void;
167
158
  protected _addProgressiveGraphic(parent: IGroup, g: IMarkGraphic): void;
168
159
  protected _runEncoder(graphics: IMarkGraphic[], noGroupEncode?: boolean): void;
169
- protected _excludeStateControlledDiffAttrs(g: IMarkGraphic, diffAttrs: Record<string, any>): Record<string, any>;
170
- protected _hasDiffAttrs(g: IMarkGraphic): boolean;
171
160
  protected _runApplyGraphic(graphics: IMarkGraphic[]): void;
172
161
  protected _updateEncoderByState(): void;
173
162
  protected _runState(graphics: IMarkGraphic[]): void;
@@ -8,20 +8,11 @@ export declare class ComponentMark extends BaseMark<ICommonSpec> implements ICom
8
8
  type: string;
9
9
  private _componentType;
10
10
  private _component;
11
- private _exitingComponent?;
12
- private _exitingProduct?;
13
11
  private _mode;
14
12
  constructor(name: string, option: IMarkOption);
15
13
  protected _getDefaultStyle(): IMarkStyle<ICommonSpec>;
16
14
  getComponent(): IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>;
17
- private _clearExitingComponent;
18
- private _removeProductAfterExit;
19
- private _registerExitingComponent;
20
- private _unregisterExitingComponent;
21
- private _releaseComponentWithExitAnimation;
22
15
  clearComponent(): void;
23
- releaseWithExitAnimation(): boolean;
24
- forceReleaseExitAnimation(): void;
25
16
  protected _getAttrsFromConfig(attrs?: IGroupGraphicAttribute): IGroupGraphicAttribute;
26
17
  protected _attributesTransform: (attrs: any) => any;
27
18
  setAttributeTransform(t: (attrs: any) => any): void;
@@ -6,8 +6,6 @@ import type { MarkType } from './type';
6
6
  export interface IComponentMark extends IMarkRaw<ICommonSpec> {
7
7
  getComponent: () => IGraphic;
8
8
  clearComponent: () => void;
9
- releaseWithExitAnimation: () => boolean;
10
- forceReleaseExitAnimation: () => void;
11
9
  setAttributeTransform: (t: (attrs: any) => any) => any;
12
10
  }
13
11
  export interface IGlyphMark<T extends ICommonSpec = ICommonSpec, C = any> extends IMarkRaw<T> {
@@ -1,5 +1,5 @@
1
1
  import type { IEvent } from '../event/interface';
2
- import type { IEffect, IModel, IModelInitOption, IModelOption, IModelEvaluateOption, IModelSpec, IModelMarkInfo, IModelSpecInfo, IUpdateSpecResult } from './interface';
2
+ import type { IEffect, IModel, IModelInitOption, IModelOption, IModelEvaluateOption, IModelSpec, IModelMarkInfo, IModelSpecInfo } from './interface';
3
3
  import type { CoordinateType } from '../typings/coordinate';
4
4
  import type { AnimationStateValues, ICompileMarkConfig, IMark, IMarkGraphic, IMarkOption, IMarkRaw, IMarkStyle } from '../mark/interface';
5
5
  import type { Datum, StateValueType, ConvertToMarkStyleSpec, ICommonSpec, StringOrNumber, IRect, ILayoutRect } from '../typings';
@@ -50,8 +50,20 @@ export declare abstract class BaseModel<T extends IModelSpec> extends Compilable
50
50
  beforeRelease(): void;
51
51
  clear(): void;
52
52
  release(): void;
53
- updateSpec(spec: T): IUpdateSpecResult;
54
- protected _compareSpec(spec: T, prevSpec: T): IUpdateSpecResult;
53
+ updateSpec(spec: T): {
54
+ change: boolean;
55
+ reMake: boolean;
56
+ reRender: boolean;
57
+ reSize: boolean;
58
+ reCompile: boolean;
59
+ };
60
+ protected _compareSpec(spec: T, prevSpec: T): {
61
+ change: boolean;
62
+ reMake: boolean;
63
+ reRender: boolean;
64
+ reSize: boolean;
65
+ reCompile: boolean;
66
+ };
55
67
  reInit(spec?: T): void;
56
68
  updateLayoutAttribute(): void;
57
69
  setAttrFromSpec(): void;
@@ -33,18 +33,6 @@ export interface IModelRenderOption {
33
33
  export interface IEffect {
34
34
  [key: string]: (e?: any) => any;
35
35
  }
36
- export interface IUpdateSpecEffects {
37
- remake?: boolean;
38
- compile?: boolean;
39
- render?: boolean;
40
- layout?: boolean;
41
- data?: boolean;
42
- scaleDomain?: boolean;
43
- series?: boolean;
44
- component?: boolean;
45
- animation?: boolean;
46
- localOnly?: boolean;
47
- }
48
36
  export interface IMarkTreeGroup extends Partial<IMarkStyle<IGroupMarkSpec>> {
49
37
  type: 'group';
50
38
  name: string;
@@ -58,7 +46,6 @@ export interface IUpdateSpecResult {
58
46
  reSize?: boolean;
59
47
  reCompile?: boolean;
60
48
  reTransformSpec?: boolean;
61
- effects?: IUpdateSpecEffects;
62
49
  reAnimate?: boolean;
63
50
  changeTheme?: boolean;
64
51
  changeBackground?: boolean;
@@ -39,7 +39,13 @@ export declare class Region<T extends IRegionSpec = IRegionSpec> extends LayoutM
39
39
  initMark(): void;
40
40
  protected _initBackgroundMarkStyle(): void;
41
41
  protected _initForegroundMarkStyle(): void;
42
- _compareSpec(spec: T, prevSpec: T): import("../model/interface").IUpdateSpecResult;
42
+ _compareSpec(spec: T, prevSpec: T): {
43
+ change: boolean;
44
+ reMake: boolean;
45
+ reRender: boolean;
46
+ reSize: boolean;
47
+ reCompile: boolean;
48
+ };
43
49
  reInit(spec?: T): void;
44
50
  addSeries(s: ISeries): void;
45
51
  removeSeries(s: ISeries): void;
@@ -2,7 +2,6 @@ import { OrdinalScale } from '@visactor/vscale';
2
2
  import type { ColorSchemeItem, ProgressiveDataScheme } from '../theme/color-scheme/interface';
3
3
  export declare class ColorOrdinalScale extends OrdinalScale {
4
4
  protected _range: Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>;
5
- setSpecified(value?: Record<string, unknown>): this;
6
5
  range(value?: Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>): this | any;
7
6
  domain(value?: any[]): this | any;
8
7
  protected _resetRange(): void;
@@ -7,7 +7,6 @@ import { SeriesTypeEnum } from '../interface/type';
7
7
  import type { IAreaSeriesSpec, IAreaSeriesTheme } from './interface';
8
8
  import type { IMark, IAreaMark } from '../../mark/interface';
9
9
  import { AreaSeriesSpecTransformer } from './area-transformer';
10
- import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
11
10
  export interface AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends Pick<LineLikeSeriesMixin, 'initLineMark' | 'initSymbolMark' | 'initLabelMarkStyle' | 'initLineMarkStyle' | 'initSymbolMarkStyle' | 'encodeDefined' | '_lineMark' | '_symbolMark' | 'addSamplingCompile' | 'addOverlapCompile' | 'reCompileSampling' | 'initLineLabelMarkStyle'>, CartesianSeries<T> {
12
11
  }
13
12
  export declare class AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends CartesianSeries<T> {
@@ -19,7 +18,6 @@ export declare class AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> ext
19
18
  readonly transformerConstructor: typeof AreaSeriesSpecTransformer;
20
19
  protected _areaMark: IAreaMark;
21
20
  protected _sortDataByAxis: boolean;
22
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
23
21
  initMark(): void;
24
22
  initMarkStyle(): void;
25
23
  initAreaMarkStyle(): void;
@@ -1,6 +1,5 @@
1
1
  import type { IBaseScale } from '@visactor/vscale';
2
2
  import { CartesianSeries } from '../cartesian/cartesian';
3
- import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
4
3
  import type { IMark, IRectMark, ITextMark } from '../../mark/interface';
5
4
  import type { Datum, DirectionType } from '../../typings';
6
5
  import type { IBarSeriesSpec, IBarSeriesTheme } from './interface';
@@ -25,11 +24,9 @@ export declare class BarSeries<T extends IBarSeriesSpec = IBarSeriesSpec> extend
25
24
  protected _barMark: IRectMark;
26
25
  protected _barBackgroundMark: IRectMark;
27
26
  protected _barBackgroundViewData: ICompilableData;
28
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
29
27
  initMark(): void;
30
28
  protected _initBarBackgroundMark(): void;
31
29
  initMarkStyle(): void;
32
- protected initRectMarkStyle(): void;
33
30
  initLabelMarkStyle(textMark: ITextMark): void;
34
31
  protected initTooltip(): void;
35
32
  protected _statisticViewData(): void;
@@ -16,14 +16,6 @@ import type { StatisticOperations } from '../../data/transforms/interface';
16
16
  import type { GraphicEventType } from '@visactor/vrender-core';
17
17
  import type { ICompilableData } from '../../compile/data';
18
18
  import type { IBaseTriggerOptions } from '../../interaction/interface/trigger';
19
- export interface ISeriesSpecUpdatePolicy {
20
- compileOnlyKeys?: Record<string, true>;
21
- dataRelatedKeys?: Record<string, true>;
22
- compileOnlySubKeys?: Record<string, Record<string, true>>;
23
- seriesOnlyKeys?: Record<string, true>;
24
- }
25
- export declare function markSeriesCompileEffect(compareResult: IUpdateSpecResult, dataRelated?: boolean): void;
26
- export declare function markSeriesOnlyEffect(compareResult: IUpdateSpecResult): void;
27
19
  export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> implements ISeries {
28
20
  readonly specKey: string;
29
21
  readonly type: string;
@@ -178,8 +170,13 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
178
170
  protected initTooltip(): void;
179
171
  _compareExtensionMarksSpec(newMarks: (IExtensionMarkSpec<Exclude<EnableMarkType, 'group'>> | IExtensionGroupMarkSpec)[], prevMarks: (IExtensionMarkSpec<Exclude<EnableMarkType, 'group'>> | IExtensionGroupMarkSpec)[], compareResult: IUpdateSpecResult): void;
180
172
  _compareLabelSpec(newLabels: ILabelSpec[], prevLabels: ILabelSpec[], compareResult: IUpdateSpecResult): void;
181
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
182
- _compareSpec(spec: T, prevSpec: T, ignoreCheckKeys?: Record<string, boolean>): IUpdateSpecResult;
173
+ _compareSpec(spec: T, prevSpec: T, ignoreCheckKeys?: Record<string, boolean>): {
174
+ change: boolean;
175
+ reMake: boolean;
176
+ reRender: boolean;
177
+ reSize: boolean;
178
+ reCompile: boolean;
179
+ };
183
180
  _updateSpecData(): void;
184
181
  reInit(spec?: T): void;
185
182
  onEvaluateEnd(ctx: IModelEvaluateOption): void;
@@ -10,6 +10,3 @@ export declare const defaultSeriesIgnoreCheckKeys: {
10
10
  export declare const defaultSeriesCompileCheckKeys: {
11
11
  [key: string]: true;
12
12
  };
13
- export declare const defaultSeriesCompileOnlyCheckKeys: {
14
- [key: string]: true;
15
- };
@@ -8,7 +8,6 @@ import { DataView } from '@visactor/vdataset';
8
8
  import type { IMark, ITextMark } from '../../mark/interface';
9
9
  import type { ICompilableData } from '../../compile/data';
10
10
  import { BoxPlotSeriesSpecTransformer } from './box-plot-transformer';
11
- import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
12
11
  export declare const DEFAULT_FILL_COLOR = "#FFF";
13
12
  export declare const DEFAULT_STROKE_COLOR = "#000";
14
13
  export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeriesSpec> extends CartesianSeries<T> {
@@ -47,7 +46,6 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
47
46
  getOutliersStyle(): IOutlierMarkSpec;
48
47
  protected _outlierData: ICompilableData;
49
48
  private _autoBoxWidth;
50
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
51
49
  setAttrFromSpec(): void;
52
50
  private _boxPlotMark?;
53
51
  private _outlierMark?;
@@ -31,18 +31,6 @@ export declare class DotSeries<T extends IDotSeriesSpec = IDotSeriesSpec> extend
31
31
  setHighLightSeriesGroup(field: string): void;
32
32
  protected _gridBackground?: IFillMarkSpec;
33
33
  setGridBackground(gridBackground: IFillMarkSpec): void;
34
- protected _getSpecUpdatePolicy(): {
35
- compileOnlyKeys: {
36
- highLightSeriesGroup: true;
37
- titleField: true;
38
- subTitleField: true;
39
- };
40
- compileOnlySubKeys: {
41
- grid: Record<"background", true>;
42
- };
43
- dataRelatedKeys?: Record<string, true>;
44
- seriesOnlyKeys?: Record<string, true>;
45
- };
46
34
  initData(): void;
47
35
  getStatisticFields(): {
48
36
  key: string;
@@ -5,7 +5,6 @@ import type { SeriesMarkMap } from '../interface';
5
5
  import { SeriesTypeEnum } from '../interface/type';
6
6
  import type { ICellMark, IMark, ITextMark } from '../../mark/interface';
7
7
  import { HeatmapSeriesSpecTransformer } from './heatmap-transformer';
8
- import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
9
8
  export declare const DefaultBandWidth = 6;
10
9
  export declare class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeriesSpec> extends CartesianSeries<T> {
11
10
  static readonly type: string;
@@ -21,7 +20,6 @@ export declare class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeries
21
20
  protected _fieldValue: string[];
22
21
  getFieldValue(): string[];
23
22
  setFieldValue(f: string | string[]): void;
24
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
25
23
  setAttrFromSpec(): void;
26
24
  initMark(): void;
27
25
  initMarkStyle(): void;
@@ -6,7 +6,6 @@ import type { Datum } from '../../typings';
6
6
  import type { ILineSeriesSpec } from './interface';
7
7
  import type { IMark } from '../../mark/interface';
8
8
  import { LineLikeSeriesSpecTransformer } from '../mixin/line-mixin-transformer';
9
- import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
10
9
  export interface LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> extends Pick<LineLikeSeriesMixin, 'initLineMark' | 'initSymbolMark' | 'initLabelMarkStyle' | 'initLineMarkStyle' | 'initSymbolMarkStyle' | '_lineMark' | '_symbolMark' | 'addSamplingCompile' | 'addOverlapCompile' | 'reCompileSampling'>, CartesianSeries<T> {
11
10
  }
12
11
  export declare class LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> extends CartesianSeries<T> {
@@ -19,7 +18,6 @@ export declare class LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> ext
19
18
  static readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
20
19
  readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
21
20
  protected _sortDataByAxis: boolean;
22
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
23
21
  compile(): void;
24
22
  initMark(): void;
25
23
  protected initTooltip(): void;
@@ -7,7 +7,6 @@ import type { DimensionEventParams } from '../../event/events/dimension';
7
7
  import type { IRegion } from '../../region/interface';
8
8
  import type { ILineLikeSeriesTheme } from './interface';
9
9
  import type { ICompilableData } from '../../compile/data';
10
- export declare const LINE_LIKE_SERIES_DATA_RELATED_KEYS: Record<string, true>;
11
10
  export interface LineLikeSeriesMixin extends ISeries {
12
11
  _spec: any;
13
12
  _option: ISeriesOption;
@@ -1,6 +1,5 @@
1
1
  import type { IPoint, Datum, StateValueType } from '../../typings';
2
2
  import { PolarSeries } from '../polar/polar';
3
- import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
4
3
  import type { IArcMark, IMark, IPathMark, ITextMark } from '../../mark/interface';
5
4
  import type { IArcSeries, SeriesMarkMap } from '../interface';
6
5
  import { SeriesTypeEnum } from '../interface/type';
@@ -57,10 +56,15 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
57
56
  getInnerRadius(state?: StateValueType): number;
58
57
  computeRadius(r: number, k?: number): number;
59
58
  computeDatumRadius(datum: Datum, state?: string): number;
60
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
61
59
  _compareSpec(spec: T, prevSpec: T, ignoreCheckKeys?: {
62
60
  [key: string]: true;
63
- }): import("../..").IUpdateSpecResult;
61
+ }): {
62
+ change: boolean;
63
+ reMake: boolean;
64
+ reRender: boolean;
65
+ reSize: boolean;
66
+ reCompile: boolean;
67
+ };
64
68
  computeDatumInnerRadius(datum: Datum, state?: string): number;
65
69
  dataToPosition(datum: Datum, checkInViewData?: boolean): IPoint | null;
66
70
  dataToCentralPosition: (datum: Datum) => IPoint | null;
@@ -4,13 +4,11 @@ import { PolarSeries } from '../polar';
4
4
  import type { IContinuousTickData, IProgressLikeSeriesSpec } from './interface';
5
5
  import type { IPolarAxis } from '../../../component/axis';
6
6
  import type { SeriesMarkMap } from '../../interface';
7
- import type { ISeriesSpecUpdatePolicy } from '../../base/base-series';
8
7
  export declare abstract class ProgressLikeSeries<T extends IProgressLikeSeriesSpec> extends PolarSeries<T> {
9
8
  static readonly mark: SeriesMarkMap;
10
9
  protected _startAngle: number;
11
10
  protected _endAngle: number;
12
11
  protected _arcGroupMark: IGroupMark | null;
13
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
14
12
  setAttrFromSpec(): void;
15
13
  getStackGroupFields(): string[];
16
14
  getStackValueField(): string;
@@ -1,8 +1,6 @@
1
1
  import { PolarSeries } from '../polar';
2
2
  import type { IRoseLikeSeriesSpec } from './interface';
3
- import type { ISeriesSpecUpdatePolicy } from '../../base/base-series';
4
3
  export declare abstract class RoseLikeSeries<T extends IRoseLikeSeriesSpec> extends PolarSeries<T> {
5
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
6
4
  getStackGroupFields(): string[];
7
5
  getStackValueField(): string;
8
6
  getGroupFields(): string[];
@@ -1,7 +1,6 @@
1
1
  import type { Datum } from '../../../typings';
2
2
  import type { SeriesMarkMap } from '../../interface';
3
3
  import { SeriesTypeEnum } from '../../interface/type';
4
- import type { ISeriesSpecUpdatePolicy } from '../../base/base-series';
5
4
  import type { ICircularProgressSeriesSpec } from './interface';
6
5
  import { ProgressLikeSeries } from '../../polar/progress-like/progress-like';
7
6
  import type { IMark } from '../../../mark/interface';
@@ -17,7 +16,6 @@ export declare class CircularProgressSeries<T extends ICircularProgressSeriesSpe
17
16
  readonly transformerConstructor: typeof CircularProgressSeriesSpecTransformer;
18
17
  private _progressMark;
19
18
  private _trackMark;
20
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
21
19
  getStackGroupFields(): string[];
22
20
  getGroupFields(): string[];
23
21
  initMark(): void;
@@ -3,7 +3,6 @@ import type { SeriesMarkMap } from '../../interface';
3
3
  import { SeriesTypeEnum } from '../../interface/type';
4
4
  import type { ILinearProgressSeriesSpec } from './interface';
5
5
  import type { IMark } from '../../../mark/interface';
6
- import type { ISeriesSpecUpdatePolicy } from '../../base/base-series';
7
6
  export declare class LinearProgressSeries<T extends ILinearProgressSeriesSpec = ILinearProgressSeriesSpec> extends CartesianSeries<T> {
8
7
  static readonly type: string;
9
8
  type: SeriesTypeEnum;
@@ -13,7 +12,6 @@ export declare class LinearProgressSeries<T extends ILinearProgressSeriesSpec =
13
12
  };
14
13
  private _progressMark;
15
14
  private _trackMark;
16
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
17
15
  initMark(): void;
18
16
  initMarkStyle(): void;
19
17
  private _initProgressMark;
@@ -2,7 +2,6 @@ import type { DataView } from '@visactor/vdataset';
2
2
  import type { IScatterInvalidType } from '../../typings';
3
3
  import type { IScatterSeriesSpec } from './interface';
4
4
  import { CartesianSeries } from '../cartesian/cartesian';
5
- import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
6
5
  import type { SeriesMarkMap } from '../interface';
7
6
  import { SeriesTypeEnum } from '../interface/type';
8
7
  import type { ILabelMark, IMark } from '../../mark/interface';
@@ -23,7 +22,6 @@ export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeries
23
22
  private _shape;
24
23
  private _shapeField;
25
24
  protected _invalidType: IScatterInvalidType;
26
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
27
25
  setAttrFromSpec(): void;
28
26
  private _getSeriesAttribute;
29
27
  private getSizeAttribute;
@@ -8,7 +8,6 @@ import type { Datum } from '../../typings';
8
8
  import type { ILabelMark, IRuleMark, ITextMark } from '../../mark/interface';
9
9
  import type { ILabelInfo } from '../../component/label/interface';
10
10
  import { type ICompilableData } from '../../compile/data';
11
- import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
12
11
  export declare const DefaultBandWidth = 6;
13
12
  export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfallSeriesSpec> extends BarSeries<any> {
14
13
  static readonly type: string;
@@ -25,7 +24,6 @@ export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfall
25
24
  protected _leaderLineMark: IRuleMark;
26
25
  protected _stackLabelMark: ITextMark;
27
26
  protected _labelMark: ITextMark;
28
- protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
29
27
  protected initGroups(): void;
30
28
  setAttrFromSpec(): void;
31
29
  getSeriesKeys(): string[];
@@ -1,23 +0,0 @@
1
- import type { IApp, IStage, IStageParams } from '@visactor/vrender-core';
2
- import { type RenderMode } from '../typings/spec/common';
3
- type VRenderAppEnv = 'browser' | 'node' | 'feishu' | 'tt' | 'wx' | 'lynx' | 'harmony';
4
- type VRenderSharedAppKey = string | symbol;
5
- export type SharedVRenderAppOption = {
6
- key: VRenderSharedAppKey;
7
- };
8
- export type ResolveVRenderAppOptions = {
9
- app?: IApp;
10
- mode?: RenderMode;
11
- modeParams?: unknown;
12
- sharedVRenderApp?: SharedVRenderAppOption;
13
- };
14
- export type ResolvedVRenderApp = {
15
- app: IApp;
16
- releaseAppRef?: () => void;
17
- };
18
- export declare const getVRenderAppEnv: (mode?: RenderMode) => VRenderAppEnv;
19
- export declare const getVRenderAppEnvParams: (mode?: RenderMode, modeParams?: unknown) => unknown;
20
- export declare const getDefaultVRenderApp: (mode?: RenderMode) => IApp;
21
- export declare const resolveVRenderApp: (appOrOptions?: IApp | ResolveVRenderAppOptions, mode?: RenderMode) => ResolvedVRenderApp;
22
- export declare const createStageFromApp: (app: IApp, params: Partial<IStageParams>) => IStage;
23
- export {};