@visactor/vchart-types 1.15.5-alpha.8 → 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 +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/animate-manager.d.ts +0 -12
- 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 +98 -7
- package/types/animation/sequential-animate.d.ts +1 -0
- package/types/animation/spec.d.ts +27 -3
- 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 +3 -4
- 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 +22 -9
- 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/funnel/util.d.ts +2 -0
- 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 +14 -5
- package/types/chart/interface/common.d.ts +2 -9
- 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/sankey/sankey.d.ts +1 -1
- 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/compilable-base.d.ts +1 -1
- package/types/compile/compiler.d.ts +35 -25
- package/types/compile/data/compilable-data.d.ts +7 -7
- package/types/compile/data/interface.d.ts +4 -1
- package/types/compile/grammar-item.d.ts +7 -13
- package/types/compile/interface/compilable-item.d.ts +22 -28
- package/types/compile/interface/compiler.d.ts +14 -4
- package/types/compile/mark/compilable-mark.d.ts +1 -0
- package/types/compile/mark/index.d.ts +0 -1
- package/types/compile/mark/interface.d.ts +48 -34
- package/types/compile/mark/mark-state-manager.d.ts +12 -13
- package/types/compile/mark/util.d.ts +1 -1
- package/types/compile/morph.d.ts +3 -0
- package/types/compile/state-manager.d.ts +11 -0
- package/types/compile/util.d.ts +14 -0
- package/types/component/axis/base-axis.d.ts +10 -3
- package/types/component/axis/cartesian/axis.d.ts +7 -14
- 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 +6 -0
- package/types/component/axis/cartesian/util/common.d.ts +3 -1
- package/types/component/axis/interface/common.d.ts +8 -0
- 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 +1 -5
- package/types/component/base/util.d.ts +1 -2
- package/types/component/brush/brush.d.ts +35 -30
- 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 +25 -36
- package/types/component/crosshair/cartesian.d.ts +9 -29
- package/types/component/crosshair/interface/common.d.ts +67 -2
- package/types/component/crosshair/interface/index.d.ts +0 -2
- package/types/component/crosshair/interface/spec.d.ts +8 -4
- package/types/component/crosshair/polar.d.ts +10 -23
- package/types/component/crosshair/utils/cartesian.d.ts +10 -21
- package/types/component/crosshair/utils/common.d.ts +2 -3
- package/types/component/crosshair/utils/polar.d.ts +18 -11
- package/types/component/custom-mark/custom-mark.d.ts +1 -0
- package/types/component/data-zoom/data-filter-base-component.d.ts +4 -4
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +4 -1
- package/types/component/data-zoom/data-zoom/interface.d.ts +2 -3
- package/types/component/data-zoom/interface.d.ts +11 -0
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +4 -2
- package/types/component/geo/geo-coordinate.d.ts +2 -2
- package/types/component/geo/interface.d.ts +1 -1
- 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 +9 -4
- package/types/component/label/interface.d.ts +14 -8
- package/types/component/label/label.d.ts +5 -3
- package/types/component/label/total-label.d.ts +4 -1
- package/types/component/label/util.d.ts +9 -10
- 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 +2 -2
- package/types/component/marker/base-marker.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 +12 -1
- 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 +8 -5
- package/types/component/util.d.ts +1 -2
- package/types/constant/data.d.ts +1 -0
- package/types/constant/event.d.ts +55 -2
- package/types/core/factory.d.ts +31 -2
- package/types/core/index.d.ts +18 -2
- package/types/core/interface.d.ts +19 -5
- package/types/core/vchart.d.ts +8 -7
- 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 +5 -6
- package/types/data/transforms/venn.d.ts +10 -0
- package/types/data/transforms/waterfall.d.ts +1 -0
- package/types/event/event-dispatcher.d.ts +4 -1
- package/types/event/event.d.ts +4 -1
- package/types/event/events/base.d.ts +1 -2
- 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 -0
- package/types/event/interface.d.ts +19 -13
- package/types/index-harmony-simple.d.ts +4 -4
- package/types/index-harmony.d.ts +1 -1
- package/types/index.d.ts +11 -0
- package/types/interaction/config.d.ts +13 -0
- package/types/interaction/index.d.ts +10 -1
- package/types/interaction/interaction.d.ts +17 -25
- package/types/interaction/interface/common.d.ts +22 -0
- package/types/interaction/interface/spec.d.ts +53 -0
- package/types/interaction/interface/trigger.d.ts +87 -0
- package/types/interaction/triggers/base.d.ts +28 -0
- package/types/interaction/triggers/dimension-hover.d.ts +22 -0
- package/types/interaction/triggers/element-active-by-legend.d.ts +21 -0
- package/types/interaction/triggers/element-active.d.ts +20 -0
- package/types/interaction/triggers/element-highlight-by-group.d.ts +23 -0
- package/types/interaction/triggers/element-highlight-by-key.d.ts +9 -0
- package/types/interaction/triggers/element-highlight-by-legend.d.ts +22 -0
- package/types/interaction/triggers/element-highlight-by-name.d.ts +24 -0
- package/types/interaction/triggers/element-highlight.d.ts +25 -0
- package/types/interaction/triggers/element-select.d.ts +24 -0
- package/types/interaction/triggers/enum.d.ts +6 -0
- package/types/interaction/triggers/util.d.ts +12 -0
- package/types/interaction/zoom/zoomable.d.ts +5 -0
- package/types/layout/base-layout.d.ts +12 -9
- package/types/layout/index.d.ts +4 -4
- package/types/layout/interface.d.ts +8 -3
- package/types/layout/layout-item.d.ts +7 -3
- package/types/layout/util.d.ts +17 -4
- package/types/mark/arc.d.ts +3 -3
- package/types/mark/area.d.ts +2 -0
- package/types/mark/base/base-line.d.ts +25 -2
- package/types/mark/base/base-mark.d.ts +160 -13
- package/types/mark/box-plot.d.ts +11 -5
- package/types/mark/cell.d.ts +6 -3
- package/types/mark/component.d.ts +12 -3
- package/types/mark/glyph.d.ts +30 -0
- package/types/mark/group.d.ts +11 -6
- package/types/mark/index.d.ts +10 -7
- package/types/mark/interface/common.d.ts +81 -9
- package/types/mark/interface/enum.d.ts +6 -0
- package/types/mark/interface/index.d.ts +1 -0
- package/types/mark/interface/mark.d.ts +20 -5
- package/types/mark/interface/type.d.ts +1 -3
- package/types/mark/label.d.ts +4 -3
- package/types/mark/link-path.d.ts +35 -5
- package/types/mark/liquid.d.ts +47 -5
- package/types/mark/ripple.d.ts +39 -4
- package/types/mark/rule.d.ts +4 -1
- package/types/mark/symbol.d.ts +4 -5
- package/types/mark/text.d.ts +5 -3
- package/types/mark/transform/data-sampling.d.ts +10 -0
- package/types/mark/transform/filter.d.ts +1 -0
- package/types/mark/transform/map.d.ts +1 -0
- package/types/mark/transform/symbol-overlap.d.ts +13 -0
- package/types/mark/utils/common.d.ts +4 -1
- package/types/mark/utils/glyph.d.ts +2 -0
- package/types/mark/utils/index.d.ts +2 -0
- package/types/mark/utils/line.d.ts +3 -0
- package/types/model/base-model.d.ts +11 -10
- package/types/model/interface.d.ts +11 -10
- package/types/model/layout-model.d.ts +4 -3
- package/types/plugin/chart/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +2 -3
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +1 -14
- package/types/plugin/other.d.ts +3 -4
- package/types/region/interface.d.ts +0 -4
- package/types/region/region.d.ts +3 -11
- package/types/series/area/animation.d.ts +1 -1
- package/types/series/area/area.d.ts +3 -2
- package/types/series/bar/animation.d.ts +1 -2
- package/types/series/bar/bar.d.ts +9 -9
- 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 +23 -40
- package/types/series/base/tooltip-helper.d.ts +1 -2
- package/types/series/box-plot/animation.d.ts +52 -0
- package/types/series/box-plot/box-plot.d.ts +6 -3
- package/types/series/cartesian/cartesian.d.ts +1 -1
- package/types/series/circle-packing/animation.d.ts +1 -1
- package/types/series/circle-packing/circle-packing.d.ts +4 -1
- package/types/series/correlation/animation.d.ts +1 -1
- package/types/series/correlation/correlation.d.ts +6 -4
- package/types/series/dot/dot.d.ts +5 -2
- package/types/series/funnel/constant.d.ts +0 -1
- package/types/series/funnel/funnel.d.ts +10 -11
- package/types/series/funnel/interface.d.ts +2 -13
- package/types/series/funnel/tooltip-helper.d.ts +4 -2
- package/types/series/gauge/animation.d.ts +1 -1
- package/types/series/gauge/gauge-pointer.d.ts +7 -1
- package/types/series/gauge/gauge.d.ts +5 -2
- package/types/series/geo/geo.d.ts +3 -4
- package/types/series/heatmap/animation.d.ts +1 -1
- package/types/series/heatmap/heatmap.d.ts +7 -1
- package/types/series/index.d.ts +24 -19
- package/types/series/interface/common.d.ts +1 -4
- package/types/series/interface/series.d.ts +6 -1
- package/types/series/interface/theme.d.ts +5 -16
- package/types/series/interface/type.d.ts +1 -11
- package/types/series/line/animation.d.ts +1 -1
- package/types/series/line/line.d.ts +4 -1
- package/types/series/link/link.d.ts +8 -2
- package/types/series/liquid/animation.d.ts +1 -1
- package/types/series/liquid/liquid.d.ts +7 -1
- package/types/series/map/interface.d.ts +10 -0
- package/types/series/map/map.d.ts +3 -0
- package/types/series/mixin/line-mixin.d.ts +5 -5
- package/types/series/mosaic/mosaic.d.ts +2 -0
- package/types/series/pictogram/pictogram.d.ts +2 -0
- package/types/series/pictogram/tooltip-helper.d.ts +2 -2
- package/types/series/pie/animation/animation.d.ts +4 -4
- package/types/series/pie/animation/centerOffset.d.ts +1 -1
- package/types/series/pie/constant.d.ts +0 -1
- package/types/series/pie/interface.d.ts +3 -13
- package/types/series/pie/pie.d.ts +13 -11
- package/types/series/polar/animation.d.ts +2 -4
- package/types/series/polar/progress-like/animation.d.ts +1 -1
- package/types/series/polar/progress-like/interface.d.ts +1 -0
- package/types/series/polar/progress-like/progress-like.d.ts +1 -2
- package/types/series/progress/circular/circular.d.ts +7 -1
- package/types/series/progress/linear/animation.d.ts +2 -2
- package/types/series/progress/linear/interface.d.ts +1 -0
- package/types/series/progress/linear/linear.d.ts +7 -1
- package/types/series/radar/animation.d.ts +12 -10
- package/types/series/radar/radar.d.ts +5 -2
- package/types/series/range-column/animation.d.ts +1 -1
- 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/animation.d.ts +1 -1
- package/types/series/rose/rose.d.ts +3 -0
- package/types/series/sankey/animation.d.ts +14 -1
- package/types/series/sankey/interface.d.ts +0 -1
- package/types/series/sankey/sankey.d.ts +14 -12
- package/types/series/sankey/tooltip-helper.d.ts +1 -1
- package/types/series/scatter/animation.d.ts +1 -1
- package/types/series/scatter/scatter.d.ts +3 -0
- package/types/series/sunburst/animation/enter.d.ts +1 -1
- package/types/series/sunburst/animation/exit.d.ts +1 -1
- package/types/series/sunburst/animation/preset.d.ts +1 -1
- package/types/series/sunburst/animation/utils.d.ts +2 -2
- package/types/series/sunburst/interface.d.ts +1 -1
- package/types/series/sunburst/sunburst.d.ts +4 -1
- package/types/series/treemap/animation.d.ts +1 -1
- package/types/series/treemap/interface.d.ts +1 -1
- package/types/series/treemap/treemap.d.ts +4 -2
- package/types/series/venn/animation.d.ts +12 -1
- package/types/series/venn/venn.d.ts +5 -1
- package/types/series/waterfall/animation.d.ts +1 -1
- package/types/series/waterfall/waterfall.d.ts +6 -2
- package/types/series/word-cloud/animation.d.ts +2 -4
- package/types/series/word-cloud/base.d.ts +4 -3
- package/types/series/word-cloud/interface.d.ts +2 -20
- 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/common.d.ts +13 -0
- package/types/typings/spec/chart.d.ts +6 -12
- package/types/typings/spec/common.d.ts +40 -41
- package/types/typings/tooltip/position.d.ts +1 -1
- package/types/typings/visual.d.ts +11 -13
- package/types/util/array.d.ts +1 -0
- package/types/util/index.d.ts +1 -0
- package/types/util/mark.d.ts +5 -0
- package/types/util/math.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
|
@@ -2,17 +2,20 @@ import { PolarSeries } from '../polar/polar';
|
|
|
2
2
|
import type { ICorrelationSeriesSpec } from './interface';
|
|
3
3
|
import { SeriesTypeEnum } from '../interface/type';
|
|
4
4
|
import type { SeriesMarkMap } from '../interface';
|
|
5
|
-
import { SeriesData } from '../base/series-data';
|
|
6
5
|
import type { AdaptiveSpec } from '../../typings';
|
|
7
6
|
import type { ILabelMark, IMark } from '../../mark/interface';
|
|
8
7
|
import { CorrelationSeriesSpecTransformer } from './correlation-transformer';
|
|
8
|
+
import { type ICompilableData } from '../../compile/data';
|
|
9
9
|
export declare class CorrelationSeries<T extends ICorrelationSeriesSpec = ICorrelationSeriesSpec> extends PolarSeries<AdaptiveSpec<T, 'outerRadius' | 'innerRadius'>> {
|
|
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
|
-
protected _centerSeriesData:
|
|
18
|
+
protected _centerSeriesData: ICompilableData;
|
|
16
19
|
private _nodePointMark;
|
|
17
20
|
private _ripplePointMark;
|
|
18
21
|
private _centerPointMark;
|
|
@@ -32,7 +35,6 @@ export declare class CorrelationSeries<T extends ICorrelationSeriesSpec = ICorre
|
|
|
32
35
|
protected _sizeRange?: ICorrelationSeriesSpec['sizeRange'];
|
|
33
36
|
getSizeRange(): number[];
|
|
34
37
|
setSizeRange(range: number[]): void;
|
|
35
|
-
protected _viewDataTransform: SeriesData;
|
|
36
38
|
setAttrFromSpec(): void;
|
|
37
39
|
protected initData(): void;
|
|
38
40
|
compileData(): void;
|
|
@@ -51,6 +53,6 @@ export declare class CorrelationSeries<T extends ICorrelationSeriesSpec = ICorre
|
|
|
51
53
|
getActiveMarks(): IMark[];
|
|
52
54
|
getDimensionField(): string[];
|
|
53
55
|
getMeasureField(): string[];
|
|
54
|
-
onLayoutEnd(
|
|
56
|
+
onLayoutEnd(): void;
|
|
55
57
|
}
|
|
56
58
|
export declare const registerCorrelationSeries: () => void;
|
|
@@ -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;
|
|
@@ -49,7 +52,7 @@ export declare class DotSeries<T extends IDotSeriesSpec = IDotSeriesSpec> extend
|
|
|
49
52
|
dataToGridBackgroundPositionY1(datum: Datum): number;
|
|
50
53
|
dataToOpacity(datum: Datum): number;
|
|
51
54
|
dataToGridBackgroundOpacity(datum: Datum): VisualType<number>;
|
|
52
|
-
onLayoutEnd(
|
|
55
|
+
onLayoutEnd(): void;
|
|
53
56
|
getDefaultColorDomain(): any;
|
|
54
57
|
getColorAttribute(): {
|
|
55
58
|
scale: any;
|
|
@@ -63,7 +66,7 @@ export declare class DotSeries<T extends IDotSeriesSpec = IDotSeriesSpec> extend
|
|
|
63
66
|
protected initTooltip(): void;
|
|
64
67
|
onEvaluateEnd(ctx: IModelEvaluateOption): void;
|
|
65
68
|
protected onMarkTreePositionUpdate(marks: IMark[]): void;
|
|
66
|
-
getDotData(): import("../../compile/
|
|
69
|
+
getDotData(): import("../../compile/data").ICompilableData;
|
|
67
70
|
protected _getDataIdKey(): any;
|
|
68
71
|
getStackValueField(): string;
|
|
69
72
|
getActiveMarks(): IMark[];
|
|
@@ -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';
|
|
9
|
-
import { SeriesData } from '../base/series-data';
|
|
5
|
+
import type { IFunnelSeriesSpec, IFunnelSeriesTheme } from './interface';
|
|
10
6
|
import { FunnelSeriesSpecTransformer } from './funnel-transformer';
|
|
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;
|
|
@@ -24,7 +22,7 @@ export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpe
|
|
|
24
22
|
protected _valueField: string;
|
|
25
23
|
getValueField(): string;
|
|
26
24
|
setValueField(f: string): string;
|
|
27
|
-
protected _viewDataTransform:
|
|
25
|
+
protected _viewDataTransform: ICompilableData;
|
|
28
26
|
protected _funnelAlign: 'left' | 'center' | 'right' | 'top' | 'bottom';
|
|
29
27
|
protected _funnelOrient: IOrientType;
|
|
30
28
|
protected _shape: 'rect' | 'trapezoid';
|
|
@@ -39,6 +37,7 @@ export declare class FunnelSeries<T extends IFunnelSeriesSpec = IFunnelSeriesSpe
|
|
|
39
37
|
protected _minLabelLineWidth: number;
|
|
40
38
|
setAttrFromSpec(): void;
|
|
41
39
|
initData(): void;
|
|
40
|
+
compile(): void;
|
|
42
41
|
compileData(): void;
|
|
43
42
|
getStatisticFields(): {
|
|
44
43
|
key: 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
|
-
import type { Datum } from '
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAnimationTypeConfig } from '
|
|
1
|
+
import type { IAnimationTypeConfig } from '../../animation/interface';
|
|
2
2
|
export type ProgressLikeAppearPreset = 'grow' | 'fadeIn';
|
|
3
3
|
export interface IProgressLikeAnimationParams {
|
|
4
4
|
startAngle?: number;
|
|
@@ -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;
|
|
@@ -32,7 +35,10 @@ export declare class GaugePointerSeries<T extends IGaugePointerSeriesSpec = IGau
|
|
|
32
35
|
};
|
|
33
36
|
private initPinBackgroundMarkStyle;
|
|
34
37
|
private initPinMarkStyle;
|
|
35
|
-
|
|
38
|
+
getInteractionTriggers(): {
|
|
39
|
+
trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
|
|
40
|
+
marks: IMark[];
|
|
41
|
+
}[];
|
|
36
42
|
initAnimation(): void;
|
|
37
43
|
getDefaultShapeType(): string;
|
|
38
44
|
getActiveMarks(): IMark[];
|
|
@@ -2,13 +2,16 @@ import type { SeriesMarkMap } from '../interface';
|
|
|
2
2
|
import { SeriesTypeEnum } from '../interface/type';
|
|
3
3
|
import type { IGaugeSeriesSpec } from './interface';
|
|
4
4
|
import { ProgressLikeSeries } from '../polar/progress-like/progress-like';
|
|
5
|
-
import type { Datum } from '@visactor/vgrammar-core';
|
|
6
5
|
import type { IMark } from '../../mark/interface';
|
|
7
6
|
import { GaugeSeriesSpecTransformer } from './gauge-transformer';
|
|
7
|
+
import type { Datum } from '../../typings/common';
|
|
8
8
|
export declare class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec> extends ProgressLikeSeries<T> {
|
|
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;
|
|
@@ -20,7 +23,7 @@ export declare class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec>
|
|
|
20
23
|
initMarkStyle(): void;
|
|
21
24
|
private initSegmentMarkStyle;
|
|
22
25
|
protected generateRadiusStyle(spec: any): any;
|
|
23
|
-
initMarkStyleWithSpec(mark?: IMark, spec?: any
|
|
26
|
+
initMarkStyleWithSpec(mark?: IMark, spec?: any): void;
|
|
24
27
|
protected initTooltip(): void;
|
|
25
28
|
private initTrackMarkStyle;
|
|
26
29
|
protected _getAngleValueStartWithoutMask(datum: Datum): number;
|
|
@@ -1,16 +1,15 @@
|
|
|
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
|
-
import type { SeriesData } from '../base/series-data';
|
|
7
5
|
import type { DataView } from '@visactor/vdataset';
|
|
8
6
|
import type { IGeoSeriesSpec } from './interface';
|
|
9
7
|
import type { IMark } from '../../mark/interface';
|
|
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
|
-
protected _mapViewData:
|
|
12
|
+
protected _mapViewData: ICompilableData;
|
|
14
13
|
getMapViewData(): DataView;
|
|
15
14
|
protected _mapViewDataStatistics: DataView;
|
|
16
15
|
_nameField: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
1
|
import type { HeatmapAppearPreset } from './interface';
|
|
2
|
+
import type { IAnimationTypeConfig } from '../../animation/interface';
|
|
3
3
|
export declare function heatmapPresetAnimation(preset: HeatmapAppearPreset | boolean): IAnimationTypeConfig;
|
|
4
4
|
export declare const registerHeatmapAnimation: () => void;
|
|
@@ -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;
|
|
@@ -27,7 +30,10 @@ export declare class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeries
|
|
|
27
30
|
scale: any;
|
|
28
31
|
field: any;
|
|
29
32
|
};
|
|
30
|
-
|
|
33
|
+
getInteractionTriggers(): {
|
|
34
|
+
trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
|
|
35
|
+
marks: IMark[];
|
|
36
|
+
}[];
|
|
31
37
|
initAnimation(): void;
|
|
32
38
|
protected getCellSize(axisHelper: IAxisHelper): number;
|
|
33
39
|
protected initTooltip(): void;
|
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,10 +1,9 @@
|
|
|
1
1
|
import type { DataView } from '@visactor/vdataset';
|
|
2
|
-
import type { IGrammarItem } from '../../compile/interface';
|
|
3
2
|
import type { IBaseModelSpecTransformerResult, IModelConstructor, IModelMarkInfo, IModelOption, IModelSpecInfo } from '../../model/interface';
|
|
4
3
|
import type { IRegion } from '../../region/interface';
|
|
5
4
|
import type { RenderMode } from '../../typings/spec/common';
|
|
6
5
|
import type { ISeries } from './series';
|
|
7
|
-
import type {
|
|
6
|
+
import type { IMarkOption } from '../../mark/interface';
|
|
8
7
|
import type { ISeriesSpec, StringOrNumber } from '../../typings';
|
|
9
8
|
import type { TransformedLabelSpec } from '../../component/label/interface';
|
|
10
9
|
import type { SeriesMarkNameEnum, SeriesTypeEnum } from './type';
|
|
@@ -55,9 +54,7 @@ export interface ISeriesMarkInitOption extends Partial<IMarkOption> {
|
|
|
55
54
|
themeSpec?: any;
|
|
56
55
|
markSpec?: any;
|
|
57
56
|
skipBeforeLayouted?: boolean;
|
|
58
|
-
parent?: IGroupMark | false;
|
|
59
57
|
isSeriesMark?: boolean;
|
|
60
|
-
depend?: IGrammarItem | IGrammarItem[];
|
|
61
58
|
key?: string | ((datum: any) => string);
|
|
62
59
|
groupKey?: string;
|
|
63
60
|
dataView?: DataView | false;
|
|
@@ -15,13 +15,14 @@ import type { IGeoCoordinateHelper } from '../../component/geo/interface';
|
|
|
15
15
|
import type { ILabelSpec, ILabelInfo } from '../../component/label/interface';
|
|
16
16
|
import type { StatisticOperations } from '../../data/transforms/interface';
|
|
17
17
|
import type { ILegend } from '../../component/legend/interface';
|
|
18
|
+
import type { IBaseTriggerOptions } from '../../interaction/interface/trigger';
|
|
18
19
|
export interface ISeries extends IModel {
|
|
19
20
|
readonly type: string;
|
|
20
21
|
readonly name?: string;
|
|
21
22
|
tooltipHelper: ISeriesTooltipHelper;
|
|
22
23
|
getSpec: () => any;
|
|
23
24
|
readonly coordinate: CoordinateType;
|
|
24
|
-
onLayoutEnd: (
|
|
25
|
+
onLayoutEnd: () => void;
|
|
25
26
|
getRawData: () => DataView | undefined;
|
|
26
27
|
getViewDataFilter: () => DataView | undefined;
|
|
27
28
|
getViewData: () => DataView | undefined;
|
|
@@ -104,6 +105,10 @@ export interface ISeries extends IModel {
|
|
|
104
105
|
getSeriesFieldValue: (datum: Datum, seriesField?: string) => any;
|
|
105
106
|
legendSelectedFilter?: (component: ILegend, selectedKeys: StringOrNumber[]) => StringOrNumber[];
|
|
106
107
|
parseLabelStyle?: (labelStyle: any, labelSpec: any, labelMark?: ILabelMark) => any;
|
|
108
|
+
getInteractionTriggers?: () => {
|
|
109
|
+
trigger: Partial<IBaseTriggerOptions>;
|
|
110
|
+
marks: IMark[];
|
|
111
|
+
}[];
|
|
107
112
|
}
|
|
108
113
|
export interface ICartesianSeries extends ISeries {
|
|
109
114
|
readonly coordinate: 'cartesian';
|
|
@@ -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
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { IAnimationTypeConfig } from '
|
|
1
|
+
import type { IAnimationTypeConfig } from '../../animation/interface';
|
|
2
2
|
import type { ILineAnimationParams, LineAppearPreset } from './interface';
|
|
3
3
|
export declare function linePresetAnimation(params: ILineAnimationParams, preset: LineAppearPreset): IAnimationTypeConfig;
|
|
@@ -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;
|
|
@@ -20,7 +23,7 @@ export declare class LineSeries<T extends ILineSeriesSpec = ILineSeriesSpec> ext
|
|
|
20
23
|
protected initTooltip(): void;
|
|
21
24
|
initMarkStyle(): void;
|
|
22
25
|
initAnimation(): void;
|
|
23
|
-
onLayoutEnd(
|
|
26
|
+
onLayoutEnd(): void;
|
|
24
27
|
getSeriesStyle(datum: Datum): (attribute: string) => unknown;
|
|
25
28
|
getDefaultShapeType(): string;
|
|
26
29
|
getActiveMarks(): IMark[];
|
|
@@ -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;
|
|
@@ -44,10 +47,13 @@ export declare class LinkSeries<T extends ILinkSeriesSpec = ILinkSeriesSpec> ext
|
|
|
44
47
|
scale: any;
|
|
45
48
|
field: string;
|
|
46
49
|
};
|
|
47
|
-
|
|
50
|
+
getInteractionTriggers(): {
|
|
51
|
+
trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
|
|
52
|
+
marks: IMark[];
|
|
53
|
+
}[];
|
|
48
54
|
protected initTooltip(): void;
|
|
49
55
|
protected onMarkTreePositionUpdate(marks: IMark[]): void;
|
|
50
|
-
getDotInfoData(): import("../../compile/
|
|
56
|
+
getDotInfoData(): import("../../compile/data").ICompilableData;
|
|
51
57
|
getActiveMarks(): IMark[];
|
|
52
58
|
}
|
|
53
59
|
export declare const registerLinkSeries: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAnimationTypeConfig } from '
|
|
1
|
+
import type { IAnimationTypeConfig } from '../../animation/interface';
|
|
2
2
|
import type { ILiquidAnimationParams, LiquidAppearPreset } from './interface';
|
|
3
3
|
export declare function liquidPresetAnimation(params: ILiquidAnimationParams, preset: LiquidAppearPreset): IAnimationTypeConfig;
|
|
4
4
|
export declare function liquidGroupPresetAnimation(params: ILiquidAnimationParams, preset: LiquidAppearPreset): IAnimationTypeConfig;
|
|
@@ -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?;
|
|
@@ -41,7 +44,10 @@ export declare class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpe
|
|
|
41
44
|
private _initLiquidBackgroundMarkStyle;
|
|
42
45
|
private _initLiquidMarkStyle;
|
|
43
46
|
protected initTooltip(): void;
|
|
44
|
-
|
|
47
|
+
getInteractionTriggers(): {
|
|
48
|
+
trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
|
|
49
|
+
marks: IMark[];
|
|
50
|
+
}[];
|
|
45
51
|
initAnimation(): void;
|
|
46
52
|
protected initEvent(): void;
|
|
47
53
|
dataToPosition(data: Datum): IPoint;
|