@visactor/vchart-types 1.9.3-alpha.2 → 1.9.3-hotfix.0

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.
@@ -10,7 +10,7 @@ import type { IComponent, IComponentConstructor } from '../../component/interfac
10
10
  import type { IMark } from '../../mark/interface';
11
11
  import type { IEvent } from '../../event/interface';
12
12
  import type { DataView } from '@visactor/vdataset';
13
- import type { DataSet } from '@visactor/vdataset';
13
+ import type { DataSet } from '@visactor/vdataset/es/data-set';
14
14
  import { Stack } from '../stack';
15
15
  import type { IParserOptions } from '@visactor/vdataset/es/parser';
16
16
  import type { IBoundsLike } from '@visactor/vutils';
@@ -1,9 +1,5 @@
1
1
  import type { IPolarAxisCommonSpec } from '../interface';
2
- export declare const getPolarAxisInfo: (spec: IPolarAxisCommonSpec, chartSpec: any) => {
2
+ export declare const getPolarAxisInfo: (spec: IPolarAxisCommonSpec) => {
3
3
  axisType: import("../..").AxisType;
4
4
  componentName: string;
5
- startAngle: any;
6
- endAngle: any;
7
- center: any;
8
- outerRadius: any;
9
5
  };
@@ -3,6 +3,7 @@ import { ComponentTypeEnum } from '../interface/type';
3
3
  import type { IRegion } from '../../region/interface';
4
4
  import type { IModelRenderOption, IModelSpecInfo } from '../../model/interface';
5
5
  import type { EnableMarkType, ICustomMarkGroupSpec, ICustomMarkSpec } from '../../typings';
6
+ import type { MarkTypeEnum } from '../../mark/interface';
6
7
  import type { Maybe } from '@visactor/vutils';
7
8
  import type { IGraphic } from '@visactor/vrender-core';
8
9
  export declare class CustomMark<T = any> extends BaseComponent<any> {
@@ -13,7 +14,7 @@ export declare class CustomMark<T = any> extends BaseComponent<any> {
13
14
  layoutType: 'none';
14
15
  layoutZIndex: number;
15
16
  layoutLevel: number;
16
- protected _spec: (ICustomMarkSpec<Exclude<EnableMarkType, 'group'>> | ICustomMarkGroupSpec)[];
17
+ protected _spec: (ICustomMarkSpec<Exclude<EnableMarkType, MarkTypeEnum.group>> | ICustomMarkGroupSpec)[];
17
18
  static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
18
19
  created(): void;
19
20
  protected initMarks(): void;
@@ -16,7 +16,7 @@ export interface ILineSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<Li
16
16
  [SeriesMarkNameEnum.line]?: IMarkSpec<ILineMarkSpec>;
17
17
  [SeriesMarkNameEnum.label]?: ILineLikeLabelSpec;
18
18
  [SeriesMarkNameEnum.lineLabel]?: Omit<ILabelSpec, 'position'> & {
19
- position?: 'start' | 'end';
19
+ position: 'start' | 'end';
20
20
  };
21
21
  seriesMark?: 'line' | 'point';
22
22
  activePoint?: boolean;
@@ -33,8 +33,8 @@ export interface ISankeySeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimation
33
33
  effect: 'self' | 'adjacency' | 'related';
34
34
  };
35
35
  [SeriesMarkNameEnum.label]?: ILabelSpec & {
36
- position?: 'outside' | 'inside-start' | 'inside-middle' | 'inside-end' | 'left' | 'right';
37
- limit?: number;
36
+ position: 'outside' | 'inside-start' | 'inside-middle' | 'inside-end' | 'left' | 'right';
37
+ limit: number;
38
38
  };
39
39
  }
40
40
  export interface SankeyLinkDatum {
@@ -159,7 +159,7 @@ export interface ISeriesSpec extends IInteractionSpec {
159
159
  animationThreshold?: number;
160
160
  support3d?: boolean;
161
161
  morph?: IMorphSeriesSpec;
162
- extensionMark?: (IExtensionMarkSpec<Exclude<EnableMarkType, 'group'>> | IExtensionGroupMarkSpec)[];
162
+ extensionMark?: (IExtensionMarkSpec<Exclude<EnableMarkType, MarkTypeEnum.group>> | IExtensionGroupMarkSpec)[];
163
163
  }
164
164
  export type IChartExtendsSeriesSpec<T extends ISeriesSpec> = Omit<T, 'data' | 'morph' | 'stackValue'>;
165
165
  export type AdaptiveSpec<T, K extends keyof any> = {
@@ -236,24 +236,24 @@ export interface IPerformanceHook {
236
236
  afterVRenderDraw?: () => void;
237
237
  }
238
238
  export type IBuildinMarkSpec = {
239
- group: IGroupMarkSpec;
240
- symbol: ISymbolMarkSpec;
241
- rule: IRuleMarkSpec;
242
- line: ILineMarkSpec;
243
- text: ITextMarkSpec;
244
- rect: IRectMarkSpec;
245
- rect3d: IRect3dMarkSpec;
246
- image: IImageMarkSpec;
247
- path: IPathMarkSpec;
248
- area: IAreaMarkSpec;
249
- arc: IArcMarkSpec;
250
- arc3d: IArc3dMarkSpec;
251
- polygon: IPolygonMarkSpec;
252
- pyramid3d: IPyramid3dMarkSpec;
253
- boxPlot: IBoxPlotMarkSpec;
254
- linkPath: ILinkPathMarkSpec;
255
- progressArc: IProgressArcMarkSpec;
256
- ripple: IRippleMarkSpec;
239
+ [MarkTypeEnum.group]: IGroupMarkSpec;
240
+ [MarkTypeEnum.symbol]: ISymbolMarkSpec;
241
+ [MarkTypeEnum.rule]: IRuleMarkSpec;
242
+ [MarkTypeEnum.line]: ILineMarkSpec;
243
+ [MarkTypeEnum.text]: ITextMarkSpec;
244
+ [MarkTypeEnum.rect]: IRectMarkSpec;
245
+ [MarkTypeEnum.rect3d]: IRect3dMarkSpec;
246
+ [MarkTypeEnum.image]: IImageMarkSpec;
247
+ [MarkTypeEnum.path]: IPathMarkSpec;
248
+ [MarkTypeEnum.area]: IAreaMarkSpec;
249
+ [MarkTypeEnum.arc]: IArcMarkSpec;
250
+ [MarkTypeEnum.arc3d]: IArc3dMarkSpec;
251
+ [MarkTypeEnum.polygon]: IPolygonMarkSpec;
252
+ [MarkTypeEnum.pyramid3d]: IPyramid3dMarkSpec;
253
+ [MarkTypeEnum.boxPlot]: IBoxPlotMarkSpec;
254
+ [MarkTypeEnum.linkPath]: ILinkPathMarkSpec;
255
+ [MarkTypeEnum.progressArc]: IProgressArcMarkSpec;
256
+ [MarkTypeEnum.ripple]: IRippleMarkSpec;
257
257
  };
258
258
  export type EnableMarkType = keyof IBuildinMarkSpec;
259
259
  export interface ICustomMarkSpec<T extends EnableMarkType> extends IMarkSpec<IBuildinMarkSpec[T]> {
@@ -265,7 +265,7 @@ export interface ICustomMarkSpec<T extends EnableMarkType> extends IMarkSpec<IBu
265
265
  export interface ICustomMarkGroupSpec extends ICustomMarkSpec<MarkTypeEnum.group> {
266
266
  children?: ICustomMarkSpec<EnableMarkType>[];
267
267
  }
268
- export interface IExtensionMarkSpec<T extends Exclude<EnableMarkType, 'group'>> extends ICustomMarkSpec<T> {
268
+ export interface IExtensionMarkSpec<T extends Exclude<EnableMarkType, MarkTypeEnum.group>> extends ICustomMarkSpec<T> {
269
269
  dataIndex?: number;
270
270
  dataId?: StringOrNumber;
271
271
  componentType?: string;
@@ -25,4 +25,3 @@ export declare function radiusLabelOrientAttribute(angle: number): {
25
25
  };
26
26
  export declare function vectorAngle(v1: IPoint, v2: IPoint): number;
27
27
  export declare function distance(p1: IPoint, p2?: IPoint): number;
28
- export declare function getPercentValue(valueList: number[], idx: number, precision?: number): number;