@visactor/vchart-types 0.10.0-alpha.2 → 0.11.6-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/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
|
@@ -18,8 +18,7 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
|
|
|
18
18
|
protected _pieMarkType: MarkTypeEnum;
|
|
19
19
|
static readonly mark: SeriesMarkMap;
|
|
20
20
|
protected _viewDataLabel: SeriesData;
|
|
21
|
-
|
|
22
|
-
get center(): IPoint;
|
|
21
|
+
getCenter(): IPoint;
|
|
23
22
|
protected _centerOffset: number;
|
|
24
23
|
protected _cornerRadius: number;
|
|
25
24
|
protected _startAngle: number;
|
|
@@ -47,7 +46,6 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
|
|
|
47
46
|
getMeasureField(): string[];
|
|
48
47
|
private viewDataLabelUpdate;
|
|
49
48
|
protected generateRadiusStyle(spec: any): any;
|
|
50
|
-
protected computeLayoutRadius(): number;
|
|
51
49
|
computeCenter(datum: Datum): IPoint;
|
|
52
50
|
getRadius(state?: StateValueType): number;
|
|
53
51
|
getInnerRadius(state?: StateValueType): number;
|
|
@@ -63,7 +61,7 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
|
|
|
63
61
|
reCompile: boolean;
|
|
64
62
|
};
|
|
65
63
|
computeDatumInnerRadius(datum: Datum, state?: string): number;
|
|
66
|
-
dataToPosition(datum: Datum): IPoint | null;
|
|
64
|
+
dataToPosition(datum: Datum, checkInViewData?: boolean): IPoint | null;
|
|
67
65
|
dataToCentralPosition: (datum: Datum) => IPoint | null;
|
|
68
66
|
initAnimation(): void;
|
|
69
67
|
getDefaultShapeType(): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ISeriesSpec } from '../../typings/spec/common';
|
|
2
2
|
export interface IPolarSeriesSpec extends ISeriesSpec {
|
|
3
|
-
centerX?: number;
|
|
4
|
-
centerY?: number;
|
|
3
|
+
centerX?: number | string;
|
|
4
|
+
centerY?: number | string;
|
|
5
5
|
outerRadius?: number;
|
|
6
6
|
innerRadius?: number;
|
|
7
7
|
startAngle?: number;
|
|
@@ -38,7 +38,7 @@ export declare abstract class PolarSeries<T extends IPolarSeriesSpec = IPolarSer
|
|
|
38
38
|
get sortDataByAxis(): boolean;
|
|
39
39
|
protected _buildMarkAttributeContext(): void;
|
|
40
40
|
valueToPosition(angleValue: StringOrNumber | StringOrNumber[], radiusValue: StringOrNumber | StringOrNumber[]): IPoint;
|
|
41
|
-
dataToPosition(datum: Datum): IPoint;
|
|
41
|
+
dataToPosition(datum: Datum, checkInViewData?: boolean): IPoint;
|
|
42
42
|
dataToPositionX(datum: Datum): number;
|
|
43
43
|
dataToPositionY(datum: Datum): number;
|
|
44
44
|
dataToPositionZ(datum: Datum): number;
|
|
@@ -54,7 +54,7 @@ export declare abstract class PolarSeries<T extends IPolarSeriesSpec = IPolarSer
|
|
|
54
54
|
onAngleAxisHelperUpdate(): void;
|
|
55
55
|
afterInitMark(): void;
|
|
56
56
|
protected _computeLayoutRadius(): number;
|
|
57
|
-
|
|
57
|
+
protected initEvent(): void;
|
|
58
58
|
_sortDataInAxisDomain(): void;
|
|
59
|
-
protected
|
|
59
|
+
protected getInvalidCheckFields(): string[];
|
|
60
60
|
}
|
|
@@ -8,7 +8,6 @@ import type { IGroupMark } from '../../../mark/group';
|
|
|
8
8
|
import type { SeriesMarkMap } from '../../interface';
|
|
9
9
|
export declare abstract class ProgressLikeSeries<T extends IProgressLikeSeriesSpec> extends PolarSeries<T> {
|
|
10
10
|
static readonly mark: SeriesMarkMap;
|
|
11
|
-
protected _supportStack: boolean;
|
|
12
11
|
protected _startAngle: number;
|
|
13
12
|
protected _endAngle: number;
|
|
14
13
|
protected _arcGroupMark: IGroupMark | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseSeriesSpecTransformer } from '../../base';
|
|
2
|
+
import type { ICircularProgressSeriesSpec, ICircularProgressSeriesTheme } from './interface';
|
|
3
|
+
export declare class CircularProgressSeriesSpecTransformer<T extends ICircularProgressSeriesSpec = ICircularProgressSeriesSpec, K extends ICircularProgressSeriesTheme = ICircularProgressSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
|
|
4
|
+
protected _supportStack: boolean;
|
|
5
|
+
}
|
|
@@ -4,10 +4,13 @@ import { SeriesTypeEnum } from '../../interface/type';
|
|
|
4
4
|
import type { ICircularProgressSeriesSpec } from './interface';
|
|
5
5
|
import { ProgressLikeSeries } from '../../polar/progress-like/progress-like';
|
|
6
6
|
import type { IMark } from '../../../mark/interface';
|
|
7
|
+
import { CircularProgressSeriesSpecTransformer } from './circular-transformer';
|
|
7
8
|
export declare class CircularProgressSeries<T extends ICircularProgressSeriesSpec = ICircularProgressSeriesSpec> extends ProgressLikeSeries<T> {
|
|
8
9
|
static readonly type: string;
|
|
9
10
|
type: SeriesTypeEnum;
|
|
10
11
|
static readonly mark: SeriesMarkMap;
|
|
12
|
+
static readonly transformerConstructor: any;
|
|
13
|
+
readonly transformerConstructor: typeof CircularProgressSeriesSpecTransformer;
|
|
11
14
|
private _progressMark;
|
|
12
15
|
private _trackMark;
|
|
13
16
|
getStackGroupFields(): string[];
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { IAnimationSpec } from '../../../animation/spec';
|
|
2
2
|
import type { IMarkSpec, IMarkTheme } from '../../../typings/spec/common';
|
|
3
|
-
import type { IProgressArcMarkSpec } from '../../../typings/visual';
|
|
4
3
|
import type { ProgressLikeAppearPreset } from '../../polar/progress-like/animation';
|
|
5
4
|
import type { IProgressSeriesSpec } from '../interface';
|
|
6
5
|
import type { IProgressLikeSeriesSpec, IProgressLikeSeriesTheme } from '../../polar/progress-like/interface';
|
|
7
6
|
import type { SeriesMarkNameEnum } from '../../interface/type';
|
|
7
|
+
import type { IArcMarkSpec } from '../../../typings';
|
|
8
8
|
export type CircularProgressMarks = 'progress' | 'track';
|
|
9
9
|
export interface ICircularProgressSeriesSpec extends IProgressSeriesSpec, IProgressLikeSeriesSpec, IAnimationSpec<CircularProgressMarks, ProgressLikeAppearPreset> {
|
|
10
10
|
type: 'circularProgress';
|
|
11
11
|
categoryField?: string | string[];
|
|
12
12
|
radiusField?: string;
|
|
13
13
|
maxValue?: number;
|
|
14
|
-
[SeriesMarkNameEnum.progress]?: IMarkSpec<
|
|
15
|
-
[SeriesMarkNameEnum.track]?: IMarkSpec<
|
|
14
|
+
[SeriesMarkNameEnum.progress]?: IMarkSpec<IArcMarkSpec>;
|
|
15
|
+
[SeriesMarkNameEnum.track]?: IMarkSpec<IArcMarkSpec>;
|
|
16
16
|
}
|
|
17
17
|
export interface ICircularProgressSeriesTheme extends IProgressLikeSeriesTheme {
|
|
18
|
-
[SeriesMarkNameEnum.progress]?: Partial<IMarkTheme<
|
|
19
|
-
[SeriesMarkNameEnum.track]?: Partial<IMarkTheme<
|
|
18
|
+
[SeriesMarkNameEnum.progress]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
19
|
+
[SeriesMarkNameEnum.track]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
20
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
2
|
+
import { IMultiLabelSpec } from '../../component/label';
|
|
2
3
|
import type { IMarkOverlap, IMarkProgressiveConfig } from '../../mark/interface';
|
|
3
4
|
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
4
5
|
import type { IAreaMarkSpec, ILineMarkSpec, ISymbolMarkSpec } from '../../typings/visual';
|
|
@@ -12,7 +13,7 @@ export interface IRadarSeriesSpec extends IRoseLikeSeriesSpec, IAnimationSpec<Ra
|
|
|
12
13
|
[SeriesMarkNameEnum.point]?: IMarkSpec<ISymbolMarkSpec>;
|
|
13
14
|
[SeriesMarkNameEnum.line]?: IMarkSpec<ILineMarkSpec>;
|
|
14
15
|
[SeriesMarkNameEnum.area]?: IMarkSpec<IAreaMarkSpec>;
|
|
15
|
-
[SeriesMarkNameEnum.label]?: ILineLikeLabelSpec
|
|
16
|
+
[SeriesMarkNameEnum.label]?: IMultiLabelSpec<ILineLikeLabelSpec>;
|
|
16
17
|
seriesMark?: 'point' | 'line' | 'area';
|
|
17
18
|
activePoint?: boolean;
|
|
18
19
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { DataView } from '@visactor/vdataset';
|
|
2
1
|
import { AreaSeries } from '../area/area';
|
|
3
2
|
import type { SeriesMarkMap } from '../interface';
|
|
4
3
|
import { SeriesTypeEnum } from '../interface/type';
|
|
@@ -9,7 +8,8 @@ export declare class RangeAreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec
|
|
|
9
8
|
static readonly mark: SeriesMarkMap;
|
|
10
9
|
initMark(): void;
|
|
11
10
|
initMarkStyle(): void;
|
|
11
|
+
initAreaMarkStyle(): void;
|
|
12
12
|
protected initTooltip(): void;
|
|
13
|
-
|
|
13
|
+
protected _isFieldAllValid(): boolean;
|
|
14
14
|
}
|
|
15
15
|
export declare const registerRangeAreaSeries: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IBarSeriesSpec } from '../bar/interface';
|
|
2
2
|
import type { ICartesianSeriesTheme } from '../cartesian/interface';
|
|
3
|
-
import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
3
|
+
import type { IFormatMethod, IMarkSpec, IMarkTheme } from '../../typings/spec/common';
|
|
4
4
|
import type { IPositionedTextMarkSpec, IRectMarkSpec, ITextMarkSpec } from '../../typings/visual';
|
|
5
5
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
6
6
|
import type { RangeColumnAppearPreset } from './animation';
|
|
@@ -26,16 +26,16 @@ export interface IRangeColumnSeriesSpec extends Omit<IBarSeriesSpec, 'type' | 'l
|
|
|
26
26
|
[SeriesMarkNameEnum.label]?: Partial<ILabelSpec> & {
|
|
27
27
|
position?: PositionEnum;
|
|
28
28
|
[SeriesMarkNameEnum.minLabel]?: IMarkSpec<IPositionedTextMarkSpec> & {
|
|
29
|
-
visible
|
|
29
|
+
visible?: boolean;
|
|
30
30
|
position?: keyof typeof minMaxPositionEnum;
|
|
31
31
|
offset?: number;
|
|
32
|
-
formatMethod?:
|
|
32
|
+
formatMethod?: IFormatMethod<[text: string | string[], datum?: any]>;
|
|
33
33
|
};
|
|
34
34
|
[SeriesMarkNameEnum.maxLabel]?: IMarkSpec<IPositionedTextMarkSpec> & {
|
|
35
|
-
visible
|
|
35
|
+
visible?: boolean;
|
|
36
36
|
position?: minMaxPositionEnum;
|
|
37
37
|
offset?: number;
|
|
38
|
-
formatMethod?:
|
|
38
|
+
formatMethod?: IFormatMethod<[text: string | string[], datum?: any]>;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BarSeriesSpecTransformer } from '../bar/bar-transformer';
|
|
2
2
|
import type { IRangeColumnSeriesSpec, IRangeColumnSeriesTheme } from './interface';
|
|
3
3
|
export declare class RangeColumnSeriesSpecTransformer<T extends IRangeColumnSeriesSpec = IRangeColumnSeriesSpec, K extends IRangeColumnSeriesTheme = IRangeColumnSeriesTheme> extends BarSeriesSpecTransformer<any, K> {
|
|
4
|
+
protected _supportStack: boolean;
|
|
4
5
|
protected _transformLabelSpec(spec: T): void;
|
|
5
6
|
}
|
|
@@ -15,7 +15,6 @@ export declare class RangeColumnSeries<T extends IRangeColumnSeriesSpec = IRange
|
|
|
15
15
|
static readonly mark: SeriesMarkMap;
|
|
16
16
|
static readonly transformerConstructor: any;
|
|
17
17
|
readonly transformerConstructor: any;
|
|
18
|
-
protected _stack: boolean;
|
|
19
18
|
private _minLabelMark?;
|
|
20
19
|
private _maxLabelMark?;
|
|
21
20
|
private _labelMark?;
|
|
@@ -5,13 +5,14 @@ import type { SeriesMarkNameEnum } from '../interface/type';
|
|
|
5
5
|
import type { IRoseLikeSeriesSpec, IRoseLikeSeriesTheme } from '../polar/rose-like';
|
|
6
6
|
import type { RoseAppearPreset } from './animation';
|
|
7
7
|
import type { IArcLabelSpec } from '../pie/interface';
|
|
8
|
+
import { IMultiLabelSpec } from '../../component/label';
|
|
8
9
|
export type RoseMarks = 'rose';
|
|
9
10
|
export interface IRoseSeriesSpec extends IRoseLikeSeriesSpec, IAnimationSpec<RoseMarks, RoseAppearPreset> {
|
|
10
11
|
type: 'rose';
|
|
11
12
|
categoryField: string | string[];
|
|
12
13
|
valueField: string | string[];
|
|
13
14
|
[SeriesMarkNameEnum.rose]?: IMarkSpec<IArcMarkSpec>;
|
|
14
|
-
[SeriesMarkNameEnum.label]?: IArcLabelSpec
|
|
15
|
+
[SeriesMarkNameEnum.label]?: IMultiLabelSpec<IArcLabelSpec>;
|
|
15
16
|
}
|
|
16
17
|
export interface IRoseSeriesTheme extends IRoseLikeSeriesTheme {
|
|
17
18
|
[SeriesMarkNameEnum.rose]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseSeriesSpecTransformer } from '../base';
|
|
2
2
|
import type { IRoseSeriesSpec, IRoseSeriesTheme } from './interface';
|
|
3
3
|
export declare class RoseSeriesSpecTransformer<T extends IRoseSeriesSpec = IRoseSeriesSpec, K extends IRoseSeriesTheme = IRoseSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
|
|
4
|
+
protected _supportStack: boolean;
|
|
4
5
|
protected _transformLabelSpec(spec: T): void;
|
|
5
6
|
}
|
|
@@ -13,7 +13,6 @@ export declare class RoseSeries<T extends IRoseSeriesSpec = IRoseSeriesSpec> ext
|
|
|
13
13
|
static readonly mark: SeriesMarkMap;
|
|
14
14
|
static readonly transformerConstructor: any;
|
|
15
15
|
readonly transformerConstructor: typeof RoseSeriesSpecTransformer;
|
|
16
|
-
protected _supportStack: boolean;
|
|
17
16
|
private _roseMark;
|
|
18
17
|
protected _labelMark: ITextMark | null;
|
|
19
18
|
initMark(): void;
|
|
@@ -25,6 +25,11 @@ export interface ISankeySeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimation
|
|
|
25
25
|
linkSortBy?: (a: SankeyLinkElement, b: SankeyLinkElement) => number;
|
|
26
26
|
nodeSortBy?: (a: SankeyNodeElement, b: SankeyNodeElement) => number;
|
|
27
27
|
setNodeLayer?: (datum: SankeyNodeDatum) => number;
|
|
28
|
+
dropIsolatedNode?: boolean;
|
|
29
|
+
nodeHeight?: number | ((node: SankeyNodeElement) => number);
|
|
30
|
+
linkHeight?: number | ((link: SankeyLinkElement, sourceNode: SankeyNodeElement, sourceNodeHeight: number) => number);
|
|
31
|
+
equalNodeHeight?: boolean;
|
|
32
|
+
linkOverlap?: 'start' | 'center' | 'end';
|
|
28
33
|
[SeriesMarkNameEnum.node]?: IMarkSpec<IRectMarkSpec>;
|
|
29
34
|
[SeriesMarkNameEnum.link]?: IMarkSpec<ILinkPathMarkSpec>;
|
|
30
35
|
emphasis?: {
|
|
@@ -33,8 +38,8 @@ export interface ISankeySeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimation
|
|
|
33
38
|
effect: 'self' | 'adjacency' | 'related';
|
|
34
39
|
};
|
|
35
40
|
[SeriesMarkNameEnum.label]?: ILabelSpec & {
|
|
36
|
-
position
|
|
37
|
-
limit
|
|
41
|
+
position?: 'outside' | 'inside-start' | 'inside-middle' | 'inside-end' | 'left' | 'right';
|
|
42
|
+
limit?: number;
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
45
|
export interface SankeyLinkDatum {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
2
2
|
import type { SeriesMarkMap } from '../interface';
|
|
3
3
|
import { SeriesTypeEnum } from '../interface/type';
|
|
4
|
-
import type { Datum } from '../../typings';
|
|
4
|
+
import type { Datum, StringOrNumber } from '../../typings';
|
|
5
5
|
import { SeriesData } from '../base/series-data';
|
|
6
6
|
import type { ISankeySeriesSpec } from './interface';
|
|
7
7
|
import type { ExtendEventParam } from '../../event/interface';
|
|
8
|
-
import type { IElement, IGlyphElement } from '@visactor/vgrammar-core';
|
|
8
|
+
import type { IElement, IGlyphElement, IMark as IVgrammarMark } from '@visactor/vgrammar-core';
|
|
9
9
|
import type { IMark } from '../../mark/interface';
|
|
10
10
|
export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> extends CartesianSeries<T> {
|
|
11
11
|
static readonly type: string;
|
|
@@ -22,6 +22,7 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
|
|
|
22
22
|
private _viewBox;
|
|
23
23
|
protected _categoryField: string;
|
|
24
24
|
private _colorScale;
|
|
25
|
+
private _nodeList;
|
|
25
26
|
getCategoryField(): string;
|
|
26
27
|
setCategoryField(f: string): string;
|
|
27
28
|
protected _valueField: string;
|
|
@@ -30,8 +31,15 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
|
|
|
30
31
|
setAttrFromSpec(): void;
|
|
31
32
|
initData(): void;
|
|
32
33
|
initMark(): void;
|
|
34
|
+
protected _buildMarkAttributeContext(): void;
|
|
35
|
+
valueToNode(value: StringOrNumber | StringOrNumber[]): any;
|
|
36
|
+
valueToLink(value: StringOrNumber | StringOrNumber[]): any;
|
|
37
|
+
valueToPositionX(value: StringOrNumber | StringOrNumber[]): any;
|
|
38
|
+
valueToPositionY(value: StringOrNumber | StringOrNumber[]): any;
|
|
33
39
|
initMarkStyle(): void;
|
|
34
40
|
protected _initNodeMarkStyle(): void;
|
|
41
|
+
protected _fillByNode: (datum: Datum) => any;
|
|
42
|
+
protected _fillByLink: (datum: Datum) => any;
|
|
35
43
|
protected _initLinkMarkStyle(): void;
|
|
36
44
|
protected _initLabelMarkStyle(): void;
|
|
37
45
|
private _createText;
|
|
@@ -39,18 +47,19 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
|
|
|
39
47
|
protected initEvent(): void;
|
|
40
48
|
private nodesSeriesDataUpdate;
|
|
41
49
|
private linksSeriesDataUpdate;
|
|
42
|
-
protected
|
|
43
|
-
protected _handleRelatedClick: (params: ExtendEventParam) => void;
|
|
50
|
+
protected _handleEmphasisElement: (params: ExtendEventParam) => void;
|
|
44
51
|
protected _handleClearEmpty: () => void;
|
|
45
52
|
protected _handleNodeAdjacencyClick: (element: IElement) => void;
|
|
46
53
|
protected _handleLinkAdjacencyClick: (element: IGlyphElement) => void;
|
|
47
54
|
protected _handleNodeRelatedClick: (element: IElement) => void;
|
|
48
55
|
protected _handleLinkRelatedClick: (element: IGlyphElement) => void;
|
|
56
|
+
protected _highLightElements(vGrammarElements: IVgrammarMark['elements'], highlightNodes: string[]): void;
|
|
49
57
|
protected initTooltip(): void;
|
|
50
58
|
_setNodeOrdinalColorScale(): void;
|
|
51
59
|
getNodeList(): any;
|
|
52
60
|
_getNodeNameFromData(datum: Datum): any;
|
|
53
61
|
extractNamesFromTree(tree: any, categoryName: string): Set<unknown>;
|
|
62
|
+
extractNamesFromLink(links: any[]): Set<unknown>;
|
|
54
63
|
getDimensionField(): string[];
|
|
55
64
|
getMeasureField(): string[];
|
|
56
65
|
getRawDataStatisticsByField(field: string, isNumeric?: boolean): {
|
|
@@ -6,6 +6,7 @@ import type { ScatterAppearPreset, ScatterMarks } from './animation';
|
|
|
6
6
|
import type { IMarkProgressiveConfig } from '../../mark/interface';
|
|
7
7
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
8
8
|
import type { ILineLikeLabelSpec } from '../mixin/line-mixin';
|
|
9
|
+
import { IMultiLabelSpec } from '../../component/label';
|
|
9
10
|
export interface IScatterSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec<ScatterMarks, ScatterAppearPreset>, IMarkProgressiveConfig {
|
|
10
11
|
type: 'scatter';
|
|
11
12
|
xField?: string | string[];
|
|
@@ -15,7 +16,7 @@ export interface IScatterSeriesSpec extends ICartesianSeriesSpec, IAnimationSpec
|
|
|
15
16
|
size?: number | number[] | FunctionType<number> | IVisualSpecBase<unknown, number>;
|
|
16
17
|
shapeField?: string;
|
|
17
18
|
shape?: ShapeType | ShapeType[] | FunctionType<ShapeType> | IVisualSpecBase<unknown, ShapeType>;
|
|
18
|
-
[SeriesMarkNameEnum.label]?: ILineLikeLabelSpec
|
|
19
|
+
[SeriesMarkNameEnum.label]?: IMultiLabelSpec<ILineLikeLabelSpec>;
|
|
19
20
|
}
|
|
20
21
|
export interface IScatterSeriesTheme extends ICartesianSeriesTheme {
|
|
21
22
|
size?: number;
|
|
@@ -36,7 +36,7 @@ export declare class SunburstSeries extends PolarSeries<any> {
|
|
|
36
36
|
protected initData(): void;
|
|
37
37
|
getStatisticFields(): {
|
|
38
38
|
key: string;
|
|
39
|
-
operations: ("
|
|
39
|
+
operations: ("values" | "max" | "min")[];
|
|
40
40
|
}[];
|
|
41
41
|
protected _addDataIndexAndKey(): void;
|
|
42
42
|
initMark(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Datum } from '../../typings';
|
|
2
2
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
3
|
export declare class SunburstTooltipHelper extends BaseSeriesTooltipHelper {
|
|
4
|
-
|
|
4
|
+
markTooltipKeyCallback: (datum: Datum) => any;
|
|
5
5
|
}
|
|
@@ -5,6 +5,7 @@ import type { ICartesianSeriesTheme } from '../cartesian/interface';
|
|
|
5
5
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
6
6
|
import type { TreemapAppearPreset, TreemapMark } from './animation';
|
|
7
7
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
8
|
+
import { ILabelSpec } from '../../component';
|
|
8
9
|
export interface ITreemapSeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimationSpec<TreemapMark, TreemapAppearPreset> {
|
|
9
10
|
type: 'treemap';
|
|
10
11
|
categoryField: string;
|
|
@@ -23,8 +24,8 @@ export interface ITreemapSeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimatio
|
|
|
23
24
|
drillField?: string;
|
|
24
25
|
[SeriesMarkNameEnum.leaf]?: IMarkSpec<IRectMarkSpec>;
|
|
25
26
|
[SeriesMarkNameEnum.nonLeaf]?: IMarkSpec<IRectMarkSpec>;
|
|
26
|
-
[SeriesMarkNameEnum.label]?:
|
|
27
|
-
[SeriesMarkNameEnum.nonLeafLabel]?:
|
|
27
|
+
[SeriesMarkNameEnum.label]?: Omit<ILabelSpec, 'position' | 'overlap'>;
|
|
28
|
+
[SeriesMarkNameEnum.nonLeafLabel]?: Omit<ILabelSpec, 'position' | 'overlap'> & {
|
|
28
29
|
position?: TreemapOptions['labelPosition'];
|
|
29
30
|
padding?: TreemapOptions['labelPadding'];
|
|
30
31
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
2
2
|
export declare class TreemapTooltipHelper extends BaseSeriesTooltipHelper {
|
|
3
3
|
get defaultShapeType(): string;
|
|
4
|
-
|
|
4
|
+
markTooltipKeyCallback: (datum: any) => any;
|
|
5
5
|
}
|
|
@@ -30,6 +30,8 @@ export declare class TreemapSeries extends CartesianSeries<any> {
|
|
|
30
30
|
private _enableAnimationHook;
|
|
31
31
|
setAttrFromSpec(): void;
|
|
32
32
|
initData(): void;
|
|
33
|
+
compile(): void;
|
|
34
|
+
protected _runTreemapTransform(render?: boolean): void;
|
|
33
35
|
protected _addDataIndexAndKey(): void;
|
|
34
36
|
getRawDataStatisticsByField(field: string, isNumeric?: boolean): any;
|
|
35
37
|
protected _createHierarchyDataStatistics(dataName: string, rawData: DataView[]): DataView;
|
|
@@ -57,5 +59,6 @@ export declare class TreemapSeries extends CartesianSeries<any> {
|
|
|
57
59
|
protected disableMarkAnimation(): void;
|
|
58
60
|
getDefaultShapeType(): string;
|
|
59
61
|
getActiveMarks(): IMark[];
|
|
62
|
+
isHierarchyData: () => boolean;
|
|
60
63
|
}
|
|
61
64
|
export declare const registerTreemapSeries: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
|
+
export type VennMark = 'circle' | 'overlap';
|
|
3
|
+
export type VennAppearPreset = 'growIn' | 'fadeIn' | 'scaleIn';
|
|
4
|
+
export declare const vennCirclePresetAnimation: (preset: VennAppearPreset) => IAnimationTypeConfig;
|
|
5
|
+
export declare const vennOverlapPresetAnimation: (preset: VennAppearPreset) => IAnimationTypeConfig;
|
|
6
|
+
export declare const registerVennAnimation: () => void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IArcMarkSpec, IPathMarkSpec } from '../../typings';
|
|
2
|
+
import type { IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings/spec';
|
|
3
|
+
import type { IAnimationSpec } from '../../animation/spec';
|
|
4
|
+
import type { VennAppearPreset, VennMark } from './animation';
|
|
5
|
+
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
6
|
+
import type { ILabelSpec } from '../../component';
|
|
7
|
+
export interface IVennSeriesSpec extends ISeriesSpec, IAnimationSpec<VennMark, VennAppearPreset> {
|
|
8
|
+
type: 'venn';
|
|
9
|
+
categoryField?: string;
|
|
10
|
+
valueField: string;
|
|
11
|
+
[SeriesMarkNameEnum.circle]?: IMarkSpec<IArcMarkSpec>;
|
|
12
|
+
[SeriesMarkNameEnum.overlap]?: IMarkSpec<IPathMarkSpec>;
|
|
13
|
+
[SeriesMarkNameEnum.label]?: Omit<ILabelSpec, 'position'>;
|
|
14
|
+
[SeriesMarkNameEnum.overlapLabel]?: Omit<ILabelSpec, 'position'>;
|
|
15
|
+
}
|
|
16
|
+
export interface IVennSeriesTheme {
|
|
17
|
+
[SeriesMarkNameEnum.circle]?: Partial<IMarkTheme<IArcMarkSpec>>;
|
|
18
|
+
[SeriesMarkNameEnum.overlap]?: Partial<IMarkTheme<IPathMarkSpec>>;
|
|
19
|
+
[SeriesMarkNameEnum.label]?: Omit<ILabelSpec, 'position'>;
|
|
20
|
+
[SeriesMarkNameEnum.overlapLabel]?: Omit<ILabelSpec, 'position'>;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getVennSeriesDataKey: (sets: string | string[]) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ISeriesSpec } from '../../typings';
|
|
2
|
+
import { BaseSeriesSpecTransformer } from '../base';
|
|
3
|
+
import type { IVennSeriesSpec, IVennSeriesTheme } from './interface';
|
|
4
|
+
export declare class VennSeriesSpecTransformer<T extends ISeriesSpec = Omit<IVennSeriesSpec, 'data'>, K extends IVennSeriesTheme = IVennSeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
|
|
5
|
+
protected _transformLabelSpec(spec: T): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { IMark } from '../../mark/interface';
|
|
2
|
+
import type { Datum, IPoint, StringOrNumber } from '../../typings';
|
|
3
|
+
import type { SeriesMarkMap } from '../interface';
|
|
4
|
+
import { SeriesTypeEnum } from '../interface/type';
|
|
5
|
+
import type { IVennSeriesSpec } from './interface';
|
|
6
|
+
import type { ILabelMark } from '../../mark/label';
|
|
7
|
+
import { VennSeriesSpecTransformer } from './venn-transform';
|
|
8
|
+
import { BaseSeries } from '../base';
|
|
9
|
+
import type { BaseLegend } from '../../component/legend/base-legend';
|
|
10
|
+
export declare class VennSeries<T extends IVennSeriesSpec = IVennSeriesSpec> extends BaseSeries<T> {
|
|
11
|
+
static readonly type: string;
|
|
12
|
+
type: SeriesTypeEnum;
|
|
13
|
+
static readonly mark: SeriesMarkMap;
|
|
14
|
+
static readonly transformerConstructor: typeof VennSeriesSpecTransformer;
|
|
15
|
+
readonly transformerConstructor: typeof VennSeriesSpecTransformer;
|
|
16
|
+
private _circleMark;
|
|
17
|
+
private _overlapMark;
|
|
18
|
+
private _labelMark;
|
|
19
|
+
protected _spec: T;
|
|
20
|
+
private _viewBox;
|
|
21
|
+
protected _categoryField: string;
|
|
22
|
+
getCategoryField(): string;
|
|
23
|
+
setCategoryField(f: string): string;
|
|
24
|
+
protected _valueField: string;
|
|
25
|
+
getValueField(): string;
|
|
26
|
+
setValueField(f: string): string;
|
|
27
|
+
setAttrFromSpec(): void;
|
|
28
|
+
compile(): void;
|
|
29
|
+
protected _runVennTransform(render?: boolean): void;
|
|
30
|
+
initMark(): void;
|
|
31
|
+
initMarkStyle(): void;
|
|
32
|
+
protected _initCircleMarkStyle(): void;
|
|
33
|
+
protected _initOverlapMarkStyle(): void;
|
|
34
|
+
initLabelMarkStyle(labelMark: ILabelMark): void;
|
|
35
|
+
initOverlapLabelMarkStyle(labelMark: ILabelMark): void;
|
|
36
|
+
protected initTooltip(): void;
|
|
37
|
+
getDimensionField(): string[];
|
|
38
|
+
getMeasureField(): string[];
|
|
39
|
+
onLayoutEnd(ctx: any): void;
|
|
40
|
+
getDefaultShapeType(): string;
|
|
41
|
+
getActiveMarks(): IMark[];
|
|
42
|
+
getStatisticFields(): {
|
|
43
|
+
key: string;
|
|
44
|
+
operations: Array<'max' | 'min' | 'values'>;
|
|
45
|
+
}[];
|
|
46
|
+
getGroupFields(): string[];
|
|
47
|
+
dataToPosition(data: Datum, checkInViewData?: boolean): IPoint;
|
|
48
|
+
dataToPositionX(data: Datum): number;
|
|
49
|
+
dataToPositionY(data: Datum): number;
|
|
50
|
+
valueToPosition(value1: any, value2?: any): IPoint;
|
|
51
|
+
getStackGroupFields(): string[];
|
|
52
|
+
getStackValueField(): string;
|
|
53
|
+
protected _getSeriesInfo(field: string, keys: string[]): {
|
|
54
|
+
key: string;
|
|
55
|
+
originalKey: string;
|
|
56
|
+
style: (attribute: string) => unknown;
|
|
57
|
+
shapeType: string;
|
|
58
|
+
}[];
|
|
59
|
+
getSeriesFieldValue(datum: Datum, seriesField?: string): string;
|
|
60
|
+
legendSelectedFilter(component: BaseLegend<any>, selectedKeys: StringOrNumber[]): StringOrNumber[];
|
|
61
|
+
initAnimation(): void;
|
|
62
|
+
}
|
|
63
|
+
export declare const registerVennSeries: () => void;
|
|
@@ -2,7 +2,7 @@ import type { Datum, IMarkSpec, IMarkTheme, IRuleMarkSpec, ITextMarkSpec } from
|
|
|
2
2
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
3
3
|
import type { WaterfallAppearPreset } from './animation';
|
|
4
4
|
import type { IBarSeriesSpec, IBarSeriesTheme } from '../bar/interface';
|
|
5
|
-
import type { ILabelSpec } from '../../component/label';
|
|
5
|
+
import type { ILabelSpec, ITotalLabelSpec } from '../../component/label';
|
|
6
6
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
7
7
|
type WaterfallMarks = 'bar';
|
|
8
8
|
export interface IWaterfallTotalText {
|
|
@@ -40,6 +40,11 @@ export interface IWaterfallSeriesSpec extends Omit<IBarSeriesSpec, 'type' | 'lab
|
|
|
40
40
|
offset?: number;
|
|
41
41
|
valueType?: IWaterfallStackLabelValueType;
|
|
42
42
|
};
|
|
43
|
+
totalLabel?: ITotalLabelSpec & {
|
|
44
|
+
position?: IWaterfallStackLabelPosition;
|
|
45
|
+
offset?: number;
|
|
46
|
+
valueType?: IWaterfallStackLabelValueType;
|
|
47
|
+
};
|
|
43
48
|
[SeriesMarkNameEnum.label]?: ILabelSpec & {
|
|
44
49
|
visible: boolean;
|
|
45
50
|
offset?: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BarSeriesSpecTransformer } from '../bar/bar-transformer';
|
|
2
2
|
import type { IWaterfallSeriesSpec, IWaterfallSeriesTheme } from './interface';
|
|
3
3
|
export declare class WaterfallSeriesSpecTransformer<T extends IWaterfallSeriesSpec = IWaterfallSeriesSpec, K extends IWaterfallSeriesTheme = IWaterfallSeriesTheme> extends BarSeriesSpecTransformer<any, K> {
|
|
4
|
+
protected _supportStack: boolean;
|
|
4
5
|
protected _transformLabelSpec(spec: T): void;
|
|
5
6
|
}
|
|
@@ -9,6 +9,7 @@ import type { ITextMark } from '../../mark/text';
|
|
|
9
9
|
import type { IModelEvaluateOption } from '../../model/interface';
|
|
10
10
|
import type { Datum } from '../../typings';
|
|
11
11
|
import type { ILabelMark } from '../../mark/label';
|
|
12
|
+
import type { ILabelInfo } from '../../component/label/label';
|
|
12
13
|
export declare const DefaultBandWidth = 6;
|
|
13
14
|
export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfallSeriesSpec> extends BarSeries<any> {
|
|
14
15
|
static readonly type: string;
|
|
@@ -16,7 +17,6 @@ export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfall
|
|
|
16
17
|
static readonly mark: SeriesMarkMap;
|
|
17
18
|
static readonly transformerConstructor: any;
|
|
18
19
|
readonly transformerConstructor: any;
|
|
19
|
-
protected _stack: boolean;
|
|
20
20
|
protected _totalData?: SeriesData;
|
|
21
21
|
getTotalData(): any;
|
|
22
22
|
protected _spec: T;
|
|
@@ -34,6 +34,14 @@ export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfall
|
|
|
34
34
|
onEvaluateEnd(ctx: IModelEvaluateOption): void;
|
|
35
35
|
initMark(): void;
|
|
36
36
|
initLabelMarkStyle(labelMark: ILabelMark): void;
|
|
37
|
+
initTotalLabelMarkStyle(labelMark: ILabelMark): void;
|
|
38
|
+
getTotalLabelComponentStyle(info: Pick<ILabelInfo, 'baseMark' | 'labelMark'>): {
|
|
39
|
+
customLayoutFunc: (labels: import("@visactor/vrender-components").LabelItem[]) => import("@visactor/vrender-core").IText[];
|
|
40
|
+
dataFilter: (labels: import("@visactor/vrender-components").LabelItem[]) => import("@visactor/vrender-components").LabelItem[];
|
|
41
|
+
overlap: {
|
|
42
|
+
strategy: any;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
37
45
|
totalPositionX(datum: Datum, field: string, pos?: number): number;
|
|
38
46
|
totalPositionY(datum: Datum, field: string, pos?: number): number;
|
|
39
47
|
initMarkStyle(): void;
|
|
@@ -36,7 +36,9 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
36
36
|
protected _defaultFontFamily: string;
|
|
37
37
|
protected _keyWordColorCallback: (datum: Datum) => string;
|
|
38
38
|
protected _fillingColorCallback: (datum: Datum) => string;
|
|
39
|
+
protected _dataChange: boolean;
|
|
39
40
|
setAttrFromSpec(): void;
|
|
41
|
+
protected initData(): void;
|
|
40
42
|
protected _wordMark: ITextMark;
|
|
41
43
|
initMark(): void;
|
|
42
44
|
initMarkStyle(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ITextMarkSpec, IMarkSpec, ISeriesSpec } from '../../typings';
|
|
1
|
+
import type { ITextMarkSpec, IMarkSpec, ISeriesSpec, ITextFormatMethod } from '../../typings';
|
|
2
2
|
import type { IAnimationSpec, IMarkAnimateSpec, IStateAnimateSpec } from '../../animation/spec';
|
|
3
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
4
|
import type { WordcloudAppearPreset } from './animation';
|
|
@@ -71,7 +71,7 @@ export interface IWordCloudSeriesBaseSpec extends ISeriesSpec, IAnimationSpec<st
|
|
|
71
71
|
wordCloudShapeConfig?: WordCloudShapeConfigType;
|
|
72
72
|
[SeriesMarkNameEnum.word]?: IMarkSpec<ITextMarkSpec> & {
|
|
73
73
|
padding?: number;
|
|
74
|
-
formatMethod?:
|
|
74
|
+
formatMethod?: ITextFormatMethod<[datum?: any]>;
|
|
75
75
|
};
|
|
76
76
|
[SeriesMarkNameEnum.fillingWord]?: IMarkSpec<ITextMarkSpec> & {
|
|
77
77
|
padding?: number;
|
|
@@ -87,11 +87,9 @@ export interface IWordCloudSeriesSpec extends IWordCloudSeriesBaseSpec {
|
|
|
87
87
|
export interface IWordCloudSeriesTheme {
|
|
88
88
|
[SeriesMarkNameEnum.word]?: IMarkSpec<ITextMarkSpec> & {
|
|
89
89
|
padding?: number;
|
|
90
|
-
formatMethod?: (datum?: any) => string;
|
|
91
90
|
};
|
|
92
91
|
[SeriesMarkNameEnum.fillingWord]?: IMarkSpec<ITextMarkSpec> & {
|
|
93
92
|
padding?: number;
|
|
94
|
-
formatMethod?: (datum?: any) => string;
|
|
95
93
|
};
|
|
96
94
|
}
|
|
97
95
|
export interface IWordCloud3dSeriesSpec extends IWordCloudSeriesBaseSpec {
|
|
@@ -102,10 +100,8 @@ export interface IWordCloud3dSeriesSpec extends IWordCloudSeriesBaseSpec {
|
|
|
102
100
|
export interface IWordCloud3dSeriesTheme {
|
|
103
101
|
[SeriesMarkNameEnum.word]?: IMarkSpec<ITextMarkSpec> & {
|
|
104
102
|
padding?: number;
|
|
105
|
-
formatMethod?: (text: string | string[], datum?: any) => string | string[];
|
|
106
103
|
};
|
|
107
104
|
[SeriesMarkNameEnum.fillingWord]?: IMarkSpec<ITextMarkSpec> & {
|
|
108
105
|
padding?: number;
|
|
109
|
-
formatMethod?: (text: string | string[], datum?: any) => string | string[];
|
|
110
106
|
};
|
|
111
107
|
}
|
package/types/theme/index.d.ts
CHANGED