@visactor/vchart-types 1.13.1 → 1.13.2
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 +1 -2
- package/types/chart/common/interface.d.ts +5 -4
- package/types/chart/gauge/interface.d.ts +2 -2
- package/types/chart/interface/common.d.ts +2 -2
- package/types/chart/polar/interface.d.ts +1 -1
- package/types/chart/sequence/interface.d.ts +2 -1
- package/types/compile/compilable-base.d.ts +2 -3
- package/types/compile/compiler.d.ts +8 -8
- package/types/compile/interface/compilable-item.d.ts +63 -5
- package/types/compile/interface/compiler.d.ts +4 -20
- package/types/compile/mark/compilable-mark.d.ts +4 -5
- package/types/compile/mark/interface.d.ts +19 -7
- package/types/compile/mark/mark-data.d.ts +2 -2
- package/types/compile/mark/mark-state-manager.d.ts +2 -2
- package/types/component/axis/base-axis.d.ts +1 -1
- package/types/component/axis/interface/common.d.ts +2 -2
- package/types/component/axis/polar/interface/common.d.ts +1 -1
- package/types/component/crosshair/interface/cartesian.d.ts +1 -1
- package/types/component/crosshair/interface/common.d.ts +1 -1
- package/types/component/crosshair/interface/polar.d.ts +1 -1
- package/types/component/crosshair/interface/theme.d.ts +1 -1
- package/types/component/data-zoom/data-zoom/interface.d.ts +1 -2
- package/types/component/data-zoom/scroll-bar/interface.d.ts +1 -2
- package/types/component/interface/theme.d.ts +13 -9
- package/types/component/label/interface.d.ts +14 -2
- package/types/component/label/label.d.ts +2 -15
- package/types/component/label/util.d.ts +1 -2
- package/types/component/legend/interface.d.ts +5 -2
- package/types/component/legend/util.d.ts +2 -2
- package/types/component/marker/base-marker.d.ts +1 -1
- package/types/component/marker/interface.d.ts +3 -4
- package/types/component/marker/mark-line/interface/spec.d.ts +1 -1
- package/types/component/marker/mark-point/interface/theme.d.ts +1 -1
- package/types/component/player/interface/theme.d.ts +1 -2
- package/types/component/poptip/interface.d.ts +1 -1
- package/types/component/title/interface/theme.d.ts +1 -1
- package/types/component/tooltip/interface/theme.d.ts +1 -1
- package/types/core/factory.d.ts +1 -1
- package/types/core/interface.d.ts +6 -7
- package/types/core/vchart.d.ts +3 -3
- package/types/data/transforms/aggregation.d.ts +2 -29
- package/types/data/transforms/dimension-statistics.d.ts +1 -13
- package/types/data/transforms/hierarchy-dimension-statistics.d.ts +1 -1
- package/types/data/transforms/interface.d.ts +47 -0
- package/types/data/transforms/regression.d.ts +1 -4
- package/types/event/events/dimension/interface.d.ts +1 -1
- package/types/event/interface.d.ts +1 -2
- package/types/interaction/interface.d.ts +1 -5
- package/types/mark/arc-3d.d.ts +1 -2
- package/types/mark/arc.d.ts +1 -2
- package/types/mark/area.d.ts +1 -2
- package/types/mark/box-plot.d.ts +1 -2
- package/types/mark/cell.d.ts +1 -2
- package/types/mark/component.d.ts +1 -2
- package/types/mark/group.d.ts +1 -9
- package/types/mark/image.d.ts +1 -2
- package/types/mark/interface/common.d.ts +1 -1
- package/types/mark/interface/index.d.ts +1 -0
- package/types/mark/interface/mark.d.ts +44 -0
- package/types/mark/label.d.ts +2 -11
- package/types/mark/line.d.ts +1 -2
- package/types/mark/link-path.d.ts +1 -2
- package/types/mark/path.d.ts +1 -2
- package/types/mark/polygon/polygon.d.ts +1 -2
- package/types/mark/polygon/pyramid-3d.d.ts +1 -2
- package/types/mark/rect-3d.d.ts +1 -2
- package/types/mark/rect.d.ts +1 -2
- package/types/mark/ripple.d.ts +1 -2
- package/types/mark/rule.d.ts +1 -2
- package/types/mark/symbol.d.ts +1 -2
- package/types/mark/text.d.ts +2 -8
- package/types/model/interface.d.ts +5 -5
- package/types/plugin/chart/interface.d.ts +1 -2
- package/types/plugin/chart/media-query/interface/common.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/base.d.ts +3 -3
- package/types/region/interface.d.ts +1 -2
- package/types/region/region.d.ts +1 -2
- package/types/scale/global-scale.d.ts +1 -1
- package/types/scale/interface.d.ts +1 -1
- package/types/series/area/animation.d.ts +1 -5
- package/types/series/area/area.d.ts +1 -2
- package/types/series/area/interface.d.ts +7 -4
- package/types/series/bar/animation.d.ts +1 -8
- package/types/series/bar/bar.d.ts +1 -3
- package/types/series/bar/interface.d.ts +10 -4
- package/types/series/base/base-series.d.ts +2 -3
- package/types/series/box-plot/box-plot.d.ts +1 -1
- package/types/series/cartesian/cartesian.d.ts +2 -2
- package/types/series/cartesian/interface.d.ts +1 -1
- package/types/series/circle-packing/animation.d.ts +1 -2
- package/types/series/circle-packing/circle-packing.d.ts +1 -1
- package/types/series/circle-packing/interface.d.ts +2 -1
- package/types/series/correlation/animation.d.ts +1 -5
- package/types/series/correlation/correlation.d.ts +1 -2
- package/types/series/correlation/interface.d.ts +7 -4
- package/types/series/dot/dot.d.ts +1 -1
- package/types/series/funnel/3d/funnel-3d.d.ts +1 -1
- package/types/series/funnel/funnel.d.ts +1 -5
- package/types/series/funnel/interface.d.ts +1 -1
- package/types/series/gauge/gauge.d.ts +2 -0
- package/types/series/gauge/interface.d.ts +1 -2
- package/types/series/heatmap/animation.d.ts +1 -1
- package/types/series/heatmap/heatmap.d.ts +1 -3
- package/types/series/heatmap/interface.d.ts +2 -2
- package/types/series/index.d.ts +7 -3
- package/types/series/interface/common.d.ts +2 -3
- package/types/series/interface/series.d.ts +6 -9
- package/types/series/interface/theme.d.ts +1 -1
- package/types/series/line/animation.d.ts +1 -5
- package/types/series/line/interface.d.ts +7 -4
- package/types/series/link/link.d.ts +1 -1
- package/types/series/liquid/animation.d.ts +1 -11
- package/types/series/liquid/interface.d.ts +12 -2
- package/types/series/map/interface.d.ts +1 -1
- package/types/series/map/map.d.ts +1 -2
- package/types/series/mixin/interface.d.ts +14 -0
- package/types/series/mixin/line-mixin.d.ts +3 -18
- package/types/series/pictogram/pictogram.d.ts +8 -7
- package/types/series/pie/3d/pie-3d.d.ts +1 -1
- package/types/series/pie/animation/animation.d.ts +1 -5
- package/types/series/pie/animation/centerOffset.d.ts +1 -4
- package/types/series/pie/interface.d.ts +9 -2
- package/types/series/pie/pie.d.ts +1 -4
- package/types/series/polar/progress-like/animation.d.ts +1 -4
- package/types/series/polar/progress-like/interface.d.ts +4 -0
- package/types/series/polar/progress-like/progress-like.d.ts +1 -2
- package/types/series/progress/circular/interface.d.ts +1 -2
- package/types/series/progress/linear/animation.d.ts +1 -5
- package/types/series/progress/linear/interface.d.ts +4 -1
- package/types/series/radar/animation.d.ts +2 -8
- package/types/series/radar/interface.d.ts +11 -4
- package/types/series/range-column/animation.d.ts +1 -5
- package/types/series/range-column/interface.d.ts +6 -2
- package/types/series/range-column/range-column.d.ts +1 -1
- package/types/series/rose/animation.d.ts +1 -5
- package/types/series/rose/interface.d.ts +7 -3
- package/types/series/rose/rose.d.ts +1 -3
- package/types/series/sankey/animation.d.ts +1 -7
- package/types/series/sankey/interface.d.ts +7 -2
- package/types/series/sankey/sankey.d.ts +2 -3
- package/types/series/scatter/animation.d.ts +1 -5
- package/types/series/scatter/interface.d.ts +7 -3
- package/types/series/scatter/scatter.d.ts +1 -2
- package/types/series/sunburst/interface.d.ts +1 -1
- package/types/series/sunburst/sunburst.d.ts +1 -1
- package/types/series/treemap/animation.d.ts +1 -2
- package/types/series/treemap/interface.d.ts +3 -2
- package/types/series/treemap/tooltip-helper.d.ts +1 -1
- package/types/series/treemap/treemap.d.ts +2 -3
- package/types/series/util/label-mark.d.ts +1 -1
- package/types/series/util/utils.d.ts +1 -1
- package/types/series/venn/animation.d.ts +1 -2
- package/types/series/venn/interface.d.ts +3 -2
- package/types/series/venn/venn.d.ts +3 -4
- package/types/series/waterfall/animation.d.ts +3 -3
- package/types/series/waterfall/interface.d.ts +3 -3
- package/types/series/waterfall/waterfall.d.ts +2 -4
- package/types/series/word-cloud/animation.d.ts +1 -8
- package/types/series/word-cloud/base.d.ts +1 -3
- package/types/series/word-cloud/interface.d.ts +9 -1
- package/types/theme/interface.d.ts +1 -1
- package/types/typings/params.d.ts +1 -1
- package/types/typings/spec/chart.d.ts +26 -26
- package/types/typings/spec/common.d.ts +10 -9
- package/types/typings/spec/index.d.ts +1 -1
- package/types/typings/spec/media-query.d.ts +3 -2
- package/types/typings/visual.d.ts +3 -3
- package/types/util/data.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Datum } from '../../typings';
|
|
1
|
+
import type { Datum } from '../../typings';
|
|
2
2
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
3
|
import type { TreemapSeries } from './treemap';
|
|
4
4
|
export declare class TreemapTooltipHelper extends BaseSeriesTooltipHelper {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IMark } from '../../mark/interface';
|
|
1
|
+
import type { IMark, ILabelMark } from '../../mark/interface';
|
|
2
2
|
import type { Datum } from '../../typings';
|
|
3
3
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
4
4
|
import type { SeriesMarkMap } from '../interface';
|
|
@@ -6,7 +6,6 @@ import { SeriesTypeEnum } from '../interface/type';
|
|
|
6
6
|
import type { ITreemapSeriesSpec } from './interface';
|
|
7
7
|
import type { PanEventParam, ZoomEventParam } from '../../event/interface';
|
|
8
8
|
import { DataView } from '@visactor/vdataset';
|
|
9
|
-
import type { ILabelMark } from '../../mark/label';
|
|
10
9
|
import { TreemapSeriesSpecTransformer } from './treemap-transform';
|
|
11
10
|
export declare class TreemapSeries extends CartesianSeries<any> {
|
|
12
11
|
static readonly type: string;
|
|
@@ -42,7 +41,7 @@ export declare class TreemapSeries extends CartesianSeries<any> {
|
|
|
42
41
|
protected _createHierarchyDataStatistics(dataName: string, rawData: DataView[]): DataView;
|
|
43
42
|
getStatisticFields(): {
|
|
44
43
|
key: string;
|
|
45
|
-
operations: import("../../data/transforms/
|
|
44
|
+
operations: import("../../data/transforms/interface").StatisticOperations;
|
|
46
45
|
}[];
|
|
47
46
|
initMark(): void;
|
|
48
47
|
initMarkStyle(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ITextMark } from '../../mark/
|
|
1
|
+
import type { ITextMark } from '../../mark/interface';
|
|
2
2
|
import type { DirectionType } from '../../typings/space';
|
|
3
3
|
import type { ISeries } from '../interface';
|
|
4
4
|
export declare function setRectLabelPos(component: ISeries, labelMark: ITextMark, position: string, offset: number, x: (datum: any) => number, x1: (datum: any) => number, y: (datum: any) => number, y1: (datum: any) => number, direction: () => DirectionType): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IAxisHelper as CartesianHelper } from '../../component/axis/cartesian/interface/common';
|
|
2
2
|
import type { Datum } from '../../typings';
|
|
3
3
|
import type { IPolarAxisHelper } from '../../component/axis';
|
|
4
|
-
import type { ICartesianSeries } from '
|
|
4
|
+
import type { ICartesianSeries } from '../interface';
|
|
5
5
|
export declare function isPolarAxisSeries(type: string): boolean;
|
|
6
6
|
export declare function sortDataInAxisHelper(axisHelper: CartesianHelper | IPolarAxisHelper, field: string, dataList: Datum[]): void;
|
|
7
7
|
export declare function getGroupAnimationParams(series: ICartesianSeries): {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
3
|
-
export type VennAppearPreset = 'growIn' | 'fadeIn' | 'scaleIn';
|
|
2
|
+
import type { VennAppearPreset } from './interface';
|
|
4
3
|
export declare const vennCirclePresetAnimation: (preset: VennAppearPreset) => IAnimationTypeConfig;
|
|
5
4
|
export declare const vennOverlapPresetAnimation: (preset: VennAppearPreset) => IAnimationTypeConfig;
|
|
6
5
|
export declare const registerVennAnimation: () => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { IArcMarkSpec, IPathMarkSpec } from '../../typings';
|
|
2
2
|
import type { IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings/spec';
|
|
3
3
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
4
|
-
import type { VennAppearPreset, VennMark } from './animation';
|
|
5
4
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
6
|
-
import type { ILabelSpec } from '../../component';
|
|
5
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
6
|
+
export type VennMark = 'circle' | 'overlap';
|
|
7
|
+
export type VennAppearPreset = 'growIn' | 'fadeIn' | 'scaleIn';
|
|
7
8
|
export interface IVennSeriesSpec extends ISeriesSpec, IAnimationSpec<VennMark, VennAppearPreset> {
|
|
8
9
|
type: 'venn';
|
|
9
10
|
categoryField?: string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { IMark } from '../../mark/interface';
|
|
1
|
+
import type { ILabelMark, IMark } from '../../mark/interface';
|
|
2
2
|
import type { Datum, IPoint, StringOrNumber } from '../../typings';
|
|
3
3
|
import type { SeriesMarkMap } from '../interface';
|
|
4
4
|
import { SeriesTypeEnum } from '../interface/type';
|
|
5
5
|
import type { IVennSeriesSpec } from './interface';
|
|
6
|
-
import type { ILabelMark } from '../../mark/label';
|
|
7
6
|
import { VennSeriesSpecTransformer } from './venn-transform';
|
|
8
7
|
import { BaseSeries } from '../base';
|
|
9
|
-
import type {
|
|
8
|
+
import type { ILegend } from '../../component/legend/interface';
|
|
10
9
|
export declare class VennSeries<T extends IVennSeriesSpec = IVennSeriesSpec> extends BaseSeries<T> {
|
|
11
10
|
static readonly type: string;
|
|
12
11
|
type: SeriesTypeEnum;
|
|
@@ -57,7 +56,7 @@ export declare class VennSeries<T extends IVennSeriesSpec = IVennSeriesSpec> ext
|
|
|
57
56
|
shapeType: string;
|
|
58
57
|
}[];
|
|
59
58
|
getSeriesFieldValue(datum: Datum, seriesField?: string): string;
|
|
60
|
-
legendSelectedFilter(component:
|
|
59
|
+
legendSelectedFilter(component: ILegend, selectedKeys: StringOrNumber[]): StringOrNumber[];
|
|
61
60
|
initAnimation(): void;
|
|
62
61
|
}
|
|
63
62
|
export declare const registerVennSeries: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
import type { IBarAnimationParams
|
|
3
|
-
|
|
4
|
-
export declare function waterfallPresetAnimation(params: IBarAnimationParams, preset:
|
|
2
|
+
import type { IBarAnimationParams } from '../bar/interface';
|
|
3
|
+
import type { WaterfallAppearPreset } from './interface';
|
|
4
|
+
export declare function waterfallPresetAnimation(params: IBarAnimationParams, preset: WaterfallAppearPreset): IAnimationTypeConfig;
|
|
5
5
|
export declare const registerWaterfallAnimation: () => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Datum, IMarkSpec, IMarkTheme, IRuleMarkSpec, ITextMarkSpec } from '../../typings';
|
|
2
2
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type { ILabelSpec, ITotalLabelSpec } from '../../component/label';
|
|
3
|
+
import type { BarAppearPreset, IBarSeriesSpec, IBarSeriesTheme } from '../bar/interface';
|
|
4
|
+
import type { ILabelSpec, ITotalLabelSpec } from '../../component/label/interface';
|
|
6
5
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
6
|
+
export type WaterfallAppearPreset = BarAppearPreset;
|
|
7
7
|
type WaterfallMarks = 'bar';
|
|
8
8
|
export interface IWaterfallTotalText {
|
|
9
9
|
text?: string;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import type { IRuleMark } from '../../mark/rule';
|
|
2
1
|
import { BarSeries } from '../bar/bar';
|
|
3
2
|
import type { IWaterfallSeriesSpec } from './interface';
|
|
4
3
|
import type { SeriesMarkMap } from '../interface';
|
|
5
4
|
import { SeriesTypeEnum } from '../interface/type';
|
|
6
5
|
import type { ITransformOptions, DataView } from '@visactor/vdataset';
|
|
7
6
|
import { SeriesData } from '../base/series-data';
|
|
8
|
-
import type { ITextMark } from '../../mark/text';
|
|
9
7
|
import type { IModelEvaluateOption } from '../../model/interface';
|
|
10
8
|
import type { Datum } from '../../typings';
|
|
11
|
-
import type { ILabelMark } from '../../mark/
|
|
12
|
-
import type { ILabelInfo } from '../../component/label/
|
|
9
|
+
import type { ILabelMark, IRuleMark, ITextMark } from '../../mark/interface';
|
|
10
|
+
import type { ILabelInfo } from '../../component/label/interface';
|
|
13
11
|
export declare const DefaultBandWidth = 6;
|
|
14
12
|
export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfallSeriesSpec> extends BarSeries<any> {
|
|
15
13
|
static readonly type: string;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
3
|
-
radius: number;
|
|
4
|
-
depth_3d: number;
|
|
5
|
-
}
|
|
6
|
-
export interface IWordcloudAnimationParams {
|
|
7
|
-
animationConfig: () => IAnimationTypeConfig;
|
|
8
|
-
}
|
|
9
|
-
export type WordcloudAppearPreset = 'scaleIn' | 'fadeIn';
|
|
2
|
+
import type { IWordcloud3dAnimationParams, IWordcloudAnimationParams, WordcloudAppearPreset } from './interface';
|
|
10
3
|
export declare const WordCloud3dAnimation: (params: IWordcloud3dAnimationParams | (() => any)) => IAnimationTypeConfig;
|
|
11
4
|
export declare const WordCloudScaleInAnimation: (params: IWordcloudAnimationParams) => IAnimationTypeConfig;
|
|
12
5
|
export declare function wordcloudPresetAnimation(params: IWordcloudAnimationParams, preset: WordcloudAppearPreset | boolean): IAnimationTypeConfig;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { IPadding } from '@visactor/vutils';
|
|
2
|
-
import type { ITextMark } from '../../mark/text';
|
|
3
2
|
import type { SeriesMarkMap } from '../interface';
|
|
4
3
|
import type { IWordCloudSeriesSpec, WordCloudConfigType, WordCloudShapeConfigType, WordCloudShapeType } from './interface';
|
|
5
4
|
import type { Datum, IMarkSpec, IPoint, ITextMarkSpec } from '../../typings';
|
|
6
5
|
import { BaseSeries } from '../base/base-series';
|
|
7
|
-
import type { IMark } from '../../mark/interface';
|
|
8
|
-
import type { IRectMark } from '../../mark/rect';
|
|
6
|
+
import type { IMark, IRectMark, ITextMark } from '../../mark/interface';
|
|
9
7
|
import type { GeometricMaskShape, TextShapeMask } from '@visactor/vgrammar-util';
|
|
10
8
|
export type IBaseWordCloudSeriesSpec = Omit<IWordCloudSeriesSpec, 'type'> & {
|
|
11
9
|
type: string;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import type { ITextMarkSpec, IMarkSpec, ISeriesSpec, ITextFormatMethod, IRectMarkSpec } from '../../typings';
|
|
2
2
|
import type { IAnimationSpec, IMarkAnimateSpec, IStateAnimateSpec } from '../../animation/spec';
|
|
3
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
|
-
import type { WordcloudAppearPreset } from './animation';
|
|
5
4
|
import type { shapes } from '@visactor/vgrammar-wordcloud';
|
|
6
5
|
import type { GeometricMaskShape, TextShapeMask } from '@visactor/vgrammar-util';
|
|
6
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
7
|
+
export interface IWordcloud3dAnimationParams {
|
|
8
|
+
radius: number;
|
|
9
|
+
depth_3d: number;
|
|
10
|
+
}
|
|
11
|
+
export interface IWordcloudAnimationParams {
|
|
12
|
+
animationConfig: () => IAnimationTypeConfig;
|
|
13
|
+
}
|
|
14
|
+
export type WordcloudAppearPreset = 'scaleIn' | 'fadeIn';
|
|
7
15
|
export type WordCloudShapeType = keyof typeof shapes;
|
|
8
16
|
export type EllipsisType = {
|
|
9
17
|
string?: string;
|
|
@@ -5,7 +5,7 @@ import type { MarkTypeEnum } from '../mark/interface';
|
|
|
5
5
|
import type { IColorKey, IThemeColorScheme } from './color-scheme/interface';
|
|
6
6
|
import type { IColor } from '@visactor/vrender-core';
|
|
7
7
|
import type { IComponentTheme } from '../component/interface';
|
|
8
|
-
import type { ITokenKey, TokenMap } from './token';
|
|
8
|
+
import type { ITokenKey, TokenMap } from './token/interface';
|
|
9
9
|
import type { ChartType } from '../chart/interface';
|
|
10
10
|
export interface ITheme {
|
|
11
11
|
name?: string;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import type { IAreaChartSpec } from '../../chart/area';
|
|
2
|
-
import type { IBarChartSpec, IBar3dChartSpec } from '../../chart/bar';
|
|
3
|
-
import type { IBoxPlotChartSpec } from '../../chart/box-plot';
|
|
4
|
-
import type { ICirclePackingChartSpec } from '../../chart/circle-packing';
|
|
5
|
-
import type { ICommonChartSpec } from '../../chart/common';
|
|
6
|
-
import type { IFunnelChartSpec, IFunnel3dChartSpec } from '../../chart/funnel';
|
|
7
|
-
import type { IGaugeChartSpec } from '../../chart/gauge';
|
|
8
|
-
import type { IHeatmapChartSpec } from '../../chart/heatmap';
|
|
9
|
-
import type { IHistogramChartSpec, IHistogram3dChartSpec } from '../../chart/histogram';
|
|
10
|
-
import type { ILineChartSpec } from '../../chart/line';
|
|
11
|
-
import type { IMapChartSpec } from '../../chart/map';
|
|
12
|
-
import type { IPieChartSpec, IPie3dChartSpec } from '../../chart/pie';
|
|
13
|
-
import type { ICircularProgressChartSpec } from '../../chart/progress/circular';
|
|
14
|
-
import type { ILinearProgressChartSpec } from '../../chart/progress/linear';
|
|
15
|
-
import type { IRadarChartSpec } from '../../chart/radar';
|
|
16
|
-
import type { IRangeAreaChartSpec } from '../../chart/range-area';
|
|
17
|
-
import type { IRangeColumnChartSpec, IRangeColumn3dChartSpec } from '../../chart/range-column';
|
|
18
|
-
import type { IRoseChartSpec } from '../../chart/rose';
|
|
19
|
-
import type { ISankeyChartSpec } from '../../chart/sankey';
|
|
20
|
-
import type { IScatterChartSpec } from '../../chart/scatter';
|
|
21
|
-
import type { ISequenceChartSpec } from '../../chart/sequence';
|
|
22
|
-
import type { ISunburstChartSpec } from '../../chart/sunburst';
|
|
23
|
-
import type { ITreemapChartSpec } from '../../chart/treemap';
|
|
24
|
-
import type { IWaterfallChartSpec } from '../../chart/waterfall';
|
|
25
|
-
import type { ICorrelationChartSpec } from '../../chart/correlation';
|
|
26
|
-
import type { IWordCloudChartSpec, IWordCloud3dChartSpec } from '../../chart/word-cloud';
|
|
1
|
+
import type { IAreaChartSpec } from '../../chart/area/interface';
|
|
2
|
+
import type { IBarChartSpec, IBar3dChartSpec } from '../../chart/bar/interface';
|
|
3
|
+
import type { IBoxPlotChartSpec } from '../../chart/box-plot/interface';
|
|
4
|
+
import type { ICirclePackingChartSpec } from '../../chart/circle-packing/interface';
|
|
5
|
+
import type { ICommonChartSpec } from '../../chart/common/interface';
|
|
6
|
+
import type { IFunnelChartSpec, IFunnel3dChartSpec } from '../../chart/funnel/interface';
|
|
7
|
+
import type { IGaugeChartSpec } from '../../chart/gauge/interface';
|
|
8
|
+
import type { IHeatmapChartSpec } from '../../chart/heatmap/interface';
|
|
9
|
+
import type { IHistogramChartSpec, IHistogram3dChartSpec } from '../../chart/histogram/interface';
|
|
10
|
+
import type { ILineChartSpec } from '../../chart/line/interface';
|
|
11
|
+
import type { IMapChartSpec } from '../../chart/map/interface';
|
|
12
|
+
import type { IPieChartSpec, IPie3dChartSpec } from '../../chart/pie/interface';
|
|
13
|
+
import type { ICircularProgressChartSpec } from '../../chart/progress/circular/interface';
|
|
14
|
+
import type { ILinearProgressChartSpec } from '../../chart/progress/linear/interface';
|
|
15
|
+
import type { IRadarChartSpec } from '../../chart/radar/interface';
|
|
16
|
+
import type { IRangeAreaChartSpec } from '../../chart/range-area/interface';
|
|
17
|
+
import type { IRangeColumnChartSpec, IRangeColumn3dChartSpec } from '../../chart/range-column/interface';
|
|
18
|
+
import type { IRoseChartSpec } from '../../chart/rose/interface';
|
|
19
|
+
import type { ISankeyChartSpec } from '../../chart/sankey/interface';
|
|
20
|
+
import type { IScatterChartSpec } from '../../chart/scatter/interface';
|
|
21
|
+
import type { ISequenceChartSpec } from '../../chart/sequence/interface';
|
|
22
|
+
import type { ISunburstChartSpec } from '../../chart/sunburst/interface';
|
|
23
|
+
import type { ITreemapChartSpec } from '../../chart/treemap/interface';
|
|
24
|
+
import type { IWaterfallChartSpec } from '../../chart/waterfall/interface';
|
|
25
|
+
import type { ICorrelationChartSpec } from '../../chart/correlation/interface';
|
|
26
|
+
import type { IWordCloudChartSpec, IWordCloud3dChartSpec } from '../../chart/word-cloud/interface';
|
|
27
27
|
import type { IChartSpec } from './common';
|
|
28
28
|
import type { ILiquidChartSpec } from '../../chart/liquid/interface';
|
|
29
29
|
export interface ChartSpecMap {
|
|
@@ -9,24 +9,25 @@ import type { IRenderOption } from '../../compile/interface';
|
|
|
9
9
|
import type { ISeriesTooltipSpec, ITooltipSpec } from '../../component/tooltip/interface';
|
|
10
10
|
import type { ILayoutSpec } from '../../layout/interface';
|
|
11
11
|
import type { ConvertToMarkStyleSpec, IArc3dMarkSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IPyramid3dMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
|
|
12
|
-
import type { StateValue } from '../../compile/mark';
|
|
12
|
+
import type { StateValue } from '../../compile/mark/interface';
|
|
13
13
|
import type { ISeriesStyle, SeriesType } from '../../series/interface';
|
|
14
14
|
import type { Datum, StringOrNumber } from '../common';
|
|
15
15
|
import type { IInvalidType } from '../data';
|
|
16
16
|
import type { IAnimationSpec, IMorphSeriesSpec } from '../../animation/spec';
|
|
17
|
-
import type { IPlayer } from '../../component/player';
|
|
17
|
+
import type { IPlayer } from '../../component/player/interface';
|
|
18
18
|
import type { IMarkProgressiveConfig, MarkTypeEnum } from '../../mark/interface';
|
|
19
|
-
import type { IDataZoomSpec
|
|
19
|
+
import type { IDataZoomSpec } from '../../component/data-zoom/data-zoom/interface';
|
|
20
|
+
import type { IScrollBarSpec } from '../../component/data-zoom/scroll-bar/interface';
|
|
20
21
|
import type { ICrosshairSpec } from '../../component/crosshair/interface';
|
|
21
|
-
import type { ITheme } from '../../theme';
|
|
22
|
+
import type { ITheme } from '../../theme/interface';
|
|
22
23
|
import type { ITitleSpec } from '../../component/title/interface';
|
|
23
|
-
import type { IBrushSpec } from '../../component/brush';
|
|
24
|
-
import type { ITotalLabelSpec } from '../../component/label';
|
|
25
|
-
import type { ILegendSpec } from '../../component/legend';
|
|
24
|
+
import type { IBrushSpec } from '../../component/brush/interface';
|
|
25
|
+
import type { ITotalLabelSpec } from '../../component/label/interface';
|
|
26
|
+
import type { ILegendSpec } from '../../component/legend/interface';
|
|
26
27
|
import type { ILayoutOrientPadding, ILayoutPaddingSpec } from '../layout';
|
|
27
28
|
import type { IColor, ICustomPath2D, IRichTextCharacter } from '@visactor/vrender-core';
|
|
28
|
-
import type { ICommonAxisSpec } from '../../component/axis';
|
|
29
|
-
import type { IMediaQuerySpec } from '
|
|
29
|
+
import type { ICommonAxisSpec } from '../../component/axis/interface';
|
|
30
|
+
import type { IMediaQuerySpec } from './media-query';
|
|
30
31
|
import type { IModelSpec } from '../../model/interface';
|
|
31
32
|
export type IChartPadding = ILayoutOrientPadding | number;
|
|
32
33
|
export interface IInitOption extends Omit<IRenderOption, 'pluginList'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './common';
|
|
2
|
-
export type { IStateSpec, StateValueType } from '../../compile/mark';
|
|
2
|
+
export type { IStateSpec, StateValueType } from '../../compile/mark/interface';
|
|
3
3
|
export * from './chart';
|
|
4
4
|
export type { IRegionSpec, IGeoRegionSpec, RegionSpec } from '../../region/interface';
|
|
5
5
|
export * from './media-query';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ComponentTypeEnum } from '../../component/interface';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IVChart } from '../../core/interface';
|
|
3
3
|
import type { IModelSpecInfo } from '../../model/interface';
|
|
4
|
-
import type { SeriesTypeEnum } from '../../series';
|
|
4
|
+
import type { SeriesTypeEnum } from '../../series/interface/type';
|
|
5
|
+
import type { IChartSpec } from './common';
|
|
5
6
|
export interface IMediaInfo {
|
|
6
7
|
width: number;
|
|
7
8
|
height: number;
|
|
@@ -5,11 +5,11 @@ import type { InterpolateType } from './interpolate';
|
|
|
5
5
|
import type { ScaleType } from './scale';
|
|
6
6
|
import type { ShapeType } from './shape';
|
|
7
7
|
import type { IPoint } from './coordinate';
|
|
8
|
-
import type { IAttributeOpt, IModelMarkAttributeContext } from '../compile/mark';
|
|
8
|
+
import type { IAttributeOpt, IModelMarkAttributeContext } from '../compile/mark/interface';
|
|
9
9
|
import type { Datum } from './common';
|
|
10
10
|
import type { IPadding } from '@visactor/vutils';
|
|
11
11
|
import type { IColorKey } from '../theme/color-scheme/interface';
|
|
12
|
-
import type { ITokenKey } from '../theme/token';
|
|
12
|
+
import type { ITokenKey } from '../theme/token/interface';
|
|
13
13
|
import type { IRepeatType, TextAlignType, TextBaselineType, IRichTextAttribute, IGraphicStyle, IColor } from '@visactor/vrender-core';
|
|
14
14
|
export interface IVisualSpecBase<D, T> {
|
|
15
15
|
type: ScaleType;
|
|
@@ -69,8 +69,8 @@ export interface ICommonSpec {
|
|
|
69
69
|
scaleX?: number;
|
|
70
70
|
scaleY?: number;
|
|
71
71
|
scaleCenter?: [number | string, number | string];
|
|
72
|
-
beta?: number;
|
|
73
72
|
alpha?: number;
|
|
73
|
+
beta?: number;
|
|
74
74
|
anchor3d?: [number, number];
|
|
75
75
|
pickMode?: 'accurate' | 'imprecise' | 'custom';
|
|
76
76
|
boundsMode?: 'accurate' | 'imprecise';
|
package/types/util/data.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DataView } from '@visactor/vdataset';
|
|
2
|
-
import type { StatisticOperations } from '../data/transforms/
|
|
2
|
+
import type { StatisticOperations } from '../data/transforms/interface';
|
|
3
3
|
import type { ISeries, ISeriesStackDataMeta } from '../series/interface';
|
|
4
4
|
import type { IRegion } from '../region/interface';
|
|
5
5
|
export declare function mergeFields(targetFields: {
|