@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
package/types/mark/symbol.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { ISymbolMarkSpec } from '../typings/visual';
|
|
2
2
|
import { BaseMark } from './base/base-mark';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IMarkStyle, ISymbolMark } from './interface';
|
|
4
4
|
import { MarkTypeEnum } from './interface/type';
|
|
5
|
-
export type ISymbolMark = IMarkRaw<ISymbolMarkSpec>;
|
|
6
5
|
export declare class BaseSymbolMark<T extends ISymbolMarkSpec> extends BaseMark<T> {
|
|
7
6
|
protected _getDefaultStyle(): IMarkStyle<T>;
|
|
8
7
|
}
|
package/types/mark/text.d.ts
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import type { IComposedTextMarkSpec } from '../typings/visual';
|
|
2
2
|
import { BaseMark } from './base/base-mark';
|
|
3
|
-
import type { IMarkOption,
|
|
3
|
+
import type { IMarkOption, IMarkStyle } from './interface';
|
|
4
4
|
import { MarkTypeEnum } from './interface';
|
|
5
|
-
import {
|
|
6
|
-
export type ITextMark = IMarkRaw<IComposedTextMarkSpec> & {
|
|
7
|
-
getTextType: () => 'text' | 'rich';
|
|
8
|
-
};
|
|
9
|
-
export type ITextSpec<T> = IMarkSpec<T> & {
|
|
10
|
-
textType?: 'rich' | 'text';
|
|
11
|
-
};
|
|
5
|
+
import type { ITextMark, ITextSpec } from './interface/mark';
|
|
12
6
|
export declare class TextMark extends BaseMark<IComposedTextMarkSpec> implements ITextMark {
|
|
13
7
|
static readonly type = MarkTypeEnum.text;
|
|
14
8
|
readonly type = MarkTypeEnum.text;
|
|
@@ -3,25 +3,25 @@ import type { DataSet, DataView } from '@visactor/vdataset';
|
|
|
3
3
|
import type { IEvent, IEventDispatcher } from '../event/interface';
|
|
4
4
|
import type { IMark, IMarkRaw, IMarkStyle, MarkTypeEnum } from '../mark/interface';
|
|
5
5
|
import type { RenderMode } from '../typings/spec/common';
|
|
6
|
-
import type { VChart } from '../vchart-all';
|
|
7
6
|
import type { IData } from '@visactor/vgrammar-core';
|
|
8
7
|
import type { StringOrNumber } from '../typings/common';
|
|
9
8
|
import type { IGroupMarkSpec, ConvertToMarkStyleSpec, ICommonSpec } from '../typings/visual';
|
|
10
9
|
import type { IRect } from '../typings/space';
|
|
11
10
|
import type { IPoint, CoordinateType } from '../typings/coordinate';
|
|
12
|
-
import type { ITheme } from '../theme';
|
|
11
|
+
import type { ITheme } from '../theme/interface';
|
|
13
12
|
import type { StateValueType } from '../typings/spec';
|
|
14
13
|
import type { ICompilable, ICompilableInitOption } from '../compile/interface';
|
|
15
|
-
import type { ICompilableData } from '../compile/data';
|
|
14
|
+
import type { ICompilableData } from '../compile/data/interface';
|
|
16
15
|
import type { IGlobalScale } from '../scale/interface';
|
|
17
16
|
import type { IChart, IChartSpecInfo, IChartSpecTransformerOption } from '../chart/interface';
|
|
18
17
|
import type { IThemeColorScheme } from '../theme/color-scheme/interface';
|
|
19
18
|
import type { ILayoutItem, ILayoutItemSpec } from '../layout/interface';
|
|
20
19
|
import type { ILayoutPoint, ILayoutRect } from '../typings/layout';
|
|
21
20
|
import type { ComponentTypeEnum } from '../component/interface';
|
|
22
|
-
import type { SeriesTypeEnum } from '../series';
|
|
21
|
+
import type { SeriesTypeEnum } from '../series/interface';
|
|
23
22
|
import type { ITooltipSpec } from '../component/tooltip/interface';
|
|
24
23
|
import type { TooltipActiveType } from '../typings';
|
|
24
|
+
import type { IVChart } from '../core/interface';
|
|
25
25
|
export interface IModelInitOption {
|
|
26
26
|
}
|
|
27
27
|
export interface IModelLayoutOption {
|
|
@@ -106,7 +106,7 @@ export interface IModelOption extends ICompilableInitOption {
|
|
|
106
106
|
dataSet: DataSet;
|
|
107
107
|
map: Map<StringOrNumber, IModel | IMark>;
|
|
108
108
|
mode: RenderMode;
|
|
109
|
-
globalInstance:
|
|
109
|
+
globalInstance: IVChart;
|
|
110
110
|
regionIndexes?: Array<number>;
|
|
111
111
|
specKey?: string;
|
|
112
112
|
specPath?: Array<string | number>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IChartSpecInfo } from '../../chart/interface';
|
|
2
|
-
import type { IVChart } from '../../core';
|
|
3
|
-
import type { VChartRenderActionSource } from '../../core/interface';
|
|
2
|
+
import type { VChartRenderActionSource, IVChart } from '../../core/interface';
|
|
4
3
|
import type { IBasePlugin, IBasePluginService, MaybePromise } from '../base/interface';
|
|
5
4
|
export interface IChartPlugin<T extends IChartPluginService = any> extends IBasePlugin<T> {
|
|
6
5
|
specKey?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentTypeEnum } from '../../../../component/interface';
|
|
2
|
-
import type { IVChart } from '../../../../core';
|
|
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';
|
|
5
5
|
import type { IChartSpec } from '../../../../typings';
|
|
6
6
|
export interface IMediaQueryActionFilterResult<T extends Record<string, unknown> = any> {
|
|
7
7
|
isChart?: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Maybe, RenderMode } from '../../../typings';
|
|
2
2
|
import type { TooltipData, ITooltipActual, TooltipActiveType, ITooltipHandler, ITooltipPositionActual } from '../../../typings/tooltip';
|
|
3
3
|
import type { IGroup } from '@visactor/vrender-core';
|
|
4
|
-
import type { Compiler } from '../../../compile/compiler';
|
|
5
4
|
import type { IContainerSize } from '@visactor/vrender-components';
|
|
6
5
|
import type { IChartOption } from '../../../chart/interface';
|
|
7
6
|
import type { ITooltipSpec, Tooltip, TooltipHandlerParams } from '../../../component/tooltip';
|
|
@@ -9,6 +8,7 @@ import { TooltipResult } from '../../../component/tooltip';
|
|
|
9
8
|
import type { IComponentPlugin, IComponentPluginService } from '../interface';
|
|
10
9
|
import { BasePlugin } from '../../base/base-plugin';
|
|
11
10
|
import type { ITooltipHandlerOptions } from './interface';
|
|
11
|
+
import type { ICompiler } from '../../../compile/interface/compilable-item';
|
|
12
12
|
type ChangeTooltipFunc = (visible: boolean, params: TooltipHandlerParams, data?: TooltipData) => TooltipResult;
|
|
13
13
|
type ChangeTooltipPositionFunc = (params: TooltipHandlerParams, data: TooltipData) => TooltipResult;
|
|
14
14
|
export declare abstract class BaseTooltipHandler extends BasePlugin implements ITooltipHandler, IComponentPlugin {
|
|
@@ -19,10 +19,10 @@ export declare abstract class BaseTooltipHandler extends BasePlugin implements I
|
|
|
19
19
|
protected _option: ITooltipHandlerOptions;
|
|
20
20
|
protected _chartOption: IChartOption;
|
|
21
21
|
protected _env: RenderMode;
|
|
22
|
-
get env(): "
|
|
22
|
+
get env(): "node" | "desktop-browser" | "mobile-browser" | "worker" | "miniApp" | "wx" | "tt" | "harmony" | "desktop-miniApp" | "lynx";
|
|
23
23
|
protected _component: Tooltip;
|
|
24
24
|
protected _chartContainer: Maybe<HTMLElement>;
|
|
25
|
-
protected _compiler:
|
|
25
|
+
protected _compiler: ICompiler;
|
|
26
26
|
protected _container: Maybe<IGroup | HTMLElement>;
|
|
27
27
|
protected _isReleased: boolean;
|
|
28
28
|
onAdd(service: IComponentPluginService<any>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IMark } from '../mark/interface';
|
|
1
|
+
import type { IMark, IGroupMark } from '../mark/interface';
|
|
2
2
|
import type { ILayoutModel, IModelConstructor, IModelOption, IModelSpecInfo } from '../model/interface';
|
|
3
3
|
import type { ISeries, SeriesType } from '../series/interface';
|
|
4
4
|
import type { CoordinateType } from '../typings/coordinate';
|
|
@@ -6,7 +6,6 @@ import type { IInteraction } from '../interaction/interface';
|
|
|
6
6
|
import type { IProjectionSpec } from '../component/geo/interface';
|
|
7
7
|
import type { ConvertToMarkStyleSpec, IRectMarkSpec } from '../typings/visual';
|
|
8
8
|
import type { IAnimate } from '../animation/interface';
|
|
9
|
-
import type { IGroupMark } from '../mark/group';
|
|
10
9
|
import type { StringOrNumber } from '../typings';
|
|
11
10
|
import type { ILayoutItemSpec } from '../layout/interface';
|
|
12
11
|
export interface IRegion extends ILayoutModel {
|
package/types/region/region.d.ts
CHANGED
|
@@ -3,13 +3,12 @@ import type { ISeries } from '../series/interface';
|
|
|
3
3
|
import type { IModelOption } from '../model/interface';
|
|
4
4
|
import type { CoordinateType } from '../typings/coordinate';
|
|
5
5
|
import type { IRegion, IRegionSpec, IRegionSpecInfo } from './interface';
|
|
6
|
-
import type { IGroupMark } from '../mark/group';
|
|
7
6
|
import type { IInteraction, ITrigger } from '../interaction/interface';
|
|
8
|
-
import type { IRectMark } from '../mark/rect';
|
|
9
7
|
import type { IAnimate } from '../animation/interface';
|
|
10
8
|
import type { ILayoutType, StringOrNumber } from '../typings';
|
|
11
9
|
import { LayoutModel } from '../model/layout-model';
|
|
12
10
|
import { RegionSpecTransformer } from './region-transformer';
|
|
11
|
+
import type { IGroupMark, IRectMark } from '../mark/interface/mark';
|
|
13
12
|
export declare class Region<T extends IRegionSpec = IRegionSpec> extends LayoutModel<T> implements IRegion {
|
|
14
13
|
static type: string;
|
|
15
14
|
static readonly transformerConstructor: typeof RegionSpecTransformer;
|
|
@@ -3,7 +3,7 @@ import type { IBaseScale } from '@visactor/vscale';
|
|
|
3
3
|
import type { IChart } from '../chart/interface';
|
|
4
4
|
import type { IChartSpec } from '../typings/spec';
|
|
5
5
|
import type { IVisualScale, IVisualSpecScale } from '../typings';
|
|
6
|
-
import type { StatisticOperations } from '../data/transforms/
|
|
6
|
+
import type { StatisticOperations } from '../data/transforms/interface';
|
|
7
7
|
export declare class GlobalScale implements IGlobalScale {
|
|
8
8
|
private _scaleSpecMap;
|
|
9
9
|
private _scaleMap;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IBaseScale } from '@visactor/vscale';
|
|
2
|
-
import type { StatisticOperations } from '../data/transforms/
|
|
2
|
+
import type { StatisticOperations } from '../data/transforms/interface';
|
|
3
3
|
import type { IChartSpec, IVisualScale, IVisualSpecScale } from '../typings';
|
|
4
4
|
import type { IUpdateSpecResult } from '../model/interface';
|
|
5
5
|
export interface IGlobalScale {
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import type { DirectionType } from '../../typings';
|
|
2
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
-
|
|
4
|
-
direction: DirectionType;
|
|
5
|
-
}
|
|
6
|
-
export type AreaAppearPreset = 'clipIn' | 'fadeIn' | 'grow';
|
|
2
|
+
import type { AreaAppearPreset, IAreaAnimationParams } from './interface';
|
|
7
3
|
export declare function areaPresetAnimation(params: IAreaAnimationParams, preset: AreaAppearPreset | boolean): IAnimationTypeConfig;
|
|
8
4
|
export declare const registerAreaSeriesAnimation: () => void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { DataView } from '@visactor/vdataset';
|
|
2
2
|
import { LineLikeSeriesMixin } from '../mixin/line-mixin';
|
|
3
|
-
import type { IAreaMark } from '../../mark/area';
|
|
4
3
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
5
4
|
import type { Datum } from '../../typings';
|
|
6
5
|
import type { SeriesMarkMap } from '../interface';
|
|
7
6
|
import { SeriesTypeEnum } from '../interface/type';
|
|
8
7
|
import type { IAreaSeriesSpec } from './interface';
|
|
9
|
-
import type { IMark } from '../../mark/interface';
|
|
8
|
+
import type { IMark, IAreaMark } from '../../mark/interface';
|
|
10
9
|
import { AreaSeriesSpecTransformer } from './area-transformer';
|
|
11
10
|
export interface AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends Pick<LineLikeSeriesMixin, 'initLineMark' | 'initSymbolMark' | 'initLabelMarkStyle' | 'initLineMarkStyle' | 'initSymbolMarkStyle' | 'encodeDefined' | '_lineMark' | '_symbolMark' | 'addSamplingCompile' | 'addOverlapCompile' | 'reCompileSampling' | 'initLineLabelMarkStyle'>, CartesianSeries<T> {
|
|
12
11
|
}
|
|
@@ -2,12 +2,15 @@ import type { ICartesianSeriesSpec } from '../cartesian/interface';
|
|
|
2
2
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
3
|
import type { ISymbolMarkSpec, ILineMarkSpec, IAreaMarkSpec } from '../../typings/visual';
|
|
4
4
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
|
-
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/
|
|
5
|
+
import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/interface';
|
|
6
6
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
7
|
-
import type { AreaAppearPreset } from './animation';
|
|
8
7
|
import type { IDataSamping, IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
9
|
-
import type { ILabelSpec } from '../../component';
|
|
10
|
-
import type {
|
|
8
|
+
import type { IMultiLabelSpec, ILabelSpec } from '../../component/label/interface';
|
|
9
|
+
import type { DirectionType } from '../../typings/space';
|
|
10
|
+
export interface IAreaAnimationParams {
|
|
11
|
+
direction: DirectionType;
|
|
12
|
+
}
|
|
13
|
+
export type AreaAppearPreset = 'clipIn' | 'fadeIn' | 'grow';
|
|
11
14
|
export interface IAreaSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<string, AreaAppearPreset>, IMarkProgressiveConfig, IDataSamping, IMarkOverlap {
|
|
12
15
|
type: 'area';
|
|
13
16
|
xField?: string | string[];
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import type { DirectionType } from '../../typings';
|
|
2
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
3
|
-
|
|
4
|
-
xField: string;
|
|
5
|
-
yField: string;
|
|
6
|
-
direction: DirectionType;
|
|
7
|
-
growFrom: () => number;
|
|
8
|
-
}
|
|
9
|
-
export type BarAppearPreset = 'grow' | 'fadeIn' | 'scaleIn';
|
|
2
|
+
import type { BarAppearPreset, IBarAnimationParams } from './interface';
|
|
10
3
|
export declare const barGrowIn: (params: IBarAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
11
4
|
export declare const barGrowOut: (params: IBarAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
12
5
|
export declare function barPresetAnimation(params: IBarAnimationParams, preset: BarAppearPreset | boolean): IAnimationTypeConfig;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { IBaseScale } from '@visactor/vscale';
|
|
2
2
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
3
|
-
import type { IMark } from '../../mark/interface';
|
|
3
|
+
import type { IMark, IRectMark, ITextMark } from '../../mark/interface';
|
|
4
4
|
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
5
5
|
import type { Datum, DirectionType } from '../../typings';
|
|
6
6
|
import type { IBarSeriesSpec } from './interface';
|
|
7
7
|
import type { IAxisHelper } from '../../component/axis/cartesian/interface';
|
|
8
|
-
import type { IRectMark } from '../../mark/rect';
|
|
9
8
|
import type { IModelInitOption } from '../../model/interface';
|
|
10
|
-
import type { ITextMark } from '../../mark/text';
|
|
11
9
|
import type { SeriesMarkMap } from '../interface';
|
|
12
10
|
import { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';
|
|
13
11
|
import { SeriesData } from '../base/series-data';
|
|
@@ -2,15 +2,21 @@ import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/i
|
|
|
2
2
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
3
|
import type { IRect3dMarkSpec, IRectMarkSpec } from '../../typings/visual';
|
|
4
4
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
-
import type {
|
|
6
|
-
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label';
|
|
5
|
+
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label/interface';
|
|
7
6
|
import type { IDataSamping, IMarkProgressiveConfig } from '../../mark/interface';
|
|
8
7
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
9
8
|
import type { Functional } from '@visactor/vrender-components';
|
|
10
9
|
import type { IRectGraphicAttribute } from '@visactor/vrender-core';
|
|
11
|
-
import type { Datum } from '../../typings';
|
|
12
|
-
import type { ISeriesMarkAttributeContext } from '../../compile/mark';
|
|
10
|
+
import type { Datum, DirectionType } from '../../typings';
|
|
11
|
+
import type { ISeriesMarkAttributeContext } from '../../compile/mark/interface';
|
|
13
12
|
type BarMarks = 'bar';
|
|
13
|
+
export interface IBarAnimationParams {
|
|
14
|
+
xField: string;
|
|
15
|
+
yField: string;
|
|
16
|
+
direction: DirectionType;
|
|
17
|
+
growFrom: () => number;
|
|
18
|
+
}
|
|
19
|
+
export type BarAppearPreset = 'grow' | 'fadeIn' | 'scaleIn';
|
|
14
20
|
export type IStackCornerRadiusCallback = (attr: IRectGraphicAttribute, datum: Datum, ctx: ISeriesMarkAttributeContext) => number | number[];
|
|
15
21
|
export interface IBarSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<BarMarks, BarAppearPreset>, IMarkProgressiveConfig, IDataSamping {
|
|
16
22
|
type: 'bar';
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { DataView } from '@visactor/vdataset';
|
|
2
2
|
import type { DataSet, ITransformOptions } from '@visactor/vdataset';
|
|
3
3
|
import type { IRegion } from '../../region/interface';
|
|
4
|
-
import type { ICompileMarkConfig, IMark } from '../../mark/interface';
|
|
4
|
+
import type { ICompileMarkConfig, IGroupMark, IMark } from '../../mark/interface';
|
|
5
5
|
import type { CoordinateType, IInvalidType, IPoint, DataKeyType, Datum, Maybe, ISeriesSpec, IExtensionMarkSpec, IExtensionGroupMarkSpec, EnableMarkType, IGroup, ILayoutType, ILayoutPoint, ILayoutRect } from '../../typings';
|
|
6
6
|
import { BaseModel } from '../../model/base-model';
|
|
7
7
|
import type { ISeriesOption, ISeries, ISeriesMarkInitOption, ISeriesStackData, ISeriesTooltipHelper, SeriesMarkMap, ISeriesMarkInfo, ISeriesSpecInfo, ISeriesStackDataLeaf, ISeriesStackDataMeta, ISeriesSeriesInfo } from '../interface';
|
|
8
8
|
import type { IModelEvaluateOption, IModelRenderOption, IUpdateSpecResult } from '../../model/interface';
|
|
9
9
|
import type { AddVChartPropertyContext } from '../../data/transforms/add-property';
|
|
10
10
|
import type { IBaseInteractionSpec, IHoverSpec, ISelectSpec } from '../../interaction/interface';
|
|
11
|
-
import type { StatisticOperations } from '../../data/transforms/dimension-statistics';
|
|
12
11
|
import { SeriesData } from './series-data';
|
|
13
|
-
import type { IGroupMark } from '../../mark/group';
|
|
14
12
|
import type { ISeriesMarkAttributeContext } from '../../compile/mark';
|
|
15
13
|
import { STATE_VALUE_ENUM } from '../../compile/mark';
|
|
16
14
|
import { BaseSeriesSpecTransformer } from './base-series-transformer';
|
|
17
15
|
import type { EventType } from '@visactor/vgrammar-core';
|
|
18
16
|
import type { ILabelSpec } from '../../component/label/interface';
|
|
17
|
+
import type { StatisticOperations } from '../../data/transforms/interface';
|
|
19
18
|
export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> implements ISeries {
|
|
20
19
|
readonly specKey: string;
|
|
21
20
|
readonly type: string;
|
|
@@ -54,7 +54,7 @@ export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeries
|
|
|
54
54
|
protected initTooltip(): void;
|
|
55
55
|
getStatisticFields(): {
|
|
56
56
|
key: string;
|
|
57
|
-
operations: import("../../data/transforms/
|
|
57
|
+
operations: import("../../data/transforms/interface").StatisticOperations;
|
|
58
58
|
}[];
|
|
59
59
|
onEvaluateEnd(ctx: IModelEvaluateOption): void;
|
|
60
60
|
getDefaultShapeType(): string;
|
|
@@ -5,9 +5,9 @@ import type { IBaseScale } from '@visactor/vscale';
|
|
|
5
5
|
import type { IAxisHelper } from '../../component/axis/cartesian/interface';
|
|
6
6
|
import type { DirectionType } from '../../typings/space';
|
|
7
7
|
import type { Datum, StringOrNumber } from '../../typings';
|
|
8
|
-
import type { StatisticOperations } from '../../data/transforms/dimension-statistics';
|
|
9
8
|
import type { ICartesianSeriesSpec } from './interface';
|
|
10
9
|
import type { IAxisLocationCfg } from '../../component/axis';
|
|
10
|
+
import type { StatisticOperations } from '../../data/transforms/interface';
|
|
11
11
|
export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = ICartesianSeriesSpec> extends BaseSeries<T> implements ICartesianSeries {
|
|
12
12
|
readonly coordinate: 'cartesian';
|
|
13
13
|
protected _bandPosition: number;
|
|
@@ -31,7 +31,7 @@ export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = I
|
|
|
31
31
|
protected _specXField: string[];
|
|
32
32
|
protected _specYField: string[];
|
|
33
33
|
protected _direction: DirectionType;
|
|
34
|
-
get direction(): "
|
|
34
|
+
get direction(): "vertical" | "horizontal";
|
|
35
35
|
protected _scaleX: IBaseScale;
|
|
36
36
|
get scaleX(): IBaseScale;
|
|
37
37
|
setScaleX(s: IBaseScale): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ISeriesSpec } from '../../typings/spec/common';
|
|
2
2
|
import type { DirectionType } from '../../typings';
|
|
3
|
-
import type { ILabelSpec } from '../../component/label';
|
|
3
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
4
4
|
export interface ICartesianSeriesSpec extends ISeriesSpec {
|
|
5
5
|
direction?: DirectionType;
|
|
6
6
|
xField?: string | string[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
3
|
-
export type CirclePackingAppearPreset = 'growIn' | 'fadeIn';
|
|
2
|
+
import type { CirclePackingAppearPreset } from './interface';
|
|
4
3
|
export declare const circlePackingPresetAnimation: (preset: CirclePackingAppearPreset) => IAnimationTypeConfig;
|
|
5
4
|
export declare const registerCirclePackingAnimation: () => void;
|
|
@@ -33,7 +33,7 @@ export declare class CirclePackingSeries<T extends ICirclePackingSeriesSpec = IC
|
|
|
33
33
|
private _initLabelMarkStyle;
|
|
34
34
|
getStatisticFields(): {
|
|
35
35
|
key: string;
|
|
36
|
-
operations: import("../../data/transforms/
|
|
36
|
+
operations: import("../../data/transforms/interface").StatisticOperations;
|
|
37
37
|
}[];
|
|
38
38
|
protected initTooltip(): void;
|
|
39
39
|
initAnimation(): void;
|
|
@@ -2,7 +2,8 @@ import type { IAnimationSpec } from '../../animation/spec';
|
|
|
2
2
|
import type { IArcMarkSpec, ITextMarkSpec, IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings';
|
|
3
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
4
|
import type { IPolarSeriesTheme } from '../polar/interface';
|
|
5
|
-
|
|
5
|
+
export type CirclePackingMark = 'leaf' | 'nonLeaf' | 'label' | 'nonLeafLabel';
|
|
6
|
+
export type CirclePackingAppearPreset = 'growIn' | 'fadeIn';
|
|
6
7
|
export interface ICirclePackingSeriesSpec extends ISeriesSpec, IAnimationSpec<CirclePackingMark, CirclePackingAppearPreset> {
|
|
7
8
|
type: 'circlePacking';
|
|
8
9
|
categoryField: string;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
3
|
-
export type CorrelationAppearPreset = 'scaleIn' | 'fadeIn';
|
|
4
|
-
export interface ICorrelationAnimationParams {
|
|
5
|
-
[key: string]: object;
|
|
6
|
-
}
|
|
2
|
+
import type { CorrelationAppearPreset, ICorrelationAnimationParams } from './interface';
|
|
7
3
|
export declare const correlationPresetAnimation: (_params: ICorrelationAnimationParams, preset: CorrelationAppearPreset) => IAnimationTypeConfig;
|
|
8
4
|
export declare const registerCorrelationAnimation: () => void;
|
|
@@ -4,8 +4,7 @@ import { SeriesTypeEnum } from '../interface/type';
|
|
|
4
4
|
import type { SeriesMarkMap } from '../interface';
|
|
5
5
|
import { SeriesData } from '../base/series-data';
|
|
6
6
|
import type { AdaptiveSpec } from '../../typings';
|
|
7
|
-
import type { ILabelMark } from '../../mark/
|
|
8
|
-
import type { IMark } from '../../mark/interface';
|
|
7
|
+
import type { ILabelMark, IMark } from '../../mark/interface';
|
|
9
8
|
import { CorrelationSeriesSpecTransformer } from './correlation-transformer';
|
|
10
9
|
export declare class CorrelationSeries<T extends ICorrelationSeriesSpec = ICorrelationSeriesSpec> extends PolarSeries<AdaptiveSpec<T, 'outerRadius' | 'innerRadius'>> {
|
|
11
10
|
static readonly type: string;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type { IMarkTheme, IMarkSpec } from '../../typings';
|
|
2
|
-
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label';
|
|
3
|
-
import type { ISymbolMarkSpec, IRippleMarkSpec } from '../../typings';
|
|
1
|
+
import type { IMarkTheme, IMarkSpec, ISymbolMarkSpec, IRippleMarkSpec } from '../../typings';
|
|
2
|
+
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label/interface';
|
|
4
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
4
|
import type { IPolarSeriesSpec } from '../polar/interface';
|
|
6
5
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
7
|
-
|
|
6
|
+
export type CorrelationMarks = 'point' | 'label';
|
|
7
|
+
export type CorrelationAppearPreset = 'scaleIn' | 'fadeIn';
|
|
8
|
+
export interface ICorrelationAnimationParams {
|
|
9
|
+
[key: string]: object;
|
|
10
|
+
}
|
|
8
11
|
export interface ICorrelationSeriesSpec extends Omit<IPolarSeriesSpec, 'innerRadius' | 'outerRadius'>, IAnimationSpec<CorrelationMarks, CorrelationAppearPreset> {
|
|
9
12
|
type: 'correlation';
|
|
10
13
|
categoryField: string;
|
|
@@ -63,7 +63,7 @@ export declare class DotSeries<T extends IDotSeriesSpec = IDotSeriesSpec> extend
|
|
|
63
63
|
protected initTooltip(): void;
|
|
64
64
|
onEvaluateEnd(ctx: IModelEvaluateOption): void;
|
|
65
65
|
protected onMarkTreePositionUpdate(marks: IMark[]): void;
|
|
66
|
-
getDotData(): import("../../compile/mark
|
|
66
|
+
getDotData(): import("../../compile/mark").IMarkData;
|
|
67
67
|
protected _getDataIdKey(): any;
|
|
68
68
|
getStackValueField(): string;
|
|
69
69
|
getActiveMarks(): IMark[];
|
|
@@ -4,7 +4,7 @@ import { SeriesTypeEnum, SeriesMarkNameEnum } from '../../interface/type';
|
|
|
4
4
|
import { FunnelSeries } from '../funnel';
|
|
5
5
|
import type { IFunnel3dSeriesSpec } from '../interface';
|
|
6
6
|
import type { AdaptiveSpec } from '../../../typings';
|
|
7
|
-
import type { ILabelMark } from '../../../mark/
|
|
7
|
+
import type { ILabelMark } from '../../../mark/interface';
|
|
8
8
|
export declare class Funnel3dSeries<T extends IFunnel3dSeriesSpec = IFunnel3dSeriesSpec> extends FunnelSeries<AdaptiveSpec<T, 'type'>> {
|
|
9
9
|
static readonly type: string;
|
|
10
10
|
type: SeriesTypeEnum;
|
|
@@ -2,15 +2,11 @@ import type { IFunnelSeries, SeriesMarkMap } from '../interface';
|
|
|
2
2
|
import { SeriesMarkNameEnum } from '../interface/type';
|
|
3
3
|
import type { IOrientType, Datum, StringOrNumber } from '../../typings';
|
|
4
4
|
import { SeriesTypeEnum } from '../interface/type';
|
|
5
|
-
import type { IPolygonMark } from '../../mark/polygon/polygon';
|
|
6
5
|
import { BaseSeries } from '../base/base-series';
|
|
7
|
-
import type { IMark } from '../../mark/interface';
|
|
6
|
+
import type { ILabelMark, IMark, IPolygonMark, IRuleMark, ITextMark } from '../../mark/interface';
|
|
8
7
|
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
9
|
-
import type { ITextMark } from '../../mark/text';
|
|
10
8
|
import type { IFunnelSeriesSpec } from './interface';
|
|
11
|
-
import type { IRuleMark } from '../../mark/rule';
|
|
12
9
|
import { SeriesData } from '../base/series-data';
|
|
13
|
-
import type { ILabelMark } from '../../mark/label';
|
|
14
10
|
import { FunnelSeriesSpecTransformer } from './funnel-transformer';
|
|
15
11
|
export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpec> extends BaseSeries<T> implements IFunnelSeries {
|
|
16
12
|
static readonly type: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Datum, IMarkSpec, IMarkTheme, ISeriesSpec, IOrientType, IPathMarkSpec, IPolygonMarkSpec, IRuleMarkSpec, ITextMarkSpec, IPyramid3dMarkSpec, IPercent, IComposedTextMarkSpec, IFormatMethod } from '../../typings';
|
|
2
2
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
3
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
|
-
import { ILabelSpec } from '../../component';
|
|
4
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
5
5
|
type FunnelMarks = 'funnel';
|
|
6
6
|
export type FunnelAppearPreset = 'clipIn' | 'fadeIn';
|
|
7
7
|
export interface IFunnelSeriesSpec extends ISeriesSpec, IAnimationSpec<FunnelMarks, FunnelAppearPreset> {
|
|
@@ -19,6 +19,8 @@ export declare class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec>
|
|
|
19
19
|
initMark(): void;
|
|
20
20
|
initMarkStyle(): void;
|
|
21
21
|
private initSegmentMarkStyle;
|
|
22
|
+
protected generateRadiusStyle(spec: any): any;
|
|
23
|
+
initMarkStyleWithSpec(mark?: IMark, spec?: any, key?: string): void;
|
|
22
24
|
protected initTooltip(): void;
|
|
23
25
|
private initTrackMarkStyle;
|
|
24
26
|
protected _getAngleValueStartWithoutMask(datum: Datum): number;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec';
|
|
2
2
|
import type { IArcMarkSpec, IPathMarkSpec, IRectMarkSpec } from '../../typings/visual';
|
|
3
|
-
import type { IProgressLikeSeriesSpec, IProgressLikeSeriesTheme } from '../polar/progress-like/interface';
|
|
3
|
+
import type { IProgressLikeSeriesSpec, IProgressLikeSeriesTheme, ProgressLikeAppearPreset } from '../polar/progress-like/interface';
|
|
4
4
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
-
import type { ProgressLikeAppearPreset } from '../polar/progress-like';
|
|
6
5
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
7
6
|
import type { ILabelSpec } from '../../component/label/interface';
|
|
8
7
|
export type GaugePointerMarks = 'pointer' | 'pin' | 'pinBackground';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
-
|
|
2
|
+
import type { HeatmapAppearPreset } from './interface';
|
|
3
3
|
export declare function heatmapPresetAnimation(preset: HeatmapAppearPreset | boolean): IAnimationTypeConfig;
|
|
4
4
|
export declare const registerHeatmapAnimation: () => void;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
2
2
|
import type { IHeatmapSeriesSpec } from './interface';
|
|
3
3
|
import type { IAxisHelper } from '../../component/axis/cartesian/interface';
|
|
4
|
-
import type { ITextMark } from '../../mark/text';
|
|
5
4
|
import type { SeriesMarkMap } from '../interface';
|
|
6
5
|
import { SeriesTypeEnum } from '../interface/type';
|
|
7
|
-
import type { ICellMark } from '../../mark/
|
|
8
|
-
import type { IMark } from '../../mark/interface';
|
|
6
|
+
import type { ICellMark, IMark, ITextMark } from '../../mark/interface';
|
|
9
7
|
import { HeatmapSeriesSpecTransformer } from './heatmap-transformer';
|
|
10
8
|
export declare const DefaultBandWidth = 6;
|
|
11
9
|
export declare class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeriesSpec> extends CartesianSeries<T> {
|
|
@@ -2,10 +2,10 @@ import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/i
|
|
|
2
2
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
3
|
import type { IRectMarkSpec } from '../../typings/visual';
|
|
4
4
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
|
-
import type {
|
|
6
|
-
import type { ILabelSpec } from '../../component/label';
|
|
5
|
+
import type { ILabelSpec } from '../../component/label/interface';
|
|
7
6
|
import type { IMarkProgressiveConfig } from '../../mark/interface';
|
|
8
7
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
8
|
+
export type HeatmapAppearPreset = 'fadeIn';
|
|
9
9
|
type HeatmapMarks = 'cell' | 'background' | 'label';
|
|
10
10
|
export interface IHeatmapSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<HeatmapMarks, HeatmapAppearPreset>, IMarkProgressiveConfig {
|
|
11
11
|
type: 'heatmap';
|
package/types/series/index.d.ts
CHANGED
|
@@ -67,8 +67,12 @@ import type { ILiquidSeriesSpec } from './liquid/interface';
|
|
|
67
67
|
import { LiquidSeries, registerLiquidSeries } from './liquid/liquid';
|
|
68
68
|
import type { IVennSeriesSpec } from './venn/interface';
|
|
69
69
|
import { VennSeries, registerVennSeries } from './venn/venn';
|
|
70
|
+
import type { IMosaicSeriesSpec } from './mosaic/interface';
|
|
71
|
+
import { MosaicSeries, registerMosaicSeries } from './mosaic/mosaic';
|
|
72
|
+
import type { IPictogramSeriesSpec } from './pictogram/interface';
|
|
73
|
+
import { PictogramSeries, registerPictogramSeries } from './pictogram/pictogram';
|
|
70
74
|
import type { ISeries, ICartesianSeries, IPolarSeries, IGeoSeries } from './interface';
|
|
71
|
-
export { WaterfallSeries, Bar3dSeries, BarSeries, BoxPlotSeries, LineSeries, RadarSeries, RangeAreaSeries, RangeColumn3dSeries, RangeColumnSeries, MapSeries, Pie3dSeries, PieSeries, SankeySeries, ScatterSeries, SunburstSeries, RoseLikeSeries, RoseSeries, AreaSeries, DotSeries, LinearProgressSeries, LinkSeries, CirclePackingSeries, CircularProgressSeries, WordCloud3dSeries, WordCloudSeries, Funnel3dSeries, FunnelSeries, TreemapSeries, GaugePointerSeries, GaugeSeries, HeatmapSeries, BaseSeries, CartesianSeries, PolarSeries, ProgressLikeSeries, CorrelationSeries, LiquidSeries, VennSeries };
|
|
72
|
-
export { registerAreaSeries, registerBar3dSeries, registerBarSeries, registerBoxplotSeries, registerCirclePackingSeries, registerCircularProgressSeries, registerDotSeries, registerFunnel3dSeries, registerFunnelSeries, registerGaugePointerSeries, registerGaugeSeries, registerHeatmapSeries, registerLineSeries, registerLinearProgressSeries, registerLinkSeries, registerMapSeries, registerPie3dSeries, registerPieSeries, registerRadarSeries, registerRangeAreaSeries, registerRangeColumn3dSeries, registerRangeColumnSeries, registerRoseSeries, registerSankeySeries, registerScatterSeries, registerSunBurstSeries, registerTreemapSeries, registerWaterfallSeries, registerWordCloud3dSeries, registerWordCloudSeries, registerLiquidSeries, registerVennSeries };
|
|
73
|
-
export type { ISeries, ICartesianSeries, IPolarSeries, IGeoSeries, IRoseLikeSeriesSpec, IAreaSeriesSpec, IBar3dSeriesSpec, IBarSeriesSpec, IBoxPlotSeriesSpec, ICartesianSeriesSpec, ICirclePackingSeriesSpec, ICircularProgressSeriesSpec, IDotSeriesSpec, IFunnel3dSeriesSpec, IFunnelSeriesSpec, IGaugePointerSeriesSpec, IGaugeSeriesSpec, IHeatmapSeriesSpec, ILineSeriesSpec, ILinearProgressSeriesSpec, ILinkSeriesSpec, IMapSeriesSpec, IPie3dSeriesSpec, IPieSeriesSpec, IPolarSeriesSpec, IProgressLikeSeriesSpec, IRadarSeriesSpec, IRangeAreaSeriesSpec, IRangeColumn3dSeriesSpec, IRangeColumnSeriesSpec, IRoseSeriesSpec, ISankeySeriesSpec, IScatterSeriesSpec, ISunburstSeriesSpec, ITreemapSeriesSpec, IWaterfallSeriesSpec, IWordCloud3dSeriesSpec, IWordCloudSeriesSpec, ICorrelationSeriesSpec, ILiquidSeriesSpec, IVennSeriesSpec };
|
|
75
|
+
export { WaterfallSeries, Bar3dSeries, BarSeries, BoxPlotSeries, LineSeries, RadarSeries, RangeAreaSeries, RangeColumn3dSeries, RangeColumnSeries, MapSeries, Pie3dSeries, PieSeries, SankeySeries, ScatterSeries, SunburstSeries, RoseLikeSeries, RoseSeries, AreaSeries, DotSeries, LinearProgressSeries, LinkSeries, CirclePackingSeries, CircularProgressSeries, WordCloud3dSeries, WordCloudSeries, Funnel3dSeries, FunnelSeries, TreemapSeries, GaugePointerSeries, GaugeSeries, HeatmapSeries, BaseSeries, CartesianSeries, PolarSeries, ProgressLikeSeries, CorrelationSeries, LiquidSeries, VennSeries, PictogramSeries, MosaicSeries };
|
|
76
|
+
export { registerAreaSeries, registerBar3dSeries, registerBarSeries, registerBoxplotSeries, registerCirclePackingSeries, registerCircularProgressSeries, registerDotSeries, registerFunnel3dSeries, registerFunnelSeries, registerGaugePointerSeries, registerGaugeSeries, registerHeatmapSeries, registerLineSeries, registerLinearProgressSeries, registerLinkSeries, registerMapSeries, registerPie3dSeries, registerPieSeries, registerRadarSeries, registerRangeAreaSeries, registerRangeColumn3dSeries, registerRangeColumnSeries, registerRoseSeries, registerSankeySeries, registerScatterSeries, registerSunBurstSeries, registerTreemapSeries, registerWaterfallSeries, registerWordCloud3dSeries, registerWordCloudSeries, registerLiquidSeries, registerVennSeries, registerMosaicSeries, registerPictogramSeries };
|
|
77
|
+
export type { ISeries, ICartesianSeries, IPolarSeries, IGeoSeries, IRoseLikeSeriesSpec, IAreaSeriesSpec, IBar3dSeriesSpec, IBarSeriesSpec, IBoxPlotSeriesSpec, ICartesianSeriesSpec, ICirclePackingSeriesSpec, ICircularProgressSeriesSpec, IDotSeriesSpec, IFunnel3dSeriesSpec, IFunnelSeriesSpec, IGaugePointerSeriesSpec, IGaugeSeriesSpec, IHeatmapSeriesSpec, ILineSeriesSpec, ILinearProgressSeriesSpec, ILinkSeriesSpec, IMapSeriesSpec, IPie3dSeriesSpec, IPieSeriesSpec, IPolarSeriesSpec, IProgressLikeSeriesSpec, IRadarSeriesSpec, IRangeAreaSeriesSpec, IRangeColumn3dSeriesSpec, IRangeColumnSeriesSpec, IRoseSeriesSpec, ISankeySeriesSpec, IScatterSeriesSpec, ISunburstSeriesSpec, ITreemapSeriesSpec, IWaterfallSeriesSpec, IWordCloud3dSeriesSpec, IWordCloudSeriesSpec, ICorrelationSeriesSpec, ILiquidSeriesSpec, IVennSeriesSpec, IMosaicSeriesSpec, IPictogramSeriesSpec };
|
|
74
78
|
export * from './interface';
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { DataView } from '@visactor/vdataset';
|
|
2
2
|
import type { IGrammarItem } from '../../compile/interface';
|
|
3
|
-
import type { IGroupMark } from '../../mark/group';
|
|
4
3
|
import type { IBaseModelSpecTransformerResult, IModelConstructor, IModelMarkInfo, IModelOption, IModelSpecInfo } from '../../model/interface';
|
|
5
4
|
import type { IRegion } from '../../region/interface';
|
|
6
5
|
import type { RenderMode } from '../../typings/spec/common';
|
|
7
6
|
import type { ISeries } from './series';
|
|
8
|
-
import type { IMarkOption } from '../../mark/interface';
|
|
7
|
+
import type { IGroupMark, IMarkOption } from '../../mark/interface';
|
|
9
8
|
import type { ISeriesSpec, StringOrNumber } from '../../typings';
|
|
10
|
-
import type { TransformedLabelSpec } from '../../component/label';
|
|
9
|
+
import type { TransformedLabelSpec } from '../../component/label/interface';
|
|
11
10
|
import type { SeriesMarkNameEnum, SeriesTypeEnum } from './type';
|
|
12
11
|
export interface ISeriesSeriesInfo {
|
|
13
12
|
key: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { ILabelInfo } from './../../component/label/label';
|
|
2
1
|
import type { PanEventParam, ZoomEventParam } from '../../event/interface';
|
|
3
2
|
import type { IModel } from '../../model/interface';
|
|
4
3
|
import type { DataSet, DataView, ITransformOptions } from '@visactor/vdataset';
|
|
5
|
-
import type { IMark } from '../../mark/interface';
|
|
4
|
+
import type { IGroupMark, ILabelMark, IMark } from '../../mark/interface';
|
|
6
5
|
import type { CoordinateType, IPoint, IPolarPoint } from '../../typings/coordinate';
|
|
7
6
|
import type { IRegion } from '../../region/interface';
|
|
8
7
|
import type { IBaseScale } from '@visactor/vscale';
|
|
@@ -11,13 +10,11 @@ import type { IPolarAxisHelper } from '../../component/axis/polar/interface';
|
|
|
11
10
|
import type { ISeriesSeriesInfo, ISeriesSpecInfo, ISeriesStackData } from './common';
|
|
12
11
|
import type { ISeriesTooltipHelper } from './tooltip-helper';
|
|
13
12
|
import type { IInvalidType, Datum, DirectionType, IGroup, StringOrNumber } from '../../typings';
|
|
14
|
-
import type { ISeriesMarkAttributeContext, StateValueType } from '../../compile/mark';
|
|
15
|
-
import type { StatisticOperations } from '../../data/transforms/dimension-statistics';
|
|
16
|
-
import type { IGroupMark } from '../../mark/group';
|
|
13
|
+
import type { ISeriesMarkAttributeContext, StateValueType } from '../../compile/mark/interface';
|
|
17
14
|
import type { IGeoCoordinateHelper } from '../../component/geo/interface';
|
|
18
|
-
import type {
|
|
19
|
-
import type {
|
|
20
|
-
import type {
|
|
15
|
+
import type { ILabelSpec, ILabelInfo } from '../../component/label/interface';
|
|
16
|
+
import type { StatisticOperations } from '../../data/transforms/interface';
|
|
17
|
+
import type { ILegend } from '../../component/legend/interface';
|
|
21
18
|
export interface ISeries extends IModel {
|
|
22
19
|
readonly type: string;
|
|
23
20
|
readonly name?: string;
|
|
@@ -105,7 +102,7 @@ export interface ISeries extends IModel {
|
|
|
105
102
|
getSpecInfo: () => ISeriesSpecInfo;
|
|
106
103
|
getMarkAttributeContext: () => ISeriesMarkAttributeContext;
|
|
107
104
|
getSeriesFieldValue: (datum: Datum, seriesField?: string) => any;
|
|
108
|
-
legendSelectedFilter?: (component:
|
|
105
|
+
legendSelectedFilter?: (component: ILegend, selectedKeys: StringOrNumber[]) => StringOrNumber[];
|
|
109
106
|
parseLabelStyle?: (labelStyle: any, labelSpec: any, labelMark?: ILabelMark) => any;
|
|
110
107
|
}
|
|
111
108
|
export interface ICartesianSeries extends ISeries {
|