@visactor/vchart-types 2.0.0-alpha.0 → 2.0.0-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 +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/animate-manager.d.ts +0 -10
- package/types/animation/animation-planner.d.ts +13 -0
- package/types/animation/config.d.ts +5 -5
- package/types/animation/grammar-dector.d.ts +22 -0
- package/types/animation/index.d.ts +7 -0
- package/types/animation/interface.d.ts +14 -7
- package/types/animation/sequential-animate.d.ts +1 -0
- package/types/animation/state-transition.d.ts +1 -0
- package/types/animation/strategy/common.d.ts +17 -0
- package/types/animation/strategy/horizontal-bar-split.d.ts +11 -0
- package/types/animation/strategy/vertical-bar-split.d.ts +11 -0
- package/types/animation/utils.d.ts +2 -2
- package/types/chart/area/area.d.ts +1 -0
- package/types/chart/bar/bar.d.ts +1 -0
- package/types/chart/bar/index.d.ts +0 -1
- package/types/chart/bar/interface.d.ts +1 -5
- package/types/chart/base/base-chart.d.ts +12 -2
- package/types/chart/box-plot/box-plot.d.ts +1 -0
- package/types/chart/common/common.d.ts +1 -0
- package/types/chart/common/interface.d.ts +5 -5
- package/types/chart/funnel/index.d.ts +0 -1
- package/types/chart/funnel/interface.d.ts +1 -4
- package/types/chart/histogram/histogram.d.ts +1 -0
- package/types/chart/histogram/index.d.ts +0 -1
- package/types/chart/histogram/interface.d.ts +1 -4
- package/types/chart/index.d.ts +19 -17
- package/types/chart/interface/chart.d.ts +11 -1
- package/types/chart/interface/type.d.ts +1 -8
- package/types/chart/line/line.d.ts +1 -0
- package/types/chart/mosaic/mosaic.d.ts +1 -0
- package/types/chart/pictogram/interface.d.ts +1 -1
- package/types/chart/pie/index.d.ts +0 -1
- package/types/chart/pie/interface.d.ts +1 -5
- package/types/chart/progress/circular/circular.d.ts +1 -0
- package/types/chart/progress/linear/linear.d.ts +1 -0
- package/types/chart/radar/radar.d.ts +1 -0
- package/types/chart/range-area/range-area.d.ts +1 -0
- package/types/chart/range-column/index.d.ts +0 -1
- package/types/chart/range-column/interface.d.ts +1 -5
- package/types/chart/range-column/range-column.d.ts +1 -0
- package/types/chart/rose/rose.d.ts +1 -0
- package/types/chart/scatter/scatter.d.ts +1 -0
- package/types/chart/waterfall/waterfall.d.ts +1 -0
- package/types/chart/word-cloud/index.d.ts +0 -1
- package/types/chart/word-cloud/interface.d.ts +1 -5
- package/types/chart/word-cloud/word-cloud.d.ts +4 -8
- package/types/compile/interface/compiler.d.ts +2 -1
- package/types/compile/mark/compilable-mark.d.ts +1 -0
- package/types/compile/mark/interface.d.ts +9 -4
- package/types/compile/mark/mark-state-manager.d.ts +1 -0
- package/types/compile/morph.d.ts +3 -0
- package/types/component/axis/base-axis.d.ts +5 -0
- package/types/component/axis/cartesian/axis.d.ts +6 -13
- package/types/component/axis/cartesian/band-axis.d.ts +6 -0
- package/types/component/axis/cartesian/linear-axis.d.ts +2 -1
- package/types/component/axis/cartesian/log-axis.d.ts +6 -0
- package/types/component/axis/cartesian/symlog-axis.d.ts +6 -0
- package/types/component/axis/cartesian/time-axis.d.ts +5 -0
- package/types/component/axis/cartesian/util/common.d.ts +3 -1
- package/types/component/axis/interface/spec.d.ts +7 -2
- package/types/component/axis/mixin/band-axis-mixin.d.ts +1 -0
- package/types/component/axis/polar/band-axis.d.ts +6 -0
- package/types/component/axis/polar/linear-axis.d.ts +6 -0
- package/types/component/axis/polar/util/common.d.ts +4 -1
- package/types/component/axis/util.d.ts +2 -6
- package/types/component/base/base-component.d.ts +0 -3
- package/types/component/base/util.d.ts +1 -2
- package/types/component/brush/brush.d.ts +29 -26
- package/types/component/brush/interface.d.ts +2 -0
- package/types/component/common/trigger/desktop.d.ts +0 -2
- package/types/component/common/trigger/interface.d.ts +0 -2
- package/types/component/common/trigger/mobile.d.ts +0 -2
- package/types/component/crosshair/base.d.ts +1 -1
- package/types/component/crosshair/cartesian.d.ts +4 -1
- package/types/component/crosshair/interface/spec.d.ts +1 -1
- package/types/component/crosshair/polar.d.ts +4 -1
- package/types/component/crosshair/utils/cartesian.d.ts +11 -1
- package/types/component/crosshair/utils/common.d.ts +2 -3
- package/types/component/custom-mark/custom-mark.d.ts +1 -0
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +3 -0
- package/types/component/data-zoom/data-zoom/interface.d.ts +2 -3
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -0
- package/types/component/index.d.ts +14 -8
- package/types/component/indicator/indicator.d.ts +3 -0
- package/types/component/interface/common.d.ts +0 -2
- package/types/component/interface/theme.d.ts +1 -3
- package/types/component/interface/type.d.ts +0 -1
- package/types/component/label/base-label.d.ts +4 -4
- package/types/component/label/interface.d.ts +10 -5
- package/types/component/label/total-label.d.ts +4 -1
- package/types/component/label/util.d.ts +1 -1
- package/types/component/legend/continuous/legend.d.ts +4 -0
- package/types/component/legend/discrete/legend.d.ts +3 -0
- package/types/component/legend/util.d.ts +1 -1
- package/types/component/marker/mark-area/cartesian-mark-area.d.ts +3 -0
- package/types/component/marker/mark-area/interface/theme.d.ts +4 -3
- package/types/component/marker/mark-area/polar-mark-area.d.ts +3 -0
- package/types/component/marker/mark-line/cartesian-mark-line.d.ts +3 -0
- package/types/component/marker/mark-line/interface/theme.d.ts +4 -3
- package/types/component/marker/mark-line/polar-mark-line.d.ts +3 -0
- package/types/component/marker/mark-point/cartesian-mark-point.d.ts +3 -0
- package/types/component/marker/mark-point/geo-mark-point.d.ts +3 -0
- package/types/component/marker/mark-point/interface/theme.d.ts +5 -2
- package/types/component/marker/mark-point/polar-mark-point.d.ts +3 -0
- package/types/component/marker/utils.d.ts +12 -0
- package/types/component/player/player.d.ts +3 -0
- package/types/component/title/title.d.ts +3 -0
- package/types/component/tooltip/constant.d.ts +6 -2
- package/types/component/tooltip/interface/common.d.ts +2 -1
- package/types/component/tooltip/processor/base.d.ts +4 -5
- package/types/component/tooltip/processor/dimension-tooltip.d.ts +1 -0
- package/types/component/tooltip/processor/group-tooltip.d.ts +1 -0
- package/types/component/tooltip/processor/interface.d.ts +11 -0
- package/types/component/tooltip/processor/mark-tooltip.d.ts +1 -0
- package/types/component/tooltip/processor/util.d.ts +1 -1
- package/types/component/tooltip/tooltip.d.ts +5 -2
- package/types/component/util.d.ts +1 -2
- package/types/constant/event.d.ts +2 -0
- package/types/core/factory.d.ts +16 -12
- package/types/core/index.d.ts +16 -1
- package/types/core/interface.d.ts +6 -1
- package/types/core/vchart.d.ts +2 -1
- package/types/data/transforms/circle-packing.d.ts +1 -1
- package/types/data/transforms/data-key.d.ts +1 -1
- package/types/data/transforms/flatten.d.ts +1 -1
- package/types/data/transforms/funnel.d.ts +1 -6
- package/types/data/transforms/pictogram.d.ts +2 -10
- package/types/data/transforms/sankey-links.d.ts +1 -2
- package/types/data/transforms/sankey-nodes.d.ts +1 -2
- package/types/data/transforms/sankey.d.ts +4 -4
- package/types/data/transforms/sunburst.d.ts +1 -1
- package/types/data/transforms/treemap.d.ts +1 -1
- package/types/data/transforms/venn.d.ts +1 -1
- package/types/event/event-dispatcher.d.ts +4 -1
- package/types/event/event.d.ts +4 -1
- package/types/event/events/dimension/util/cartesian.d.ts +2 -1
- package/types/event/events/index.d.ts +1 -5
- package/types/event/index.d.ts +1 -1
- package/types/event/interface.d.ts +13 -4
- package/types/index-harmony-simple.d.ts +2 -3
- package/types/index-harmony.d.ts +1 -1
- package/types/index.d.ts +12 -0
- package/types/interaction/index.d.ts +3 -2
- package/types/interaction/triggers/enum.d.ts +1 -3
- package/types/interaction/zoom/zoomable.d.ts +4 -0
- package/types/layout/base-layout.d.ts +12 -9
- package/types/layout/index.d.ts +4 -4
- package/types/layout/interface.d.ts +6 -1
- package/types/layout/layout-item.d.ts +5 -0
- package/types/layout/util.d.ts +17 -4
- package/types/mark/arc.d.ts +1 -1
- package/types/mark/base/base-line.d.ts +11 -2
- package/types/mark/base/base-mark.d.ts +46 -17
- package/types/mark/cell.d.ts +2 -2
- package/types/mark/component.d.ts +1 -0
- package/types/mark/glyph.d.ts +1 -0
- package/types/mark/group.d.ts +2 -1
- package/types/mark/index.d.ts +8 -7
- package/types/mark/interface/common.d.ts +20 -0
- package/types/mark/interface/mark.d.ts +2 -4
- package/types/mark/interface/type.d.ts +0 -3
- package/types/mark/rule.d.ts +2 -2
- package/types/mark/symbol.d.ts +2 -3
- package/types/mark/text.d.ts +2 -2
- package/types/mark/transform/symbol-overlap.d.ts +0 -1
- package/types/mark/utils/common.d.ts +0 -1
- package/types/model/base-model.d.ts +3 -2
- package/types/model/interface.d.ts +7 -2
- package/types/model/layout-model.d.ts +2 -1
- package/types/plugin/chart/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +2 -3
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +1 -12
- package/types/plugin/other.d.ts +0 -1
- package/types/region/interface.d.ts +0 -2
- package/types/region/region.d.ts +0 -2
- package/types/series/area/area.d.ts +2 -1
- package/types/series/bar/animation.d.ts +0 -1
- package/types/series/bar/bar.d.ts +7 -6
- package/types/series/bar/constant.d.ts +0 -1
- package/types/series/bar/interface.d.ts +1 -7
- package/types/series/base/base-series-transformer.d.ts +1 -1
- package/types/series/base/base-series.d.ts +2 -3
- package/types/series/box-plot/animation.d.ts +52 -0
- package/types/series/box-plot/box-plot.d.ts +3 -0
- package/types/series/circle-packing/circle-packing.d.ts +3 -0
- package/types/series/correlation/correlation.d.ts +3 -0
- package/types/series/dot/dot.d.ts +3 -0
- package/types/series/funnel/constant.d.ts +0 -1
- package/types/series/funnel/funnel.d.ts +7 -9
- package/types/series/funnel/interface.d.ts +2 -13
- package/types/series/funnel/tooltip-helper.d.ts +3 -1
- package/types/series/gauge/gauge-pointer.d.ts +3 -0
- package/types/series/gauge/gauge.d.ts +3 -0
- package/types/series/geo/geo.d.ts +1 -2
- package/types/series/heatmap/heatmap.d.ts +3 -0
- package/types/series/index.d.ts +24 -19
- package/types/series/interface/theme.d.ts +5 -16
- package/types/series/interface/type.d.ts +1 -11
- package/types/series/line/line.d.ts +3 -0
- package/types/series/link/link.d.ts +3 -0
- package/types/series/liquid/liquid.d.ts +3 -0
- package/types/series/map/map.d.ts +3 -0
- package/types/series/mosaic/mosaic.d.ts +2 -0
- package/types/series/pictogram/pictogram.d.ts +19 -13
- package/types/series/pictogram/tooltip-helper.d.ts +2 -2
- package/types/series/pie/animation/animation.d.ts +2 -3
- package/types/series/pie/constant.d.ts +0 -1
- package/types/series/pie/interface.d.ts +1 -11
- package/types/series/pie/pie.d.ts +5 -5
- package/types/series/polar/animation.d.ts +2 -4
- package/types/series/polar/progress-like/interface.d.ts +1 -0
- package/types/series/progress/circular/circular.d.ts +3 -0
- package/types/series/progress/linear/animation.d.ts +1 -1
- package/types/series/progress/linear/interface.d.ts +1 -0
- package/types/series/progress/linear/linear.d.ts +3 -0
- package/types/series/radar/animation.d.ts +1 -1
- package/types/series/radar/radar.d.ts +3 -0
- package/types/series/range-column/constant.d.ts +0 -1
- package/types/series/range-column/interface.d.ts +0 -3
- package/types/series/range-column/range-column.d.ts +5 -4
- package/types/series/rose/rose.d.ts +3 -0
- package/types/series/sankey/animation.d.ts +13 -0
- package/types/series/sankey/interface.d.ts +0 -1
- package/types/series/sankey/sankey.d.ts +3 -0
- package/types/series/scatter/scatter.d.ts +3 -0
- package/types/series/sunburst/interface.d.ts +1 -1
- package/types/series/sunburst/sunburst.d.ts +3 -0
- package/types/series/treemap/interface.d.ts +1 -1
- package/types/series/treemap/treemap.d.ts +3 -0
- package/types/series/venn/animation.d.ts +11 -0
- package/types/series/venn/venn.d.ts +3 -0
- package/types/series/waterfall/waterfall.d.ts +4 -0
- package/types/series/word-cloud/animation.d.ts +1 -3
- package/types/series/word-cloud/base.d.ts +3 -2
- package/types/series/word-cloud/interface.d.ts +1 -19
- package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +0 -1
- package/types/theme/builtin/common/series/funnel.d.ts +2 -2
- package/types/theme/builtin/common/series/word-cloud.d.ts +1 -2
- package/types/theme/builtin/index.d.ts +3 -1
- package/types/theme/color-scheme/util.d.ts +1 -1
- package/types/typings/spec/chart.d.ts +6 -12
- package/types/typings/spec/common.d.ts +3 -5
- package/types/typings/tooltip/position.d.ts +1 -1
- package/types/typings/visual.d.ts +2 -11
- package/types/util/mark.d.ts +1 -1
- package/types/util/region.d.ts +5 -0
- package/types/util/scale.d.ts +1 -0
- package/types/util/theme/common.d.ts +1 -1
- package/types/util/theme/merge-theme.d.ts +2 -2
- package/types/util/theme/preprocess.d.ts +1 -2
- package/types/vrender-tools.d.ts +1 -0
- package/types/interaction/triggers/element-highlight-by-graphic-name.d.ts +0 -13
- package/types/interaction/triggers/element-select-by-graphic-name.d.ts +0 -8
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { IAreaChartSpec } from '../../chart/area/interface';
|
|
2
|
-
import type { IBarChartSpec
|
|
2
|
+
import type { IBarChartSpec } from '../../chart/bar/interface';
|
|
3
3
|
import type { IBoxPlotChartSpec } from '../../chart/box-plot/interface';
|
|
4
4
|
import type { ICirclePackingChartSpec } from '../../chart/circle-packing/interface';
|
|
5
5
|
import type { ICommonChartSpec } from '../../chart/common/interface';
|
|
6
|
-
import type { IFunnelChartSpec
|
|
6
|
+
import type { IFunnelChartSpec } from '../../chart/funnel/interface';
|
|
7
7
|
import type { IGaugeChartSpec } from '../../chart/gauge/interface';
|
|
8
8
|
import type { IHeatmapChartSpec } from '../../chart/heatmap/interface';
|
|
9
|
-
import type { IHistogramChartSpec
|
|
9
|
+
import type { IHistogramChartSpec } from '../../chart/histogram/interface';
|
|
10
10
|
import type { ILineChartSpec } from '../../chart/line/interface';
|
|
11
11
|
import type { IMapChartSpec } from '../../chart/map/interface';
|
|
12
|
-
import type { IPieChartSpec
|
|
12
|
+
import type { IPieChartSpec } from '../../chart/pie/interface';
|
|
13
13
|
import type { ICircularProgressChartSpec } from '../../chart/progress/circular/interface';
|
|
14
14
|
import type { ILinearProgressChartSpec } from '../../chart/progress/linear/interface';
|
|
15
15
|
import type { IRadarChartSpec } from '../../chart/radar/interface';
|
|
16
16
|
import type { IRangeAreaChartSpec } from '../../chart/range-area/interface';
|
|
17
|
-
import type { IRangeColumnChartSpec
|
|
17
|
+
import type { IRangeColumnChartSpec } from '../../chart/range-column/interface';
|
|
18
18
|
import type { IRoseChartSpec } from '../../chart/rose/interface';
|
|
19
19
|
import type { ISankeyChartSpec } from '../../chart/sankey/interface';
|
|
20
20
|
import type { IScatterChartSpec } from '../../chart/scatter/interface';
|
|
@@ -23,7 +23,7 @@ import type { ISunburstChartSpec } from '../../chart/sunburst/interface';
|
|
|
23
23
|
import type { ITreemapChartSpec } from '../../chart/treemap/interface';
|
|
24
24
|
import type { IWaterfallChartSpec } from '../../chart/waterfall/interface';
|
|
25
25
|
import type { ICorrelationChartSpec } from '../../chart/correlation/interface';
|
|
26
|
-
import type { IWordCloudChartSpec
|
|
26
|
+
import type { IWordCloudChartSpec } from '../../chart/word-cloud/interface';
|
|
27
27
|
import type { IChartSpec } from './common';
|
|
28
28
|
import type { ILiquidChartSpec } from '../../chart/liquid/interface';
|
|
29
29
|
export interface ChartSpecMap {
|
|
@@ -31,15 +31,11 @@ export interface ChartSpecMap {
|
|
|
31
31
|
readonly area: IAreaChartSpec;
|
|
32
32
|
readonly line: ILineChartSpec;
|
|
33
33
|
readonly bar: IBarChartSpec;
|
|
34
|
-
readonly bar3d: IBar3dChartSpec;
|
|
35
34
|
readonly histogram: IHistogramChartSpec;
|
|
36
|
-
readonly histogram3d: IHistogram3dChartSpec;
|
|
37
35
|
readonly rangeColumn: IRangeColumnChartSpec;
|
|
38
|
-
readonly rangeColumn3d: IRangeColumn3dChartSpec;
|
|
39
36
|
readonly rangeArea: IRangeAreaChartSpec;
|
|
40
37
|
readonly map: IMapChartSpec;
|
|
41
38
|
readonly pie: IPieChartSpec;
|
|
42
|
-
readonly pie3d: IPie3dChartSpec;
|
|
43
39
|
readonly radar: IRadarChartSpec;
|
|
44
40
|
readonly rose: IRoseChartSpec;
|
|
45
41
|
readonly scatter: IScatterChartSpec;
|
|
@@ -47,9 +43,7 @@ export interface ChartSpecMap {
|
|
|
47
43
|
readonly circleProgress: ICircularProgressChartSpec;
|
|
48
44
|
readonly linearProgress: ILinearProgressChartSpec;
|
|
49
45
|
readonly wordCloud: IWordCloudChartSpec;
|
|
50
|
-
readonly wordCloud3d: IWordCloud3dChartSpec;
|
|
51
46
|
readonly funnel: IFunnelChartSpec;
|
|
52
|
-
readonly funnel3d: IFunnel3dChartSpec;
|
|
53
47
|
readonly waterfall: IWaterfallChartSpec;
|
|
54
48
|
readonly boxplot: IBoxPlotChartSpec;
|
|
55
49
|
readonly gauge: IGaugeChartSpec;
|
|
@@ -7,7 +7,7 @@ import type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interactio
|
|
|
7
7
|
import type { IRenderOption } from '../../compile/interface';
|
|
8
8
|
import type { ISeriesTooltipSpec, ITooltipSpec } from '../../component/tooltip/interface';
|
|
9
9
|
import type { ILayoutSpec } from '../../layout/interface';
|
|
10
|
-
import type { ConvertToMarkStyleSpec,
|
|
10
|
+
import type { ConvertToMarkStyleSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
|
|
11
11
|
import type { ISeriesStyle, SeriesType } from '../../series/interface';
|
|
12
12
|
import type { Datum, StringOrNumber } from '../common';
|
|
13
13
|
import type { IInvalidType } from '../data';
|
|
@@ -106,10 +106,11 @@ export type BuildInTransformOptions = {
|
|
|
106
106
|
export interface IFieldsMeta {
|
|
107
107
|
alias?: string;
|
|
108
108
|
domain?: StringOrNumber[];
|
|
109
|
-
lockStatisticsByDomain?: boolean;
|
|
109
|
+
lockStatisticsByDomain?: boolean | 'onlyFull';
|
|
110
110
|
type?: 'ordinal' | 'linear';
|
|
111
111
|
sortIndex?: number;
|
|
112
112
|
sortReverse?: boolean;
|
|
113
|
+
sort?: 'desc' | 'asc';
|
|
113
114
|
}
|
|
114
115
|
export interface SheetParseOptions extends CommonParseOptions {
|
|
115
116
|
type: 'csv' | 'dsv' | 'tsv';
|
|
@@ -262,14 +263,11 @@ export type IBuildinMarkSpec = {
|
|
|
262
263
|
line: ILineMarkSpec;
|
|
263
264
|
text: ITextMarkSpec;
|
|
264
265
|
rect: IRectMarkSpec;
|
|
265
|
-
rect3d: IRect3dMarkSpec;
|
|
266
266
|
image: IImageMarkSpec;
|
|
267
267
|
path: IPathMarkSpec;
|
|
268
268
|
area: IAreaMarkSpec;
|
|
269
269
|
arc: IArcMarkSpec;
|
|
270
|
-
arc3d: IArc3dMarkSpec;
|
|
271
270
|
polygon: IPolygonMarkSpec;
|
|
272
|
-
pyramid3d: IPyramid3dMarkSpec;
|
|
273
271
|
boxPlot: IBoxPlotMarkSpec;
|
|
274
272
|
linkPath: ILinkPathMarkSpec;
|
|
275
273
|
ripple: IRippleMarkSpec;
|
|
@@ -6,7 +6,7 @@ export interface ITooltipPositionFixedValue {
|
|
|
6
6
|
offset?: number;
|
|
7
7
|
}
|
|
8
8
|
export type TooltipPositionPatternItem = TooltipPositionValue | ITooltipPositionFixedValue;
|
|
9
|
-
export type TooltipFixedPosition = 'top' | 'bottom' | 'left' | 'right' | 'tl' | 'lt' | 'tr' | 'rt' | 'bl' | 'lb' | 'br' | 'rb' | 'center' | 'centerTop' | 'centerBottom' | 'centerLeft' | 'centerRight' | 'inside';
|
|
9
|
+
export type TooltipFixedPosition = 'top' | 'bottom' | 'left' | 'right' | 'tl' | 'lt' | 'tr' | 'rt' | 'bl' | 'lb' | 'br' | 'rb' | 'center' | 'centerTop' | 'centerBottom' | 'centerLeft' | 'centerRight' | 'inside' | 'insideTop' | 'insideBottom' | 'insideLeft' | 'insideRight' | 'insideTopLeft' | 'insideTopRight' | 'insideBottomLeft' | 'insideBottomRight';
|
|
10
10
|
export type TooltipPositionMode = 'pointer' | 'mark' | 'crosshair';
|
|
11
11
|
export interface IGlobalTooltipPositionPattern {
|
|
12
12
|
left?: TooltipPositionValue;
|
|
@@ -57,7 +57,7 @@ export interface ICommonSpec {
|
|
|
57
57
|
x?: number;
|
|
58
58
|
y?: number;
|
|
59
59
|
z?: number;
|
|
60
|
-
stroke?: string | IGradient | false | (number | boolean)[] | IColorKey;
|
|
60
|
+
stroke?: string | IGradient | false | (number | boolean)[] | IColorKey | null;
|
|
61
61
|
strokeOpacity?: number;
|
|
62
62
|
opacity?: number;
|
|
63
63
|
lineWidth?: number;
|
|
@@ -157,9 +157,6 @@ export interface IRectMarkSpec extends IFillMarkSpec {
|
|
|
157
157
|
x1?: number;
|
|
158
158
|
y1?: number;
|
|
159
159
|
}
|
|
160
|
-
export interface IRect3dMarkSpec extends IRectMarkSpec {
|
|
161
|
-
length?: number;
|
|
162
|
-
}
|
|
163
160
|
export interface IBoxPlotMarkSpec extends ICommonSpec {
|
|
164
161
|
lineWidth?: number;
|
|
165
162
|
boxWidth?: number;
|
|
@@ -220,9 +217,6 @@ export interface IArcMarkSpec extends IFillMarkSpec {
|
|
|
220
217
|
cap?: boolean | [boolean, boolean];
|
|
221
218
|
autoCapConical?: boolean;
|
|
222
219
|
}
|
|
223
|
-
export interface IArc3dMarkSpec extends IArcMarkSpec {
|
|
224
|
-
height?: number;
|
|
225
|
-
}
|
|
226
220
|
export interface ICellMarkSpec extends ISymbolMarkSpec {
|
|
227
221
|
padding?: number | number[] | IPadding;
|
|
228
222
|
}
|
|
@@ -238,9 +232,6 @@ export interface IPolygonMarkSpec extends ICommonSpec, IFillMarkSpec {
|
|
|
238
232
|
scaleX?: number;
|
|
239
233
|
scaleY?: number;
|
|
240
234
|
}
|
|
241
|
-
export interface IPyramid3dMarkSpec extends IPolygonMarkSpec {
|
|
242
|
-
points?: IPoint[];
|
|
243
|
-
}
|
|
244
235
|
export type RepeatType = 'no-repeat' | 'repeat-x' | 'repeat-y' | 'repeat';
|
|
245
236
|
export type RepeatXYType = 'no-repeat' | 'repeat' | 'stretch';
|
|
246
237
|
export type ImageOriginType = 'top' | 'bottom';
|
|
@@ -296,7 +287,7 @@ export interface IImageMarkSpec extends IFillMarkSpec {
|
|
|
296
287
|
height?: number;
|
|
297
288
|
repeatX?: IRepeatType;
|
|
298
289
|
repeatY?: IRepeatType;
|
|
299
|
-
image
|
|
290
|
+
image?: string | HTMLImageElement | HTMLCanvasElement;
|
|
300
291
|
}
|
|
301
292
|
export type TextAlign = TextAlignType;
|
|
302
293
|
export type TextBaseLine = TextBaselineType;
|
package/types/util/mark.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
2
2
|
import type { IMarkGraphic } from '../mark/interface/common';
|
|
3
3
|
export declare const isCollectionMark: (type: string) => boolean;
|
|
4
|
-
export declare const getDatumOfGraphic: (g: IMarkGraphic) => import("
|
|
4
|
+
export declare const getDatumOfGraphic: (g: IMarkGraphic) => import("..").Datum;
|
|
5
5
|
export declare const findMarkGraphic: (rootGroup: IGraphic, target: IGraphic) => IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>;
|
package/types/util/scale.d.ts
CHANGED
|
@@ -17,5 +17,6 @@ export declare function createScaleWithSpec(spec: IVisual<any>, context: {
|
|
|
17
17
|
seriesId: number;
|
|
18
18
|
}): IBaseScale | null;
|
|
19
19
|
export declare function valueInScaleRange(v: number, s?: IBaseScale, useWholeRange?: boolean): number;
|
|
20
|
+
export declare function isValueInScaleDomain(v: number | number[], s?: IBaseScale, useWholeRange?: boolean): boolean;
|
|
20
21
|
export declare function isSpecValueWithScale(specValue: any): boolean;
|
|
21
22
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ITheme } from '../../theme';
|
|
2
|
-
export declare function getThemeObject(theme?: string | ITheme
|
|
2
|
+
export declare function getThemeObject(theme?: string | ITheme): ITheme;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Maybe } from '@visactor/vutils';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ITheme } from '../../theme';
|
|
3
3
|
import type { IThemeColorScheme } from '../../theme/color-scheme/interface';
|
|
4
4
|
export declare function mergeTheme(target: Maybe<ITheme>, ...sources: Maybe<ITheme>[]): Maybe<ITheme>;
|
|
5
5
|
export declare function transformColorSchemeToMerge(colorScheme?: Maybe<IThemeColorScheme>): Maybe<IThemeColorScheme>;
|
|
6
|
-
export declare function transformSeriesThemeToMerge(seriesTheme: any, seriesType: string,
|
|
6
|
+
export declare function transformSeriesThemeToMerge(seriesTheme: any, seriesType: string, getTheme: (...keys: string[]) => any): any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { IThemeColorScheme } from '../../theme/color-scheme/interface';
|
|
2
|
-
import type { ISeriesSpec } from '../../typings';
|
|
3
2
|
import type { TokenMap } from '../../theme/token';
|
|
4
|
-
export declare function preprocessTheme(obj: any, colorScheme?: IThemeColorScheme, tokenMap?: TokenMap
|
|
3
|
+
export declare function preprocessTheme(obj: any, colorScheme?: IThemeColorScheme, tokenMap?: TokenMap): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { randomOpacity, columnLeftToRight, columnRightToLeft, rowTopToBottom, rowBottomToTop, diagonalCenterToEdge, diagonalTopLeftToBottomRight, rotationScan, rippleEffect, snakeWave, alternatingWave, spiralEffect, columnEdgeToCenter, columnCenterToEdge, rowEdgeToCenter, rowCenterToEdge, cornerToCenter, centerToCorner, pulseWave, particleEffect } from '@visactor/vrender-kits';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ElementHighlight } from './element-highlight';
|
|
2
|
-
import type { BaseEventParams } from '../../event/interface';
|
|
3
|
-
export declare class ElementHighlightByGraphicName extends ElementHighlight {
|
|
4
|
-
static type: string;
|
|
5
|
-
type: string;
|
|
6
|
-
protected _filterByName(e: BaseEventParams): boolean;
|
|
7
|
-
protected _parseTargetKey(e: BaseEventParams): string;
|
|
8
|
-
start(itemKey: any): void;
|
|
9
|
-
reset(): void;
|
|
10
|
-
handleStart: (e: BaseEventParams) => void;
|
|
11
|
-
handleReset: (e: BaseEventParams) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const registerElementHighlightByGraphicName: () => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { IMarkGraphic } from '../../mark/interface/common';
|
|
2
|
-
import { ElementSelect } from './element-select';
|
|
3
|
-
export declare class ElementSelectByGraphicName extends ElementSelect {
|
|
4
|
-
static type: string;
|
|
5
|
-
type: string;
|
|
6
|
-
start(markGraphic: IMarkGraphic): void;
|
|
7
|
-
}
|
|
8
|
-
export declare const registerElementSelectByGraphicName: () => void;
|