@visactor/vchart-types 1.11.0-alpha.2 → 1.11.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.
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/utils.d.ts +2 -2
- package/types/chart/base/base-chart.d.ts +7 -2
- package/types/chart/common/interface.d.ts +2 -2
- package/types/chart/index.d.ts +6 -4
- package/types/chart/interface/chart.d.ts +9 -1
- package/types/chart/interface/type.d.ts +2 -1
- package/types/chart/sankey/sankey.d.ts +5 -0
- package/types/chart/venn/index.d.ts +3 -0
- package/types/chart/venn/interface.d.ts +6 -0
- package/types/chart/venn/venn-transformer.d.ts +7 -0
- package/types/chart/venn/venn.d.ts +14 -0
- package/types/compile/compiler.d.ts +3 -3
- package/types/compile/interface/compiler.d.ts +1 -0
- package/types/compile/mark/compilable-mark.d.ts +2 -1
- package/types/compile/mark/interface.d.ts +4 -1
- package/types/component/axis/base-axis.d.ts +2 -0
- package/types/component/axis/cartesian/axis.d.ts +1 -2
- package/types/component/axis/cartesian/interface/common.d.ts +1 -0
- package/types/component/axis/interface/spec.d.ts +2 -0
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +12 -3
- package/types/component/axis/polar/axis.d.ts +0 -1
- package/types/component/axis/polar/interface/common.d.ts +1 -0
- package/types/component/axis/polar/linear-axis.d.ts +5 -1
- package/types/component/base/base-component.d.ts +1 -0
- package/types/component/crosshair/base.d.ts +1 -2
- package/types/component/crosshair/interface/cartesian.d.ts +11 -24
- package/types/component/crosshair/interface/polar.d.ts +7 -5
- package/types/component/custom-mark/custom-mark.d.ts +11 -4
- package/types/component/data-zoom/data-filter-base-component.d.ts +3 -2
- package/types/component/data-zoom/interface.d.ts +1 -4
- package/types/component/index.d.ts +7 -7
- package/types/component/interface/theme.d.ts +4 -0
- package/types/component/interface/type.d.ts +4 -0
- package/types/component/label/util.d.ts +9 -1
- package/types/component/legend/continuous/interface.d.ts +1 -0
- package/types/component/legend/discrete/interface.d.ts +1 -0
- package/types/component/legend/discrete/legend.d.ts +4 -1
- package/types/component/legend/util.d.ts +12 -2
- package/types/component/marker/base-marker.d.ts +30 -44
- package/types/component/marker/interface.d.ts +40 -13
- package/types/component/marker/mark-area/base-mark-area.d.ts +18 -0
- package/types/component/marker/mark-area/cartesian-mark-area.d.ts +19 -0
- package/types/component/marker/mark-area/index.d.ts +2 -1
- package/types/component/marker/mark-area/interface/spec.d.ts +16 -1
- package/types/component/marker/mark-area/interface/theme.d.ts +5 -7
- package/types/component/marker/mark-area/polar-mark-area.d.ts +25 -0
- package/types/component/marker/mark-line/base-mark-line.d.ts +18 -0
- package/types/component/marker/mark-line/cartesian-mark-line.d.ts +20 -0
- package/types/component/marker/mark-line/index.d.ts +2 -1
- package/types/component/marker/mark-line/interface/spec.d.ts +26 -2
- package/types/component/marker/mark-line/interface/theme.d.ts +5 -7
- package/types/component/marker/mark-line/polar-mark-line.d.ts +23 -0
- package/types/component/marker/mark-point/base-mark-point.d.ts +17 -0
- package/types/component/marker/mark-point/cartesian-mark-point.d.ts +16 -0
- package/types/component/marker/mark-point/geo-mark-point.d.ts +14 -0
- package/types/component/marker/mark-point/index.d.ts +3 -1
- package/types/component/marker/mark-point/interface/spec.d.ts +9 -1
- package/types/component/marker/mark-point/interface/theme.d.ts +11 -16
- package/types/component/marker/mark-point/polar-mark-point.d.ts +18 -0
- package/types/component/marker/utils.d.ts +40 -5
- package/types/component/player/player.d.ts +2 -1
- package/types/component/tooltip/tooltip.d.ts +2 -6
- package/types/component/tooltip/utils/compose.d.ts +2 -2
- package/types/component/tooltip/utils/index.d.ts +1 -0
- package/types/component/tooltip/utils/pattern.d.ts +4 -0
- package/types/component/tooltip/utils/show-tooltip.d.ts +20 -3
- package/types/core/factory.d.ts +1 -1
- package/types/core/interface.d.ts +8 -1
- package/types/core/vchart.d.ts +5 -2
- package/types/data/transforms/aggregation.d.ts +12 -7
- package/types/data/transforms/invalid-travel.d.ts +1 -1
- package/types/data/transforms/legend-data/discrete/interface.d.ts +2 -0
- package/types/event/interface.d.ts +2 -0
- package/types/layout/grid-layout/grid-layout.d.ts +1 -1
- package/types/mark/index.d.ts +20 -20
- package/types/model/interface.d.ts +1 -0
- package/types/plugin/base/base-plugin-service.d.ts +2 -0
- package/types/plugin/base/interface.d.ts +3 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +1 -1
- package/types/plugin/components/tooltip-handler/utils/index.d.ts +0 -1
- package/types/region/interface.d.ts +2 -0
- package/types/region/region.d.ts +1 -0
- package/types/series/base/base-series.d.ts +9 -17
- package/types/series/base/tooltip-helper.d.ts +8 -5
- package/types/series/box-plot/tooltip-helper.d.ts +1 -1
- package/types/series/cartesian/cartesian.d.ts +1 -1
- package/types/series/circle-packing/tooltip-helper.d.ts +1 -1
- package/types/series/funnel/tooltip-helper.d.ts +3 -3
- package/types/series/geo/geo.d.ts +1 -0
- package/types/series/index.d.ts +7 -3
- package/types/series/interface/common.d.ts +3 -2
- package/types/series/interface/series.d.ts +7 -0
- package/types/series/interface/theme.d.ts +2 -0
- package/types/series/interface/tooltip-helper.d.ts +8 -5
- package/types/series/interface/type.d.ts +6 -2
- package/types/series/map/geo-source.d.ts +3 -1
- package/types/series/map/tooltip-helper.d.ts +1 -1
- package/types/series/polar/polar.d.ts +2 -2
- package/types/series/range-area/range-area.d.ts +0 -2
- package/types/series/sankey/interface.d.ts +5 -0
- package/types/series/sankey/sankey.d.ts +10 -4
- package/types/series/sunburst/tooltip-helper.d.ts +1 -1
- package/types/series/treemap/tooltip-helper.d.ts +1 -1
- package/types/series/venn/animation.d.ts +6 -0
- package/types/series/venn/constant.d.ts +2 -0
- package/types/series/venn/interface.d.ts +21 -0
- package/types/series/venn/tooltip-helper.d.ts +5 -0
- package/types/series/venn/util.d.ts +1 -0
- package/types/series/venn/venn-transform.d.ts +6 -0
- package/types/series/venn/venn.d.ts +63 -0
- package/types/series/waterfall/interface.d.ts +6 -1
- package/types/series/waterfall/waterfall.d.ts +9 -0
- package/types/series/word-cloud/base.d.ts +2 -0
- package/types/theme/builtin/common/series/venn.d.ts +2 -0
- package/types/typings/spec/chart.d.ts +2 -0
- package/types/typings/spec/common.d.ts +5 -2
- package/types/typings/tooltip/line.d.ts +4 -0
- package/types/typings/tooltip/tooltip.d.ts +1 -0
- package/types/util/data.d.ts +21 -4
- package/types/util/index.d.ts +1 -0
- package/types/util/math.d.ts +1 -1
- package/types/util/spec/index.d.ts +0 -5
|
@@ -10,9 +10,9 @@ export declare function animationConfig<Preset extends string>(defaultConfig?: M
|
|
|
10
10
|
dataIndex: (datum: any) => number;
|
|
11
11
|
dataCount: () => number;
|
|
12
12
|
}): MarkAnimationSpec;
|
|
13
|
-
export declare function userAnimationConfig<M extends string, Preset extends string>(markName: SeriesMarkNameEnum | string, spec: IAnimationSpec<M, Preset>, ctx: IModelMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "
|
|
13
|
+
export declare function userAnimationConfig<M extends string, Preset extends string>(markName: SeriesMarkNameEnum | string, spec: IAnimationSpec<M, Preset>, ctx: IModelMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "appear" | "enter" | "exit" | "disappear" | "update", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<Preset>>>;
|
|
14
14
|
export declare function shouldMarkDoMorph(spec: ISeriesSpec & IAnimationSpec<string, string>, markName: string): boolean;
|
|
15
15
|
export declare function isTimeLineAnimation(animationConfig: IAnimationConfig): boolean;
|
|
16
16
|
export declare function isChannelAnimation(animationConfig: IAnimationConfig): boolean;
|
|
17
|
-
export declare function uniformAnimationConfig<Preset extends string>(config: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, ctx: IModelMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "
|
|
17
|
+
export declare function uniformAnimationConfig<Preset extends string>(config: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, ctx: IModelMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "appear" | "enter" | "exit" | "disappear" | "update", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<Preset>>>;
|
|
18
18
|
export declare function isAnimationEnabledForSeries(series: ISeries): boolean;
|
|
@@ -39,9 +39,10 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
39
39
|
protected _viewBox: IBoundsLike;
|
|
40
40
|
protected _layoutTag: boolean;
|
|
41
41
|
getLayoutTag(): boolean;
|
|
42
|
-
setLayoutTag(tag: boolean, morphConfig?: IMorphConfig,
|
|
42
|
+
setLayoutTag(tag: boolean, morphConfig?: IMorphConfig, renderNextTick?: boolean): boolean;
|
|
43
43
|
protected _modelOption: IModelOption;
|
|
44
44
|
protected _globalScale: IGlobalScale;
|
|
45
|
+
getGlobalScale(): IGlobalScale;
|
|
45
46
|
protected _idMap: Map<number, IModel | IMark>;
|
|
46
47
|
protected _event: IEvent;
|
|
47
48
|
getEvent(): IEvent;
|
|
@@ -120,13 +121,14 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
120
121
|
reCompile: boolean;
|
|
121
122
|
};
|
|
122
123
|
updateChartConfig(result: IUpdateSpecResult, oldSpec: IChartSpec): void;
|
|
123
|
-
updateDataSpec(
|
|
124
|
+
updateDataSpec(): void;
|
|
124
125
|
updateRegionSpec(result: IUpdateSpecResult): void;
|
|
125
126
|
updateComponentSpec(result: IUpdateSpecResult): void;
|
|
126
127
|
updateSeriesSpec(result: IUpdateSpecResult): void;
|
|
127
128
|
getCanvas(): HTMLCanvasElement;
|
|
128
129
|
private _updateLayoutRect;
|
|
129
130
|
setCurrentTheme(): void;
|
|
131
|
+
reInit(): void;
|
|
130
132
|
clear(): void;
|
|
131
133
|
compile(): void;
|
|
132
134
|
afterCompile(): void;
|
|
@@ -140,6 +142,9 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
140
142
|
updateState(state: Record<string, Omit<IMarkStateSpec<unknown>, 'style'>>, filter?: (series: ISeries, mark: IMark, stateKey: string) => boolean): void;
|
|
141
143
|
setSelected(datum: MaybeArray<any> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
|
|
142
144
|
setHovered(datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
|
|
145
|
+
clearState(state: string): void;
|
|
146
|
+
clearSelected(): void;
|
|
147
|
+
clearHovered(): void;
|
|
143
148
|
private _initEvent;
|
|
144
149
|
protected _enableMarkAnimation(states: string | string[]): void;
|
|
145
150
|
protected _disableMarkAnimation(states: string | string[]): void;
|
|
@@ -36,6 +36,6 @@ export interface ICommonChartSpec extends Omit<IChartSpec, 'series'> {
|
|
|
36
36
|
axes?: ICartesianAxisSpec[] | IPolarAxisSpec[];
|
|
37
37
|
crosshair?: ICartesianCrosshairSpec | ICartesianCrosshairSpec[] | IPolarCrosshairSpec | IPolarCrosshairSpec[];
|
|
38
38
|
markLine?: IMarkLineSpec | IMarkLineSpec[];
|
|
39
|
-
markArea?: IMarkAreaSpec;
|
|
40
|
-
markPoint?: IMarkPointSpec;
|
|
39
|
+
markArea?: IMarkAreaSpec | IMarkAreaSpec[];
|
|
40
|
+
markPoint?: IMarkPointSpec | IMarkPointSpec[];
|
|
41
41
|
}
|
package/types/chart/index.d.ts
CHANGED
|
@@ -51,10 +51,12 @@ import { CorrelationChart, registerCorrelationChart } from './correlation';
|
|
|
51
51
|
import type { ILiquidChartSpec } from './liquid';
|
|
52
52
|
import { LiquidChart, registerLiquidChart } from './liquid';
|
|
53
53
|
import type { IWordCloudChartSpec, IWordCloud3dChartSpec } from './word-cloud';
|
|
54
|
-
import { WordCloudChart, WordCloud3dChart, registerWordCloudChart, registerWordCloud3dChart } from './word-cloud';
|
|
54
|
+
import { WordCloudChart, WordCloud3dChart, registerWordCloudChart, registerWordCloudShapeChart, registerWordCloud3dChart } from './word-cloud';
|
|
55
55
|
import { BaseChart } from './base/base-chart';
|
|
56
56
|
import type { ICartesianChartSpec } from './cartesian';
|
|
57
57
|
import type { IPolarChartSpec } from './polar';
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export
|
|
58
|
+
import type { IVennChartSpec } from './venn';
|
|
59
|
+
import { VennChart, registerVennChart } from './venn';
|
|
60
|
+
export { AreaChart, BarChart, Bar3dChart, BoxPlotChart, CirclePackingChart, CommonChart, FunnelChart, Funnel3dChart, GaugeChart, HeatmapChart, HistogramChart, Histogram3dChart, LineChart, MapChart, PieChart, Pie3dChart, CircularProgressChart, LinearProgressChart, RadarChart, RangeColumnChart, RangeColumn3dChart, RangeAreaChart, RoseChart, SankeyChart, ScatterChart, SunburstChart, SequenceChart, WaterfallChart, CorrelationChart, LiquidChart, WordCloudChart, WordCloud3dChart, TreemapChart, VennChart, BaseChart };
|
|
61
|
+
export { registerLineChart, registerAreaChart, registerBarChart, registerBar3dChart, registerBoxplotChart, registerCirclePackingChart, registerCircularProgressChart, registerCommonChart, registerFunnelChart, registerFunnel3dChart, registerGaugeChart, registerHeatmapChart, registerHistogramChart, registerHistogram3dChart, registerLinearProgressChart, registerMapChart, registerPie3dChart, registerPieChart, registerRadarChart, registerRangeAreaChart, registerRangeColumn3dChart, registerRangeColumnChart, registerRoseChart, registerSankeyChart, registerScatterChart, registerSequenceChart, registerSunburstChart, registerTreemapChart, registerWaterfallChart, registerWordCloud3dChart, registerWordCloudChart, registerCorrelationChart, registerLiquidChart, registerWordCloudShapeChart, registerVennChart };
|
|
62
|
+
export type { IAreaChartSpec, IBarChartSpec, IBar3dChartSpec, IBoxPlotChartSpec, ICirclePackingChartSpec, ICommonChartSpec, IFunnelChartSpec, IFunnel3dChartSpec, IGaugeChartSpec, IHeatmapChartSpec, IHistogramChartSpec, IHistogram3dChartSpec, ILineChartSpec, IMapChartSpec, IPieChartSpec, IPie3dChartSpec, ICircularProgressChartSpec, ILinearProgressChartSpec, IRadarChartSpec, IRangeColumnChartSpec, IRangeColumn3dChartSpec, IRangeAreaChartSpec, IRoseChartSpec, IScatterChartSpec, ISankeyChartSpec, ISequenceChartSpec, ISunburstChartSpec, ITreemapChartSpec, IWaterfallChartSpec, ICorrelationChartSpec, ILiquidChartSpec, IWordCloud3dChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec, IVennChartSpec };
|
|
@@ -12,6 +12,8 @@ import type { IBoundsLike, IPadding } from '@visactor/vutils';
|
|
|
12
12
|
import type { ICompilable } from '../../compile/interface';
|
|
13
13
|
import type { IRegionQuerier, MaybeArray, Datum, IMarkStateSpec, StringOrNumber, IShowTooltipOption, IDataValues, ILayoutRect, IData } from '../../typings';
|
|
14
14
|
import type { DataView } from '@visactor/vdataset';
|
|
15
|
+
import type { IGlobalScale } from '../../scale/interface';
|
|
16
|
+
import type { IMorphConfig } from '../../animation/spec';
|
|
15
17
|
export type DimensionIndexOption = {
|
|
16
18
|
filter?: (cmp: IComponent) => boolean;
|
|
17
19
|
tooltip?: boolean;
|
|
@@ -33,12 +35,14 @@ export interface IChart extends ICompilable {
|
|
|
33
35
|
reDataFlow: () => void;
|
|
34
36
|
setCanvasRect: (width: number, height: number) => void;
|
|
35
37
|
getCanvasRect: () => ILayoutRect;
|
|
38
|
+
getViewRect: () => ILayoutRect;
|
|
36
39
|
getOption: () => IChartOption;
|
|
37
40
|
getEvent: () => IEvent;
|
|
41
|
+
getGlobalScale: () => IGlobalScale;
|
|
38
42
|
setLayout: (layout: LayoutCallBack) => void;
|
|
39
43
|
layout: (context: ILayoutParams) => void;
|
|
40
44
|
getLayoutTag: () => boolean;
|
|
41
|
-
setLayoutTag: (tag: boolean) => boolean;
|
|
45
|
+
setLayoutTag: (tag: boolean, morphConfig?: IMorphConfig, renderNextTick?: boolean) => boolean;
|
|
42
46
|
updateData: (id: StringOrNumber, data: unknown, updateGlobalScale?: boolean, options?: IParserOptions) => void;
|
|
43
47
|
updateFullData: (data: IDataValues | IDataValues[]) => void;
|
|
44
48
|
updateGlobalScaleDomain: () => void;
|
|
@@ -50,6 +54,7 @@ export interface IChart extends ICompilable {
|
|
|
50
54
|
onRender: (ctx: IChartRenderOption) => void;
|
|
51
55
|
onResize: (width: number, height: number, reRender: boolean) => void;
|
|
52
56
|
onLayout: (view: IView) => void;
|
|
57
|
+
reInit: () => void;
|
|
53
58
|
getAllSeries: () => ISeries[];
|
|
54
59
|
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
55
60
|
getRegionsInIds: (ids: number[]) => IRegion[];
|
|
@@ -78,6 +83,9 @@ export interface IChart extends ICompilable {
|
|
|
78
83
|
updateState: (state: Record<string, Omit<IMarkStateSpec<unknown>, 'style'>>, filter?: (series: ISeries, mark: IMark, stateKey: string) => boolean) => void;
|
|
79
84
|
setSelected: (datum: MaybeArray<any> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier) => void;
|
|
80
85
|
setHovered: (datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier) => void;
|
|
86
|
+
clearState: (state: string) => void;
|
|
87
|
+
clearSelected: () => void;
|
|
88
|
+
clearHovered: () => void;
|
|
81
89
|
updateViewBox: (viewBox: IBoundsLike, reLayout: boolean) => void;
|
|
82
90
|
getCanvas: () => HTMLCanvasElement | undefined;
|
|
83
91
|
setCurrentTheme: () => void;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { BaseChart } from '../base/base-chart';
|
|
2
2
|
import type { ISankeyChartSpec } from './interface';
|
|
3
3
|
import { SankeyChartSpecTransformer } from './sankey-transformer';
|
|
4
|
+
import type { Datum, MaybeArray } from '../../typings/common';
|
|
5
|
+
import type { ISeries } from '../../series/interface';
|
|
6
|
+
import type { IMark } from '../../mark/interface/common';
|
|
7
|
+
import type { IRegionQuerier } from '../../typings/params';
|
|
4
8
|
export declare class SankeyChart<T extends ISankeyChartSpec = ISankeyChartSpec> extends BaseChart<T> {
|
|
5
9
|
static readonly type: string;
|
|
6
10
|
static readonly seriesType: string;
|
|
@@ -9,5 +13,6 @@ export declare class SankeyChart<T extends ISankeyChartSpec = ISankeyChartSpec>
|
|
|
9
13
|
readonly transformerConstructor: typeof SankeyChartSpecTransformer;
|
|
10
14
|
readonly type: string;
|
|
11
15
|
readonly seriesType: string;
|
|
16
|
+
protected _setStateInDatum(stateKey: string, checkReverse: boolean, datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
|
|
12
17
|
}
|
|
13
18
|
export declare const registerSankeyChart: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IVennSeriesSpec } from '../../series/venn/interface';
|
|
2
|
+
import type { IChartSpec } from '../../typings/spec/common';
|
|
3
|
+
export interface IVennChartSpec extends Omit<IChartSpec, 'data' | 'series'>, IVennSeriesSpec {
|
|
4
|
+
type: 'venn';
|
|
5
|
+
series?: IVennSeriesSpec[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AdaptiveSpec } from '../../typings';
|
|
2
|
+
import { BaseChartSpecTransformer } from '../base';
|
|
3
|
+
import type { IVennChartSpec } from './interface';
|
|
4
|
+
export declare class VennChartSpecTransformer<T extends IVennChartSpec = IVennChartSpec> extends BaseChartSpecTransformer<AdaptiveSpec<T, 'data' | 'series'>> {
|
|
5
|
+
protected _getDefaultSeriesSpec(spec: T): any;
|
|
6
|
+
transformSpec(spec: any): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseChart } from '../base/base-chart';
|
|
2
|
+
import type { IVennChartSpec } from './interface';
|
|
3
|
+
import type { AdaptiveSpec } from '../../typings';
|
|
4
|
+
import { VennChartSpecTransformer } from './venn-transformer';
|
|
5
|
+
export declare class VennChart<T extends IVennChartSpec = IVennChartSpec> extends BaseChart<AdaptiveSpec<T, 'data' | 'series'>> {
|
|
6
|
+
static readonly type: string;
|
|
7
|
+
static readonly seriesType: string;
|
|
8
|
+
static readonly view: string;
|
|
9
|
+
static readonly transformerConstructor: typeof VennChartSpecTransformer;
|
|
10
|
+
readonly transformerConstructor: typeof VennChartSpecTransformer;
|
|
11
|
+
readonly type: string;
|
|
12
|
+
readonly seriesType: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const registerVennChart: () => void;
|
|
@@ -3,9 +3,9 @@ import type { CompilerListenerParameters, CompilerModel, IGrammarItem, IRenderCo
|
|
|
3
3
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
4
4
|
import type { EventSourceType } from '../event/interface';
|
|
5
5
|
import type { IChart } from '../chart/interface';
|
|
6
|
-
import { VChart } from '../core/vchart';
|
|
7
6
|
import type { IColor, Stage } from '@visactor/vrender-core';
|
|
8
7
|
import type { IMorphConfig } from '../animation/spec';
|
|
8
|
+
import type { IVChart } from '../core/interface';
|
|
9
9
|
type EventListener = {
|
|
10
10
|
type: string;
|
|
11
11
|
callback: (...args: any[]) => void;
|
|
@@ -40,11 +40,11 @@ export declare class Compiler {
|
|
|
40
40
|
compileInteractions(): void;
|
|
41
41
|
compile(ctx: {
|
|
42
42
|
chart: IChart;
|
|
43
|
-
vChart:
|
|
43
|
+
vChart: IVChart;
|
|
44
44
|
}, option: any): void;
|
|
45
45
|
clear(ctx: {
|
|
46
46
|
chart: IChart;
|
|
47
|
-
vChart:
|
|
47
|
+
vChart: IVChart;
|
|
48
48
|
}, removeGraphicItems?: boolean): void;
|
|
49
49
|
renderNextTick(morphConfig?: IMorphConfig): void;
|
|
50
50
|
render(morphConfig?: IMorphConfig): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IGroupMark, IMark, MarkAnimationSpec, MarkFunctionCallback, Nil, TransformSpec } from '@visactor/vgrammar-core';
|
|
1
|
+
import type { IElement, IGroupMark, IMark, MarkAnimationSpec, MarkFunctionCallback, Nil, TransformSpec } from '@visactor/vgrammar-core';
|
|
2
2
|
import type { DataView } from '@visactor/vdataset';
|
|
3
3
|
import { GrammarItem } from '../grammar-item';
|
|
4
4
|
import type { Maybe, Datum, StringOrNumber } from '../../typings';
|
|
@@ -115,5 +115,6 @@ export declare abstract class CompilableMark extends GrammarItem implements ICom
|
|
|
115
115
|
stopAnimationByState(state?: string): import("@visactor/vgrammar-core").IAnimate;
|
|
116
116
|
pauseAnimationByState(state?: string): import("@visactor/vgrammar-core").IAnimate;
|
|
117
117
|
resumeAnimationByState(state?: string): import("@visactor/vgrammar-core").IAnimate;
|
|
118
|
+
getProductElements(): IElement[];
|
|
118
119
|
release(): void;
|
|
119
120
|
}
|
|
@@ -66,6 +66,7 @@ export interface ICompilableMark extends IGrammarItem {
|
|
|
66
66
|
setClip: (clip: MarkClip) => void;
|
|
67
67
|
compile: (option?: IMarkCompileOption) => void;
|
|
68
68
|
getProduct: () => Maybe<IMark>;
|
|
69
|
+
getProductElements: () => Maybe<IMark['elements']>;
|
|
69
70
|
getMarks: () => ICompilableMark[];
|
|
70
71
|
setSkipBeforeLayouted: (skip: boolean) => void;
|
|
71
72
|
getSkipBeforeLayouted: () => boolean;
|
|
@@ -120,7 +121,9 @@ export declare enum STATE_VALUE_ENUM {
|
|
|
120
121
|
STATE_DIMENSION_HOVER = "dimension_hover",
|
|
121
122
|
STATE_DIMENSION_HOVER_REVERSE = "dimension_hover_reverse",
|
|
122
123
|
STATE_SELECTED = "selected",
|
|
123
|
-
STATE_SELECTED_REVERSE = "selected_reverse"
|
|
124
|
+
STATE_SELECTED_REVERSE = "selected_reverse",
|
|
125
|
+
STATE_SANKEY_EMPHASIS = "selected",
|
|
126
|
+
STATE_SANKEY_EMPHASIS_REVERSE = "blur"
|
|
124
127
|
}
|
|
125
128
|
export declare enum STATE_VALUE_ENUM_REVERSE {
|
|
126
129
|
STATE_HOVER_REVERSE = "hover_reverse",
|
|
@@ -41,6 +41,7 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
41
41
|
protected abstract updateSeriesScale(): void;
|
|
42
42
|
protected abstract collectSeriesField(depth: number, series: ISeries): string | string[];
|
|
43
43
|
abstract transformScaleDomain(): void;
|
|
44
|
+
protected abstract updateScaleRange(): boolean;
|
|
44
45
|
protected _dataFieldText: string;
|
|
45
46
|
protected _axisMark: IComponentMark;
|
|
46
47
|
protected _gridMark: IComponentMark;
|
|
@@ -66,6 +67,7 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
66
67
|
protected initEvent(): void;
|
|
67
68
|
protected updateScaleDomain(): void;
|
|
68
69
|
protected _clearRawDomain(): void;
|
|
70
|
+
onLayoutEnd(ctx: any): void;
|
|
69
71
|
protected computeData(updateType?: 'domain' | 'range' | 'force'): void;
|
|
70
72
|
protected initScales(): void;
|
|
71
73
|
_compareSpec(spec: T, prevSpec: T): {
|
|
@@ -80,7 +80,6 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
80
80
|
protected _tickTransformOption(): ICartesianTickDataOpt;
|
|
81
81
|
protected axisHelper(): IAxisHelper;
|
|
82
82
|
afterCompile(): void;
|
|
83
|
-
onLayoutEnd(ctx: any): void;
|
|
84
83
|
onRender(ctx: any): void;
|
|
85
84
|
changeRegions(regions: IRegion[]): void;
|
|
86
85
|
update(ctx: IComponentOption): void;
|
|
@@ -94,11 +93,11 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
94
93
|
};
|
|
95
94
|
_transformLayoutRect: (result: ILayoutRect) => ILayoutRect;
|
|
96
95
|
getBoundsInRect(rect: ILayoutRect): IBoundsLike;
|
|
97
|
-
updateLayoutAttribute(): void;
|
|
98
96
|
private _getTitleLimit;
|
|
99
97
|
private _getUpdateAttribute;
|
|
100
98
|
protected getLabelItems(length: number): any[];
|
|
101
99
|
protected initEvent(): void;
|
|
100
|
+
protected _updateAxisLayout: () => void;
|
|
102
101
|
protected _getNormalizedValue(values: any[], length: number): number;
|
|
103
102
|
private _fixAxisOnZero;
|
|
104
103
|
protected _layoutCacheProcessing(rect: ILayoutRect): ILayoutRect;
|
|
@@ -23,6 +23,7 @@ export interface ILinearAxis extends IAxis {
|
|
|
23
23
|
readonly zero: boolean;
|
|
24
24
|
readonly nice: boolean;
|
|
25
25
|
setExtendDomain: (key: string, value: number | undefined) => void;
|
|
26
|
+
niceLabelFormatter?: (value: StringOrNumber) => StringOrNumber;
|
|
26
27
|
}
|
|
27
28
|
export interface IAxisHelper {
|
|
28
29
|
isContinuous: boolean;
|
|
@@ -18,6 +18,8 @@ export interface ICommonAxisSpec extends Omit<IComponentSpec, 'orient' | 'center
|
|
|
18
18
|
export interface ILinearAxisSpec {
|
|
19
19
|
min?: number;
|
|
20
20
|
max?: number;
|
|
21
|
+
softMin?: number | ((domain: number[]) => number);
|
|
22
|
+
softMax?: number | ((domain: number[]) => number);
|
|
21
23
|
range?: {
|
|
22
24
|
min?: number;
|
|
23
25
|
max?: number;
|
|
@@ -3,6 +3,7 @@ import type { IAxisLocationCfg, ITick } from '../interface';
|
|
|
3
3
|
import type { IEvent } from '../../../event/interface';
|
|
4
4
|
import type { IOrientType } from '../../../typings/space';
|
|
5
5
|
import type { IComponentOption } from '../../interface/common';
|
|
6
|
+
import type { StringOrNumber } from '../../../typings';
|
|
6
7
|
export declare const e10: number;
|
|
7
8
|
export declare const e5: number;
|
|
8
9
|
export declare const e2: number;
|
|
@@ -16,6 +17,9 @@ export interface LinearAxisMixin {
|
|
|
16
17
|
min?: number;
|
|
17
18
|
max?: number;
|
|
18
19
|
};
|
|
20
|
+
_domainAfterSpec: number[];
|
|
21
|
+
_softMinValue?: number;
|
|
22
|
+
_softMaxValue?: number;
|
|
19
23
|
_expand?: {
|
|
20
24
|
max?: number;
|
|
21
25
|
min?: number;
|
|
@@ -31,16 +35,18 @@ export interface LinearAxisMixin {
|
|
|
31
35
|
event: IEvent;
|
|
32
36
|
_orient: IOrientType;
|
|
33
37
|
_option: IComponentOption;
|
|
38
|
+
niceLabelFormatter: (value: StringOrNumber) => StringOrNumber;
|
|
34
39
|
}
|
|
35
40
|
export declare class LinearAxisMixin {
|
|
36
41
|
protected _extend: {
|
|
37
42
|
[key: string]: number;
|
|
38
43
|
};
|
|
44
|
+
niceLabelFormatter: (value: StringOrNumber) => StringOrNumber;
|
|
39
45
|
setExtraAttrFromSpec(): void;
|
|
40
46
|
transformScaleDomain(): void;
|
|
41
|
-
setLinearScaleNice():
|
|
42
|
-
setLogScaleNice():
|
|
43
|
-
setScaleNice():
|
|
47
|
+
setLinearScaleNice(): false | LinearScale;
|
|
48
|
+
setLogScaleNice(): false | LinearScale;
|
|
49
|
+
setScaleNice(): false | LinearScale;
|
|
44
50
|
dataToPosition(values: any[], cfg?: IAxisLocationCfg): number;
|
|
45
51
|
valueToPosition(value: any): number;
|
|
46
52
|
computeLinearDomain(data: {
|
|
@@ -58,7 +64,10 @@ export declare class LinearAxisMixin {
|
|
|
58
64
|
max?: number;
|
|
59
65
|
};
|
|
60
66
|
protected setDomainMinMax(domain: number[]): void;
|
|
67
|
+
protected setSoftDomainMinMax(domain: number[]): void;
|
|
61
68
|
setZero(zero: boolean): void;
|
|
62
69
|
protected updateScaleDomain(): void;
|
|
63
70
|
protected updateScaleDomainByModel(domain?: number[]): void;
|
|
71
|
+
getDomainAfterSpec(): number[];
|
|
72
|
+
protected _updateNiceLabelFormatter(domain: number[]): void;
|
|
64
73
|
}
|
|
@@ -38,7 +38,6 @@ export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarA
|
|
|
38
38
|
effect: IEffect;
|
|
39
39
|
setAttrFromSpec(): void;
|
|
40
40
|
_transformLayoutPosition: (pos: Partial<IPoint>) => Partial<IPoint>;
|
|
41
|
-
onLayoutEnd(ctx: any): void;
|
|
42
41
|
onRender(ctx: any): void;
|
|
43
42
|
changeRegions(): void;
|
|
44
43
|
protected _tickTransformOption(): IPolarTickDataOpt;
|
|
@@ -14,6 +14,7 @@ export interface IPolarAxisHelper {
|
|
|
14
14
|
getScale: (depth?: number) => IBaseScale;
|
|
15
15
|
getBandwidth?: (depth?: number) => number;
|
|
16
16
|
getAxisId: () => number;
|
|
17
|
+
setExtendDomain?: (key: string, value: number | undefined) => void;
|
|
17
18
|
}
|
|
18
19
|
export interface IPolarAxis extends IAxis {
|
|
19
20
|
startAngle: number;
|
|
@@ -3,7 +3,7 @@ import { ComponentTypeEnum } from '../../interface/type';
|
|
|
3
3
|
import { PolarAxis } from './axis';
|
|
4
4
|
import type { IPolarLinearAxisSpec } from './interface/spec';
|
|
5
5
|
import { LinearAxisMixin } from '../mixin/linear-axis-mixin';
|
|
6
|
-
export interface PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLinearAxisSpec> extends Pick<LinearAxisMixin, 'setExtraAttrFromSpec' | 'transformScaleDomain' | 'valueToPosition' | 'computeLinearDomain' | 'setScaleNice'>, PolarAxis<T> {
|
|
6
|
+
export interface PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLinearAxisSpec> extends Pick<LinearAxisMixin, 'setExtraAttrFromSpec' | 'transformScaleDomain' | 'valueToPosition' | 'computeLinearDomain' | 'setScaleNice' | 'setExtendDomain'>, PolarAxis<T> {
|
|
7
7
|
}
|
|
8
8
|
export declare class PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLinearAxisSpec> extends PolarAxis<T> {
|
|
9
9
|
static type: ComponentTypeEnum;
|
|
@@ -11,6 +11,9 @@ export declare class PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLine
|
|
|
11
11
|
static specKey: string;
|
|
12
12
|
protected _zero: boolean;
|
|
13
13
|
protected _nice: boolean;
|
|
14
|
+
protected _extend: {
|
|
15
|
+
[key: string]: number;
|
|
16
|
+
};
|
|
14
17
|
protected _scale: LinearScale;
|
|
15
18
|
protected _groupScales: LinearScale[];
|
|
16
19
|
setAttrFromSpec(): void;
|
|
@@ -20,5 +23,6 @@ export declare class PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLine
|
|
|
20
23
|
max: number;
|
|
21
24
|
values: any[];
|
|
22
25
|
}[]): number[];
|
|
26
|
+
protected axisHelper(): any;
|
|
23
27
|
}
|
|
24
28
|
export declare const registerPolarLinearAxis: () => void;
|
|
@@ -42,6 +42,7 @@ export declare class BaseComponent<T extends IComponentSpec = IComponentSpec> ex
|
|
|
42
42
|
clear(): void;
|
|
43
43
|
compile(): void;
|
|
44
44
|
compileMarks(group?: string | IGroupMark): void;
|
|
45
|
+
reAppendComponents(): void;
|
|
45
46
|
protected _delegateEvent: (component: IGraphic, event: any, type: string, item?: any, datum?: Datum) => void;
|
|
46
47
|
getBoundsInRect(rect: ILayoutRect, fullRect: ILayoutRect): IBoundsLike;
|
|
47
48
|
}
|
|
@@ -82,6 +82,5 @@ export declare abstract class BaseCrossHair<T extends ICartesianCrosshairSpec |
|
|
|
82
82
|
protected _parseCrosshairSpec(): void;
|
|
83
83
|
protected _parseField(field: ICrosshairCategoryFieldSpec, fieldName: string): any;
|
|
84
84
|
protected _filterAxisByPoint<T>(axisMap: IAxisInfo<T>, relativeX: number, relativeY: number): IAxisInfo<T>;
|
|
85
|
-
protected
|
|
86
|
-
clear(): void;
|
|
85
|
+
protected clearOutEvent(): void;
|
|
87
86
|
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import type { StringOrNumber } from '../../../typings';
|
|
2
2
|
import type { IAxis } from '../../axis';
|
|
3
|
+
export interface ICrosshairLabelInfo {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
text: StringOrNumber;
|
|
6
|
+
dx: number;
|
|
7
|
+
dy: number;
|
|
8
|
+
defaultFormatter?: (value: StringOrNumber) => StringOrNumber;
|
|
9
|
+
}
|
|
3
10
|
export interface ICrosshairInfoX {
|
|
4
11
|
height: number;
|
|
5
12
|
leftPos: number;
|
|
6
13
|
rightPos: number;
|
|
7
14
|
topPos: number;
|
|
8
15
|
x: number;
|
|
9
|
-
bottom:
|
|
10
|
-
|
|
11
|
-
text: StringOrNumber;
|
|
12
|
-
dx: number;
|
|
13
|
-
dy: number;
|
|
14
|
-
};
|
|
15
|
-
top: {
|
|
16
|
-
visible: boolean;
|
|
17
|
-
text: StringOrNumber;
|
|
18
|
-
dx: number;
|
|
19
|
-
dy: number;
|
|
20
|
-
};
|
|
16
|
+
bottom: ICrosshairLabelInfo;
|
|
17
|
+
top: ICrosshairLabelInfo;
|
|
21
18
|
visible: boolean;
|
|
22
19
|
_isCache?: boolean;
|
|
23
20
|
axis: IAxis;
|
|
@@ -28,18 +25,8 @@ export interface ICrosshairInfoY {
|
|
|
28
25
|
topPos: number;
|
|
29
26
|
bottomPos: number;
|
|
30
27
|
y: number;
|
|
31
|
-
left:
|
|
32
|
-
|
|
33
|
-
text: StringOrNumber;
|
|
34
|
-
dx: number;
|
|
35
|
-
dy: number;
|
|
36
|
-
};
|
|
37
|
-
right: {
|
|
38
|
-
visible: boolean;
|
|
39
|
-
text: StringOrNumber;
|
|
40
|
-
dx: number;
|
|
41
|
-
dy: number;
|
|
42
|
-
};
|
|
28
|
+
left: ICrosshairLabelInfo;
|
|
29
|
+
right: ICrosshairLabelInfo;
|
|
43
30
|
visible: boolean;
|
|
44
31
|
_isCache?: boolean;
|
|
45
32
|
axis: IAxis;
|
|
@@ -14,10 +14,12 @@ export interface IPolarCrosshairInfo {
|
|
|
14
14
|
angle: number;
|
|
15
15
|
point: IPoint;
|
|
16
16
|
_isCache?: boolean;
|
|
17
|
-
label?:
|
|
18
|
-
visible: boolean;
|
|
19
|
-
text: StringOrNumber;
|
|
20
|
-
offset: number;
|
|
21
|
-
};
|
|
17
|
+
label?: IPolarCrosshairLabelInfo;
|
|
22
18
|
axis?: IPolarAxis;
|
|
23
19
|
}
|
|
20
|
+
export interface IPolarCrosshairLabelInfo {
|
|
21
|
+
visible: boolean;
|
|
22
|
+
text: StringOrNumber;
|
|
23
|
+
offset: number;
|
|
24
|
+
defaultFormatter?: (value: StringOrNumber) => StringOrNumber;
|
|
25
|
+
}
|
|
@@ -2,11 +2,11 @@ import { BaseComponent } from '../base/base-component';
|
|
|
2
2
|
import { ComponentTypeEnum } from '../interface/type';
|
|
3
3
|
import type { IRegion } from '../../region/interface';
|
|
4
4
|
import type { IModelRenderOption, IModelSpecInfo } from '../../model/interface';
|
|
5
|
-
import type { EnableMarkType, ICustomMarkGroupSpec, ICustomMarkSpec } from '../../typings';
|
|
5
|
+
import type { EnableMarkType, ICustomMarkGroupSpec, ICustomMarkSpec, ILayoutRect } from '../../typings';
|
|
6
6
|
import type { Maybe } from '@visactor/vutils';
|
|
7
7
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
8
|
import type { IModelMarkAttributeContext } from '../../compile/mark/interface';
|
|
9
|
-
export declare class CustomMark
|
|
9
|
+
export declare class CustomMark extends BaseComponent<ICustomMarkSpec<EnableMarkType>> {
|
|
10
10
|
static type: ComponentTypeEnum;
|
|
11
11
|
type: ComponentTypeEnum;
|
|
12
12
|
static specKey: string;
|
|
@@ -14,7 +14,7 @@ export declare class CustomMark<T = any> extends BaseComponent<any> {
|
|
|
14
14
|
layoutType: 'none';
|
|
15
15
|
layoutZIndex: number;
|
|
16
16
|
layoutLevel: number;
|
|
17
|
-
protected _spec:
|
|
17
|
+
protected _spec: ICustomMarkSpec<Exclude<EnableMarkType, 'group'>> | ICustomMarkGroupSpec;
|
|
18
18
|
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
19
19
|
created(): void;
|
|
20
20
|
protected _markAttributeContext: IModelMarkAttributeContext;
|
|
@@ -23,7 +23,7 @@ export declare class CustomMark<T = any> extends BaseComponent<any> {
|
|
|
23
23
|
protected initMarks(): void;
|
|
24
24
|
private _createExtensionMark;
|
|
25
25
|
initEvent(): void;
|
|
26
|
-
_compareSpec(spec:
|
|
26
|
+
_compareSpec(spec: ICustomMarkSpec<EnableMarkType>, prevSpec: ICustomMarkSpec<EnableMarkType>): {
|
|
27
27
|
change: boolean;
|
|
28
28
|
reMake: boolean;
|
|
29
29
|
reRender: boolean;
|
|
@@ -35,5 +35,12 @@ export declare class CustomMark<T = any> extends BaseComponent<any> {
|
|
|
35
35
|
onRender(ctx: IModelRenderOption): void;
|
|
36
36
|
afterCompile(): void;
|
|
37
37
|
private _getMarkAttributeContext;
|
|
38
|
+
private _getLayoutRect;
|
|
39
|
+
getBoundsInRect(rect: ILayoutRect): {
|
|
40
|
+
x1: number;
|
|
41
|
+
y1: number;
|
|
42
|
+
x2: number;
|
|
43
|
+
y2: number;
|
|
44
|
+
};
|
|
38
45
|
}
|
|
39
46
|
export declare const registerCustomMark: () => void;
|
|
@@ -5,7 +5,7 @@ import type { AdaptiveSpec, ILayoutRect, ILayoutType, IOrientType, IRect, String
|
|
|
5
5
|
import type { IBaseScale } from '@visactor/vscale';
|
|
6
6
|
import type { ICartesianBandAxisSpec } from '../axis/cartesian';
|
|
7
7
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
8
|
-
import { IFilterMode } from './interface';
|
|
8
|
+
import type { IFilterMode } from './interface';
|
|
9
9
|
import type { IDataFilterComponent, IDataFilterComponentSpec, IRoamDragSpec, IRoamScrollSpec, IRoamZoomSpec } from './interface';
|
|
10
10
|
import type { BaseEventParams } from '../../event/interface';
|
|
11
11
|
import type { AbstractComponent } from '@visactor/vrender-components';
|
|
@@ -19,6 +19,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
19
19
|
protected _fixedBandSize?: number;
|
|
20
20
|
protected _cacheRect?: ILayoutRect;
|
|
21
21
|
protected _cacheVisibility?: boolean;
|
|
22
|
+
protected _dataUpdating: boolean;
|
|
22
23
|
protected _stateScale: IBaseScale;
|
|
23
24
|
protected _relatedAxisComponent: IComponent;
|
|
24
25
|
protected _originalStateFields: Record<number, string | number>;
|
|
@@ -110,7 +111,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
110
111
|
scrollY: number;
|
|
111
112
|
}, e: BaseEventParams['event']) => boolean;
|
|
112
113
|
protected _handleChartDrag: (delta: [number, number], e: BaseEventParams['event']) => void;
|
|
113
|
-
protected _handleChartMove: (value: number, rate: number) =>
|
|
114
|
+
protected _handleChartMove: (value: number, rate: number) => boolean;
|
|
114
115
|
protected _initCommonEvent(): void;
|
|
115
116
|
updateLayoutAttribute(): void;
|
|
116
117
|
onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect, ctx: any): void;
|
|
@@ -27,22 +27,22 @@ import { CartesianCrossHair, PolarCrossHair, registerCartesianCrossHair, registe
|
|
|
27
27
|
import type { IPlayerSpec, IPlayerTheme } from './player';
|
|
28
28
|
import { Player, registerPlayer } from './player';
|
|
29
29
|
import type { IMarkLineSpec, IStepMarkLineSpec, IMarkLineTheme } from './marker/mark-line';
|
|
30
|
-
import {
|
|
30
|
+
import { CartesianMarkLine, PolarMarkLine, registerMarkLine, registerPolarMarkLine } from './marker/mark-line';
|
|
31
31
|
import type { IMarkAreaSpec, IMarkAreaTheme } from './marker/mark-area';
|
|
32
|
-
import {
|
|
32
|
+
import { CartesianMarkArea, PolarMarkArea, registerMarkArea, registerPolarMarkArea } from './marker/mark-area';
|
|
33
33
|
import type { IMarkPointSpec, IMarkPointTheme } from './marker/mark-point';
|
|
34
|
-
import {
|
|
34
|
+
import { CartesianMarkPoint, PolarMarkPoint, GeoMarkPoint, registerMarkPoint, registerPolarMarkPoint, registerGeoMarkPoint } from './marker/mark-point';
|
|
35
35
|
import type { ITooltipSpec, ITooltipTheme } from './tooltip';
|
|
36
36
|
import { Tooltip, registerTooltip } from './tooltip';
|
|
37
|
-
import type { ILabelSpec, ITotalLabelTheme } from './label';
|
|
37
|
+
import type { ILabelSpec, ITotalLabelTheme, ITotalLabelSpec } from './label';
|
|
38
38
|
import { Label, registerLabel } from './label';
|
|
39
39
|
import { TotalLabel, registerTotalLabel } from './label/total-label';
|
|
40
40
|
import { registerPoptip } from './poptip/index';
|
|
41
41
|
import type { IComponentTheme } from './interface';
|
|
42
42
|
import type { IAxisCommonTheme, IAxisItemTheme, IBandAxisTheme } from './axis/interface';
|
|
43
43
|
import type { IPoptipTheme } from './poptip/interface';
|
|
44
|
-
export { ScrollBar, DataZoom, CustomMark, Brush, MapLabelComponent, CartesianAxis, CartesianBandAxis, CartesianLinearAxis, CartesianTimeAxis, CartesianLogAxis, CartesianSymlogAxis, PolarAxis, PolarBandAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Indicator, Title, GeoCoordinate, CartesianCrossHair, PolarCrossHair, Player,
|
|
45
|
-
export { registerBrush, registerScrollBar, registerTitle, registerTooltip, registerCartesianBandAxis, registerCartesianCrossHair, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis, registerContinuousLegend, registerCustomMark, registerDataZoom, registerDiscreteLegend, registerGeoCoordinate, registerIndicator, registerLabel, registerTotalLabel, registerMapLabel,
|
|
46
|
-
export type { IComponent, IScrollBarSpec, IBrushSpec, ICartesianAxisSpec, ICartesianBandAxisSpec, ICartesianCrosshairSpec, ICartesianLinearAxisSpec, ICartesianTimeAxisSpec, ICartesianLogAxisSpec, IContinuousLegendSpec, IDataZoomSpec, IDiscreteLegendSpec, IGeoCoordinateSpec, IIndicatorSpec, ILabelSpec, IMapLabelSpec, IMarkAreaSpec, IMarkLineSpec, IStepMarkLineSpec, IMarkPointSpec, IPlayerSpec, IPolarAxisSpec, IPolarBandAxisSpec, IPolarCrosshairSpec, IPolarLinearAxisSpec, ITitleSpec, ITooltipSpec };
|
|
44
|
+
export { ScrollBar, DataZoom, CustomMark, Brush, MapLabelComponent, CartesianAxis, CartesianBandAxis, CartesianLinearAxis, CartesianTimeAxis, CartesianLogAxis, CartesianSymlogAxis, PolarAxis, PolarBandAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Indicator, Title, GeoCoordinate, CartesianCrossHair, PolarCrossHair, Player, CartesianMarkLine, CartesianMarkArea, CartesianMarkPoint, PolarMarkLine, PolarMarkArea, PolarMarkPoint, GeoMarkPoint, Tooltip, Label, TotalLabel };
|
|
45
|
+
export { registerBrush, registerScrollBar, registerTitle, registerTooltip, registerCartesianBandAxis, registerCartesianCrossHair, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis, registerContinuousLegend, registerCustomMark, registerDataZoom, registerDiscreteLegend, registerGeoCoordinate, registerIndicator, registerLabel, registerTotalLabel, registerMapLabel, registerMarkLine, registerMarkArea, registerMarkPoint, registerPolarMarkLine, registerPolarMarkArea, registerPolarMarkPoint, registerGeoMarkPoint, registerPlayer, registerPolarBandAxis, registerPolarCrossHair, registerPolarLinearAxis, registerPoptip };
|
|
46
|
+
export type { IComponent, IScrollBarSpec, IBrushSpec, ICartesianAxisSpec, ICartesianBandAxisSpec, ICartesianCrosshairSpec, ICartesianLinearAxisSpec, ICartesianTimeAxisSpec, ICartesianLogAxisSpec, IContinuousLegendSpec, IDataZoomSpec, IDiscreteLegendSpec, IGeoCoordinateSpec, IIndicatorSpec, ILabelSpec, ITotalLabelSpec, IMapLabelSpec, IMarkAreaSpec, IMarkLineSpec, IStepMarkLineSpec, IMarkPointSpec, IPlayerSpec, IPolarAxisSpec, IPolarBandAxisSpec, IPolarCrosshairSpec, IPolarLinearAxisSpec, ITitleSpec, ITooltipSpec };
|
|
47
47
|
export type { IComponentTheme, ICrosshairTheme, IAxisItemTheme, IAxisCommonTheme, IBandAxisTheme, IPolarAxisCommonTheme, ICartesianAxisCommonTheme, IBrushTheme, IDataZoomTheme, IScrollBarTheme, IIndicatorTheme, IMapLabelTheme, ITotalLabelTheme, ISizeLegendTheme, IColorLegendTheme, IDiscreteLegendTheme, IContinuousLegendTheme, IMarkAreaTheme, IMarkLineTheme, IMarkPointTheme, IPlayerTheme, IPoptipTheme, ITitleTheme, ITooltipTheme };
|
|
48
48
|
export * from './tooltip/interface';
|