@visactor/vchart-types 0.10.0-alpha.3 → 0.11.6-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/config.d.ts +1 -0
- package/types/animation/utils.d.ts +4 -4
- package/types/chart/area/area.d.ts +0 -1
- package/types/chart/bar/3d/bar-3d.d.ts +0 -1
- package/types/chart/bar/bar-transformer.d.ts +1 -0
- package/types/chart/bar/bar.d.ts +0 -1
- package/types/chart/bar/interface.d.ts +3 -0
- package/types/chart/base/base-chart-transformer.d.ts +9 -1
- package/types/chart/base/base-chart.d.ts +9 -4
- package/types/chart/base/util.d.ts +2 -2
- package/types/chart/box-plot/box-plot.d.ts +0 -1
- package/types/chart/cartesian/cartesian-transformer.d.ts +1 -0
- package/types/chart/circle-packing/circle-packing.d.ts +0 -1
- package/types/chart/common/common-transformer.d.ts +1 -0
- package/types/chart/common/common.d.ts +0 -1
- package/types/chart/common/interface.d.ts +5 -2
- package/types/chart/correlation/correlation.d.ts +0 -1
- package/types/chart/funnel/3d/funnel-3d.d.ts +0 -1
- package/types/chart/funnel/funnel.d.ts +0 -1
- package/types/chart/gauge/gauge.d.ts +0 -1
- package/types/chart/heatmap/heatmap.d.ts +0 -1
- package/types/chart/histogram/3d/histogram-3d.d.ts +0 -1
- package/types/chart/histogram/histogram.d.ts +0 -1
- package/types/chart/index.d.ts +6 -4
- package/types/chart/interface/chart.d.ts +10 -3
- package/types/chart/interface/common.d.ts +1 -5
- package/types/chart/interface/type.d.ts +2 -1
- package/types/chart/line/line.d.ts +0 -1
- package/types/chart/liquid/liquid.d.ts +0 -1
- package/types/chart/map/map.d.ts +0 -1
- package/types/chart/pie/3d/pie-3d.d.ts +0 -1
- package/types/chart/pie/pie.d.ts +0 -1
- package/types/chart/polar/interface.d.ts +2 -1
- package/types/chart/progress/circular/circular.d.ts +0 -1
- package/types/chart/progress/linear/linear.d.ts +0 -1
- package/types/chart/radar/radar.d.ts +0 -1
- package/types/chart/range-area/range-area.d.ts +0 -1
- package/types/chart/range-column/3d/range-column-3d.d.ts +0 -1
- package/types/chart/range-column/range-column.d.ts +0 -1
- package/types/chart/rose/rose.d.ts +0 -1
- package/types/chart/sankey/sankey.d.ts +5 -1
- package/types/chart/scatter/scatter.d.ts +0 -1
- package/types/chart/sequence/interface.d.ts +2 -2
- package/types/chart/sequence/sequence.d.ts +0 -1
- package/types/chart/sunburst/sunburst.d.ts +0 -1
- package/types/chart/treemap/treemap.d.ts +0 -1
- package/types/chart/venn/index.d.ts +3 -0
- package/types/chart/venn/interface.d.ts +6 -0
- package/types/chart/venn/venn-transformer.d.ts +7 -0
- package/types/chart/venn/venn.d.ts +13 -0
- package/types/chart/waterfall/waterfall.d.ts +0 -1
- package/types/chart/word-cloud/3d/word-cloud-3d.d.ts +0 -1
- package/types/chart/word-cloud/word-cloud.d.ts +0 -1
- package/types/compile/compiler.d.ts +5 -3
- package/types/compile/interface/compiler.d.ts +1 -0
- package/types/compile/mark/compilable-mark.d.ts +6 -2
- package/types/compile/mark/interface.d.ts +8 -2
- package/types/component/axis/base-axis.d.ts +13 -60
- package/types/component/axis/cartesian/axis.d.ts +3 -8
- package/types/component/axis/cartesian/band-axis.d.ts +7 -2
- package/types/component/axis/cartesian/interface/common.d.ts +1 -0
- package/types/component/axis/cartesian/interface/spec.d.ts +5 -0
- package/types/component/axis/cartesian/time-axis.d.ts +1 -1
- package/types/component/axis/cartesian/util/index.d.ts +0 -1
- package/types/component/axis/interface/common.d.ts +2 -1
- package/types/component/axis/interface/spec.d.ts +9 -6
- package/types/component/axis/mixin/linear-axis-mixin.d.ts +12 -3
- package/types/component/axis/polar/axis.d.ts +13 -10
- package/types/component/axis/polar/band-axis.d.ts +2 -1
- package/types/component/axis/polar/interface/common.d.ts +2 -0
- package/types/component/axis/polar/interface/spec.d.ts +6 -2
- package/types/component/axis/polar/linear-axis.d.ts +5 -1
- package/types/component/axis/polar/util/common.d.ts +1 -0
- package/types/component/base/base-component.d.ts +2 -1
- package/types/component/base/util.d.ts +5 -0
- package/types/component/brush/brush.d.ts +8 -3
- package/types/component/brush/interface.d.ts +4 -3
- package/types/component/crosshair/base.d.ts +14 -5
- package/types/component/crosshair/cartesian.d.ts +3 -9
- package/types/component/crosshair/interface/cartesian.d.ts +33 -0
- package/types/component/crosshair/interface/common.d.ts +7 -0
- package/types/component/crosshair/interface/index.d.ts +3 -0
- package/types/component/crosshair/interface/polar.d.ts +25 -0
- package/types/component/crosshair/interface/spec.d.ts +3 -0
- package/types/component/crosshair/polar.d.ts +4 -3
- package/types/component/crosshair/utils/cartesian.d.ts +34 -0
- package/types/component/crosshair/utils/common.d.ts +9 -0
- package/types/component/crosshair/utils/index.d.ts +1 -0
- package/types/component/crosshair/utils/polar.d.ts +37 -0
- package/types/component/custom-mark/custom-mark.d.ts +16 -5
- package/types/component/data-zoom/data-filter-base-component.d.ts +7 -9
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +4 -1
- package/types/component/data-zoom/data-zoom/interface.d.ts +6 -8
- package/types/component/data-zoom/index.d.ts +1 -0
- package/types/component/data-zoom/interface.d.ts +3 -0
- package/types/component/data-zoom/scroll-bar/interface.d.ts +3 -5
- package/types/component/data-zoom/util.d.ts +0 -4
- package/types/component/index.d.ts +8 -7
- package/types/component/indicator/interface.d.ts +5 -5
- package/types/component/interface/theme.d.ts +12 -0
- package/types/component/interface/type.d.ts +4 -0
- package/types/component/label/base-label.d.ts +6 -5
- package/types/component/label/interface.d.ts +9 -10
- package/types/component/label/label.d.ts +1 -2
- package/types/component/label/total-label.d.ts +1 -0
- package/types/component/label/util.d.ts +10 -2
- package/types/component/legend/continuous/interface.d.ts +7 -12
- package/types/component/legend/discrete/interface.d.ts +21 -6
- package/types/component/legend/discrete/legend.d.ts +5 -1
- package/types/component/legend/util.d.ts +14 -5
- package/types/component/marker/base-marker.d.ts +37 -44
- package/types/component/marker/interface.d.ts +45 -18
- package/types/component/marker/mark-area/base-mark-area.d.ts +18 -0
- package/types/component/marker/mark-area/cartesian-mark-area.d.ts +19 -0
- package/types/component/marker/mark-area/index.d.ts +2 -1
- package/types/component/marker/mark-area/interface/spec.d.ts +16 -1
- package/types/component/marker/mark-area/interface/theme.d.ts +5 -7
- package/types/component/marker/mark-area/polar-mark-area.d.ts +25 -0
- package/types/component/marker/mark-line/base-mark-line.d.ts +19 -0
- package/types/component/marker/mark-line/cartesian-mark-line.d.ts +20 -0
- package/types/component/marker/mark-line/index.d.ts +2 -1
- package/types/component/marker/mark-line/interface/spec.d.ts +26 -2
- package/types/component/marker/mark-line/interface/theme.d.ts +5 -7
- package/types/component/marker/mark-line/polar-mark-line.d.ts +23 -0
- package/types/component/marker/mark-point/base-mark-point.d.ts +17 -0
- package/types/component/marker/mark-point/cartesian-mark-point.d.ts +16 -0
- package/types/component/marker/mark-point/geo-mark-point.d.ts +14 -0
- package/types/component/marker/mark-point/index.d.ts +3 -1
- package/types/component/marker/mark-point/interface/spec.d.ts +9 -1
- package/types/component/marker/mark-point/interface/theme.d.ts +19 -18
- package/types/component/marker/mark-point/polar-mark-point.d.ts +18 -0
- package/types/component/marker/utils.d.ts +40 -5
- package/types/component/player/interface/theme.d.ts +1 -1
- package/types/component/player/player.d.ts +2 -1
- package/types/component/poptip/interface.d.ts +5 -2
- package/types/component/title/interface/spec.d.ts +18 -7
- package/types/component/title/interface/theme.d.ts +2 -1
- package/types/component/tooltip/constant.d.ts +8 -0
- package/types/component/tooltip/index.d.ts +1 -0
- package/types/component/tooltip/interface/common.d.ts +13 -8
- package/types/component/tooltip/interface/event.d.ts +1 -2
- package/types/component/tooltip/interface/index.d.ts +1 -0
- package/types/component/tooltip/interface/spec.d.ts +6 -5
- package/types/component/tooltip/interface/theme.d.ts +7 -5
- package/types/component/tooltip/processor/base.d.ts +10 -5
- package/types/component/tooltip/processor/group-tooltip.d.ts +11 -0
- package/types/component/tooltip/processor/index.d.ts +1 -0
- package/types/component/tooltip/processor/interface.d.ts +4 -3
- package/types/component/tooltip/processor/mark-tooltip.d.ts +2 -2
- package/types/component/tooltip/processor/util.d.ts +1 -1
- package/types/component/tooltip/tooltip-transformer.d.ts +2 -0
- package/types/component/tooltip/tooltip.d.ts +7 -11
- package/types/component/tooltip/utils/compose.d.ts +4 -0
- package/types/component/tooltip/utils/get-spec.d.ts +5 -0
- package/types/component/tooltip/utils/get-value.d.ts +6 -0
- package/types/component/tooltip/utils/index.d.ts +4 -0
- package/types/component/tooltip/utils/pattern.d.ts +4 -0
- package/types/component/tooltip/utils/show-tooltip.d.ts +21 -3
- package/types/component/util.d.ts +8 -0
- package/types/constant/index.d.ts +1 -0
- package/types/core/factory.d.ts +3 -0
- package/types/core/index.d.ts +1 -0
- package/types/core/interface.d.ts +10 -3
- package/types/core/vchart.d.ts +12 -5
- package/types/data/transforms/aggregation.d.ts +12 -7
- package/types/data/transforms/dimension-statistics.d.ts +2 -0
- package/types/data/transforms/funnel.d.ts +1 -1
- package/types/data/transforms/invalid-travel.d.ts +1 -1
- package/types/data/transforms/legend-data/continuous/interface.d.ts +1 -0
- package/types/data/transforms/legend-data/discrete/interface.d.ts +2 -0
- package/types/env/env.d.ts +2 -0
- package/types/event/event-dispatcher.d.ts +3 -0
- package/types/event/events/dimension/interface.d.ts +4 -2
- package/types/event/interface.d.ts +14 -2
- package/types/index.d.ts +2 -0
- package/types/interaction/dimension-trigger.d.ts +1 -6
- package/types/interaction/index.d.ts +1 -0
- package/types/interaction/interaction.d.ts +5 -0
- package/types/interaction/interface.d.ts +12 -9
- package/types/layout/grid-layout/grid-layout.d.ts +1 -1
- package/types/mark/base/base-mark.d.ts +3 -3
- package/types/mark/index.d.ts +20 -21
- package/types/mark/interface/type.d.ts +0 -1
- package/types/mark/label.d.ts +2 -2
- package/types/mark/text.d.ts +16 -7
- package/types/model/interface.d.ts +4 -8
- package/types/model/tooltip-helper.d.ts +4 -2
- package/types/plugin/base/base-plugin-service.d.ts +4 -2
- package/types/plugin/base/base-plugin.d.ts +1 -0
- package/types/plugin/base/interface.d.ts +6 -3
- package/types/plugin/chart/formatter/formatter.d.ts +28 -0
- package/types/plugin/chart/formatter/index.d.ts +1 -0
- package/types/plugin/chart/index.d.ts +1 -0
- package/types/plugin/chart/media-query/media-query.d.ts +1 -1
- package/types/plugin/chart/plugin-service.d.ts +1 -0
- package/types/plugin/components/index.d.ts +2 -5
- package/types/plugin/components/plugin-service.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +8 -13
- package/types/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.d.ts +1 -2
- package/types/plugin/components/tooltip-handler/constants.d.ts +0 -8
- package/types/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +8 -4
- package/types/plugin/components/tooltip-handler/dom/interface.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/dom/model/base-tooltip-model.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/dom/model/content-column-model.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/dom/model/content-model.d.ts +1 -3
- package/types/plugin/components/tooltip-handler/dom/model/interface.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/interface/style.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/utils/common.d.ts +1 -7
- package/types/plugin/components/tooltip-handler/utils/compose.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/utils/index.d.ts +0 -3
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +19 -3
- package/types/plugin/index.d.ts +1 -0
- package/types/region/interface.d.ts +4 -1
- package/types/region/region.d.ts +1 -0
- package/types/series/area/animation.d.ts +1 -1
- package/types/series/area/area-transformer.d.ts +1 -0
- package/types/series/area/area.d.ts +1 -1
- package/types/series/area/interface.d.ts +7 -1
- package/types/series/bar/bar-transformer.d.ts +1 -0
- package/types/series/bar/bar.d.ts +11 -3
- package/types/series/bar/interface.d.ts +4 -3
- package/types/series/base/base-series-transformer.d.ts +9 -3
- package/types/series/base/base-series.d.ts +16 -23
- package/types/series/base/tooltip-helper.d.ts +12 -8
- package/types/series/box-plot/tooltip-helper.d.ts +1 -1
- package/types/series/cartesian/cartesian.d.ts +3 -4
- package/types/series/circle-packing/tooltip-helper.d.ts +1 -1
- package/types/series/correlation/interface.d.ts +3 -3
- package/types/series/dot/interface.d.ts +2 -2
- package/types/series/funnel/funnel.d.ts +1 -1
- package/types/series/funnel/interface.d.ts +6 -4
- package/types/series/funnel/tooltip-helper.d.ts +3 -3
- package/types/series/gauge/gauge-pointer-transformer.d.ts +5 -0
- package/types/series/gauge/gauge-pointer.d.ts +3 -1
- package/types/series/gauge/gauge-transformer.d.ts +1 -0
- package/types/series/gauge/gauge.d.ts +0 -1
- package/types/series/gauge/interface.d.ts +3 -3
- package/types/series/geo/geo.d.ts +2 -1
- package/types/series/index.d.ts +7 -3
- package/types/series/interface/common.d.ts +12 -5
- package/types/series/interface/series.d.ts +12 -3
- package/types/series/interface/theme.d.ts +19 -1
- package/types/series/interface/tooltip-helper.d.ts +8 -5
- package/types/series/interface/type.d.ts +6 -2
- package/types/series/line/interface.d.ts +3 -2
- package/types/series/map/geo-source.d.ts +4 -2
- package/types/series/map/interface.d.ts +3 -5
- package/types/series/map/tooltip-helper.d.ts +1 -1
- package/types/series/mixin/line-mixin.d.ts +1 -0
- package/types/series/pie/3d/pie-3d.d.ts +1 -1
- package/types/series/pie/interface.d.ts +5 -4
- package/types/series/pie/pie-transformer.d.ts +1 -0
- package/types/series/pie/pie.d.ts +2 -4
- package/types/series/polar/interface.d.ts +2 -2
- package/types/series/polar/polar.d.ts +3 -3
- package/types/series/polar/progress-like/progress-like.d.ts +0 -1
- package/types/series/progress/circular/circular-transformer.d.ts +5 -0
- package/types/series/progress/circular/circular.d.ts +3 -0
- package/types/series/progress/circular/interface.d.ts +5 -5
- package/types/series/radar/interface.d.ts +2 -1
- package/types/series/range-area/range-area.d.ts +2 -2
- package/types/series/range-column/interface.d.ts +5 -5
- package/types/series/range-column/range-column-transformer.d.ts +1 -0
- package/types/series/range-column/range-column.d.ts +0 -1
- package/types/series/rose/interface.d.ts +2 -1
- package/types/series/rose/rose-transformer.d.ts +1 -0
- package/types/series/rose/rose.d.ts +0 -1
- package/types/series/sankey/interface.d.ts +7 -2
- package/types/series/sankey/sankey.d.ts +13 -4
- package/types/series/scatter/interface.d.ts +2 -1
- package/types/series/sunburst/sunburst.d.ts +1 -1
- package/types/series/sunburst/tooltip-helper.d.ts +1 -1
- package/types/series/treemap/interface.d.ts +3 -2
- package/types/series/treemap/tooltip-helper.d.ts +1 -1
- package/types/series/treemap/treemap.d.ts +3 -0
- package/types/series/venn/animation.d.ts +6 -0
- package/types/series/venn/constant.d.ts +2 -0
- package/types/series/venn/interface.d.ts +21 -0
- package/types/series/venn/tooltip-helper.d.ts +5 -0
- package/types/series/venn/util.d.ts +1 -0
- package/types/series/venn/venn-transform.d.ts +6 -0
- package/types/series/venn/venn.d.ts +63 -0
- package/types/series/waterfall/interface.d.ts +6 -1
- package/types/series/waterfall/waterfall-transformer.d.ts +1 -0
- package/types/series/waterfall/waterfall.d.ts +9 -1
- package/types/series/word-cloud/base.d.ts +2 -0
- package/types/series/word-cloud/interface.d.ts +2 -6
- package/types/theme/builtin/common/series/venn.d.ts +2 -0
- package/types/theme/index.d.ts +1 -0
- package/types/theme/interface.d.ts +3 -19
- package/types/theme/theme-manager.d.ts +1 -1
- package/types/theme/token/builtin/default.d.ts +2 -0
- package/types/theme/token/builtin/index.d.ts +2 -0
- package/types/theme/token/builtin/interface.d.ts +17 -0
- package/types/theme/token/index.d.ts +3 -0
- package/types/theme/token/interface.d.ts +6 -0
- package/types/theme/token/util.d.ts +3 -0
- package/types/typings/spec/chart.d.ts +2 -0
- package/types/typings/spec/common.d.ts +41 -26
- package/types/typings/spec/index.d.ts +1 -1
- package/types/typings/tooltip/handler.d.ts +1 -1
- package/types/typings/tooltip/line.d.ts +9 -2
- package/types/typings/tooltip/position.d.ts +18 -24
- package/types/typings/tooltip/shape.d.ts +2 -2
- package/types/typings/tooltip/tooltip.d.ts +13 -8
- package/types/typings/visual.d.ts +15 -11
- package/types/util/data.d.ts +22 -4
- package/types/util/hierarchy.d.ts +2 -0
- package/types/util/index.d.ts +2 -2
- package/types/util/math.d.ts +4 -5
- package/types/util/space.d.ts +1 -1
- package/types/util/spec/common.d.ts +0 -2
- package/types/util/spec/index.d.ts +0 -5
- package/types/util/theme/common.d.ts +2 -0
- package/types/util/theme/index.d.ts +3 -0
- package/types/util/theme/merge-theme.d.ts +6 -0
- package/types/util/theme/preprocess.d.ts +4 -0
|
@@ -6,7 +6,7 @@ export declare class BoxPlotSeriesTooltipHelper extends BaseSeriesTooltipHelper
|
|
|
6
6
|
getDefaultTooltipPattern(activeType: TooltipActiveType): ITooltipPattern | null;
|
|
7
7
|
getContentKey: (contentType: BOX_PLOT_TOOLTIP_KEYS) => (datum: any) => string;
|
|
8
8
|
getContentValue: (contentType: BOX_PLOT_TOOLTIP_KEYS) => (datum: any) => any;
|
|
9
|
-
|
|
9
|
+
shapeColorCallback: (datum: Datum) => any;
|
|
10
10
|
getOutlierFillColor: (datum: Datum) => any;
|
|
11
11
|
isOutlierMark: (datum: Datum) => boolean;
|
|
12
12
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { DataView } from '@visactor/vdataset';
|
|
2
1
|
import type { ICartesianSeries } from '../interface';
|
|
3
2
|
import { BaseSeries } from '../base/base-series';
|
|
4
3
|
import type { IPoint } from '../../typings/coordinate';
|
|
@@ -68,7 +67,7 @@ export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = I
|
|
|
68
67
|
onYAxisHelperUpdate(): void;
|
|
69
68
|
onZAxisHelperUpdate(): void;
|
|
70
69
|
setAttrFromSpec(): void;
|
|
71
|
-
dataToPosition(datum: Datum): IPoint | null;
|
|
70
|
+
dataToPosition(datum: Datum, checkInViewData?: boolean): IPoint | null;
|
|
72
71
|
protected _buildMarkAttributeContext(): void;
|
|
73
72
|
valueToPosition(xValue: StringOrNumber | StringOrNumber[], yValue: StringOrNumber | StringOrNumber[]): {
|
|
74
73
|
x: number;
|
|
@@ -98,8 +97,8 @@ export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = I
|
|
|
98
97
|
getDimensionField(): string[];
|
|
99
98
|
getDimensionContinuousField(): string[];
|
|
100
99
|
getMeasureField(): string[];
|
|
101
|
-
|
|
100
|
+
protected initEvent(): void;
|
|
102
101
|
_sortDataInAxisDomain(): void;
|
|
103
|
-
protected
|
|
102
|
+
protected getInvalidCheckFields(): string[];
|
|
104
103
|
reInit(spec: T): void;
|
|
105
104
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Datum } from '../../typings';
|
|
2
2
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
3
|
export declare class CirclePackingTooltipHelper extends BaseSeriesTooltipHelper {
|
|
4
|
-
|
|
4
|
+
markTooltipKeyCallback: (datum: Datum) => any;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IMarkTheme, IMarkSpec } from '../../typings';
|
|
2
|
-
import type { ILabelSpec } from '../../component/label';
|
|
2
|
+
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label';
|
|
3
3
|
import type { ISymbolMarkSpec, IRippleMarkSpec } from '../../typings';
|
|
4
4
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
5
|
import type { IPolarSeriesSpec } from '../polar/interface';
|
|
@@ -24,9 +24,9 @@ export interface ICorrelationSeriesSpec extends Omit<IPolarSeriesSpec, 'innerRad
|
|
|
24
24
|
position?: 'top' | 'bottom' | 'left' | 'right' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center';
|
|
25
25
|
};
|
|
26
26
|
[SeriesMarkNameEnum.nodePoint]?: IMarkSpec<ISymbolMarkSpec>;
|
|
27
|
-
[SeriesMarkNameEnum.label]?: ILabelSpec & {
|
|
27
|
+
[SeriesMarkNameEnum.label]?: IMultiLabelSpec<ILabelSpec & {
|
|
28
28
|
position?: 'top' | 'bottom' | 'left' | 'right' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'center';
|
|
29
|
-
}
|
|
29
|
+
}>;
|
|
30
30
|
}
|
|
31
31
|
export interface ICorrelationSeriesTheme {
|
|
32
32
|
[SeriesMarkNameEnum.nodePoint]?: IMarkTheme<ISymbolMarkSpec>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ICartesianSeriesSpec, ICartesianSeriesTheme } from '../cartesian/interface';
|
|
2
|
-
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
2
|
+
import type { IFormatMethod, IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
3
|
import type { ISymbolMarkSpec, IRuleMarkSpec, ITextMarkSpec, ConvertToMarkStyleSpec } from '../../typings/visual';
|
|
4
4
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
5
|
interface ISequenceLabel {
|
|
6
6
|
visible?: boolean;
|
|
7
|
-
formatMethod?:
|
|
7
|
+
formatMethod?: IFormatMethod<[text: string | string[], datum?: any]>;
|
|
8
8
|
style?: Omit<ConvertToMarkStyleSpec<ITextMarkSpec>, 'visible'>;
|
|
9
9
|
}
|
|
10
10
|
interface ISequenceGrid {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { Datum, IMarkSpec, IMarkTheme, ISeriesSpec, IOrientType, IPathMarkSpec, IPolygonMarkSpec, IRuleMarkSpec, ITextMarkSpec, IPyramid3dMarkSpec, IPercent } from '../../typings';
|
|
1
|
+
import type { Datum, IMarkSpec, IMarkTheme, ISeriesSpec, IOrientType, IPathMarkSpec, IPolygonMarkSpec, IRuleMarkSpec, ITextMarkSpec, IPyramid3dMarkSpec, IPercent, IComposedTextMarkSpec, IFormatMethod } from '../../typings';
|
|
2
2
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
3
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
|
+
import { ILabelSpec } from '../../component';
|
|
4
5
|
type FunnelMarks = 'funnel';
|
|
5
6
|
export type FunnelAppearPreset = 'clipIn' | 'fadeIn';
|
|
6
7
|
export interface IFunnelSeriesSpec extends ISeriesSpec, IAnimationSpec<FunnelMarks, FunnelAppearPreset> {
|
|
@@ -19,17 +20,18 @@ export interface IFunnelSeriesSpec extends ISeriesSpec, IAnimationSpec<FunnelMar
|
|
|
19
20
|
};
|
|
20
21
|
maxSize?: number | IPercent;
|
|
21
22
|
minSize?: number | IPercent;
|
|
23
|
+
heightRatio?: number;
|
|
22
24
|
[SeriesMarkNameEnum.funnel]?: IMarkSpec<IPathMarkSpec>;
|
|
23
25
|
[SeriesMarkNameEnum.transform]?: IMarkSpec<IPathMarkSpec>;
|
|
24
26
|
[SeriesMarkNameEnum.label]?: IFunnelLabelSpec;
|
|
25
27
|
[SeriesMarkNameEnum.outerLabel]?: IFunnelOuterLabelSpec;
|
|
26
28
|
[SeriesMarkNameEnum.transformLabel]?: IFunnelLabelSpec;
|
|
27
29
|
}
|
|
28
|
-
interface IFunnelLabelSpec extends
|
|
30
|
+
interface IFunnelLabelSpec extends Omit<ILabelSpec, 'position' | 'offset'> {
|
|
29
31
|
limit?: 'shapeSize' | number;
|
|
30
|
-
formatMethod?: (text: string | string[], datum?: Datum) => string | string[];
|
|
31
32
|
}
|
|
32
|
-
export interface IFunnelOuterLabelSpec extends
|
|
33
|
+
export interface IFunnelOuterLabelSpec extends IMarkSpec<IComposedTextMarkSpec> {
|
|
34
|
+
formatMethod?: IFormatMethod<[text: string | string[], datum?: Datum]>;
|
|
33
35
|
position?: 'left' | 'right' | 'top' | 'bottom';
|
|
34
36
|
spaceWidth?: number;
|
|
35
37
|
alignLabel?: boolean;
|
|
@@ -3,7 +3,7 @@ import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
|
3
3
|
import type { TooltipHandlerParams } from '../../component/tooltip/interface';
|
|
4
4
|
import type { Datum } from '@visactor/vgrammar-core';
|
|
5
5
|
export declare class FunnelSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
dimensionTooltipTitleCallback: (datum: Datum, params?: TooltipHandlerParams) => any;
|
|
7
|
+
markTooltipValueCallback: (datum: Datum, params?: TooltipHandlerParams) => any;
|
|
8
|
+
markTooltipKeyCallback: (datum: Datum, params?: TooltipHandlerParams) => any;
|
|
9
9
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseSeriesSpecTransformer } from '../base';
|
|
2
|
+
import type { IGaugePointerSeriesSpec, IGaugePointerSeriesTheme } from './interface';
|
|
3
|
+
export declare class GaugePointerSeriesSpecTransformer<T extends IGaugePointerSeriesSpec = IGaugePointerSeriesSpec, K extends IGaugePointerSeriesTheme = IGaugePointerSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
|
|
4
|
+
protected _supportStack: boolean;
|
|
5
|
+
}
|
|
@@ -5,14 +5,16 @@ import { SeriesTypeEnum } from '../interface/type';
|
|
|
5
5
|
import type { IGaugePointerSeriesSpec, PinMarkSpec, PointerMarkSpec } from './interface';
|
|
6
6
|
import type { Datum } from '../../typings';
|
|
7
7
|
import { ProgressLikeSeries } from '../polar/progress-like';
|
|
8
|
+
import { GaugePointerSeriesSpecTransformer } from './gauge-pointer-transformer';
|
|
8
9
|
export declare class GaugePointerSeries<T extends IGaugePointerSeriesSpec = IGaugePointerSeriesSpec> extends ProgressLikeSeries<T> {
|
|
9
10
|
static readonly type: string;
|
|
10
11
|
type: SeriesTypeEnum;
|
|
11
12
|
static readonly mark: SeriesMarkMap;
|
|
13
|
+
static readonly transformerConstructor: any;
|
|
14
|
+
readonly transformerConstructor: typeof GaugePointerSeriesSpecTransformer;
|
|
12
15
|
private _pinMark;
|
|
13
16
|
private _pointerMark;
|
|
14
17
|
private _pinBackgroundMark;
|
|
15
|
-
protected _stack: boolean;
|
|
16
18
|
protected _pointerType: MarkTypeEnum;
|
|
17
19
|
setAttrFromSpec(): void;
|
|
18
20
|
initMark(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseSeriesSpecTransformer } from '../base';
|
|
2
2
|
import type { IGaugeSeriesSpec, IGaugeSeriesTheme } from './interface';
|
|
3
3
|
export declare class GaugeSeriesSpecTransformer<T extends IGaugeSeriesSpec = IGaugeSeriesSpec, K extends IGaugeSeriesTheme = IGaugeSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
|
|
4
|
+
protected _supportStack: boolean;
|
|
4
5
|
protected _transformLabelSpec(spec: T): void;
|
|
5
6
|
}
|
|
@@ -13,7 +13,6 @@ export declare class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec>
|
|
|
13
13
|
readonly transformerConstructor: typeof GaugeSeriesSpecTransformer;
|
|
14
14
|
private _segmentMark;
|
|
15
15
|
private _trackMark;
|
|
16
|
-
protected _stack: boolean;
|
|
17
16
|
protected _padAngle: number;
|
|
18
17
|
setAttrFromSpec(): void;
|
|
19
18
|
initData(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec';
|
|
2
|
-
import type { IArcMarkSpec, IPathMarkSpec,
|
|
2
|
+
import type { IArcMarkSpec, IPathMarkSpec, IRectMarkSpec } from '../../typings/visual';
|
|
3
3
|
import type { IProgressLikeSeriesSpec, IProgressLikeSeriesTheme } from '../polar/progress-like/interface';
|
|
4
4
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
5
5
|
import type { ProgressLikeAppearPreset } from '../polar/progress-like';
|
|
@@ -37,13 +37,13 @@ export type GaugeMarks = 'segment' | 'track';
|
|
|
37
37
|
export interface IGaugeSeriesSpec extends IProgressLikeSeriesSpec, IAnimationSpec<GaugeMarks, ProgressLikeAppearPreset> {
|
|
38
38
|
type: 'gauge';
|
|
39
39
|
padAngle?: number;
|
|
40
|
-
[SeriesMarkNameEnum.segment]?: IMarkSpec<
|
|
40
|
+
[SeriesMarkNameEnum.segment]?: IMarkSpec<IArcMarkSpec>;
|
|
41
41
|
[SeriesMarkNameEnum.track]?: IMarkSpec<IArcMarkSpec>;
|
|
42
42
|
[SeriesMarkNameEnum.label]?: IGaugeLabelSpec;
|
|
43
43
|
}
|
|
44
44
|
export interface IGaugeSeriesTheme extends IProgressLikeSeriesTheme {
|
|
45
45
|
padAngle?: number;
|
|
46
|
-
[SeriesMarkNameEnum.segment]?: Partial<IMarkTheme<
|
|
46
|
+
[SeriesMarkNameEnum.segment]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
47
47
|
[SeriesMarkNameEnum.track]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
48
48
|
[SeriesMarkNameEnum.label]?: IGaugeLabelSpec;
|
|
49
49
|
}
|
|
@@ -31,8 +31,9 @@ export declare abstract class GeoSeries<T extends IGeoSeriesSpec = IGeoSeriesSpe
|
|
|
31
31
|
operations: Array<'max' | 'min' | 'values'>;
|
|
32
32
|
}[];
|
|
33
33
|
getGroupFields(): string[];
|
|
34
|
-
dataToPosition(datum: any): IPoint | null;
|
|
34
|
+
dataToPosition(datum: any, checkInViewData?: boolean): IPoint | null;
|
|
35
35
|
protected nameToPosition(datum: any): IPoint | null;
|
|
36
|
+
nameValueToPosition(name: string): IPoint | null;
|
|
36
37
|
abstract getDatumCenter(datum: any): [number, number];
|
|
37
38
|
abstract getDatumName(datum: any): string;
|
|
38
39
|
dataToLatitude(latValue: number): number;
|
package/types/series/index.d.ts
CHANGED
|
@@ -63,8 +63,12 @@ import type { IProgressLikeSeriesSpec } from './polar/progress-like';
|
|
|
63
63
|
import { ProgressLikeSeries } from './polar/progress-like';
|
|
64
64
|
import type { IRoseLikeSeriesSpec } from './polar/rose-like';
|
|
65
65
|
import { RoseLikeSeries } from './polar/rose-like';
|
|
66
|
+
import type { ILiquidSeriesSpec } from './liquid/interface';
|
|
67
|
+
import { LiquidSeries, registerLiquidSeries } from './liquid/liquid';
|
|
68
|
+
import type { IVennSeriesSpec } from './venn/interface';
|
|
69
|
+
import { VennSeries, registerVennSeries } from './venn/venn';
|
|
66
70
|
import type { ISeries, ICartesianSeries, IPolarSeries, IGeoSeries } from './interface';
|
|
67
|
-
export { WaterfallSeries, Bar3dSeries, BarSeries, BoxPlotSeries, LineSeries, RadarSeries, RangeAreaSeries, RangeColumn3dSeries, RangeColumnSeries, MapSeries, Pie3dSeries, PieSeries, SankeySeries, ScatterSeries, SunburstSeries, RoseLikeSeries, RoseSeries, AreaSeries, DotSeries, LinearProgressSeries, LinkSeries, CirclePackingSeries, CircularProgressSeries, WordCloud3dSeries, WordCloudSeries, Funnel3dSeries, FunnelSeries, TreemapSeries, GaugePointerSeries, GaugeSeries, HeatmapSeries, BaseSeries, CartesianSeries, PolarSeries, ProgressLikeSeries, CorrelationSeries };
|
|
68
|
-
export { registerAreaSeries, registerBar3dSeries, registerBarSeries, registerBoxplotSeries, registerCirclePackingSeries, registerCircularProgressSeries, registerDotSeries, registerFunnel3dSeries, registerFunnelSeries, registerGaugePointerSeries, registerGaugeSeries, registerHeatmapSeries, registerLineSeries, registerLinearProgressSeries, registerLinkSeries, registerMapSeries, registerPie3dSeries, registerPieSeries, registerRadarSeries, registerRangeAreaSeries, registerRangeColumn3dSeries, registerRangeColumnSeries, registerRoseSeries, registerSankeySeries, registerScatterSeries, registerSunBurstSeries, registerTreemapSeries, registerWaterfallSeries, registerWordCloud3dSeries, registerWordCloudSeries };
|
|
69
|
-
export type { ISeries, ICartesianSeries, IPolarSeries, IGeoSeries, IRoseLikeSeriesSpec, IAreaSeriesSpec, IBar3dSeriesSpec, IBarSeriesSpec, IBoxPlotSeriesSpec, ICartesianSeriesSpec, ICirclePackingSeriesSpec, ICircularProgressSeriesSpec, IDotSeriesSpec, IFunnel3dSeriesSpec, IFunnelSeriesSpec, IGaugePointerSeriesSpec, IGaugeSeriesSpec, IHeatmapSeriesSpec, ILineSeriesSpec, ILinearProgressSeriesSpec, ILinkSeriesSpec, IMapSeriesSpec, IPie3dSeriesSpec, IPieSeriesSpec, IPolarSeriesSpec, IProgressLikeSeriesSpec, IRadarSeriesSpec, IRangeAreaSeriesSpec, IRangeColumn3dSeriesSpec, IRangeColumnSeriesSpec, IRoseSeriesSpec, ISankeySeriesSpec, IScatterSeriesSpec, ISunburstSeriesSpec, ITreemapSeriesSpec, IWaterfallSeriesSpec, IWordCloud3dSeriesSpec, IWordCloudSeriesSpec, ICorrelationSeriesSpec };
|
|
71
|
+
export { WaterfallSeries, Bar3dSeries, BarSeries, BoxPlotSeries, LineSeries, RadarSeries, RangeAreaSeries, RangeColumn3dSeries, RangeColumnSeries, MapSeries, Pie3dSeries, PieSeries, SankeySeries, ScatterSeries, SunburstSeries, RoseLikeSeries, RoseSeries, AreaSeries, DotSeries, LinearProgressSeries, LinkSeries, CirclePackingSeries, CircularProgressSeries, WordCloud3dSeries, WordCloudSeries, Funnel3dSeries, FunnelSeries, TreemapSeries, GaugePointerSeries, GaugeSeries, HeatmapSeries, BaseSeries, CartesianSeries, PolarSeries, ProgressLikeSeries, CorrelationSeries, LiquidSeries, VennSeries };
|
|
72
|
+
export { registerAreaSeries, registerBar3dSeries, registerBarSeries, registerBoxplotSeries, registerCirclePackingSeries, registerCircularProgressSeries, registerDotSeries, registerFunnel3dSeries, registerFunnelSeries, registerGaugePointerSeries, registerGaugeSeries, registerHeatmapSeries, registerLineSeries, registerLinearProgressSeries, registerLinkSeries, registerMapSeries, registerPie3dSeries, registerPieSeries, registerRadarSeries, registerRangeAreaSeries, registerRangeColumn3dSeries, registerRangeColumnSeries, registerRoseSeries, registerSankeySeries, registerScatterSeries, registerSunBurstSeries, registerTreemapSeries, registerWaterfallSeries, registerWordCloud3dSeries, registerWordCloudSeries, registerLiquidSeries, registerVennSeries };
|
|
73
|
+
export type { ISeries, ICartesianSeries, IPolarSeries, IGeoSeries, IRoseLikeSeriesSpec, IAreaSeriesSpec, IBar3dSeriesSpec, IBarSeriesSpec, IBoxPlotSeriesSpec, ICartesianSeriesSpec, ICirclePackingSeriesSpec, ICircularProgressSeriesSpec, IDotSeriesSpec, IFunnel3dSeriesSpec, IFunnelSeriesSpec, IGaugePointerSeriesSpec, IGaugeSeriesSpec, IHeatmapSeriesSpec, ILineSeriesSpec, ILinearProgressSeriesSpec, ILinkSeriesSpec, IMapSeriesSpec, IPie3dSeriesSpec, IPieSeriesSpec, IPolarSeriesSpec, IProgressLikeSeriesSpec, IRadarSeriesSpec, IRangeAreaSeriesSpec, IRangeColumn3dSeriesSpec, IRangeColumnSeriesSpec, IRoseSeriesSpec, ISankeySeriesSpec, IScatterSeriesSpec, ISunburstSeriesSpec, ITreemapSeriesSpec, IWaterfallSeriesSpec, IWordCloud3dSeriesSpec, IWordCloudSeriesSpec, ICorrelationSeriesSpec, ILiquidSeriesSpec, IVennSeriesSpec };
|
|
70
74
|
export * from './interface';
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import type { DataView } from '@visactor/vdataset';
|
|
2
2
|
import type { IGrammarItem } from '../../compile/interface';
|
|
3
3
|
import type { IGroupMark } from '../../mark/group';
|
|
4
|
-
import type { IModelConstructor, IModelMarkInfo, IModelOption, IModelSpecInfo } from '../../model/interface';
|
|
4
|
+
import type { IBaseModelSpecTransformerResult, IModelConstructor, IModelMarkInfo, IModelOption, IModelSpecInfo } from '../../model/interface';
|
|
5
5
|
import type { IRegion } from '../../region/interface';
|
|
6
6
|
import type { RenderMode } from '../../typings/spec/common';
|
|
7
7
|
import type { ISeries } from './series';
|
|
8
|
-
import type { IMarkProgressiveConfig } from '../../mark/interface';
|
|
8
|
+
import type { IMarkOption, IMarkProgressiveConfig } from '../../mark/interface';
|
|
9
9
|
import type { ISeriesSpec, StringOrNumber } from '../../typings';
|
|
10
10
|
import type { TransformedLabelSpec } from '../../component/label';
|
|
11
11
|
import type { SeriesMarkNameEnum, SeriesTypeEnum } from './type';
|
|
12
12
|
import type { ICustomPath2D } from '@visactor/vrender-core';
|
|
13
|
+
import type { MarkClip } from '../../compile/mark';
|
|
13
14
|
export interface ISeriesSeriesInfo {
|
|
14
15
|
key: string;
|
|
16
|
+
originalKey: any;
|
|
15
17
|
index?: number;
|
|
16
18
|
style: (attribute: string) => any;
|
|
17
19
|
shapeType: string;
|
|
@@ -50,14 +52,14 @@ export type ISeriesStyleItem = {
|
|
|
50
52
|
style?: any;
|
|
51
53
|
};
|
|
52
54
|
};
|
|
53
|
-
export interface ISeriesMarkInitOption {
|
|
55
|
+
export interface ISeriesMarkInitOption extends Partial<IMarkOption> {
|
|
54
56
|
themeSpec?: any;
|
|
55
57
|
markSpec?: any;
|
|
56
58
|
skipBeforeLayouted?: boolean;
|
|
57
59
|
parent?: IGroupMark | false;
|
|
58
60
|
isSeriesMark?: boolean;
|
|
59
61
|
depend?: IGrammarItem | IGrammarItem[];
|
|
60
|
-
key?: string;
|
|
62
|
+
key?: string | ((datum: any) => string);
|
|
61
63
|
groupKey?: string;
|
|
62
64
|
morph?: boolean;
|
|
63
65
|
defaultMorphElementKey?: string;
|
|
@@ -69,13 +71,18 @@ export interface ISeriesMarkInitOption {
|
|
|
69
71
|
customShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;
|
|
70
72
|
stateSort?: (stateA: string, stateB: string) => number;
|
|
71
73
|
componentType?: string;
|
|
74
|
+
clip?: MarkClip;
|
|
72
75
|
}
|
|
73
76
|
export interface ISeriesMarkInfo extends IModelMarkInfo {
|
|
74
77
|
name: SeriesMarkNameEnum | string;
|
|
75
78
|
}
|
|
76
79
|
export type SeriesMarkMap = Partial<Record<SeriesMarkNameEnum, ISeriesMarkInfo>>;
|
|
77
|
-
export interface ISeriesSpecInfo<T extends ISeriesSpec = ISeriesSpec> extends IModelSpecInfo {
|
|
80
|
+
export interface ISeriesSpecInfo<T extends ISeriesSpec = ISeriesSpec> extends IModelSpecInfo, ISeriesSpecTransformerResult<T, any> {
|
|
78
81
|
type: string | SeriesTypeEnum;
|
|
79
82
|
spec: T;
|
|
83
|
+
theme: any;
|
|
84
|
+
}
|
|
85
|
+
export interface ISeriesSpecTransformerResult<T, K> extends IBaseModelSpecTransformerResult<T, K> {
|
|
80
86
|
markLabelSpec?: Partial<Record<SeriesMarkNameEnum, TransformedLabelSpec[]>>;
|
|
87
|
+
stack?: boolean;
|
|
81
88
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ILabelInfo } from './../../component/label/label';
|
|
1
2
|
import type { PanEventParam, ZoomEventParam } from '../../event/interface';
|
|
2
3
|
import type { IModel } from '../../model/interface';
|
|
3
4
|
import type { DataSet, DataView, ITransformOptions } from '@visactor/vdataset';
|
|
@@ -15,6 +16,7 @@ import type { StatisticOperations } from '../../data/transforms/dimension-statis
|
|
|
15
16
|
import type { IGroupMark } from '../../mark/group';
|
|
16
17
|
import type { IGeoCoordinateHelper } from '../../component/geo/interface';
|
|
17
18
|
import type { ILabelMark } from '../../mark/label';
|
|
19
|
+
import type { BaseLegend } from '../../component/legend/base-legend';
|
|
18
20
|
export interface ISeries extends IModel {
|
|
19
21
|
readonly type: string;
|
|
20
22
|
readonly name?: string;
|
|
@@ -43,6 +45,7 @@ export interface ISeries extends IModel {
|
|
|
43
45
|
reFilterViewData: () => void;
|
|
44
46
|
reTransformViewData: () => void;
|
|
45
47
|
fillData: () => void;
|
|
48
|
+
isHierarchyData?: () => boolean;
|
|
46
49
|
getRegion: () => IRegion;
|
|
47
50
|
initMark: () => void;
|
|
48
51
|
getMarks: () => IMark[];
|
|
@@ -53,6 +56,7 @@ export interface ISeries extends IModel {
|
|
|
53
56
|
getMarkInId: (id: number) => IMark | undefined;
|
|
54
57
|
getRootMark: () => IGroupMark;
|
|
55
58
|
getActiveMarks: () => IMark[];
|
|
59
|
+
getSeriesMark: () => IMark;
|
|
56
60
|
getStackData: () => ISeriesStackData;
|
|
57
61
|
getStack: () => boolean;
|
|
58
62
|
getStackValue: () => StringOrNumber | undefined;
|
|
@@ -78,7 +82,7 @@ export interface ISeries extends IModel {
|
|
|
78
82
|
setSeriesField: (field: string) => void;
|
|
79
83
|
handleZoom?: (e: ZoomEventParam) => void;
|
|
80
84
|
handlePan?: (e: PanEventParam) => void;
|
|
81
|
-
dataToPosition: (datum: Datum) => IPoint | null;
|
|
85
|
+
dataToPosition: (datum: Datum, checkInViewData?: boolean) => IPoint | null;
|
|
82
86
|
dataToPositionX: (datum: Datum) => number | null;
|
|
83
87
|
dataToPositionY: (datum: Datum) => number | null;
|
|
84
88
|
dataToPositionZ?: (datum: Datum) => number | null;
|
|
@@ -91,9 +95,13 @@ export interface ISeries extends IModel {
|
|
|
91
95
|
getInvalidType: () => IInvalidType;
|
|
92
96
|
getDefaultShapeType: () => string;
|
|
93
97
|
initLabelMarkStyle?: (labelMark: ILabelMark) => void;
|
|
98
|
+
initTotalLabelMarkStyle?: (labelMark: ILabelMark) => void;
|
|
99
|
+
getTotalLabelComponentStyle?: (info: Pick<ILabelInfo, 'baseMark' | 'labelMark'>) => any;
|
|
94
100
|
getGroupFields: () => string[];
|
|
95
101
|
getSpecInfo: () => ISeriesSpecInfo;
|
|
96
102
|
getMarkAttributeContext: () => ISeriesMarkAttributeContext;
|
|
103
|
+
getSeriesFieldValue: (datum: Datum, seriesField?: string) => any;
|
|
104
|
+
legendSelectedFilter?: (component: BaseLegend<any>, selectedKeys: StringOrNumber[]) => StringOrNumber[];
|
|
97
105
|
}
|
|
98
106
|
export interface ICartesianSeries extends ISeries {
|
|
99
107
|
readonly coordinate: 'cartesian';
|
|
@@ -154,9 +162,10 @@ export interface IGeoSeries extends ISeries {
|
|
|
154
162
|
valueField?: string;
|
|
155
163
|
getMapViewData: () => DataView;
|
|
156
164
|
getNameProperty: () => string;
|
|
157
|
-
dataToPosition: (datum: any) => IPoint | null;
|
|
165
|
+
dataToPosition: (datum: any, checkInViewData?: boolean) => IPoint | null;
|
|
158
166
|
dataToLatitude: (latValue: any) => number | null;
|
|
159
167
|
dataToLongitude: (lonValue: any) => number | null;
|
|
168
|
+
nameValueToPosition: (name: string) => IPoint | null;
|
|
160
169
|
positionToData: (p: IPoint) => any;
|
|
161
170
|
latitudeToData: (lat: number) => any;
|
|
162
171
|
longitudeToData: (lon: number) => any;
|
|
@@ -166,7 +175,7 @@ export interface IGeoSeries extends ISeries {
|
|
|
166
175
|
getDatumCenter: (datum: any) => [number, number];
|
|
167
176
|
}
|
|
168
177
|
export interface IArcSeries extends IPolarSeries {
|
|
169
|
-
|
|
178
|
+
getCenter: () => IPoint;
|
|
170
179
|
getRadius: (state?: StateValueType) => number;
|
|
171
180
|
getInnerRadius: (state?: StateValueType) => number;
|
|
172
181
|
computeRadius: (r: number, k?: number) => number;
|
|
@@ -26,19 +26,24 @@ import { SeriesTypeEnum } from './type';
|
|
|
26
26
|
import type { SeriesMarkMap } from './common';
|
|
27
27
|
import type { IRangeAreaSeriesTheme } from '../range-area/interface';
|
|
28
28
|
import type { ILiquidSeriesTheme } from '../liquid/interface';
|
|
29
|
+
import type { IVennSeriesTheme } from '../venn/interface';
|
|
29
30
|
export interface ISeriesTheme {
|
|
30
31
|
[SeriesTypeEnum.bar]?: IBarSeriesTheme;
|
|
31
32
|
[SeriesTypeForThemeEnum.bar_vertical]?: IBarSeriesTheme;
|
|
32
33
|
[SeriesTypeForThemeEnum.bar_horizontal]?: IBarSeriesTheme;
|
|
34
|
+
[SeriesTypeForThemeEnum.bar_stack]?: IBarSeriesTheme;
|
|
33
35
|
[SeriesTypeEnum.bar3d]?: IBar3dSeriesTheme;
|
|
34
36
|
[SeriesTypeForThemeEnum.bar3d_vertical]?: IBar3dSeriesTheme;
|
|
35
37
|
[SeriesTypeForThemeEnum.bar3d_horizontal]?: IBar3dSeriesTheme;
|
|
38
|
+
[SeriesTypeForThemeEnum.bar3d_stack]?: IBar3dSeriesTheme;
|
|
36
39
|
[SeriesTypeEnum.line]?: ILineSeriesTheme;
|
|
37
40
|
[SeriesTypeForThemeEnum.line_vertical]?: ILineSeriesTheme;
|
|
38
41
|
[SeriesTypeForThemeEnum.line_horizontal]?: ILineSeriesTheme;
|
|
42
|
+
[SeriesTypeForThemeEnum.line_stack]?: ILineSeriesTheme;
|
|
39
43
|
[SeriesTypeEnum.area]?: IAreaSeriesTheme;
|
|
40
44
|
[SeriesTypeForThemeEnum.area_vertical]?: IAreaSeriesTheme;
|
|
41
45
|
[SeriesTypeForThemeEnum.area_horizontal]?: IAreaSeriesTheme;
|
|
46
|
+
[SeriesTypeForThemeEnum.area_stack]?: IAreaSeriesTheme;
|
|
42
47
|
[SeriesTypeEnum.rangeColumn]?: IRangeColumnSeriesTheme;
|
|
43
48
|
[SeriesTypeForThemeEnum.rangeColumn_vertical]?: IRangeColumnSeriesTheme;
|
|
44
49
|
[SeriesTypeForThemeEnum.rangeColumn_horizontal]?: IRangeColumnSeriesTheme;
|
|
@@ -48,6 +53,7 @@ export interface ISeriesTheme {
|
|
|
48
53
|
[SeriesTypeEnum.linearProgress]?: ILinearProgressSeriesTheme;
|
|
49
54
|
[SeriesTypeForThemeEnum.linearProgress_vertical]?: ILinearProgressSeriesTheme;
|
|
50
55
|
[SeriesTypeForThemeEnum.linearProgress_horizontal]?: ILinearProgressSeriesTheme;
|
|
56
|
+
[SeriesTypeForThemeEnum.linearProgress_stack]?: ILinearProgressSeriesTheme;
|
|
51
57
|
[SeriesTypeEnum.boxPlot]?: IBoxPlotSeriesTheme;
|
|
52
58
|
[SeriesTypeForThemeEnum.boxPlot_vertical]?: IBoxPlotSeriesTheme;
|
|
53
59
|
[SeriesTypeForThemeEnum.boxPlot_horizontal]?: IBoxPlotSeriesTheme;
|
|
@@ -59,11 +65,14 @@ export interface ISeriesTheme {
|
|
|
59
65
|
[SeriesTypeForThemeEnum.waterfall_horizontal]?: IWaterfallSeriesTheme;
|
|
60
66
|
[SeriesTypeEnum.scatter]?: IScatterSeriesTheme;
|
|
61
67
|
[SeriesTypeEnum.radar]?: IRadarSeriesTheme;
|
|
68
|
+
[SeriesTypeForThemeEnum.radar_stack]?: IRadarSeriesTheme;
|
|
62
69
|
[SeriesTypeEnum.pie]?: IPieSeriesTheme;
|
|
63
70
|
[SeriesTypeEnum.pie3d]?: IPie3dSeriesTheme;
|
|
64
71
|
[SeriesTypeEnum.rose]?: IRoseSeriesTheme;
|
|
72
|
+
[SeriesTypeForThemeEnum.rose_stack]?: IRoseSeriesTheme;
|
|
65
73
|
[SeriesTypeEnum.map]?: IMapSeriesTheme;
|
|
66
74
|
[SeriesTypeEnum.circularProgress]?: ICircularProgressSeriesTheme;
|
|
75
|
+
[SeriesTypeForThemeEnum.circularProgress_stack]?: ICircularProgressSeriesTheme;
|
|
67
76
|
[SeriesTypeEnum.link]?: ILinkSeriesTheme;
|
|
68
77
|
[SeriesTypeEnum.dot]?: IDotSeriesTheme;
|
|
69
78
|
[SeriesTypeEnum.wordCloud]?: IWordCloudSeriesTheme;
|
|
@@ -78,16 +87,21 @@ export interface ISeriesTheme {
|
|
|
78
87
|
[SeriesTypeEnum.heatmap]?: IHeatmapSeriesTheme;
|
|
79
88
|
[SeriesTypeEnum.correlation]?: ICorrelationSeriesTheme;
|
|
80
89
|
[SeriesTypeEnum.liquid]?: ILiquidSeriesTheme;
|
|
90
|
+
[SeriesTypeEnum.venn]?: IVennSeriesTheme;
|
|
81
91
|
}
|
|
82
92
|
export declare enum SeriesTypeForThemeEnum {
|
|
83
93
|
area_horizontal = "area_horizontal",
|
|
84
94
|
area_vertical = "area_vertical",
|
|
95
|
+
area_stack = "area_stack",
|
|
85
96
|
line_horizontal = "line_horizontal",
|
|
86
97
|
line_vertical = "line_vertical",
|
|
98
|
+
line_stack = "line_stack",
|
|
87
99
|
bar_horizontal = "bar_horizontal",
|
|
88
100
|
bar_vertical = "bar_vertical",
|
|
101
|
+
bar_stack = "bar_stack",
|
|
89
102
|
bar3d_horizontal = "bar3d_horizontal",
|
|
90
103
|
bar3d_vertical = "bar3d_vertical",
|
|
104
|
+
bar3d_stack = "bar3d_stack",
|
|
91
105
|
rangeColumn_horizontal = "rangeColumn_horizontal",
|
|
92
106
|
rangeColumn_vertical = "rangeColumn_vertical",
|
|
93
107
|
rangeColumn3d_horizontal = "rangeColumn3d_horizontal",
|
|
@@ -96,11 +110,15 @@ export declare enum SeriesTypeForThemeEnum {
|
|
|
96
110
|
rangeArea_vertical = "rangeArea_vertical",
|
|
97
111
|
linearProgress_horizontal = "linearProgress_horizontal",
|
|
98
112
|
linearProgress_vertical = "linearProgress_vertical",
|
|
113
|
+
linearProgress_stack = "linearProgress_stack",
|
|
99
114
|
boxPlot_horizontal = "boxPlot_horizontal",
|
|
100
115
|
boxPlot_vertical = "boxPlot_vertical",
|
|
101
116
|
sankey_horizontal = "sankey_horizontal",
|
|
102
117
|
sankey_vertical = "sankey_vertical",
|
|
103
118
|
waterfall_horizontal = "waterfall_horizontal",
|
|
104
|
-
waterfall_vertical = "waterfall_vertical"
|
|
119
|
+
waterfall_vertical = "waterfall_vertical",
|
|
120
|
+
circularProgress_stack = "circularProgress_stack",
|
|
121
|
+
radar_stack = "radar_stack",
|
|
122
|
+
rose_stack = "rose_stack"
|
|
105
123
|
}
|
|
106
124
|
export declare const seriesMarkInfoMap: Record<SeriesTypeEnum, SeriesMarkMap>;
|
|
@@ -5,9 +5,12 @@ import type { IDimensionInfo } from '../../event/events/dimension/interface';
|
|
|
5
5
|
export interface ISeriesTooltipHelper extends ITooltipHelper {
|
|
6
6
|
series: ISeries;
|
|
7
7
|
getDefaultTooltipPattern: (activeType: TooltipActiveType, dimensionInfo?: IDimensionInfo[]) => ITooltipPattern | null;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
markTooltipKeyCallback: TooltipContentCallback<string>;
|
|
9
|
+
markTooltipValueCallback: TooltipContentCallback<string>;
|
|
10
|
+
shapeTypeCallback: TooltipContentCallback<ShapeType>;
|
|
11
|
+
shapeColorCallback: TooltipContentCallback<string>;
|
|
12
|
+
shapeStrokeCallback: TooltipContentCallback<string>;
|
|
13
|
+
dimensionTooltipTitleCallback: TooltipContentCallback<string>;
|
|
14
|
+
groupTooltipTitleCallback: TooltipContentCallback<string>;
|
|
15
|
+
groupTooltipKeyCallback: TooltipContentCallback<string>;
|
|
13
16
|
}
|
|
@@ -32,7 +32,8 @@ export declare enum SeriesTypeEnum {
|
|
|
32
32
|
waterfall = "waterfall",
|
|
33
33
|
heatmap = "heatmap",
|
|
34
34
|
correlation = "correlation",
|
|
35
|
-
liquid = "liquid"
|
|
35
|
+
liquid = "liquid",
|
|
36
|
+
venn = "venn"
|
|
36
37
|
}
|
|
37
38
|
export declare const enum SeriesMarkNameEnum {
|
|
38
39
|
label = "label",
|
|
@@ -92,5 +93,8 @@ export declare const enum SeriesMarkNameEnum {
|
|
|
92
93
|
areaLabel = "areaLabel",
|
|
93
94
|
liquid = "liquid",
|
|
94
95
|
liquidBackground = "liquidBackground",
|
|
95
|
-
liquidOutline = "liquidOutline"
|
|
96
|
+
liquidOutline = "liquidOutline",
|
|
97
|
+
circle = "circle",
|
|
98
|
+
overlap = "overlap",
|
|
99
|
+
overlapLabel = "overlapLabel"
|
|
96
100
|
}
|
|
@@ -7,6 +7,7 @@ import type { ILineLikeLabelSpec, ILineLikeSeriesTheme } from '../mixin/line-mix
|
|
|
7
7
|
import type { IDataSamping, IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
8
8
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
9
9
|
import type { ILabelSpec } from '../../component';
|
|
10
|
+
import { IMultiLabelSpec } from '../../component/label';
|
|
10
11
|
type LineMarks = 'point' | 'line';
|
|
11
12
|
export interface ILineSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<LineMarks, LineAppearPreset>, IMarkProgressiveConfig, IDataSamping, IMarkOverlap {
|
|
12
13
|
type: 'line';
|
|
@@ -14,9 +15,9 @@ export interface ILineSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<Li
|
|
|
14
15
|
yField?: string | string[];
|
|
15
16
|
[SeriesMarkNameEnum.point]?: IMarkSpec<ISymbolMarkSpec>;
|
|
16
17
|
[SeriesMarkNameEnum.line]?: IMarkSpec<ILineMarkSpec>;
|
|
17
|
-
[SeriesMarkNameEnum.label]?: ILineLikeLabelSpec
|
|
18
|
+
[SeriesMarkNameEnum.label]?: IMultiLabelSpec<ILineLikeLabelSpec>;
|
|
18
19
|
[SeriesMarkNameEnum.lineLabel]?: Omit<ILabelSpec, 'position'> & {
|
|
19
|
-
position
|
|
20
|
+
position?: 'start' | 'end';
|
|
20
21
|
};
|
|
21
22
|
seriesMark?: 'line' | 'point';
|
|
22
23
|
activePoint?: boolean;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { DataView } from '@visactor/vdataset';
|
|
2
2
|
import type { GeoSourceType } from '../../typings/geo';
|
|
3
3
|
export interface IGeoJsonOption {
|
|
4
|
-
type
|
|
4
|
+
type?: 'geojson';
|
|
5
5
|
centroid?: boolean;
|
|
6
|
-
simplify?: boolean
|
|
6
|
+
simplify?: boolean | {
|
|
7
|
+
tolerance: number;
|
|
8
|
+
};
|
|
7
9
|
rewind?: boolean | {
|
|
8
10
|
reverse?: boolean;
|
|
9
11
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IPathMarkSpec, ITextMarkSpec } from '../../typings/visual';
|
|
2
2
|
import type { IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings/spec/common';
|
|
3
3
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
4
|
+
import { ILabelSpec } from '../../component';
|
|
4
5
|
type LineMarks = 'area';
|
|
5
6
|
export interface IMapSeriesSpec extends ISeriesSpec, IAnimationSpec<LineMarks, 'fadeIn'> {
|
|
6
7
|
type: 'map';
|
|
@@ -14,11 +15,8 @@ export interface IMapSeriesSpec extends ISeriesSpec, IAnimationSpec<LineMarks, '
|
|
|
14
15
|
};
|
|
15
16
|
area?: IMarkSpec<Omit<IPathMarkSpec, 'smoothScale'>>;
|
|
16
17
|
defaultFillColor?: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
position?: string;
|
|
20
|
-
formatMethod?: (text: string | string[], datum?: any) => string | string[];
|
|
21
|
-
};
|
|
18
|
+
showDefaultName?: boolean;
|
|
19
|
+
label?: Omit<ILabelSpec, 'position'>;
|
|
22
20
|
}
|
|
23
21
|
export interface IMapSeriesTheme {
|
|
24
22
|
defaultFillColor?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
2
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
3
|
export declare class MapSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
4
|
-
|
|
4
|
+
dimensionTooltipTitleCallback: (datum: any) => any;
|
|
5
5
|
}
|
|
@@ -15,6 +15,6 @@ export declare class Pie3dSeries<T extends IPie3dSeriesSpec = IPie3dSeriesSpec>
|
|
|
15
15
|
protected _angle3d: number;
|
|
16
16
|
setAttrFromSpec(): void;
|
|
17
17
|
initMarkStyle(): void;
|
|
18
|
-
initLabelMarkStyle(textMark: ITextMark): void;
|
|
18
|
+
initLabelMarkStyle(textMark: ITextMark, spec?: any): void;
|
|
19
19
|
}
|
|
20
20
|
export declare const registerPie3dSeries: () => void;
|
|
@@ -4,7 +4,7 @@ import type { IArcMarkSpec, ITextMarkSpec, IArc3dMarkSpec, ILineMarkSpec } from
|
|
|
4
4
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
5
5
|
import type { IPolarSeriesSpec, IPolarSeriesTheme } from '../polar/interface';
|
|
6
6
|
import type { PieAppearPreset } from './animation/animation';
|
|
7
|
-
import type { ILabelSpec } from '../../component/label';
|
|
7
|
+
import type { ILabelSpec, IMultiLabelSpec } from '../../component/label';
|
|
8
8
|
export type PieMarks = 'pie' | 'label' | 'labelLine';
|
|
9
9
|
export type IBasePieSeriesSpec = Omit<IPieSeriesSpec, 'type'> & {
|
|
10
10
|
type: string;
|
|
@@ -25,7 +25,7 @@ export interface IPieSeriesSpec extends IPolarSeriesSpec, IAnimationSpec<PieMark
|
|
|
25
25
|
padAngle?: number;
|
|
26
26
|
minAngle?: number;
|
|
27
27
|
[SeriesMarkNameEnum.pie]?: IMarkSpec<IArcMarkSpec>;
|
|
28
|
-
[SeriesMarkNameEnum.label]?: IArcLabelSpec
|
|
28
|
+
[SeriesMarkNameEnum.label]?: IMultiLabelSpec<IArcLabelSpec>;
|
|
29
29
|
}
|
|
30
30
|
export interface IPieSeriesTheme extends IPolarSeriesTheme {
|
|
31
31
|
[SeriesMarkNameEnum.pie]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
@@ -57,14 +57,15 @@ export interface IArcLabelLayoutSpec {
|
|
|
57
57
|
strategy?: ArcLabelStrategyType;
|
|
58
58
|
tangentConstraint?: boolean;
|
|
59
59
|
}
|
|
60
|
-
export
|
|
60
|
+
export type IArcLabelSpec = Omit<ILabelSpec, 'position'> & {
|
|
61
61
|
position?: 'outside' | 'inside';
|
|
62
62
|
showRule?: 'all' | 'max' | 'min' | 'minAndMax' | 'headAndTail';
|
|
63
63
|
coverEnable?: boolean;
|
|
64
64
|
rotate?: boolean;
|
|
65
65
|
spaceWidth?: number;
|
|
66
66
|
layoutArcGap?: number;
|
|
67
|
+
centerOffset?: number;
|
|
67
68
|
style?: ITextMarkSpec;
|
|
68
69
|
line?: IArcLabelLineSpec;
|
|
69
70
|
layout?: IArcLabelLayoutSpec;
|
|
70
|
-
}
|
|
71
|
+
};
|