@visactor/vchart-types 1.12.5 → 1.12.7
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.
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/chart/base/base-chart.d.ts +1 -0
- package/types/chart/chart-meta/data.d.ts +1 -2
- package/types/chart/mosaic/mosaic.d.ts +0 -1
- package/types/chart/pie/interface.d.ts +2 -2
- package/types/chart/polar/interface.d.ts +2 -0
- package/types/compile/mark/compilable-mark.d.ts +1 -1
- package/types/compile/mark/interface.d.ts +1 -0
- package/types/component/axis/base-axis.d.ts +1 -2
- package/types/component/axis/polar/axis.d.ts +0 -1
- package/types/component/axis/polar/interface/spec.d.ts +3 -1
- package/types/component/custom-mark/custom-mark.d.ts +0 -1
- package/types/component/label/base-label.d.ts +1 -2
- package/types/component/label/label.d.ts +0 -1
- package/types/component/label/total-label.d.ts +1 -1
- package/types/component/label/util.d.ts +1 -1
- package/types/component/legend/util.d.ts +2 -2
- package/types/core/vchart.d.ts +1 -1
- package/types/data/initialize.d.ts +1 -2
- package/types/plugin/chart/media-query/media-query.d.ts +1 -0
- package/types/plugin/chart/plugin-service.d.ts +2 -0
- package/types/series/base/base-series.d.ts +6 -5
- package/types/series/funnel/funnel.d.ts +1 -0
- package/types/series/funnel/interface.d.ts +3 -1
- package/types/series/gauge/interface.d.ts +1 -1
- package/types/series/polar/animation.d.ts +8 -11
- package/types/series/radar/animation.d.ts +0 -3
- package/types/typings/spec/common.d.ts +5 -2
|
@@ -110,6 +110,7 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
110
110
|
updateGlobalScaleDomain(): void;
|
|
111
111
|
updateGlobalScale(result: IUpdateSpecResult): void;
|
|
112
112
|
updateGlobalScaleTheme(): void;
|
|
113
|
+
private _getSpecKeys;
|
|
113
114
|
updateSpec(spec: T): {
|
|
114
115
|
change: boolean;
|
|
115
116
|
reMake: boolean;
|
|
@@ -5,9 +5,8 @@ import type { StringOrNumber } from '../../typings';
|
|
|
5
5
|
export declare class ChartData {
|
|
6
6
|
protected _dataArr: DataView[];
|
|
7
7
|
get dataList(): DataView[];
|
|
8
|
-
protected _onError: (...args: any[]) => void;
|
|
9
8
|
protected _dataSet: DataSet;
|
|
10
|
-
constructor(dataSet: DataSet
|
|
9
|
+
constructor(dataSet: DataSet);
|
|
11
10
|
parseData(dataSpec: IData): void;
|
|
12
11
|
updateData(dataSpec: IData, fullUp?: boolean, forceMerge?: boolean): boolean;
|
|
13
12
|
private _dataValueForEach;
|
|
@@ -12,7 +12,6 @@ export declare class MosaicChart<T extends IMosaicChartSpec = IMosaicChartSpec>
|
|
|
12
12
|
readonly type: string;
|
|
13
13
|
readonly seriesType: string;
|
|
14
14
|
protected _stack: Stack;
|
|
15
|
-
afterCompile(): void;
|
|
16
15
|
protected _beforeInit(): void;
|
|
17
16
|
protected _initStack(): void;
|
|
18
17
|
handleAfterStackRegion: (region: IRegion, stackValueGroup: {
|
|
@@ -3,9 +3,9 @@ import type { IIndicatorSpec } from '../../component/indicator/interface';
|
|
|
3
3
|
import type { IChartExtendsSeriesSpec, IChartSpec } from '../../typings/spec/common';
|
|
4
4
|
export interface IPieChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IPieSeriesSpec> {
|
|
5
5
|
type: 'pie';
|
|
6
|
-
indicator?: IIndicatorSpec;
|
|
6
|
+
indicator?: IIndicatorSpec | IIndicatorSpec[];
|
|
7
7
|
}
|
|
8
8
|
export interface IPie3dChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IPie3dSeriesSpec> {
|
|
9
9
|
type: 'pie3d';
|
|
10
|
-
indicator?: IIndicatorSpec;
|
|
10
|
+
indicator?: IIndicatorSpec | IIndicatorSpec[];
|
|
11
11
|
}
|
|
@@ -2,8 +2,10 @@ import type { IPointLike } from '@visactor/vutils';
|
|
|
2
2
|
import type { IPolarAxisSpec } from '../../component/axis/polar/interface';
|
|
3
3
|
import type { IPolarCrosshairSpec } from '../../component/crosshair/interface';
|
|
4
4
|
import type { IChartSpec, ILayoutRect } from '../../typings';
|
|
5
|
+
import type { IIndicatorSpec } from '../../component';
|
|
5
6
|
export interface IPolarChartSpec extends IChartSpec {
|
|
6
7
|
axes?: IPolarAxisSpec[];
|
|
7
8
|
crosshair?: IPolarCrosshairSpec | IPolarCrosshairSpec[];
|
|
8
9
|
layoutRadius?: 'auto' | number | ((layoutRect: ILayoutRect, center: IPointLike) => number);
|
|
10
|
+
indicator?: IIndicatorSpec | IIndicatorSpec[];
|
|
9
11
|
}
|
|
@@ -98,7 +98,7 @@ export declare abstract class CompilableMark extends GrammarItem implements ICom
|
|
|
98
98
|
compileEncode(): void;
|
|
99
99
|
compileState(): void;
|
|
100
100
|
compileAnimation(): void;
|
|
101
|
-
compileContext(): void;
|
|
101
|
+
compileContext(extraContext?: any): void;
|
|
102
102
|
compileSignal(): void;
|
|
103
103
|
protected _computeAttribute(key: string, state: StateValueType): (datum: Datum, opt: IAttributeOpt) => any;
|
|
104
104
|
protected compileCommonAttributeCallback(key: string, state: string): MarkFunctionCallback<any>;
|
|
@@ -81,6 +81,7 @@ export interface IMarkDataInitOption extends ICompilableMarkOption {
|
|
|
81
81
|
export interface IMarkCompileOption extends GrammarItemCompileOption {
|
|
82
82
|
group?: string | IGroupMark;
|
|
83
83
|
ignoreChildren?: boolean;
|
|
84
|
+
context?: any;
|
|
84
85
|
}
|
|
85
86
|
export interface IStateInfo {
|
|
86
87
|
stateValue: StateValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ITickDataOpt } from '@visactor/vrender-components';
|
|
2
2
|
import type { IBaseScale } from '@visactor/vscale';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
4
4
|
import type { IOrientType, IPolarOrientType, StringOrNumber, CoordinateType } from '../../typings';
|
|
5
5
|
import { BaseComponent } from '../base/base-component';
|
|
6
6
|
import { CompilableData } from '../../compile/data';
|
|
@@ -77,7 +77,6 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
77
77
|
reSize: boolean;
|
|
78
78
|
reCompile: boolean;
|
|
79
79
|
};
|
|
80
|
-
protected _delegateAxisContainerEvent(component: IGroup): void;
|
|
81
80
|
protected _getAxisAttributes(): any;
|
|
82
81
|
protected _getGridAttributes(): {
|
|
83
82
|
alternateColor: any;
|
|
@@ -47,7 +47,6 @@ export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarA
|
|
|
47
47
|
onRender(ctx: any): void;
|
|
48
48
|
changeRegions(): void;
|
|
49
49
|
protected _tickTransformOption(): IPolarTickDataOpt;
|
|
50
|
-
afterCompile(): void;
|
|
51
50
|
protected updateScaleRange(): boolean;
|
|
52
51
|
protected collectSeriesField(depth: number, series: IPolarSeries): string | string[];
|
|
53
52
|
protected abstract computeDomain(data: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { IPointLike } from '@visactor/vutils';
|
|
2
|
+
import type { AxisLabelOverlap } from '@visactor/vrender-components';
|
|
2
3
|
import type { ILayoutRect, IPolarOrientType } from '../../../../typings';
|
|
3
4
|
import type { IBandAxisSpec, IDomainLine, ILinearAxisSpec, ITitle, ILabel, ICommonAxisSpec } from '../../interface';
|
|
4
5
|
import type { IPolarGrid } from './common';
|
|
5
6
|
export type IPolarAxisSpec = IPolarLinearAxisSpec | IPolarBandAxisSpec;
|
|
7
|
+
export type IPolarAxisLabel = ILabel & Pick<AxisLabelOverlap, 'autoHide' | 'autoHideMethod' | 'autoHideSeparation' | 'autoLimit' | 'limitEllipsis' | 'layoutFunc' | 'autoWrap'>;
|
|
6
8
|
export type IPolarAxisCommonSpec = Omit<ICommonAxisSpec, 'center'> & {
|
|
7
9
|
layoutRadius?: 'auto' | number | ((layoutRect: ILayoutRect, center: IPointLike) => number);
|
|
8
10
|
inside?: boolean;
|
|
@@ -11,7 +13,7 @@ export type IPolarAxisCommonSpec = Omit<ICommonAxisSpec, 'center'> & {
|
|
|
11
13
|
radius?: number;
|
|
12
14
|
subGrid?: IPolarGrid;
|
|
13
15
|
domainLine?: IDomainLine;
|
|
14
|
-
label?:
|
|
16
|
+
label?: IPolarAxisLabel;
|
|
15
17
|
title?: ITitle;
|
|
16
18
|
innerRadius?: number;
|
|
17
19
|
outerRadius?: number;
|
|
@@ -31,7 +31,6 @@ export declare class CustomMark extends BaseComponent<ICustomMarkSpec<EnableMark
|
|
|
31
31
|
changeRegions(regions: IRegion[]): void;
|
|
32
32
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
33
33
|
onRender(ctx: IModelRenderOption): void;
|
|
34
|
-
afterCompile(): void;
|
|
35
34
|
private _getMarkAttributeContext;
|
|
36
35
|
private _getLayoutRect;
|
|
37
36
|
getBoundsInRect(rect: ILayoutRect): {
|
|
@@ -4,7 +4,7 @@ import { ComponentTypeEnum } from '../interface/type';
|
|
|
4
4
|
import type { IRegion } from '../../region/interface';
|
|
5
5
|
import type { IModelRenderOption } from '../../model/interface';
|
|
6
6
|
import type { ILabelSpec } from './interface';
|
|
7
|
-
import type { IGraphic
|
|
7
|
+
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
8
|
export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<T> {
|
|
9
9
|
static type: ComponentTypeEnum;
|
|
10
10
|
type: ComponentTypeEnum;
|
|
@@ -32,5 +32,4 @@ export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<
|
|
|
32
32
|
onRender(ctx: IModelRenderOption): void;
|
|
33
33
|
changeRegions(regions: IRegion[]): void;
|
|
34
34
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
35
|
-
protected _delegateLabelEvent(component: IGroup): void;
|
|
36
35
|
}
|
|
@@ -40,7 +40,6 @@ export declare class Label<T extends IChartSpec = any> extends BaseLabelComponen
|
|
|
40
40
|
init(option: IModelInitOption): void;
|
|
41
41
|
reInit(spec?: T): void;
|
|
42
42
|
initEvent(): void;
|
|
43
|
-
afterCompile(): void;
|
|
44
43
|
protected _initTextMark(): void;
|
|
45
44
|
protected _initLabelComponent(): void;
|
|
46
45
|
protected _initTextMarkStyle(): void;
|
|
@@ -16,10 +16,10 @@ export declare class TotalLabel extends BaseLabelComponent {
|
|
|
16
16
|
private _baseMark?;
|
|
17
17
|
static getSpecInfo(chartSpec: any, chartSpecInfo?: IChartSpecInfo): Maybe<IModelSpecInfo[]>;
|
|
18
18
|
init(option: IModelInitOption): void;
|
|
19
|
+
reInit(spec?: any): void;
|
|
19
20
|
protected _initTextMark(): void;
|
|
20
21
|
_initTextMarkStyle(): void;
|
|
21
22
|
protected _initLabelComponent(): void;
|
|
22
|
-
afterCompile(): void;
|
|
23
23
|
updateLayoutAttribute(): void;
|
|
24
24
|
compileMarks(): void;
|
|
25
25
|
getVRenderComponents(): any[];
|
|
@@ -34,7 +34,7 @@ export declare function lineDataLabel(labelInfo: ILabelInfo): {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
export declare function barLabel(labelInfo: ILabelInfo): {
|
|
37
|
-
position:
|
|
37
|
+
position: (data: any) => string;
|
|
38
38
|
overlap: boolean | {
|
|
39
39
|
strategy: Strategy[];
|
|
40
40
|
};
|
|
@@ -13,7 +13,7 @@ export declare function transformLegendTitleAttributes(title: ITitle): {
|
|
|
13
13
|
};
|
|
14
14
|
background?: {
|
|
15
15
|
visible?: boolean;
|
|
16
|
-
style?: Omit<import("./interface").NoVisibleMarkStyle<import("../..").IRectMarkSpec>, "
|
|
16
|
+
style?: Omit<import("./interface").NoVisibleMarkStyle<import("../..").IRectMarkSpec>, "width" | "height" | "visible">;
|
|
17
17
|
};
|
|
18
18
|
text?: string | number | number[] | string[] | {
|
|
19
19
|
type?: "text";
|
|
@@ -33,9 +33,9 @@ export declare function transformLegendTitleAttributes(title: ITitle): {
|
|
|
33
33
|
} & import("@visactor/vrender-core").SimpleDomStyleOptions & import("@visactor/vrender-core").CommonDomOptions;
|
|
34
34
|
};
|
|
35
35
|
padding?: import("@visactor/vrender-components").Padding;
|
|
36
|
-
visible?: boolean;
|
|
37
36
|
maxWidth?: number;
|
|
38
37
|
minWidth?: number;
|
|
38
|
+
visible?: boolean;
|
|
39
39
|
space?: number;
|
|
40
40
|
align?: "start" | "end" | "center";
|
|
41
41
|
};
|
package/types/core/vchart.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export declare class VChart implements IVChart {
|
|
|
74
74
|
private _context;
|
|
75
75
|
private _isReleased;
|
|
76
76
|
private _chartPlugin?;
|
|
77
|
+
private _onResize?;
|
|
77
78
|
constructor(spec: ISpec, options: IInitOption);
|
|
78
79
|
private _setNewSpec;
|
|
79
80
|
private _getSpecFromOriginalSpec;
|
|
@@ -89,7 +90,6 @@ export declare class VChart implements IVChart {
|
|
|
89
90
|
height: number;
|
|
90
91
|
};
|
|
91
92
|
private _doResize;
|
|
92
|
-
private _onResize;
|
|
93
93
|
private _initDataSet;
|
|
94
94
|
updateCustomConfigAndRerender(updateSpecResult: IUpdateSpecResult | (() => IUpdateSpecResult), sync?: boolean, option?: IVChartRenderOption): IVChart | Promise<IVChart>;
|
|
95
95
|
protected _updateCustomConfigAndRecompile(updateSpecResult: IUpdateSpecResult, option?: IVChartRenderOption): boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { utilFunctionCtx } from '../typings/params';
|
|
2
1
|
import { DataSet, DataView } from '@visactor/vdataset';
|
|
3
2
|
import type { IDataViewOptions } from '@visactor/vdataset';
|
|
4
3
|
import type { IDataValues } from '../typings/spec/common';
|
|
@@ -7,7 +6,7 @@ export declare function initCSVData(): void;
|
|
|
7
6
|
export declare function initData(): void;
|
|
8
7
|
export declare function initFoldData(): void;
|
|
9
8
|
export declare function dataViewFromDataView(rawData: DataView, dataSet?: DataSet, op?: IDataViewOptions): DataView;
|
|
10
|
-
export declare function dataToDataView(data: DataView | IDataValues, dataSet: DataSet, sourceDataViews?: DataView[]
|
|
9
|
+
export declare function dataToDataView(data: DataView | IDataValues, dataSet: DataSet, sourceDataViews?: DataView[]): DataView;
|
|
11
10
|
export declare function updateDataViewInData(dataView: DataView, data: IDataValues, forceMerge: boolean): void;
|
|
12
11
|
export declare enum TransformLevel {
|
|
13
12
|
copyDataView = -10,
|
|
@@ -19,6 +19,7 @@ export declare class MediaQuery extends BasePlugin implements IChartPlugin {
|
|
|
19
19
|
onInit(service: IChartPluginService, chartSpec: any): void;
|
|
20
20
|
onBeforeResize(service: IChartPluginService, width: number, height: number): void;
|
|
21
21
|
onAfterChartSpecTransform(service: IChartPluginService, chartSpec: any, actionSource: VChartRenderActionSource): void;
|
|
22
|
+
onAfterModelSpecTransform(service: IChartPluginService, chartSpec: any, chartInfo: IChartSpecInfo, actionSource: VChartRenderActionSource): void;
|
|
22
23
|
onBeforeInitChart(service: IChartPluginService, chartSpec: any, actionSource: VChartRenderActionSource): void;
|
|
23
24
|
protected _changeSize(width: number, height: number, compile?: boolean, render?: boolean): boolean;
|
|
24
25
|
protected _applyQueries(compile?: boolean, render?: boolean): boolean;
|
|
@@ -2,12 +2,14 @@ import type { IChartPlugin, IChartPluginService } from './interface';
|
|
|
2
2
|
import type { IVChart } from '../../core';
|
|
3
3
|
import { BasePluginService } from '../base/base-plugin-service';
|
|
4
4
|
import type { VChartRenderActionSource } from '../../core/interface';
|
|
5
|
+
import type { IChartSpecInfo } from '../../chart/interface/common';
|
|
5
6
|
export declare class ChartPluginService<T extends IChartPlugin = IChartPlugin> extends BasePluginService<T> implements IChartPluginService<T> {
|
|
6
7
|
globalInstance: IVChart;
|
|
7
8
|
constructor(globalInstance: IVChart);
|
|
8
9
|
onInit(chartSpec: any): void;
|
|
9
10
|
onBeforeResize(width: number, height: number): void;
|
|
10
11
|
onAfterChartSpecTransform(chartSpec: any, actionSource: VChartRenderActionSource): void;
|
|
12
|
+
onAfterModelSpecTransform(chartSpec: any, chartSpecInfo: IChartSpecInfo, actionSource: VChartRenderActionSource): void;
|
|
11
13
|
onBeforeInitChart(chartSpec: any, actionSource: VChartRenderActionSource): void;
|
|
12
14
|
releaseAll(): void;
|
|
13
15
|
}
|
|
@@ -2,10 +2,10 @@ import { DataView } from '@visactor/vdataset';
|
|
|
2
2
|
import type { DataSet, ITransformOptions } from '@visactor/vdataset';
|
|
3
3
|
import type { IRegion } from '../../region/interface';
|
|
4
4
|
import type { IMark } from '../../mark/interface';
|
|
5
|
-
import type { CoordinateType, IInvalidType, IPoint, DataKeyType, Datum, Maybe, ISeriesSpec, IGroup, ILayoutType, ILayoutPoint, ILayoutRect } from '../../typings';
|
|
5
|
+
import type { CoordinateType, IInvalidType, IPoint, DataKeyType, Datum, Maybe, ISeriesSpec, IExtensionMarkSpec, IExtensionGroupMarkSpec, EnableMarkType, IGroup, ILayoutType, ILayoutPoint, ILayoutRect } from '../../typings';
|
|
6
6
|
import { BaseModel } from '../../model/base-model';
|
|
7
7
|
import type { ISeriesOption, ISeries, ISeriesMarkInitOption, ISeriesStackData, ISeriesTooltipHelper, SeriesMarkMap, ISeriesMarkInfo, ISeriesSpecInfo, ISeriesStackDataLeaf, ISeriesStackDataMeta, ISeriesSeriesInfo } from '../interface';
|
|
8
|
-
import type { IModelEvaluateOption, IModelRenderOption } from '../../model/interface';
|
|
8
|
+
import type { IModelEvaluateOption, IModelRenderOption, IUpdateSpecResult } from '../../model/interface';
|
|
9
9
|
import type { AddVChartPropertyContext } from '../../data/transforms/add-property';
|
|
10
10
|
import type { IBaseInteractionSpec } from '../../interaction/interface';
|
|
11
11
|
import type { StatisticOperations } from '../../data/transforms/dimension-statistics';
|
|
@@ -15,6 +15,7 @@ import type { ISeriesMarkAttributeContext } from '../../compile/mark';
|
|
|
15
15
|
import { STATE_VALUE_ENUM } from '../../compile/mark';
|
|
16
16
|
import { BaseSeriesSpecTransformer } from './base-series-transformer';
|
|
17
17
|
import type { EventType } from '@visactor/vgrammar-core';
|
|
18
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
18
19
|
export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> implements ISeries {
|
|
19
20
|
readonly specKey: string;
|
|
20
21
|
readonly type: string;
|
|
@@ -169,9 +170,9 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
169
170
|
protected initEvent(): void;
|
|
170
171
|
protected _releaseEvent(): void;
|
|
171
172
|
protected initTooltip(): void;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
_compareExtensionMarksSpec(newMarks: (IExtensionMarkSpec<Exclude<EnableMarkType, 'group'>> | IExtensionGroupMarkSpec)[], prevMarks: (IExtensionMarkSpec<Exclude<EnableMarkType, 'group'>> | IExtensionGroupMarkSpec)[], compareResult: IUpdateSpecResult): void;
|
|
174
|
+
_compareLabelSpec(newLabels: ILabelSpec[], prevLabels: ILabelSpec[], compareResult: IUpdateSpecResult): void;
|
|
175
|
+
_compareSpec(spec: T, prevSpec: T, ignoreCheckKeys?: Record<string, boolean>): {
|
|
175
176
|
change: boolean;
|
|
176
177
|
reMake: boolean;
|
|
177
178
|
reRender: boolean;
|
|
@@ -36,7 +36,9 @@ export interface IFunnelOuterLabelSpec extends IMarkSpec<IComposedTextMarkSpec>
|
|
|
36
36
|
spaceWidth?: number;
|
|
37
37
|
alignLabel?: boolean;
|
|
38
38
|
style?: ITextMarkSpec;
|
|
39
|
-
line?:
|
|
39
|
+
line?: {
|
|
40
|
+
minLength?: number;
|
|
41
|
+
} & IMarkSpec<IRuleMarkSpec>;
|
|
40
42
|
}
|
|
41
43
|
export interface IFunnelSeriesTheme {
|
|
42
44
|
[SeriesMarkNameEnum.funnel]?: Partial<IMarkTheme<IPolygonMarkSpec>>;
|
|
@@ -15,7 +15,7 @@ export interface IGaugePointerSeriesSpec extends IProgressLikeSeriesSpec, IAnima
|
|
|
15
15
|
[SeriesMarkNameEnum.pointer]?: IMarkSpec<IPathMarkSpec | IRectMarkSpec> & PointerMarkSpec;
|
|
16
16
|
}
|
|
17
17
|
export type PointerMarkSpec = {
|
|
18
|
-
type
|
|
18
|
+
type?: 'path' | 'rect';
|
|
19
19
|
width?: number;
|
|
20
20
|
height?: number;
|
|
21
21
|
innerPadding?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EasingType } from '@visactor/vrender-core';
|
|
2
|
+
import type { IPointLike } from '@visactor/vutils';
|
|
2
3
|
import { ACustomAnimate, TagPointsUpdate } from '@visactor/vrender-core';
|
|
3
|
-
import type { IPolarAxisHelper } from '../../component/axis';
|
|
4
4
|
export declare class PolarPointUpdate extends ACustomAnimate<{
|
|
5
5
|
x: number;
|
|
6
6
|
y: number;
|
|
@@ -10,18 +10,17 @@ export declare class PolarPointUpdate extends ACustomAnimate<{
|
|
|
10
10
|
private _fromRadius;
|
|
11
11
|
private _toAngle;
|
|
12
12
|
private _toRadius;
|
|
13
|
-
private
|
|
14
|
-
private
|
|
13
|
+
private _center;
|
|
14
|
+
private _prevCenter;
|
|
15
15
|
constructor(from: {
|
|
16
16
|
x: number;
|
|
17
17
|
y: number;
|
|
18
|
+
center: IPointLike;
|
|
18
19
|
}, to: {
|
|
19
20
|
x: number;
|
|
20
21
|
y: number;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
coordToPoint: IPolarAxisHelper['coordToPoint'];
|
|
24
|
-
});
|
|
22
|
+
center: IPointLike;
|
|
23
|
+
}, duration: number, easing: EasingType, params: any);
|
|
25
24
|
getEndProps(): Record<string, any>;
|
|
26
25
|
onBind(): void;
|
|
27
26
|
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
@@ -29,12 +28,10 @@ export declare class PolarPointUpdate extends ACustomAnimate<{
|
|
|
29
28
|
export declare class PolarTagPointsUpdate extends TagPointsUpdate {
|
|
30
29
|
private points;
|
|
31
30
|
private interpolatePoints;
|
|
32
|
-
private
|
|
33
|
-
private
|
|
31
|
+
private _center;
|
|
32
|
+
private _prevCenter;
|
|
34
33
|
constructor(from: any, to: any, duration: number, easing: EasingType, params?: {
|
|
35
34
|
newPointAnimateType?: 'grow' | 'appear';
|
|
36
|
-
pointToCoord: IPolarAxisHelper['pointToCoord'];
|
|
37
|
-
coordToPoint: IPolarAxisHelper['coordToPoint'];
|
|
38
35
|
});
|
|
39
36
|
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
40
37
|
private _interpolationSinglePoint;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { Datum, IAnimationTypeConfig, IElement } from '@visactor/vgrammar-core';
|
|
2
2
|
import type { IPoint, Maybe } from '../../typings';
|
|
3
|
-
import type { IPolarAxisHelper } from '../../component/axis';
|
|
4
3
|
export interface IRadarAnimationParams {
|
|
5
4
|
center: () => Maybe<IPoint>;
|
|
6
5
|
radius: () => number;
|
|
7
6
|
startAngle: number;
|
|
8
|
-
pointToCoord: IPolarAxisHelper['pointToCoord'];
|
|
9
|
-
coordToPoint: IPolarAxisHelper['coordToPoint'];
|
|
10
7
|
}
|
|
11
8
|
export type RadarAppearPreset = 'grow' | 'fadeIn' | 'clipIn';
|
|
12
9
|
export declare const radarFadeAnimation: (animationType: 'in' | 'out') => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IVChart } from './../../core/interface';
|
|
1
2
|
import type { IFillMarkSpec, IImageMarkSpec } from '../visual';
|
|
2
3
|
import type { LayoutCallBack } from '../../layout/interface';
|
|
3
4
|
import type { IElement, srIOption3DType } from '@visactor/vgrammar-core';
|
|
@@ -41,6 +42,7 @@ export interface IInitOption extends Omit<IRenderOption, 'pluginList'> {
|
|
|
41
42
|
onError?: (...args: any[]) => void;
|
|
42
43
|
theme?: string | ITheme;
|
|
43
44
|
disableTriggerEvent?: boolean;
|
|
45
|
+
resizeDelay?: number;
|
|
44
46
|
}
|
|
45
47
|
export declare enum RenderModeEnum {
|
|
46
48
|
'desktop-browser' = "desktop-browser",
|
|
@@ -208,8 +210,9 @@ export type IMarkTheme<T> = {
|
|
|
208
210
|
interactive?: boolean;
|
|
209
211
|
};
|
|
210
212
|
export interface IPerformanceHook {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
+
afterCreateVChart?: (vchart?: IVChart) => void;
|
|
214
|
+
beforeInitializeChart?: (vchart?: IVChart) => void;
|
|
215
|
+
afterInitializeChart?: (vchart?: IVChart) => void;
|
|
213
216
|
beforeCompileToVGrammar?: () => void;
|
|
214
217
|
afterCompileToVGrammar?: () => void;
|
|
215
218
|
beforeRegionCompile?: () => void;
|