@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
|
@@ -14,7 +14,7 @@ import type { IDotSeriesTheme } from '../dot/interface';
|
|
|
14
14
|
import type { IWordCloud3dSeriesTheme, IWordCloudSeriesTheme } from '../word-cloud/interface';
|
|
15
15
|
import type { IFunnel3dSeriesTheme, IFunnelSeriesTheme } from '../funnel/interface';
|
|
16
16
|
import type { ILinearProgressSeriesTheme } from '../progress/linear/interface';
|
|
17
|
-
import type { IGaugePointerSeriesTheme, IGaugeSeriesTheme } from '../gauge';
|
|
17
|
+
import type { IGaugePointerSeriesTheme, IGaugeSeriesTheme } from '../gauge/interface';
|
|
18
18
|
import type { ISankeySeriesTheme } from '../sankey/interface';
|
|
19
19
|
import type { ITreemapSeriesTheme } from '../treemap/interface';
|
|
20
20
|
import type { ISunburstSeriesTheme } from '../sunburst/interface';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import type { DirectionType } from '../../typings';
|
|
2
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
-
|
|
4
|
-
direction: DirectionType;
|
|
5
|
-
}
|
|
6
|
-
export type LineAppearPreset = 'clipIn' | 'fadeIn' | 'grow';
|
|
2
|
+
import type { ILineAnimationParams, LineAppearPreset } from './interface';
|
|
7
3
|
export declare function linePresetAnimation(params: ILineAnimationParams, preset: LineAppearPreset): IAnimationTypeConfig;
|
|
@@ -2,12 +2,15 @@ import type { IMarkSpec } from '../../typings/spec/common';
|
|
|
2
2
|
import type { ICartesianSeriesSpec } from '../cartesian/interface';
|
|
3
3
|
import type { ISymbolMarkSpec, ILineMarkSpec } from '../../typings/visual';
|
|
4
4
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
-
import type { LineAppearPreset } from './animation';
|
|
6
|
-
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/line-mixin';
|
|
7
5
|
import type { IDataSamping, IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
8
6
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
9
|
-
import type { ILabelSpec } from '../../component';
|
|
10
|
-
import {
|
|
7
|
+
import type { IMultiLabelSpec, ILabelSpec } from '../../component/label/interface';
|
|
8
|
+
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/interface';
|
|
9
|
+
import type { DirectionType } from '../../typings/space';
|
|
10
|
+
export interface ILineAnimationParams {
|
|
11
|
+
direction: DirectionType;
|
|
12
|
+
}
|
|
13
|
+
export type LineAppearPreset = 'clipIn' | 'fadeIn' | 'grow';
|
|
11
14
|
type LineMarks = 'point' | 'line';
|
|
12
15
|
export interface ILineSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<LineMarks, LineAppearPreset>, IMarkProgressiveConfig, IDataSamping, IMarkOverlap {
|
|
13
16
|
type: 'line';
|
|
@@ -47,7 +47,7 @@ export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> ext
|
|
|
47
47
|
initInteraction(): void;
|
|
48
48
|
protected initTooltip(): void;
|
|
49
49
|
protected onMarkTreePositionUpdate(marks: IMark[]): void;
|
|
50
|
-
getDotInfoData(): import("../../compile/mark
|
|
50
|
+
getDotInfoData(): import("../../compile/mark").IMarkData;
|
|
51
51
|
getActiveMarks(): IMark[];
|
|
52
52
|
}
|
|
53
53
|
export declare const registerLinkSeries: () => void;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
3
|
-
height: {
|
|
4
|
-
from: () => number | number;
|
|
5
|
-
to: () => number | number;
|
|
6
|
-
};
|
|
7
|
-
dy: {
|
|
8
|
-
from: () => number | number;
|
|
9
|
-
to: () => number | number;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export type LiquidAppearPreset = 'wave' | 'grow' | 'waveGrow';
|
|
2
|
+
import type { ILiquidAnimationParams, LiquidAppearPreset } from './interface';
|
|
13
3
|
export declare function liquidPresetAnimation(params: ILiquidAnimationParams, preset: LiquidAppearPreset): IAnimationTypeConfig;
|
|
14
4
|
export declare function liquidGroupPresetAnimation(params: ILiquidAnimationParams, preset: LiquidAppearPreset): IAnimationTypeConfig;
|
|
15
5
|
export declare const registerLiquidAnimation: () => void;
|
|
@@ -2,9 +2,19 @@ import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
|
2
2
|
import type { ILiquidMarkSpec, IGroupMarkSpec, ILiquidOutlineSpec } from '../../typings/visual';
|
|
3
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
4
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
-
import type { LiquidAppearPreset } from './animation';
|
|
6
5
|
import type { SymbolType } from '@visactor/vrender-core';
|
|
7
|
-
import type { ISymbolMark } from '../../mark/
|
|
6
|
+
import type { ISymbolMark } from '../../mark/interface';
|
|
7
|
+
export interface ILiquidAnimationParams {
|
|
8
|
+
height: {
|
|
9
|
+
from: () => number | number;
|
|
10
|
+
to: () => number | number;
|
|
11
|
+
};
|
|
12
|
+
dy: {
|
|
13
|
+
from: () => number | number;
|
|
14
|
+
to: () => number | number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export type LiquidAppearPreset = 'wave' | 'grow' | 'waveGrow';
|
|
8
18
|
type LiquidMarks = 'liquid';
|
|
9
19
|
export type LiquidShapeType = SymbolType | 'drop';
|
|
10
20
|
export type ILiquidPadding = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IPathMarkSpec, ITextMarkSpec } from '../../typings/visual';
|
|
2
2
|
import type { IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings/spec/common';
|
|
3
3
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
4
|
-
import { ILabelSpec } from '../../component';
|
|
4
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
5
5
|
type LineMarks = 'area';
|
|
6
6
|
export interface IMapSeriesSpec extends ISeriesSpec, IAnimationSpec<LineMarks, 'fadeIn'> {
|
|
7
7
|
type: 'map';
|
|
@@ -5,8 +5,7 @@ import type { SeriesMarkMap } from '../interface';
|
|
|
5
5
|
import { SeriesTypeEnum } from '../interface/type';
|
|
6
6
|
import type { IMapSeriesSpec } from './interface';
|
|
7
7
|
import type { PanEventParam, ZoomEventParam } from '../../event/interface';
|
|
8
|
-
import type { ILabelMark } from '../../mark/
|
|
9
|
-
import type { IMark } from '../../mark/interface';
|
|
8
|
+
import type { ILabelMark, IMark } from '../../mark/interface';
|
|
10
9
|
import { MapSeriesSpecTransformer } from './map-transformer';
|
|
11
10
|
export declare class MapSeries<T extends IMapSeriesSpec = IMapSeriesSpec> extends GeoSeries<T> {
|
|
12
11
|
static readonly type: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Functional } from '@visactor/vrender-components';
|
|
2
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
3
|
+
import type { IMarkTheme } from '../../typings/spec/common';
|
|
4
|
+
import type { ILineMarkSpec, ISymbolMarkSpec } from '../../typings/visual';
|
|
5
|
+
export interface ILineLikeSeriesTheme {
|
|
6
|
+
line?: Partial<IMarkTheme<ILineMarkSpec>>;
|
|
7
|
+
point?: Partial<IMarkTheme<ISymbolMarkSpec>> & {
|
|
8
|
+
visibleInActive?: boolean;
|
|
9
|
+
};
|
|
10
|
+
label?: Partial<ILineLikeLabelSpec>;
|
|
11
|
+
}
|
|
12
|
+
export type ILineLikeLabelSpec = Omit<ILabelSpec, 'position'> & {
|
|
13
|
+
position?: Functional<'top' | 'bottom' | 'left' | 'right' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center'>;
|
|
14
|
+
};
|
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
import type { ISeriesOption } from '../interface/common';
|
|
2
2
|
import type { ISeries } from '../interface/series';
|
|
3
|
-
import type { ICompileMarkConfig, IMark, IMarkProgressiveConfig } from '../../mark/interface';
|
|
4
|
-
import type {
|
|
5
|
-
import type { ISymbolMark } from '../../mark/symbol';
|
|
6
|
-
import type { ITextMark } from '../../mark/text';
|
|
7
|
-
import type { DirectionType, IInvalidType, InterpolateType, ILineMarkSpec, ISymbolMarkSpec, Maybe, Datum, IMarkTheme, ILayoutRect } from '../../typings';
|
|
3
|
+
import type { ICompileMarkConfig, IMark, IMarkProgressiveConfig, ILabelMark, ILineMark, ISymbolMark, ITextMark } from '../../mark/interface';
|
|
4
|
+
import type { DirectionType, IInvalidType, InterpolateType, Maybe, Datum, ILayoutRect } from '../../typings';
|
|
8
5
|
import type { ISeriesMarkInfo, ISeriesMarkInitOption, ISeriesTooltipHelper } from '../interface';
|
|
9
|
-
import type { ILabelSpec } from '../../component/label';
|
|
10
6
|
import type { DimensionEventParams } from '../../event/events/dimension';
|
|
11
|
-
import type { ILabelMark } from '../../mark/label';
|
|
12
|
-
import type { Functional } from '@visactor/vrender-components';
|
|
13
7
|
import type { IRegion } from '../../region/interface';
|
|
14
8
|
import type { SeriesData } from '../base/series-data';
|
|
15
|
-
|
|
16
|
-
line?: Partial<IMarkTheme<ILineMarkSpec>>;
|
|
17
|
-
point?: Partial<IMarkTheme<ISymbolMarkSpec>> & {
|
|
18
|
-
visibleInActive?: boolean;
|
|
19
|
-
};
|
|
20
|
-
label?: Partial<ILineLikeLabelSpec>;
|
|
21
|
-
}
|
|
22
|
-
export type ILineLikeLabelSpec = Omit<ILabelSpec, 'position'> & {
|
|
23
|
-
position?: Functional<'top' | 'bottom' | 'left' | 'right' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center'>;
|
|
24
|
-
};
|
|
9
|
+
import type { ILineLikeSeriesTheme } from './interface';
|
|
25
10
|
export interface LineLikeSeriesMixin extends ISeries {
|
|
26
11
|
_spec: any;
|
|
27
12
|
_option: ISeriesOption;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { SVGParsedElement, SVGParserResult } from '@visactor/vdataset';
|
|
2
|
-
import { PanEventParam, ZoomEventParam } from '../../core';
|
|
2
|
+
import type { PanEventParam, ZoomEventParam } from '../../core';
|
|
3
3
|
import { GeoSeries } from '../geo/geo';
|
|
4
|
-
import { ISeriesSeriesInfo, SeriesMarkMap
|
|
4
|
+
import type { ISeriesSeriesInfo, SeriesMarkMap } from '../interface';
|
|
5
|
+
import { SeriesTypeEnum } from '../interface';
|
|
5
6
|
import type { IPictogramSeriesSpec } from './interface';
|
|
6
|
-
import { GroupMark } from '../../mark';
|
|
7
|
+
import type { GroupMark } from '../../mark';
|
|
7
8
|
import { PictogramSeriesSpecTransformer } from './pictogram-transformer';
|
|
8
|
-
import { IMatrix } from '@visactor/vutils';
|
|
9
|
+
import type { IMatrix } from '@visactor/vutils';
|
|
9
10
|
import type { Datum } from '../../typings';
|
|
10
11
|
import type { Group } from '@visactor/vrender-core';
|
|
11
|
-
import { IHoverSpec, ISelectSpec } from '../../interaction/interface';
|
|
12
|
+
import type { IHoverSpec, ISelectSpec } from '../../interaction/interface';
|
|
12
13
|
import { STATE_VALUE_ENUM } from '../../compile/mark';
|
|
13
|
-
import { EventType } from '@visactor/vgrammar-core';
|
|
14
|
-
import { IMark } from '../../mark/interface';
|
|
14
|
+
import type { EventType } from '@visactor/vgrammar-core';
|
|
15
|
+
import type { IMark } from '../../mark/interface';
|
|
15
16
|
import type { IPoint } from '../../typings/coordinate';
|
|
16
17
|
export interface SVGParsedElementExtend extends SVGParsedElement {
|
|
17
18
|
_finalAttributes: Record<string, any>;
|
|
@@ -3,7 +3,7 @@ import type { IArcSeries, SeriesMarkMap } from '../../interface';
|
|
|
3
3
|
import { SeriesMarkNameEnum, SeriesTypeEnum } from '../../interface/type';
|
|
4
4
|
import type { IPie3dSeriesSpec } from '../interface';
|
|
5
5
|
import { BasePieSeries } from '../pie';
|
|
6
|
-
import type { ITextMark } from '../../../mark/
|
|
6
|
+
import type { ITextMark } from '../../../mark/interface';
|
|
7
7
|
export declare class Pie3dSeries<T extends IPie3dSeriesSpec = IPie3dSeriesSpec> extends BasePieSeries<T> implements IArcSeries {
|
|
8
8
|
static readonly type: string;
|
|
9
9
|
type: SeriesTypeEnum;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { IElement, IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
2
|
import { AnimationStateEnum } from '../../../animation/interface';
|
|
3
3
|
import type { Datum } from '../../../typings';
|
|
4
|
-
|
|
5
|
-
growField?: 'angle' | 'radius';
|
|
6
|
-
growFrom: (datum: Datum, element: IElement, state: AnimationStateEnum) => number;
|
|
7
|
-
}
|
|
8
|
-
export type PieAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';
|
|
4
|
+
import type { IPieAnimationParams, PieAppearPreset } from '../interface';
|
|
9
5
|
export declare function pieGrowOption(pieParams: IPieAnimationParams, isOverall: boolean, state: AnimationStateEnum): (datum: Datum, element: IElement, params: AnimationStateEnum) => {
|
|
10
6
|
overall: number;
|
|
11
7
|
} | {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { IAnimationTimeline, IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
import type { IArcMark } from '../../../mark/
|
|
3
|
-
export type ICenterOffsetAnimationOptions = {
|
|
4
|
-
distance?: number;
|
|
5
|
-
};
|
|
2
|
+
import type { IArcMark } from '../../../mark/interface';
|
|
6
3
|
export declare function centerOffsetConfig(mark: IArcMark, originalConfig: IAnimationTypeConfig): IAnimationTimeline;
|
|
@@ -3,11 +3,18 @@ import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
|
3
3
|
import type { IArcMarkSpec, ITextMarkSpec, IArc3dMarkSpec, ILineMarkSpec } from '../../typings/visual';
|
|
4
4
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
5
|
import type { IPolarSeriesSpec, IPolarSeriesTheme } from '../polar/interface';
|
|
6
|
-
import type {
|
|
7
|
-
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label';
|
|
6
|
+
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label/interface';
|
|
8
7
|
import type { ICustomPath2D, ILineGraphicAttribute, ITextGraphicAttribute } from '@visactor/vrender-core';
|
|
9
8
|
import type { ILayoutRect, IPercent } from '../../typings/layout';
|
|
10
9
|
import type { IPointLike } from '@visactor/vutils';
|
|
10
|
+
import type { AnimationStateEnum } from '../../animation/interface';
|
|
11
|
+
import type { IElement } from '@visactor/vgrammar-core';
|
|
12
|
+
import type { Datum } from '../../typings/common';
|
|
13
|
+
export interface IPieAnimationParams {
|
|
14
|
+
growField?: 'angle' | 'radius';
|
|
15
|
+
growFrom: (datum: Datum, element: IElement, state: AnimationStateEnum) => number;
|
|
16
|
+
}
|
|
17
|
+
export type PieAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';
|
|
11
18
|
export type PieMarks = 'pie' | 'label' | 'labelLine';
|
|
12
19
|
export type IBasePieSeriesSpec = Omit<IPieSeriesSpec, 'type'> & {
|
|
13
20
|
type: string;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { IPoint, Datum, StateValueType } from '../../typings';
|
|
2
2
|
import type { IModelLayoutOption } from '../../model/interface';
|
|
3
3
|
import { PolarSeries } from '../polar/polar';
|
|
4
|
-
import type { IMark } from '../../mark/interface';
|
|
4
|
+
import type { IArcMark, IMark, IPathMark, ITextMark } from '../../mark/interface';
|
|
5
5
|
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
6
|
-
import type { IArcMark } from '../../mark/arc';
|
|
7
|
-
import type { ITextMark } from '../../mark/text';
|
|
8
|
-
import type { IPathMark } from '../../mark/path';
|
|
9
6
|
import type { IArcSeries, SeriesMarkMap } from '../interface';
|
|
10
7
|
import { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';
|
|
11
8
|
import type { IBasePieSeriesSpec, IPieSeriesSpec } from './interface';
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
3
|
-
export interface IProgressLikeAnimationParams {
|
|
4
|
-
startAngle?: number;
|
|
5
|
-
}
|
|
2
|
+
import type { IProgressLikeAnimationParams, ProgressLikeAppearPreset } from './interface';
|
|
6
3
|
export declare function progressLikePresetAnimation(params: IProgressLikeAnimationParams, preset: ProgressLikeAppearPreset): IAnimationTypeConfig;
|
|
7
4
|
export declare const registerProgressLikeAnimation: () => void;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { IArcMarkSpec, IMarkSpec, IMarkTheme } from '../../../typings';
|
|
2
2
|
import type { IPolarSeriesSpec, IPolarSeriesTheme } from '../interface';
|
|
3
|
+
export type ProgressLikeAppearPreset = 'grow' | 'fadeIn';
|
|
4
|
+
export interface IProgressLikeAnimationParams {
|
|
5
|
+
startAngle?: number;
|
|
6
|
+
}
|
|
3
7
|
export interface IContinuousTickData {
|
|
4
8
|
index?: number;
|
|
5
9
|
value: number;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { Datum } from '@visactor/vgrammar-core';
|
|
2
|
-
import type { IMarkStyle } from '../../../mark/interface';
|
|
2
|
+
import type { IGroupMark, IMarkStyle } from '../../../mark/interface';
|
|
3
3
|
import type { ConvertToMarkStyleSpec, ICommonSpec } from '../../../typings';
|
|
4
4
|
import { PolarSeries } from '../polar';
|
|
5
5
|
import type { IContinuousTickData, IProgressLikeSeriesSpec } from './interface';
|
|
6
6
|
import type { IPolarAxis } from '../../../component/axis';
|
|
7
|
-
import type { IGroupMark } from '../../../mark/group';
|
|
8
7
|
import type { SeriesMarkMap } from '../../interface';
|
|
9
8
|
export declare abstract class ProgressLikeSeries<T extends IProgressLikeSeriesSpec> extends PolarSeries<T> {
|
|
10
9
|
static readonly mark: SeriesMarkMap;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { IAnimationSpec } from '../../../animation/spec';
|
|
2
2
|
import type { IMarkSpec, IMarkTheme } from '../../../typings/spec/common';
|
|
3
|
-
import type { ProgressLikeAppearPreset } from '../../polar/progress-like/animation';
|
|
4
3
|
import type { IProgressSeriesSpec } from '../interface';
|
|
5
|
-
import type { IProgressLikeSeriesSpec, IProgressLikeSeriesTheme } from '../../polar/progress-like/interface';
|
|
4
|
+
import type { IProgressLikeSeriesSpec, IProgressLikeSeriesTheme, ProgressLikeAppearPreset } from '../../polar/progress-like/interface';
|
|
6
5
|
import type { SeriesMarkNameEnum } from '../../interface/type';
|
|
7
6
|
import type { IArcMarkSpec } from '../../../typings';
|
|
8
7
|
export type CircularProgressMarks = 'progress' | 'track';
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
import type {
|
|
3
|
-
export interface ILinearProgressAnimationParams {
|
|
4
|
-
direction: DirectionType;
|
|
5
|
-
}
|
|
6
|
-
export type LinearProgressAppearPreset = 'grow' | 'fadeIn';
|
|
2
|
+
import type { ILinearProgressAnimationParams, LinearProgressAppearPreset } from './interface';
|
|
7
3
|
export declare const linearProgressDisappear: (params: ILinearProgressAnimationParams) => IAnimationTypeConfig;
|
|
8
4
|
export declare const Appear_FadeIn: IAnimationTypeConfig;
|
|
9
5
|
export declare function linearProgressPresetAnimation(params: ILinearProgressAnimationParams, preset: LinearProgressAppearPreset | boolean): IAnimationTypeConfig;
|
|
@@ -4,7 +4,10 @@ import type { IMarkSpec, IMarkTheme } from '../../../typings/spec/common';
|
|
|
4
4
|
import type { IRectMarkSpec } from '../../../typings/visual';
|
|
5
5
|
import type { SeriesMarkNameEnum } from '../../interface/type';
|
|
6
6
|
import type { IProgressSeriesSpec } from '../interface';
|
|
7
|
-
|
|
7
|
+
export interface ILinearProgressAnimationParams {
|
|
8
|
+
direction: DirectionType;
|
|
9
|
+
}
|
|
10
|
+
export type LinearProgressAppearPreset = 'grow' | 'fadeIn';
|
|
8
11
|
export interface ILinearProgressSeriesSpec extends IProgressSeriesSpec, IAnimationSpec<string, LinearProgressAppearPreset> {
|
|
9
12
|
type: 'linearProgress';
|
|
10
13
|
xField: string | string[];
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import type { Datum, IAnimationTypeConfig, IElement } from '@visactor/vgrammar-core';
|
|
2
|
-
import type {
|
|
3
|
-
export interface IRadarAnimationParams {
|
|
4
|
-
center: () => Maybe<IPoint>;
|
|
5
|
-
radius: () => number;
|
|
6
|
-
startAngle: number;
|
|
7
|
-
}
|
|
8
|
-
export type RadarAppearPreset = 'grow' | 'fadeIn' | 'clipIn';
|
|
2
|
+
import type { IRadarAnimationParams, RadarAppearPreset } from './interface';
|
|
9
3
|
export declare const radarFadeAnimation: (animationType: 'in' | 'out') => {
|
|
10
4
|
type: string;
|
|
11
5
|
};
|
|
12
6
|
export declare const radarGrowAnimation: (params: IRadarAnimationParams, animationType: 'in' | 'out') => {
|
|
13
7
|
type: string;
|
|
14
8
|
options: () => {
|
|
15
|
-
center: IPoint;
|
|
9
|
+
center: import("../../typings").IPoint;
|
|
16
10
|
};
|
|
17
11
|
};
|
|
18
12
|
export declare function radarPresetAnimation(params: IRadarAnimationParams, preset: RadarAppearPreset, animationType: 'in' | 'out'): {
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
2
|
-
import { IMultiLabelSpec } from '../../component/label';
|
|
2
|
+
import type { IMultiLabelSpec } from '../../component/label/interface';
|
|
3
3
|
import type { IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
4
|
+
import type { Maybe } from '../../typings/common';
|
|
5
|
+
import type { IPoint } from '../../typings/coordinate';
|
|
4
6
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
5
7
|
import type { IAreaMarkSpec, ILineMarkSpec, ISymbolMarkSpec } from '../../typings/visual';
|
|
6
8
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
7
|
-
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/
|
|
8
|
-
import type { IRoseLikeSeriesSpec, IRoseLikeSeriesTheme } from '../polar/rose-like';
|
|
9
|
-
|
|
9
|
+
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/interface';
|
|
10
|
+
import type { IRoseLikeSeriesSpec, IRoseLikeSeriesTheme } from '../polar/rose-like/interface';
|
|
11
|
+
export interface IRadarAnimationParams {
|
|
12
|
+
center: () => Maybe<IPoint>;
|
|
13
|
+
radius: () => number;
|
|
14
|
+
startAngle: number;
|
|
15
|
+
}
|
|
16
|
+
export type RadarAppearPreset = 'grow' | 'fadeIn' | 'clipIn';
|
|
10
17
|
type RadarMarks = 'point' | 'line' | 'area';
|
|
11
18
|
export interface IRadarSeriesSpec extends IRoseLikeSeriesSpec, IAnimationSpec<RadarMarks, RadarAppearPreset>, IMarkProgressiveConfig, IMarkOverlap {
|
|
12
19
|
type: 'radar';
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import type { DirectionType } from '../../typings';
|
|
2
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
-
|
|
4
|
-
direction: DirectionType;
|
|
5
|
-
}
|
|
6
|
-
export type RangeColumnAppearPreset = 'fadeIn' | 'grow';
|
|
2
|
+
import type { IRangeColumnAnimationParams, RangeColumnAppearPreset } from './interface';
|
|
7
3
|
export declare const rangeColumnGrowIn: (params: IRangeColumnAnimationParams) => IAnimationTypeConfig;
|
|
8
4
|
export declare const rangeColumnGrowOut: (params: IRangeColumnAnimationParams) => IAnimationTypeConfig;
|
|
9
5
|
export declare function rangeColumnPresetAnimation(params: IRangeColumnAnimationParams, preset: RangeColumnAppearPreset): IAnimationTypeConfig;
|
|
@@ -3,9 +3,13 @@ import type { ICartesianSeriesTheme } from '../cartesian/interface';
|
|
|
3
3
|
import type { IFormatMethod, IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
4
4
|
import type { IPositionedTextMarkSpec, IRectMarkSpec, ITextMarkSpec } from '../../typings/visual';
|
|
5
5
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
6
|
-
import type {
|
|
7
|
-
import type { ILabelSpec } from '../../component/label';
|
|
6
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
8
7
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
8
|
+
import type { DirectionType } from '../../typings/space';
|
|
9
|
+
export interface IRangeColumnAnimationParams {
|
|
10
|
+
direction: DirectionType;
|
|
11
|
+
}
|
|
12
|
+
export type RangeColumnAppearPreset = 'fadeIn' | 'grow';
|
|
9
13
|
export declare const enum PositionEnum {
|
|
10
14
|
middle = "middle",
|
|
11
15
|
start = "start",
|
|
@@ -2,9 +2,9 @@ import { BarSeries } from '../bar/bar';
|
|
|
2
2
|
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
3
3
|
import type { SeriesMarkMap } from '../interface';
|
|
4
4
|
import { SeriesTypeEnum } from '../interface/type';
|
|
5
|
-
import type { ITextMark } from '../../mark/text';
|
|
6
5
|
import type { Datum } from '../../typings';
|
|
7
6
|
import type { IRangeColumnSeriesSpec } from './interface';
|
|
7
|
+
import type { ITextMark } from '../../mark/interface';
|
|
8
8
|
export declare const DefaultBandWidth = 6;
|
|
9
9
|
export declare class RangeColumnSeries<T extends IRangeColumnSeriesSpec = IRangeColumnSeriesSpec> extends BarSeries<any> {
|
|
10
10
|
static readonly type: string;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
3
|
-
innerRadius: () => number;
|
|
4
|
-
growField?: 'angle' | 'radius';
|
|
5
|
-
}
|
|
6
|
-
export type RoseAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';
|
|
2
|
+
import type { IRoseAnimationParams, RoseAppearPreset } from './interface';
|
|
7
3
|
export declare const Appear_Grow: (params: IRoseAnimationParams) => IAnimationTypeConfig;
|
|
8
4
|
export declare const Appear_FadeIn: IAnimationTypeConfig;
|
|
9
5
|
export declare const roseEnter: (params: IRoseAnimationParams) => IAnimationTypeConfig;
|
|
@@ -2,10 +2,9 @@ import type { IAnimationSpec } from '../../animation/spec';
|
|
|
2
2
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec';
|
|
3
3
|
import type { IArcMarkSpec } from '../../typings/visual';
|
|
4
4
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
|
-
import type { IRoseLikeSeriesSpec, IRoseLikeSeriesTheme } from '../polar/rose-like';
|
|
6
|
-
import type { RoseAppearPreset } from './animation';
|
|
5
|
+
import type { IRoseLikeSeriesSpec, IRoseLikeSeriesTheme } from '../polar/rose-like/interface';
|
|
7
6
|
import type { IArcLabelSpec } from '../pie/interface';
|
|
8
|
-
import { IMultiLabelSpec } from '../../component/label';
|
|
7
|
+
import type { IMultiLabelSpec } from '../../component/label/interface';
|
|
9
8
|
export type RoseMarks = 'rose';
|
|
10
9
|
export interface IRoseSeriesSpec extends IRoseLikeSeriesSpec, IAnimationSpec<RoseMarks, RoseAppearPreset> {
|
|
11
10
|
type: 'rose';
|
|
@@ -18,3 +17,8 @@ export interface IRoseSeriesTheme extends IRoseLikeSeriesTheme {
|
|
|
18
17
|
[SeriesMarkNameEnum.rose]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
19
18
|
[SeriesMarkNameEnum.label]?: IArcLabelSpec;
|
|
20
19
|
}
|
|
20
|
+
export interface IRoseAnimationParams {
|
|
21
|
+
innerRadius: () => number;
|
|
22
|
+
growField?: 'angle' | 'radius';
|
|
23
|
+
}
|
|
24
|
+
export type RoseAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';
|
|
@@ -2,9 +2,7 @@ import type { SeriesMarkMap } from '../interface';
|
|
|
2
2
|
import { SeriesTypeEnum } from '../interface/type';
|
|
3
3
|
import type { IRoseSeriesSpec } from './interface';
|
|
4
4
|
import { RoseLikeSeries } from '../polar/rose-like';
|
|
5
|
-
import type { ITextMark } from '../../mark/
|
|
6
|
-
import type { IMark } from '../../mark/interface';
|
|
7
|
-
import type { ILabelMark } from '../../mark/label';
|
|
5
|
+
import type { ILabelMark, IMark, ITextMark } from '../../mark/interface';
|
|
8
6
|
import { RoseSeriesSpecTransformer } from './rose-transformer';
|
|
9
7
|
export declare const DefaultBandWidth = 0.5;
|
|
10
8
|
export declare class RoseSeries<T extends IRoseSeriesSpec = IRoseSeriesSpec> extends RoseLikeSeries<T> {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
import type {
|
|
3
|
-
export type SankeyMark = 'node' | 'link' | 'label';
|
|
4
|
-
export type SankeyAppearPreset = 'growIn' | 'fadeIn';
|
|
5
|
-
export interface ISankeyAnimationParams {
|
|
6
|
-
direction: DirectionType;
|
|
7
|
-
growFrom: () => number;
|
|
8
|
-
}
|
|
2
|
+
import type { ISankeyAnimationParams, SankeyAppearPreset } from './interface';
|
|
9
3
|
export declare const sankeyGrowIn: (params: ISankeyAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
10
4
|
export declare const sankeyGrowOut: (params: ISankeyAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
11
5
|
export declare const sankeyNodePresetAnimation: (params: ISankeyAnimationParams, preset: SankeyAppearPreset) => IAnimationTypeConfig;
|
|
@@ -2,9 +2,14 @@ import type { ISeriesSpec, DirectionType, IMarkTheme } from '../../typings';
|
|
|
2
2
|
import type { IMarkSpec } from '../../typings/spec/common';
|
|
3
3
|
import type { IRectMarkSpec, ILinkPathMarkSpec } from '../../typings/visual';
|
|
4
4
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
-
import type { SankeyAppearPreset, SankeyMark } from './animation';
|
|
6
5
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
7
|
-
import type { ILabelSpec } from '../../component/label';
|
|
6
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
7
|
+
export type SankeyMark = 'node' | 'link' | 'label';
|
|
8
|
+
export type SankeyAppearPreset = 'growIn' | 'fadeIn';
|
|
9
|
+
export interface ISankeyAnimationParams {
|
|
10
|
+
direction: DirectionType;
|
|
11
|
+
growFrom: () => number;
|
|
12
|
+
}
|
|
8
13
|
export type ISankeyLabelSpec = ILabelSpec & {
|
|
9
14
|
position?: 'outside' | 'inside-start' | 'inside-middle' | 'inside-end' | 'left' | 'right';
|
|
10
15
|
limit?: number;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
2
2
|
import type { SeriesMarkMap } from '../interface';
|
|
3
3
|
import { SeriesTypeEnum } from '../interface/type';
|
|
4
|
-
import type { ITextMark } from '../../mark/text';
|
|
5
4
|
import type { Datum, StringOrNumber } from '../../typings';
|
|
6
5
|
import { SeriesData } from '../base/series-data';
|
|
7
6
|
import type { ISankeySeriesSpec } from './interface';
|
|
8
7
|
import type { ExtendEventParam } from '../../event/interface';
|
|
9
8
|
import type { IElement, IGlyphElement, IMark as IVgrammarMark } from '@visactor/vgrammar-core';
|
|
10
|
-
import type { IMark } from '../../mark/interface';
|
|
9
|
+
import type { IMark, ITextMark } from '../../mark/interface';
|
|
11
10
|
import { SankeySeriesSpecTransformer } from './sankey-transformer';
|
|
12
11
|
import type { ILabelSpec } from '../../component';
|
|
13
12
|
export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> extends CartesianSeries<T> {
|
|
@@ -27,7 +26,7 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
|
|
|
27
26
|
private _colorScale;
|
|
28
27
|
private _nodeList;
|
|
29
28
|
private _needClear;
|
|
30
|
-
get direction(): "
|
|
29
|
+
get direction(): "vertical" | "horizontal";
|
|
31
30
|
getCategoryField(): string;
|
|
32
31
|
setCategoryField(f: string): string;
|
|
33
32
|
protected _valueField: string;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
3
|
-
export type ScatterAppearPreset = 'scaleIn' | 'fadeIn';
|
|
4
|
-
export interface IScatterAnimationParams {
|
|
5
|
-
[key: string]: object;
|
|
6
|
-
}
|
|
2
|
+
import type { IScatterAnimationParams, ScatterAppearPreset } from './interface';
|
|
7
3
|
export declare const scatterPresetAnimation: (_params: IScatterAnimationParams, preset: ScatterAppearPreset) => IAnimationTypeConfig;
|
|
8
4
|
export declare const registerScatterAnimation: () => void;
|
|
@@ -2,11 +2,15 @@ import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/i
|
|
|
2
2
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
3
|
import type { ISymbolMarkSpec, IVisualSpecBase, ShapeType, FunctionType } from '../../typings';
|
|
4
4
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
-
import type { ScatterAppearPreset, ScatterMarks } from './animation';
|
|
6
5
|
import type { IMarkProgressiveConfig } from '../../mark/interface';
|
|
7
6
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
8
|
-
import type { ILineLikeLabelSpec } from '../mixin/
|
|
9
|
-
import { IMultiLabelSpec } from '../../component/label';
|
|
7
|
+
import type { ILineLikeLabelSpec } from '../mixin/interface';
|
|
8
|
+
import type { IMultiLabelSpec } from '../../component/label/interface';
|
|
9
|
+
export type ScatterMarks = 'point' | 'label';
|
|
10
|
+
export type ScatterAppearPreset = 'scaleIn' | 'fadeIn';
|
|
11
|
+
export interface IScatterAnimationParams {
|
|
12
|
+
[key: string]: object;
|
|
13
|
+
}
|
|
10
14
|
export interface IScatterSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<ScatterMarks, ScatterAppearPreset>, IMarkProgressiveConfig {
|
|
11
15
|
type: 'scatter';
|
|
12
16
|
xField?: string | string[];
|
|
@@ -4,8 +4,7 @@ import type { IScatterSeriesSpec } from './interface';
|
|
|
4
4
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
5
5
|
import type { SeriesMarkMap } from '../interface';
|
|
6
6
|
import { SeriesTypeEnum } from '../interface/type';
|
|
7
|
-
import type { ILabelMark } from '../../mark/
|
|
8
|
-
import type { IMark } from '../../mark/interface';
|
|
7
|
+
import type { ILabelMark, IMark } from '../../mark/interface';
|
|
9
8
|
import { ScatterSeriesSpecTransformer } from './scatter-transformer';
|
|
10
9
|
export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeriesSpec> extends CartesianSeries<T> {
|
|
11
10
|
static readonly type: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
2
2
|
import type { IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings/spec';
|
|
3
3
|
import type { SunburstLabelConfig } from '@visactor/vgrammar-hierarchy';
|
|
4
|
-
import type { SunburstAppearPreset, SunburstMark } from './animation';
|
|
4
|
+
import type { SunburstAppearPreset, SunburstMark } from './animation/interface';
|
|
5
5
|
import type { IArcMarkSpec, ITextMarkSpec } from '../../typings';
|
|
6
6
|
import type { IPolarSeriesTheme } from '../polar/interface';
|
|
7
7
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
@@ -36,7 +36,7 @@ export declare class SunburstSeries extends PolarSeries<any> {
|
|
|
36
36
|
protected initData(): void;
|
|
37
37
|
getStatisticFields(): {
|
|
38
38
|
key: string;
|
|
39
|
-
operations: ("
|
|
39
|
+
operations: ("min" | "max" | "values")[];
|
|
40
40
|
}[];
|
|
41
41
|
protected _addDataIndexAndKey(): void;
|
|
42
42
|
initMark(): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
3
|
-
export type TreemapAppearPreset = 'growIn' | 'fadeIn';
|
|
2
|
+
import type { TreemapAppearPreset } from './interface';
|
|
4
3
|
export declare const treemapPresetAnimation: (preset: TreemapAppearPreset) => IAnimationTypeConfig;
|
|
5
4
|
export declare const registerTreemapAnimation: () => void;
|
|
@@ -3,9 +3,10 @@ import type { IHierarchyData, IMarkSpec, IMarkTheme, ISeriesSpec } from '../../t
|
|
|
3
3
|
import type { TreemapOptions } from '@visactor/vgrammar-hierarchy';
|
|
4
4
|
import type { ICartesianSeriesTheme } from '../cartesian/interface';
|
|
5
5
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
6
|
-
import type { TreemapAppearPreset, TreemapMark } from './animation';
|
|
7
6
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
8
|
-
import { ILabelSpec } from '../../component';
|
|
7
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
8
|
+
export type TreemapMark = 'leaf' | 'nonLeaf';
|
|
9
|
+
export type TreemapAppearPreset = 'growIn' | 'fadeIn';
|
|
9
10
|
export interface ITreemapSeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimationSpec<TreemapMark, TreemapAppearPreset> {
|
|
10
11
|
type: 'treemap';
|
|
11
12
|
categoryField: string;
|