@visactor/vchart-types 2.0.0-alpha.0 → 2.0.0-alpha.1
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/animate-manager.d.ts +0 -10
- package/types/animation/animation-planner.d.ts +13 -0
- package/types/animation/config.d.ts +5 -5
- package/types/animation/grammar-dector.d.ts +22 -0
- package/types/animation/index.d.ts +7 -0
- package/types/animation/interface.d.ts +14 -7
- package/types/animation/sequential-animate.d.ts +1 -0
- package/types/animation/state-transition.d.ts +1 -0
- package/types/animation/strategy/common.d.ts +17 -0
- package/types/animation/strategy/horizontal-bar-split.d.ts +11 -0
- package/types/animation/strategy/vertical-bar-split.d.ts +11 -0
- package/types/animation/utils.d.ts +2 -2
- package/types/chart/area/area.d.ts +1 -0
- package/types/chart/bar/bar.d.ts +1 -0
- package/types/chart/bar/index.d.ts +0 -1
- package/types/chart/bar/interface.d.ts +1 -5
- package/types/chart/base/base-chart.d.ts +12 -2
- package/types/chart/box-plot/box-plot.d.ts +1 -0
- package/types/chart/common/common.d.ts +1 -0
- package/types/chart/common/interface.d.ts +5 -5
- package/types/chart/funnel/index.d.ts +0 -1
- package/types/chart/funnel/interface.d.ts +1 -4
- package/types/chart/histogram/histogram.d.ts +1 -0
- package/types/chart/histogram/index.d.ts +0 -1
- package/types/chart/histogram/interface.d.ts +1 -4
- package/types/chart/index.d.ts +19 -17
- package/types/chart/interface/chart.d.ts +11 -1
- package/types/chart/interface/type.d.ts +1 -8
- package/types/chart/line/line.d.ts +1 -0
- package/types/chart/mosaic/mosaic.d.ts +1 -0
- package/types/chart/pictogram/interface.d.ts +1 -1
- package/types/chart/pie/index.d.ts +0 -1
- package/types/chart/pie/interface.d.ts +1 -5
- package/types/chart/progress/circular/circular.d.ts +1 -0
- package/types/chart/progress/linear/linear.d.ts +1 -0
- package/types/chart/radar/radar.d.ts +1 -0
- package/types/chart/range-area/range-area.d.ts +1 -0
- package/types/chart/range-column/index.d.ts +0 -1
- package/types/chart/range-column/interface.d.ts +1 -5
- package/types/chart/range-column/range-column.d.ts +1 -0
- package/types/chart/rose/rose.d.ts +1 -0
- package/types/chart/scatter/scatter.d.ts +1 -0
- package/types/chart/waterfall/waterfall.d.ts +1 -0
- package/types/chart/word-cloud/index.d.ts +0 -1
- package/types/chart/word-cloud/interface.d.ts +1 -5
- package/types/chart/word-cloud/word-cloud.d.ts +4 -8
- package/types/compile/interface/compiler.d.ts +2 -1
- package/types/compile/mark/compilable-mark.d.ts +1 -0
- package/types/compile/mark/interface.d.ts +9 -4
- package/types/compile/mark/mark-state-manager.d.ts +1 -0
- package/types/compile/morph.d.ts +3 -0
- package/types/component/axis/base-axis.d.ts +5 -0
- package/types/component/axis/cartesian/axis.d.ts +6 -13
- package/types/component/axis/cartesian/band-axis.d.ts +6 -0
- package/types/component/axis/cartesian/linear-axis.d.ts +2 -1
- package/types/component/axis/cartesian/log-axis.d.ts +6 -0
- package/types/component/axis/cartesian/symlog-axis.d.ts +6 -0
- package/types/component/axis/cartesian/time-axis.d.ts +5 -0
- package/types/component/axis/cartesian/util/common.d.ts +3 -1
- package/types/component/axis/interface/spec.d.ts +7 -2
- package/types/component/axis/mixin/band-axis-mixin.d.ts +1 -0
- package/types/component/axis/polar/band-axis.d.ts +6 -0
- package/types/component/axis/polar/linear-axis.d.ts +6 -0
- package/types/component/axis/polar/util/common.d.ts +4 -1
- package/types/component/axis/util.d.ts +2 -6
- package/types/component/base/base-component.d.ts +0 -3
- package/types/component/base/util.d.ts +1 -2
- package/types/component/brush/brush.d.ts +29 -26
- package/types/component/brush/interface.d.ts +2 -0
- package/types/component/common/trigger/desktop.d.ts +0 -2
- package/types/component/common/trigger/interface.d.ts +0 -2
- package/types/component/common/trigger/mobile.d.ts +0 -2
- package/types/component/crosshair/base.d.ts +1 -1
- package/types/component/crosshair/cartesian.d.ts +4 -1
- package/types/component/crosshair/interface/spec.d.ts +1 -1
- package/types/component/crosshair/polar.d.ts +4 -1
- package/types/component/crosshair/utils/cartesian.d.ts +11 -1
- package/types/component/crosshair/utils/common.d.ts +2 -3
- package/types/component/custom-mark/custom-mark.d.ts +1 -0
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +3 -0
- package/types/component/data-zoom/data-zoom/interface.d.ts +2 -3
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -0
- package/types/component/index.d.ts +14 -8
- package/types/component/indicator/indicator.d.ts +3 -0
- package/types/component/interface/common.d.ts +0 -2
- package/types/component/interface/theme.d.ts +1 -3
- package/types/component/interface/type.d.ts +0 -1
- package/types/component/label/base-label.d.ts +4 -4
- package/types/component/label/interface.d.ts +10 -5
- package/types/component/label/total-label.d.ts +4 -1
- package/types/component/label/util.d.ts +1 -1
- package/types/component/legend/continuous/legend.d.ts +4 -0
- package/types/component/legend/discrete/legend.d.ts +3 -0
- package/types/component/legend/util.d.ts +1 -1
- package/types/component/marker/mark-area/cartesian-mark-area.d.ts +3 -0
- package/types/component/marker/mark-area/interface/theme.d.ts +4 -3
- package/types/component/marker/mark-area/polar-mark-area.d.ts +3 -0
- package/types/component/marker/mark-line/cartesian-mark-line.d.ts +3 -0
- package/types/component/marker/mark-line/interface/theme.d.ts +4 -3
- package/types/component/marker/mark-line/polar-mark-line.d.ts +3 -0
- package/types/component/marker/mark-point/cartesian-mark-point.d.ts +3 -0
- package/types/component/marker/mark-point/geo-mark-point.d.ts +3 -0
- package/types/component/marker/mark-point/interface/theme.d.ts +5 -2
- package/types/component/marker/mark-point/polar-mark-point.d.ts +3 -0
- package/types/component/marker/utils.d.ts +12 -0
- package/types/component/player/player.d.ts +3 -0
- package/types/component/title/title.d.ts +3 -0
- package/types/component/tooltip/constant.d.ts +6 -2
- package/types/component/tooltip/interface/common.d.ts +2 -1
- package/types/component/tooltip/processor/base.d.ts +4 -5
- package/types/component/tooltip/processor/dimension-tooltip.d.ts +1 -0
- package/types/component/tooltip/processor/group-tooltip.d.ts +1 -0
- package/types/component/tooltip/processor/interface.d.ts +11 -0
- package/types/component/tooltip/processor/mark-tooltip.d.ts +1 -0
- package/types/component/tooltip/processor/util.d.ts +1 -1
- package/types/component/tooltip/tooltip.d.ts +5 -2
- package/types/component/util.d.ts +1 -2
- package/types/constant/event.d.ts +2 -0
- package/types/core/factory.d.ts +16 -12
- package/types/core/index.d.ts +16 -1
- package/types/core/interface.d.ts +6 -1
- package/types/core/vchart.d.ts +2 -1
- package/types/data/transforms/circle-packing.d.ts +1 -1
- package/types/data/transforms/data-key.d.ts +1 -1
- package/types/data/transforms/flatten.d.ts +1 -1
- package/types/data/transforms/funnel.d.ts +1 -6
- package/types/data/transforms/pictogram.d.ts +2 -10
- package/types/data/transforms/sankey-links.d.ts +1 -2
- package/types/data/transforms/sankey-nodes.d.ts +1 -2
- package/types/data/transforms/sankey.d.ts +4 -4
- package/types/data/transforms/sunburst.d.ts +1 -1
- package/types/data/transforms/treemap.d.ts +1 -1
- package/types/data/transforms/venn.d.ts +1 -1
- package/types/event/event-dispatcher.d.ts +4 -1
- package/types/event/event.d.ts +4 -1
- package/types/event/events/dimension/util/cartesian.d.ts +2 -1
- package/types/event/events/index.d.ts +1 -5
- package/types/event/index.d.ts +1 -1
- package/types/event/interface.d.ts +13 -4
- package/types/index-harmony-simple.d.ts +2 -3
- package/types/index-harmony.d.ts +1 -1
- package/types/index.d.ts +12 -0
- package/types/interaction/index.d.ts +3 -2
- package/types/interaction/triggers/enum.d.ts +1 -3
- package/types/interaction/zoom/zoomable.d.ts +4 -0
- package/types/layout/base-layout.d.ts +12 -9
- package/types/layout/index.d.ts +4 -4
- package/types/layout/interface.d.ts +6 -1
- package/types/layout/layout-item.d.ts +5 -0
- package/types/layout/util.d.ts +17 -4
- package/types/mark/arc.d.ts +1 -1
- package/types/mark/base/base-line.d.ts +11 -2
- package/types/mark/base/base-mark.d.ts +46 -17
- package/types/mark/cell.d.ts +2 -2
- package/types/mark/component.d.ts +1 -0
- package/types/mark/glyph.d.ts +1 -0
- package/types/mark/group.d.ts +2 -1
- package/types/mark/index.d.ts +8 -7
- package/types/mark/interface/common.d.ts +20 -0
- package/types/mark/interface/mark.d.ts +2 -4
- package/types/mark/interface/type.d.ts +0 -3
- package/types/mark/rule.d.ts +2 -2
- package/types/mark/symbol.d.ts +2 -3
- package/types/mark/text.d.ts +2 -2
- package/types/mark/transform/symbol-overlap.d.ts +0 -1
- package/types/mark/utils/common.d.ts +0 -1
- package/types/model/base-model.d.ts +3 -2
- package/types/model/interface.d.ts +7 -2
- package/types/model/layout-model.d.ts +2 -1
- package/types/plugin/chart/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +2 -3
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +1 -12
- package/types/plugin/other.d.ts +0 -1
- package/types/region/interface.d.ts +0 -2
- package/types/region/region.d.ts +0 -2
- package/types/series/area/area.d.ts +2 -1
- package/types/series/bar/animation.d.ts +0 -1
- package/types/series/bar/bar.d.ts +6 -6
- package/types/series/bar/constant.d.ts +0 -1
- package/types/series/bar/interface.d.ts +1 -7
- package/types/series/base/base-series-transformer.d.ts +1 -1
- package/types/series/base/base-series.d.ts +2 -3
- package/types/series/box-plot/animation.d.ts +52 -0
- package/types/series/box-plot/box-plot.d.ts +3 -0
- package/types/series/circle-packing/circle-packing.d.ts +3 -0
- package/types/series/correlation/correlation.d.ts +3 -0
- package/types/series/dot/dot.d.ts +3 -0
- package/types/series/funnel/constant.d.ts +0 -1
- package/types/series/funnel/funnel.d.ts +7 -9
- package/types/series/funnel/interface.d.ts +2 -13
- package/types/series/funnel/tooltip-helper.d.ts +3 -1
- package/types/series/gauge/gauge-pointer.d.ts +3 -0
- package/types/series/gauge/gauge.d.ts +3 -0
- package/types/series/geo/geo.d.ts +1 -2
- package/types/series/heatmap/heatmap.d.ts +3 -0
- package/types/series/index.d.ts +24 -19
- package/types/series/interface/theme.d.ts +5 -16
- package/types/series/interface/type.d.ts +1 -11
- package/types/series/line/line.d.ts +3 -0
- package/types/series/link/link.d.ts +3 -0
- package/types/series/liquid/liquid.d.ts +3 -0
- package/types/series/map/map.d.ts +3 -0
- package/types/series/mosaic/mosaic.d.ts +2 -0
- package/types/series/pictogram/pictogram.d.ts +19 -13
- package/types/series/pictogram/tooltip-helper.d.ts +2 -2
- package/types/series/pie/animation/animation.d.ts +2 -3
- package/types/series/pie/constant.d.ts +0 -1
- package/types/series/pie/interface.d.ts +1 -11
- package/types/series/pie/pie.d.ts +5 -5
- package/types/series/polar/animation.d.ts +2 -4
- package/types/series/polar/progress-like/interface.d.ts +1 -0
- package/types/series/progress/circular/circular.d.ts +3 -0
- package/types/series/progress/linear/animation.d.ts +1 -1
- package/types/series/progress/linear/interface.d.ts +1 -0
- package/types/series/progress/linear/linear.d.ts +3 -0
- package/types/series/radar/animation.d.ts +1 -1
- package/types/series/radar/radar.d.ts +3 -0
- package/types/series/range-column/constant.d.ts +0 -1
- package/types/series/range-column/interface.d.ts +0 -3
- package/types/series/range-column/range-column.d.ts +5 -4
- package/types/series/rose/rose.d.ts +3 -0
- package/types/series/sankey/animation.d.ts +13 -0
- package/types/series/sankey/interface.d.ts +0 -1
- package/types/series/sankey/sankey.d.ts +3 -0
- package/types/series/scatter/scatter.d.ts +3 -0
- package/types/series/sunburst/interface.d.ts +1 -1
- package/types/series/sunburst/sunburst.d.ts +3 -0
- package/types/series/treemap/interface.d.ts +1 -1
- package/types/series/treemap/treemap.d.ts +3 -0
- package/types/series/venn/animation.d.ts +11 -0
- package/types/series/venn/venn.d.ts +3 -0
- package/types/series/waterfall/waterfall.d.ts +4 -0
- package/types/series/word-cloud/animation.d.ts +1 -3
- package/types/series/word-cloud/base.d.ts +3 -2
- package/types/series/word-cloud/interface.d.ts +1 -19
- package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +0 -1
- package/types/theme/builtin/common/series/funnel.d.ts +2 -2
- package/types/theme/builtin/common/series/word-cloud.d.ts +1 -2
- package/types/theme/builtin/index.d.ts +3 -1
- package/types/theme/color-scheme/util.d.ts +1 -1
- package/types/typings/spec/chart.d.ts +6 -12
- package/types/typings/spec/common.d.ts +3 -5
- package/types/typings/tooltip/position.d.ts +1 -1
- package/types/typings/visual.d.ts +2 -11
- package/types/util/mark.d.ts +1 -1
- package/types/util/region.d.ts +5 -0
- package/types/util/scale.d.ts +1 -0
- package/types/util/theme/common.d.ts +1 -1
- package/types/util/theme/merge-theme.d.ts +2 -2
- package/types/util/theme/preprocess.d.ts +1 -2
- package/types/vrender-tools.d.ts +1 -0
- package/types/interaction/triggers/element-highlight-by-graphic-name.d.ts +0 -13
- package/types/interaction/triggers/element-select-by-graphic-name.d.ts +0 -8
package/types/plugin/other.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { registerHtmlAttributePlugin, registerReactAttributePlugin } from '@visactor/vrender-core';
|
|
2
|
-
export declare const register3DPlugin: () => void;
|
|
3
2
|
export declare const registerAnimate: () => void;
|
|
4
3
|
export declare const registerDragPlugin: () => void;
|
|
5
4
|
export declare const registerGesturePlugin: () => void;
|
|
@@ -4,11 +4,9 @@ import type { ISeries, SeriesType } from '../series/interface';
|
|
|
4
4
|
import type { CoordinateType } from '../typings/coordinate';
|
|
5
5
|
import type { IProjectionSpec } from '../component/geo/interface';
|
|
6
6
|
import type { ConvertToMarkStyleSpec, IRectMarkSpec } from '../typings/visual';
|
|
7
|
-
import type { IAnimate } from '../animation/interface';
|
|
8
7
|
import type { StringOrNumber } from '../typings';
|
|
9
8
|
import type { ILayoutItemSpec } from '../layout/interface';
|
|
10
9
|
export interface IRegion extends ILayoutModel {
|
|
11
|
-
animate?: IAnimate;
|
|
12
10
|
getStackInverse: () => boolean;
|
|
13
11
|
getStackSort: () => boolean;
|
|
14
12
|
getMaxWidth: () => number | undefined;
|
package/types/region/region.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { ISeries } from '../series/interface';
|
|
|
2
2
|
import type { IModelOption } from '../model/interface';
|
|
3
3
|
import type { CoordinateType } from '../typings/coordinate';
|
|
4
4
|
import type { IRegion, IRegionSpec, IRegionSpecInfo } from './interface';
|
|
5
|
-
import type { IAnimate } from '../animation/interface';
|
|
6
5
|
import type { ILayoutType, StringOrNumber } from '../typings';
|
|
7
6
|
import { LayoutModel } from '../model/layout-model';
|
|
8
7
|
import { RegionSpecTransformer } from './region-transformer';
|
|
@@ -19,7 +18,6 @@ export declare class Region<T extends IRegionSpec = IRegionSpec> extends LayoutM
|
|
|
19
18
|
protected _series: ISeries[];
|
|
20
19
|
layoutType: ILayoutType;
|
|
21
20
|
layoutZIndex: number;
|
|
22
|
-
animate?: IAnimate;
|
|
23
21
|
getSpecInfo: () => IRegionSpecInfo;
|
|
24
22
|
getMaxWidth(): number;
|
|
25
23
|
setMaxWidth(value: number): void;
|
|
@@ -4,7 +4,7 @@ import { CartesianSeries } from '../cartesian/cartesian';
|
|
|
4
4
|
import type { Datum } from '../../typings';
|
|
5
5
|
import type { SeriesMarkMap } from '../interface';
|
|
6
6
|
import { SeriesTypeEnum } from '../interface/type';
|
|
7
|
-
import type { IAreaSeriesSpec } from './interface';
|
|
7
|
+
import type { IAreaSeriesSpec, IAreaSeriesTheme } from './interface';
|
|
8
8
|
import type { IMark, IAreaMark } from '../../mark/interface';
|
|
9
9
|
import { AreaSeriesSpecTransformer } from './area-transformer';
|
|
10
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,6 +12,7 @@ export interface AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends
|
|
|
12
12
|
export declare class AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends CartesianSeries<T> {
|
|
13
13
|
static readonly type: string;
|
|
14
14
|
type: SeriesTypeEnum;
|
|
15
|
+
static readonly builtInTheme: Record<string, IAreaSeriesTheme>;
|
|
15
16
|
static readonly mark: SeriesMarkMap;
|
|
16
17
|
static readonly transformerConstructor: any;
|
|
17
18
|
readonly transformerConstructor: typeof AreaSeriesSpecTransformer;
|
|
@@ -4,4 +4,3 @@ export declare const barGrowIn: (params: IBarAnimationParams, isOverall?: boolea
|
|
|
4
4
|
export declare const barGrowOut: (params: IBarAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
|
|
5
5
|
export declare function barPresetAnimation(params: IBarAnimationParams, preset: BarAppearPreset | boolean): IAnimationTypeConfig;
|
|
6
6
|
export declare const registerBarAnimation: () => void;
|
|
7
|
-
export declare const registerBar3dAnimation: () => void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { IBaseScale } from '@visactor/vscale';
|
|
2
2
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
3
3
|
import type { IMark, IRectMark, ITextMark } from '../../mark/interface';
|
|
4
|
-
import { MarkTypeEnum } from '../../mark/interface/type';
|
|
5
4
|
import type { Datum, DirectionType } from '../../typings';
|
|
6
|
-
import type { IBarSeriesSpec } from './interface';
|
|
5
|
+
import type { IBarSeriesSpec, IBarSeriesTheme } from './interface';
|
|
7
6
|
import type { IAxisHelper } from '../../component/axis/cartesian/interface';
|
|
8
7
|
import type { IModelInitOption } from '../../model/interface';
|
|
9
8
|
import type { SeriesMarkMap } from '../interface';
|
|
10
|
-
import { SeriesMarkNameEnum
|
|
9
|
+
import { SeriesMarkNameEnum } from '../interface/type';
|
|
11
10
|
import { DataView } from '@visactor/vdataset';
|
|
12
11
|
import { BarSeriesSpecTransformer } from './bar-transformer';
|
|
13
12
|
import type { ICompilableData } from '../../compile/data';
|
|
14
13
|
export declare const DefaultBandWidth = 6;
|
|
15
14
|
export declare class BarSeries<T extends IBarSeriesSpec = IBarSeriesSpec> extends CartesianSeries<T> {
|
|
16
15
|
static readonly type: string;
|
|
17
|
-
type:
|
|
18
|
-
protected _barMarkName:
|
|
19
|
-
protected _barMarkType:
|
|
16
|
+
type: string;
|
|
17
|
+
protected _barMarkName: string;
|
|
18
|
+
protected _barMarkType: string;
|
|
19
|
+
static readonly builtInTheme: Record<string, IBarSeriesTheme>;
|
|
20
20
|
static readonly mark: SeriesMarkMap;
|
|
21
21
|
static readonly transformerConstructor: any;
|
|
22
22
|
readonly transformerConstructor: typeof BarSeriesSpecTransformer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
|
|
2
2
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IRectMarkSpec } from '../../typings/visual';
|
|
4
4
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
5
|
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label/interface';
|
|
6
6
|
import type { IDataSamping, IMarkProgressiveConfig } from '../../mark/interface';
|
|
@@ -44,10 +44,4 @@ export interface IBarSeriesTheme extends ICartesianSeriesTheme {
|
|
|
44
44
|
barMinWidth?: number;
|
|
45
45
|
barMaxWidth?: number;
|
|
46
46
|
}
|
|
47
|
-
export type IBar3dSeriesSpec = {
|
|
48
|
-
type: 'bar3d';
|
|
49
|
-
} & Omit<IBarSeriesSpec, 'type'> & ICartesianSeriesSpec & IAnimationSpec<BarMarks, BarAppearPreset>;
|
|
50
|
-
export interface IBar3dSeriesTheme extends ICartesianSeriesTheme {
|
|
51
|
-
[SeriesMarkNameEnum.bar3d]?: Partial<IMarkTheme<IRect3dMarkSpec>>;
|
|
52
|
-
}
|
|
53
47
|
export {};
|
|
@@ -15,7 +15,7 @@ export declare class BaseSeriesSpecTransformer<T extends ISeriesSpec, K> extends
|
|
|
15
15
|
transformSpec(spec: T, chartSpec: any, chartSpecInfo?: IChartSpecInfo): ISeriesSpecTransformerResult<T, K>;
|
|
16
16
|
protected _transformLabelSpec(spec: T): void;
|
|
17
17
|
protected _transformStack(spec: T): void;
|
|
18
|
-
protected _addMarkLabelSpec<V extends ISeries = ISeries>(spec: T, markName:
|
|
18
|
+
protected _addMarkLabelSpec<V extends ISeries = ISeries>(spec: T, markName: string | ((spec: ILabelSpec) => string), labelSpecKey?: keyof T, styleHandlerName?: keyof V, hasAnimation?: boolean, head?: boolean): void;
|
|
19
19
|
protected _getDefaultSpecFromChart(chartSpec: any): any;
|
|
20
20
|
protected _mergeThemeToSpec(spec: T, chartSpec: any): {
|
|
21
21
|
spec: T;
|
|
@@ -16,7 +16,6 @@ import type { StatisticOperations } from '../../data/transforms/interface';
|
|
|
16
16
|
import type { GraphicEventType } from '@visactor/vrender-core';
|
|
17
17
|
import type { ICompilableData } from '../../compile/data';
|
|
18
18
|
import type { IBaseTriggerOptions } from '../../interaction/interface/trigger';
|
|
19
|
-
import { TRIGGER_TYPE_ENUM } from '../../interaction/triggers/enum';
|
|
20
19
|
export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> implements ISeries {
|
|
21
20
|
readonly specKey: string;
|
|
22
21
|
readonly type: string;
|
|
@@ -136,14 +135,14 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
136
135
|
marks: IMark[];
|
|
137
136
|
}[];
|
|
138
137
|
protected _defaultHoverConfig(finalHoverSpec: IHoverSpec): {
|
|
139
|
-
type:
|
|
138
|
+
type: string;
|
|
140
139
|
trigger: GraphicEventType;
|
|
141
140
|
triggerOff: GraphicEventType;
|
|
142
141
|
blurState: STATE_VALUE_ENUM;
|
|
143
142
|
highlightState: STATE_VALUE_ENUM;
|
|
144
143
|
};
|
|
145
144
|
protected _defaultSelectConfig(finalSelectSpec: ISelectSpec): {
|
|
146
|
-
type:
|
|
145
|
+
type: string;
|
|
147
146
|
trigger: GraphicEventType;
|
|
148
147
|
triggerOff: GraphicEventType;
|
|
149
148
|
reverseState: STATE_VALUE_ENUM;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { EasingType } from '@visactor/vrender-core';
|
|
2
|
+
import { ACustomAnimate } from '@visactor/vrender-animate';
|
|
3
|
+
export interface IBoxplotScaleAnimationOptions {
|
|
4
|
+
center?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class BoxplotScaleIn extends ACustomAnimate<Record<string, number>> {
|
|
7
|
+
constructor(from: null, to: null, duration: number, easing: EasingType, params?: IBoxplotScaleAnimationOptions);
|
|
8
|
+
onBind(): void;
|
|
9
|
+
computeAttribute(): {
|
|
10
|
+
from?: {
|
|
11
|
+
[channel: string]: any;
|
|
12
|
+
};
|
|
13
|
+
to?: {
|
|
14
|
+
[channel: string]: any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
18
|
+
}
|
|
19
|
+
export declare class BoxplotScaleOut extends ACustomAnimate<Record<string, number>> {
|
|
20
|
+
constructor(from: null, to: null, duration: number, easing: EasingType, params?: IBoxplotScaleAnimationOptions);
|
|
21
|
+
onBind(): void;
|
|
22
|
+
computeAttribute(): {
|
|
23
|
+
from?: {
|
|
24
|
+
[channel: string]: any;
|
|
25
|
+
};
|
|
26
|
+
to?: {
|
|
27
|
+
[channel: string]: any;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
31
|
+
}
|
|
32
|
+
export declare class BarBoxplotScaleIn extends BoxplotScaleIn {
|
|
33
|
+
computeAttribute(): {
|
|
34
|
+
from?: {
|
|
35
|
+
[channel: string]: any;
|
|
36
|
+
};
|
|
37
|
+
to?: {
|
|
38
|
+
[channel: string]: any;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export declare class BarBoxplotScaleOut extends BoxplotScaleOut {
|
|
43
|
+
computeAttribute(): {
|
|
44
|
+
from?: {
|
|
45
|
+
[channel: string]: any;
|
|
46
|
+
};
|
|
47
|
+
to?: {
|
|
48
|
+
[channel: string]: any;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export declare const registeBoxPlotScaleAnimation: () => void;
|
|
@@ -11,6 +11,9 @@ export declare const DEFAULT_STROKE_COLOR = "#000";
|
|
|
11
11
|
export declare class BoxPlotSeries<T extends IBoxPlotSeriesSpec = IBoxPlotSeriesSpec> extends CartesianSeries<T> {
|
|
12
12
|
static readonly type: string;
|
|
13
13
|
type: SeriesTypeEnum;
|
|
14
|
+
static readonly builtInTheme: {
|
|
15
|
+
boxPlot: import("./interface").IBoxPlotSeriesTheme;
|
|
16
|
+
};
|
|
14
17
|
static readonly mark: SeriesMarkMap;
|
|
15
18
|
protected _minField: string;
|
|
16
19
|
getMinField(): string;
|
|
@@ -8,6 +8,9 @@ export declare class CirclePackingSeries<T extends ICirclePackingSeriesSpec = IC
|
|
|
8
8
|
static readonly type: string;
|
|
9
9
|
type: SeriesTypeEnum;
|
|
10
10
|
static readonly mark: SeriesMarkMap;
|
|
11
|
+
static readonly builtInTheme: {
|
|
12
|
+
circlePacking: import("./interface").ICirclePackingSeriesTheme;
|
|
13
|
+
};
|
|
11
14
|
protected _categoryField: string;
|
|
12
15
|
protected _valueField: string;
|
|
13
16
|
private _layoutPadding;
|
|
@@ -10,6 +10,9 @@ export declare class CorrelationSeries<T extends ICorrelationSeriesSpec = ICorre
|
|
|
10
10
|
static readonly type: string;
|
|
11
11
|
type: SeriesTypeEnum;
|
|
12
12
|
static readonly mark: SeriesMarkMap;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
correlation: import("./interface").ICorrelationSeriesTheme;
|
|
15
|
+
};
|
|
13
16
|
static readonly transformerConstructor: any;
|
|
14
17
|
readonly transformerConstructor: typeof CorrelationSeriesSpecTransformer;
|
|
15
18
|
protected _centerSeriesData: ICompilableData;
|
|
@@ -10,6 +10,9 @@ export declare class DotSeries<T extends IDotSeriesSpec = IDotSeriesSpec> extend
|
|
|
10
10
|
static readonly type: string;
|
|
11
11
|
type: SeriesTypeEnum;
|
|
12
12
|
static readonly mark: SeriesMarkMap;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
dot: import("./interface").IDotSeriesTheme;
|
|
15
|
+
};
|
|
13
16
|
private _xDimensionStatisticsDomain;
|
|
14
17
|
protected _seriesGroupField?: string;
|
|
15
18
|
getSeriesGroupField(): string;
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import type { IFunnelSeries, SeriesMarkMap } from '../interface';
|
|
2
|
-
import { SeriesMarkNameEnum } from '../interface/type';
|
|
3
2
|
import type { IOrientType, Datum, StringOrNumber } from '../../typings';
|
|
4
|
-
import { SeriesTypeEnum } from '../interface/type';
|
|
5
3
|
import { BaseSeries } from '../base/base-series';
|
|
6
4
|
import type { ILabelMark, IMark, IPolygonMark, IRuleMark, ITextMark } from '../../mark/interface';
|
|
7
|
-
import {
|
|
8
|
-
import type { IFunnelSeriesSpec } from './interface';
|
|
5
|
+
import type { IFunnelSeriesSpec, IFunnelSeriesTheme } from './interface';
|
|
9
6
|
import { FunnelSeriesSpecTransformer } from './funnel-transformer';
|
|
10
7
|
import type { ICompilableData } from '../../compile/data';
|
|
11
8
|
export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpec> extends BaseSeries<T> implements IFunnelSeries {
|
|
12
9
|
static readonly type: string;
|
|
13
|
-
type:
|
|
14
|
-
protected _funnelMarkName:
|
|
15
|
-
protected _funnelMarkType:
|
|
16
|
-
protected _transformMarkName:
|
|
17
|
-
protected _transformMarkType:
|
|
10
|
+
type: string;
|
|
11
|
+
protected _funnelMarkName: string;
|
|
12
|
+
protected _funnelMarkType: string;
|
|
13
|
+
protected _transformMarkName: string;
|
|
14
|
+
protected _transformMarkType: string;
|
|
18
15
|
static readonly mark: SeriesMarkMap;
|
|
16
|
+
static readonly builtInTheme: Record<string, IFunnelSeriesTheme>;
|
|
19
17
|
static readonly transformerConstructor: any;
|
|
20
18
|
readonly transformerConstructor: typeof FunnelSeriesSpecTransformer;
|
|
21
19
|
protected _categoryField: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Datum, IMarkSpec, IMarkTheme, ISeriesSpec, IOrientType, IPathMarkSpec, IPolygonMarkSpec, IRuleMarkSpec, ITextMarkSpec,
|
|
1
|
+
import type { Datum, IMarkSpec, IMarkTheme, ISeriesSpec, IOrientType, IPathMarkSpec, IPolygonMarkSpec, IRuleMarkSpec, ITextMarkSpec, IPercent, IComposedTextMarkSpec, IFormatMethod } from '../../typings';
|
|
2
2
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
3
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
4
|
import type { ILabelSpec } from '../../component/label/interface';
|
|
@@ -21,6 +21,7 @@ export interface IFunnelSeriesSpec extends ISeriesSpec, IAnimationSpec<FunnelMar
|
|
|
21
21
|
maxSize?: number | IPercent;
|
|
22
22
|
minSize?: number | IPercent;
|
|
23
23
|
heightRatio?: number;
|
|
24
|
+
transformRatioText?: string;
|
|
24
25
|
[SeriesMarkNameEnum.funnel]?: IMarkSpec<IPathMarkSpec>;
|
|
25
26
|
[SeriesMarkNameEnum.transform]?: IMarkSpec<IPathMarkSpec>;
|
|
26
27
|
[SeriesMarkNameEnum.label]?: IFunnelLabelSpec;
|
|
@@ -49,16 +50,4 @@ export interface IFunnelSeriesTheme {
|
|
|
49
50
|
};
|
|
50
51
|
[SeriesMarkNameEnum.transformLabel]?: Partial<IMarkTheme<ITextMarkSpec>>;
|
|
51
52
|
}
|
|
52
|
-
export type IFunnel3dSeriesSpec = {
|
|
53
|
-
type: 'funnel3d';
|
|
54
|
-
} & Omit<IFunnelSeriesSpec, 'type'>;
|
|
55
|
-
export interface IFunnel3dSeriesTheme {
|
|
56
|
-
[SeriesMarkNameEnum.funnel3d]?: Partial<IMarkTheme<IPyramid3dMarkSpec>>;
|
|
57
|
-
[SeriesMarkNameEnum.transform3d]?: Partial<IMarkTheme<IPyramid3dMarkSpec>>;
|
|
58
|
-
[SeriesMarkNameEnum.label]?: Partial<IMarkTheme<ITextMarkSpec>>;
|
|
59
|
-
[SeriesMarkNameEnum.outerLabel]?: Partial<IMarkTheme<ITextMarkSpec>> & {
|
|
60
|
-
line?: Partial<IMarkTheme<IRuleMarkSpec>>;
|
|
61
|
-
};
|
|
62
|
-
[SeriesMarkNameEnum.transformLabel]?: Partial<IMarkTheme<ITextMarkSpec>>;
|
|
63
|
-
}
|
|
64
53
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { ISeriesTooltipHelper } from '../interface';
|
|
1
|
+
import type { IFunnelSeries, ISeriesTooltipHelper } from '../interface';
|
|
2
2
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
3
|
import type { TooltipHandlerParams } from '../../component/tooltip/interface';
|
|
4
4
|
import type { Datum } from '../../typings/common';
|
|
5
5
|
export declare class FunnelSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
6
|
+
private _transformRatioText;
|
|
7
|
+
constructor(series: IFunnelSeries);
|
|
6
8
|
dimensionTooltipTitleCallback: (datum: Datum, params?: TooltipHandlerParams) => any;
|
|
7
9
|
markTooltipValueCallback: (datum: Datum, params?: TooltipHandlerParams) => any;
|
|
8
10
|
markTooltipKeyCallback: (datum: Datum, params?: TooltipHandlerParams) => any;
|
|
@@ -10,6 +10,9 @@ export declare class GaugePointerSeries<T extends IGaugePointerSeriesSpec = IGau
|
|
|
10
10
|
static readonly type: string;
|
|
11
11
|
type: SeriesTypeEnum;
|
|
12
12
|
static readonly mark: SeriesMarkMap;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
gaugePointer: import("./interface").IGaugePointerSeriesTheme;
|
|
15
|
+
};
|
|
13
16
|
static readonly transformerConstructor: any;
|
|
14
17
|
readonly transformerConstructor: typeof GaugePointerSeriesSpecTransformer;
|
|
15
18
|
private _pinMark;
|
|
@@ -9,6 +9,9 @@ export declare class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec>
|
|
|
9
9
|
static readonly type: string;
|
|
10
10
|
type: SeriesTypeEnum;
|
|
11
11
|
static readonly mark: SeriesMarkMap;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
gauge: import("./interface").IGaugeSeriesTheme;
|
|
14
|
+
};
|
|
12
15
|
static readonly transformerConstructor: any;
|
|
13
16
|
readonly transformerConstructor: typeof GaugeSeriesSpecTransformer;
|
|
14
17
|
private _segmentMark;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { IGeoCoordinateHelper } from '../../component/geo/interface';
|
|
2
2
|
import type { IPoint } from '../../typings';
|
|
3
3
|
import type { IGeoSeries } from '../interface';
|
|
4
|
-
import { SeriesTypeEnum } from '../interface/type';
|
|
5
4
|
import { BaseSeries } from '../base/base-series';
|
|
6
5
|
import type { DataView } from '@visactor/vdataset';
|
|
7
6
|
import type { IGeoSeriesSpec } from './interface';
|
|
8
7
|
import type { IMark } from '../../mark/interface';
|
|
9
8
|
import type { ICompilableData } from '../../compile/data';
|
|
10
9
|
export declare abstract class GeoSeries<T extends IGeoSeriesSpec = IGeoSeriesSpec> extends BaseSeries<T> implements IGeoSeries {
|
|
11
|
-
type:
|
|
10
|
+
type: string;
|
|
12
11
|
readonly coordinate = "geo";
|
|
13
12
|
protected _mapViewData: ICompilableData;
|
|
14
13
|
getMapViewData(): DataView;
|
|
@@ -10,6 +10,9 @@ export declare class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeries
|
|
|
10
10
|
static readonly type: string;
|
|
11
11
|
type: SeriesTypeEnum;
|
|
12
12
|
static readonly mark: SeriesMarkMap;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
heatmap: import("./interface").IHeatmapSeriesTheme;
|
|
15
|
+
};
|
|
13
16
|
static readonly transformerConstructor: any;
|
|
14
17
|
readonly transformerConstructor: typeof HeatmapSeriesSpecTransformer;
|
|
15
18
|
protected _cellMark: ICellMark;
|
package/types/series/index.d.ts
CHANGED
|
@@ -5,19 +5,17 @@ import type { IBoxPlotSeriesSpec } from './box-plot/interface';
|
|
|
5
5
|
import { LineSeries, registerLineSeries } from './line/line';
|
|
6
6
|
import type { ILineSeriesSpec } from './line/interface';
|
|
7
7
|
import { BarSeries, registerBarSeries } from './bar/bar';
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
8
|
+
import type { BarAppearPreset, IBarAnimationParams, IBarSeriesSpec } from './bar/interface';
|
|
9
|
+
import { BarSeriesSpecTransformer } from './bar/bar-transformer';
|
|
10
10
|
import { RangeColumnSeries, registerRangeColumnSeries } from './range-column/range-column';
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
11
|
+
import type { IRangeColumnSeriesSpec, IRangeColumnSeriesTheme } from './range-column/interface';
|
|
12
|
+
import { PositionEnum } from './range-column/interface';
|
|
13
13
|
import { RangeAreaSeries, registerRangeAreaSeries } from './range-area/range-area';
|
|
14
14
|
import type { IRangeAreaSeriesSpec } from './range-area/interface';
|
|
15
15
|
import { MapSeries, registerMapSeries } from './map/map';
|
|
16
16
|
import type { IMapSeriesSpec } from './map/interface';
|
|
17
|
-
import { PieSeries, registerPieSeries } from './pie/pie';
|
|
18
|
-
import {
|
|
19
|
-
import type { IPie3dSeriesSpec } from './pie/interface';
|
|
20
|
-
import type { IPieSeriesSpec } from './pie/interface';
|
|
17
|
+
import { BasePieSeries, PieSeries, registerPieSeries } from './pie/pie';
|
|
18
|
+
import type { IArcLabelSpec, IPieAnimationParams, IPieSeriesSpec, PieAppearPreset } from './pie/interface';
|
|
21
19
|
import { ScatterSeries, registerScatterSeries } from './scatter/scatter';
|
|
22
20
|
import type { IScatterSeriesSpec } from './scatter/interface';
|
|
23
21
|
import { RoseSeries, registerRoseSeries } from './rose/rose';
|
|
@@ -35,11 +33,9 @@ import type { ICircularProgressSeriesSpec } from './progress/circular/interface'
|
|
|
35
33
|
import { LinearProgressSeries, registerLinearProgressSeries } from './progress/linear/linear';
|
|
36
34
|
import type { ILinearProgressSeriesSpec } from './progress/linear/interface';
|
|
37
35
|
import { WordCloudSeries, registerWordCloudSeries } from './word-cloud/word-cloud';
|
|
38
|
-
import {
|
|
39
|
-
import type { IWordCloud3dSeriesSpec, IWordCloudSeriesSpec } from './word-cloud/interface';
|
|
36
|
+
import type { IWordCloudSeriesBaseSpec, IWordCloudSeriesSpec } from './word-cloud/interface';
|
|
40
37
|
import { FunnelSeries, registerFunnelSeries } from './funnel/funnel';
|
|
41
|
-
import {
|
|
42
|
-
import type { IFunnel3dSeriesSpec, IFunnelSeriesSpec } from './funnel/interface';
|
|
38
|
+
import type { IFunnelSeriesSpec } from './funnel/interface';
|
|
43
39
|
import { SunburstSeries, registerSunBurstSeries } from './sunburst/sunburst';
|
|
44
40
|
import type { ISunburstSeriesSpec } from './sunburst/interface';
|
|
45
41
|
import { CirclePackingSeries, registerCirclePackingSeries } from './circle-packing/circle-packing';
|
|
@@ -55,10 +51,10 @@ import type { IHeatmapSeriesSpec } from './heatmap/interface';
|
|
|
55
51
|
import { CorrelationSeries } from './correlation/correlation';
|
|
56
52
|
import type { ICorrelationSeriesSpec } from './correlation/interface';
|
|
57
53
|
import { BaseSeries } from './base/base-series';
|
|
58
|
-
import type { ICartesianSeriesSpec } from './cartesian';
|
|
54
|
+
import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from './cartesian';
|
|
59
55
|
import { CartesianSeries } from './cartesian';
|
|
60
56
|
import { PolarSeries } from './polar/polar';
|
|
61
|
-
import type { IPolarSeriesSpec } from './polar/interface';
|
|
57
|
+
import type { IPolarSeriesSpec, IPolarSeriesTheme } from './polar/interface';
|
|
62
58
|
import type { IProgressLikeSeriesSpec } from './polar/progress-like';
|
|
63
59
|
import { ProgressLikeSeries } from './polar/progress-like';
|
|
64
60
|
import type { IRoseLikeSeriesSpec } from './polar/rose-like';
|
|
@@ -69,10 +65,19 @@ import type { IVennSeriesSpec } from './venn/interface';
|
|
|
69
65
|
import { VennSeries, registerVennSeries } from './venn/venn';
|
|
70
66
|
import type { IMosaicSeriesSpec } from './mosaic/interface';
|
|
71
67
|
import { MosaicSeries, registerMosaicSeries } from './mosaic/mosaic';
|
|
72
|
-
import type { IPictogramSeriesSpec } from './pictogram/interface';
|
|
73
|
-
import { PictogramSeries, registerPictogramSeries } from './pictogram/pictogram';
|
|
74
68
|
import type { ISeries, ICartesianSeries, IPolarSeries, IGeoSeries } from './interface';
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
import { barGrowIn, barGrowOut, barPresetAnimation } from './bar/animation';
|
|
70
|
+
import { BaseWordCloudSeries } from './word-cloud/base';
|
|
71
|
+
import { RangeColumnSeriesSpecTransformer } from './range-column/range-column-transformer';
|
|
72
|
+
import { pieDisappear, pieEnter, pieExit, piePresetAnimation } from './pie/animation/animation';
|
|
73
|
+
import { PieSeriesSpecTransformer } from './pie/pie-transformer';
|
|
74
|
+
import { baseSeriesMark } from './base/constant';
|
|
75
|
+
import { FunnelSeriesSpecTransformer } from './funnel/funnel-transformer';
|
|
76
|
+
import { BaseSeriesTooltipHelper } from './base/tooltip-helper';
|
|
77
|
+
import { BaseSeriesSpecTransformer } from './base/base-series-transformer';
|
|
78
|
+
import { GeoSeries } from './geo/geo';
|
|
79
|
+
export { PositionEnum, barPresetAnimation, barGrowIn, barGrowOut, piePresetAnimation, pieEnter, pieExit, pieDisappear, baseSeriesMark };
|
|
80
|
+
export { GeoSeries, BaseSeriesSpecTransformer, BaseSeriesTooltipHelper, WaterfallSeries, BarSeries, BarSeriesSpecTransformer, BoxPlotSeries, LineSeries, RadarSeries, RangeAreaSeries, RangeColumnSeriesSpecTransformer, RangeColumnSeries, MapSeries, PieSeriesSpecTransformer, BasePieSeries, PieSeries, SankeySeries, ScatterSeries, SunburstSeries, RoseLikeSeries, RoseSeries, AreaSeries, DotSeries, LinearProgressSeries, LinkSeries, CirclePackingSeries, CircularProgressSeries, BaseWordCloudSeries, WordCloudSeries, FunnelSeriesSpecTransformer, FunnelSeries, TreemapSeries, GaugePointerSeries, GaugeSeries, HeatmapSeries, BaseSeries, CartesianSeries, PolarSeries, ProgressLikeSeries, CorrelationSeries, LiquidSeries, VennSeries, MosaicSeries };
|
|
81
|
+
export { registerAreaSeries, registerBarSeries, registerBoxplotSeries, registerCirclePackingSeries, registerCircularProgressSeries, registerDotSeries, registerFunnelSeries, registerGaugePointerSeries, registerGaugeSeries, registerHeatmapSeries, registerLineSeries, registerLinearProgressSeries, registerLinkSeries, registerMapSeries, registerPieSeries, registerRadarSeries, registerRangeAreaSeries, registerRangeColumnSeries, registerRoseSeries, registerSankeySeries, registerScatterSeries, registerSunBurstSeries, registerTreemapSeries, registerWaterfallSeries, registerWordCloudSeries, registerLiquidSeries, registerVennSeries, registerMosaicSeries };
|
|
82
|
+
export type { ICartesianSeriesTheme, IPolarSeriesTheme, IArcLabelSpec, IBarAnimationParams, BarAppearPreset, ISeries, ICartesianSeries, IPolarSeries, IGeoSeries, IRoseLikeSeriesSpec, IAreaSeriesSpec, IBarSeriesSpec, IBoxPlotSeriesSpec, ICartesianSeriesSpec, ICirclePackingSeriesSpec, ICircularProgressSeriesSpec, IDotSeriesSpec, IFunnelSeriesSpec, IGaugePointerSeriesSpec, IGaugeSeriesSpec, IHeatmapSeriesSpec, ILineSeriesSpec, ILinearProgressSeriesSpec, ILinkSeriesSpec, IMapSeriesSpec, IPieAnimationParams, PieAppearPreset, IPieSeriesSpec, IPolarSeriesSpec, IProgressLikeSeriesSpec, IRadarSeriesSpec, IRangeAreaSeriesSpec, IRangeColumnSeriesTheme, IRangeColumnSeriesSpec, IRoseSeriesSpec, ISankeySeriesSpec, IScatterSeriesSpec, ISunburstSeriesSpec, ITreemapSeriesSpec, IWaterfallSeriesSpec, IWordCloudSeriesBaseSpec, IWordCloudSeriesSpec, ICorrelationSeriesSpec, ILiquidSeriesSpec, IVennSeriesSpec, IMosaicSeriesSpec };
|
|
78
83
|
export * from './interface';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { IWaterfallSeriesTheme } from '../waterfall/interface';
|
|
2
2
|
import type { IBoxPlotSeriesTheme } from '../box-plot/interface';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IBarSeriesTheme } from '../bar/interface';
|
|
4
4
|
import type { ILineSeriesTheme } from '../line/interface';
|
|
5
5
|
import type { IScatterSeriesTheme } from '../scatter/interface';
|
|
6
6
|
import type { IAreaSeriesTheme } from '../area/interface';
|
|
7
7
|
import type { IRadarSeriesTheme } from '../radar/interface';
|
|
8
|
-
import type {
|
|
8
|
+
import type { IPieSeriesTheme } from '../pie/interface';
|
|
9
9
|
import type { IRoseSeriesTheme } from '../rose/interface';
|
|
10
10
|
import type { IMapSeriesTheme } from '../map/interface';
|
|
11
11
|
import type { ICircularProgressSeriesTheme } from '../progress/circular/interface';
|
|
12
12
|
import type { ILinkSeriesTheme } from '../link/interface';
|
|
13
13
|
import type { IDotSeriesTheme } from '../dot/interface';
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
14
|
+
import type { IWordCloudSeriesTheme } from '../word-cloud/interface';
|
|
15
|
+
import type { IFunnelSeriesTheme } from '../funnel/interface';
|
|
16
16
|
import type { ILinearProgressSeriesTheme } from '../progress/linear/interface';
|
|
17
17
|
import type { IGaugePointerSeriesTheme, IGaugeSeriesTheme } from '../gauge/interface';
|
|
18
18
|
import type { ISankeySeriesTheme } from '../sankey/interface';
|
|
@@ -32,10 +32,6 @@ export interface ISeriesTheme {
|
|
|
32
32
|
[SeriesTypeForThemeEnum.bar_vertical]?: IBarSeriesTheme;
|
|
33
33
|
[SeriesTypeForThemeEnum.bar_horizontal]?: IBarSeriesTheme;
|
|
34
34
|
[SeriesTypeForThemeEnum.bar_stack]?: IBarSeriesTheme;
|
|
35
|
-
[SeriesTypeEnum.bar3d]?: IBar3dSeriesTheme;
|
|
36
|
-
[SeriesTypeForThemeEnum.bar3d_vertical]?: IBar3dSeriesTheme;
|
|
37
|
-
[SeriesTypeForThemeEnum.bar3d_horizontal]?: IBar3dSeriesTheme;
|
|
38
|
-
[SeriesTypeForThemeEnum.bar3d_stack]?: IBar3dSeriesTheme;
|
|
39
35
|
[SeriesTypeEnum.line]?: ILineSeriesTheme;
|
|
40
36
|
[SeriesTypeForThemeEnum.line_vertical]?: ILineSeriesTheme;
|
|
41
37
|
[SeriesTypeForThemeEnum.line_horizontal]?: ILineSeriesTheme;
|
|
@@ -67,7 +63,6 @@ export interface ISeriesTheme {
|
|
|
67
63
|
[SeriesTypeEnum.radar]?: IRadarSeriesTheme;
|
|
68
64
|
[SeriesTypeForThemeEnum.radar_stack]?: IRadarSeriesTheme;
|
|
69
65
|
[SeriesTypeEnum.pie]?: IPieSeriesTheme;
|
|
70
|
-
[SeriesTypeEnum.pie3d]?: IPie3dSeriesTheme;
|
|
71
66
|
[SeriesTypeEnum.rose]?: IRoseSeriesTheme;
|
|
72
67
|
[SeriesTypeForThemeEnum.rose_stack]?: IRoseSeriesTheme;
|
|
73
68
|
[SeriesTypeEnum.map]?: IMapSeriesTheme;
|
|
@@ -76,9 +71,7 @@ export interface ISeriesTheme {
|
|
|
76
71
|
[SeriesTypeEnum.link]?: ILinkSeriesTheme;
|
|
77
72
|
[SeriesTypeEnum.dot]?: IDotSeriesTheme;
|
|
78
73
|
[SeriesTypeEnum.wordCloud]?: IWordCloudSeriesTheme;
|
|
79
|
-
[SeriesTypeEnum.wordCloud3d]?: IWordCloud3dSeriesTheme;
|
|
80
74
|
[SeriesTypeEnum.funnel]?: IFunnelSeriesTheme;
|
|
81
|
-
[SeriesTypeEnum.funnel3d]?: IFunnel3dSeriesTheme;
|
|
82
75
|
[SeriesTypeEnum.treemap]?: ITreemapSeriesTheme;
|
|
83
76
|
[SeriesTypeEnum.gauge]?: IGaugeSeriesTheme;
|
|
84
77
|
[SeriesTypeEnum.gaugePointer]?: IGaugePointerSeriesTheme;
|
|
@@ -89,6 +82,7 @@ export interface ISeriesTheme {
|
|
|
89
82
|
[SeriesTypeEnum.liquid]?: ILiquidSeriesTheme;
|
|
90
83
|
[SeriesTypeEnum.venn]?: IVennSeriesTheme;
|
|
91
84
|
[SeriesTypeEnum.mosaic]?: IMosaicSeriesTheme;
|
|
85
|
+
[key: string]: any;
|
|
92
86
|
}
|
|
93
87
|
export declare enum SeriesTypeForThemeEnum {
|
|
94
88
|
area_horizontal = "area_horizontal",
|
|
@@ -100,13 +94,8 @@ export declare enum SeriesTypeForThemeEnum {
|
|
|
100
94
|
bar_horizontal = "bar_horizontal",
|
|
101
95
|
bar_vertical = "bar_vertical",
|
|
102
96
|
bar_stack = "bar_stack",
|
|
103
|
-
bar3d_horizontal = "bar3d_horizontal",
|
|
104
|
-
bar3d_vertical = "bar3d_vertical",
|
|
105
|
-
bar3d_stack = "bar3d_stack",
|
|
106
97
|
rangeColumn_horizontal = "rangeColumn_horizontal",
|
|
107
98
|
rangeColumn_vertical = "rangeColumn_vertical",
|
|
108
|
-
rangeColumn3d_horizontal = "rangeColumn3d_horizontal",
|
|
109
|
-
rangeColumn3d_vertical = "rangeColumn3d_vertical",
|
|
110
99
|
rangeArea_horizontal = "rangeArea_horizontal",
|
|
111
100
|
rangeArea_vertical = "rangeArea_vertical",
|
|
112
101
|
linearProgress_horizontal = "linearProgress_horizontal",
|
|
@@ -3,24 +3,19 @@ export declare enum SeriesTypeEnum {
|
|
|
3
3
|
area = "area",
|
|
4
4
|
line = "line",
|
|
5
5
|
bar = "bar",
|
|
6
|
-
bar3d = "bar3d",
|
|
7
6
|
rangeColumn = "rangeColumn",
|
|
8
|
-
rangeColumn3d = "rangeColumn3d",
|
|
9
7
|
rangeArea = "rangeArea",
|
|
10
8
|
dot = "dot",
|
|
11
9
|
geo = "geo",
|
|
12
10
|
link = "link",
|
|
13
11
|
map = "map",
|
|
14
12
|
pie = "pie",
|
|
15
|
-
pie3d = "pie3d",
|
|
16
13
|
radar = "radar",
|
|
17
14
|
rose = "rose",
|
|
18
15
|
scatter = "scatter",
|
|
19
16
|
circularProgress = "circularProgress",
|
|
20
17
|
wordCloud = "wordCloud",
|
|
21
|
-
wordCloud3d = "wordCloud3d",
|
|
22
18
|
funnel = "funnel",
|
|
23
|
-
funnel3d = "funnel3d",
|
|
24
19
|
linearProgress = "linearProgress",
|
|
25
20
|
boxPlot = "boxPlot",
|
|
26
21
|
sankey = "sankey",
|
|
@@ -43,7 +38,6 @@ export declare const enum SeriesMarkNameEnum {
|
|
|
43
38
|
line = "line",
|
|
44
39
|
area = "area",
|
|
45
40
|
bar = "bar",
|
|
46
|
-
bar3d = "bar3d",
|
|
47
41
|
boxPlot = "boxPlot",
|
|
48
42
|
outlier = "outlier",
|
|
49
43
|
circlePacking = "circlePacking",
|
|
@@ -55,9 +49,7 @@ export declare const enum SeriesMarkNameEnum {
|
|
|
55
49
|
subTitle = "subTitle",
|
|
56
50
|
symbol = "symbol",
|
|
57
51
|
funnel = "funnel",
|
|
58
|
-
funnel3d = "funnel3d",
|
|
59
52
|
transform = "transform",
|
|
60
|
-
transform3d = "transform3d",
|
|
61
53
|
transformLabel = "transformLabel",
|
|
62
54
|
outerLabel = "outerLabel",
|
|
63
55
|
outerLabelLine = "outerLabelLine",
|
|
@@ -71,7 +63,6 @@ export declare const enum SeriesMarkNameEnum {
|
|
|
71
63
|
link = "link",
|
|
72
64
|
arrow = "arrow",
|
|
73
65
|
pie = "pie",
|
|
74
|
-
pie3d = "pie3d",
|
|
75
66
|
labelLine = "labelLine",
|
|
76
67
|
progress = "progress",
|
|
77
68
|
minLabel = "minLabel",
|
|
@@ -100,6 +91,5 @@ export declare const enum SeriesMarkNameEnum {
|
|
|
100
91
|
liquidOutline = "liquidOutline",
|
|
101
92
|
circle = "circle",
|
|
102
93
|
overlap = "overlap",
|
|
103
|
-
overlapLabel = "overlapLabel"
|
|
104
|
-
pictogram = "pictogram"
|
|
94
|
+
overlapLabel = "overlapLabel"
|
|
105
95
|
}
|
|
@@ -12,6 +12,9 @@ export declare class LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> ext
|
|
|
12
12
|
static readonly type: string;
|
|
13
13
|
type: SeriesTypeEnum;
|
|
14
14
|
static readonly mark: SeriesMarkMap;
|
|
15
|
+
static readonly builtInTheme: {
|
|
16
|
+
line: import("../mixin/interface").ILineLikeSeriesTheme;
|
|
17
|
+
};
|
|
15
18
|
static readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
|
|
16
19
|
readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
|
|
17
20
|
protected _sortDataByAxis: boolean;
|
|
@@ -9,6 +9,9 @@ export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> ext
|
|
|
9
9
|
static readonly type: string;
|
|
10
10
|
type: SeriesTypeEnum;
|
|
11
11
|
static readonly mark: SeriesMarkMap;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
link: import("./interface").ILinkSeriesTheme;
|
|
14
|
+
};
|
|
12
15
|
protected _fromField?: string;
|
|
13
16
|
getFromField(): string;
|
|
14
17
|
setFromField(field: string): void;
|
|
@@ -11,6 +11,9 @@ export declare class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpe
|
|
|
11
11
|
static readonly type: string;
|
|
12
12
|
type: SeriesTypeEnum;
|
|
13
13
|
static readonly mark: SeriesMarkMap;
|
|
14
|
+
static readonly builtInTheme: {
|
|
15
|
+
liquid: import("./interface").ILiquidSeriesTheme;
|
|
16
|
+
};
|
|
14
17
|
static readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
|
|
15
18
|
readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
|
|
16
19
|
private _liquidGroupMark?;
|