@visactor/vchart-types 1.15.5-alpha.8 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/animate-manager.d.ts +0 -12
- package/types/animation/animation-planner.d.ts +13 -0
- package/types/animation/config.d.ts +5 -5
- package/types/animation/grammar-dector.d.ts +22 -0
- package/types/animation/index.d.ts +7 -0
- package/types/animation/interface.d.ts +98 -7
- package/types/animation/sequential-animate.d.ts +1 -0
- package/types/animation/spec.d.ts +27 -3
- package/types/animation/state-transition.d.ts +1 -0
- package/types/animation/strategy/common.d.ts +17 -0
- package/types/animation/strategy/horizontal-bar-split.d.ts +11 -0
- package/types/animation/strategy/vertical-bar-split.d.ts +11 -0
- package/types/animation/utils.d.ts +3 -4
- package/types/chart/area/area.d.ts +1 -0
- package/types/chart/bar/bar.d.ts +1 -0
- package/types/chart/bar/index.d.ts +0 -1
- package/types/chart/bar/interface.d.ts +1 -5
- package/types/chart/base/base-chart.d.ts +22 -9
- package/types/chart/box-plot/box-plot.d.ts +1 -0
- package/types/chart/common/common.d.ts +1 -0
- package/types/chart/common/interface.d.ts +5 -5
- package/types/chart/funnel/index.d.ts +0 -1
- package/types/chart/funnel/interface.d.ts +1 -4
- package/types/chart/funnel/util.d.ts +2 -0
- package/types/chart/histogram/histogram.d.ts +1 -0
- package/types/chart/histogram/index.d.ts +0 -1
- package/types/chart/histogram/interface.d.ts +1 -4
- package/types/chart/index.d.ts +19 -17
- package/types/chart/interface/chart.d.ts +14 -5
- package/types/chart/interface/common.d.ts +2 -9
- package/types/chart/interface/type.d.ts +1 -8
- package/types/chart/line/line.d.ts +1 -0
- package/types/chart/mosaic/mosaic.d.ts +1 -0
- package/types/chart/pictogram/interface.d.ts +1 -1
- package/types/chart/pie/index.d.ts +0 -1
- package/types/chart/pie/interface.d.ts +1 -5
- package/types/chart/progress/circular/circular.d.ts +1 -0
- package/types/chart/progress/linear/linear.d.ts +1 -0
- package/types/chart/radar/radar.d.ts +1 -0
- package/types/chart/range-area/range-area.d.ts +1 -0
- package/types/chart/range-column/index.d.ts +0 -1
- package/types/chart/range-column/interface.d.ts +1 -5
- package/types/chart/range-column/range-column.d.ts +1 -0
- package/types/chart/rose/rose.d.ts +1 -0
- package/types/chart/sankey/sankey.d.ts +1 -1
- package/types/chart/scatter/scatter.d.ts +1 -0
- package/types/chart/waterfall/waterfall.d.ts +1 -0
- package/types/chart/word-cloud/index.d.ts +0 -1
- package/types/chart/word-cloud/interface.d.ts +1 -5
- package/types/chart/word-cloud/word-cloud.d.ts +4 -8
- package/types/compile/compilable-base.d.ts +1 -1
- package/types/compile/compiler.d.ts +35 -25
- package/types/compile/data/compilable-data.d.ts +7 -7
- package/types/compile/data/interface.d.ts +4 -1
- package/types/compile/grammar-item.d.ts +7 -13
- package/types/compile/interface/compilable-item.d.ts +22 -28
- package/types/compile/interface/compiler.d.ts +14 -4
- package/types/compile/mark/compilable-mark.d.ts +1 -0
- package/types/compile/mark/index.d.ts +0 -1
- package/types/compile/mark/interface.d.ts +48 -34
- package/types/compile/mark/mark-state-manager.d.ts +12 -13
- package/types/compile/mark/util.d.ts +1 -1
- package/types/compile/morph.d.ts +3 -0
- package/types/compile/state-manager.d.ts +11 -0
- package/types/compile/util.d.ts +14 -0
- package/types/component/axis/base-axis.d.ts +10 -3
- package/types/component/axis/cartesian/axis.d.ts +7 -14
- package/types/component/axis/cartesian/band-axis.d.ts +6 -0
- package/types/component/axis/cartesian/linear-axis.d.ts +2 -1
- package/types/component/axis/cartesian/log-axis.d.ts +6 -0
- package/types/component/axis/cartesian/symlog-axis.d.ts +6 -0
- package/types/component/axis/cartesian/time-axis.d.ts +6 -0
- package/types/component/axis/cartesian/util/common.d.ts +3 -1
- package/types/component/axis/interface/common.d.ts +8 -0
- package/types/component/axis/interface/spec.d.ts +7 -2
- package/types/component/axis/mixin/band-axis-mixin.d.ts +1 -0
- package/types/component/axis/polar/band-axis.d.ts +6 -0
- package/types/component/axis/polar/linear-axis.d.ts +6 -0
- package/types/component/axis/polar/util/common.d.ts +4 -1
- package/types/component/axis/util.d.ts +2 -6
- package/types/component/base/base-component.d.ts +1 -5
- package/types/component/base/util.d.ts +1 -2
- package/types/component/brush/brush.d.ts +35 -30
- package/types/component/brush/interface.d.ts +2 -0
- package/types/component/common/trigger/desktop.d.ts +0 -2
- package/types/component/common/trigger/interface.d.ts +0 -2
- package/types/component/common/trigger/mobile.d.ts +0 -2
- package/types/component/crosshair/base.d.ts +25 -36
- package/types/component/crosshair/cartesian.d.ts +9 -29
- package/types/component/crosshair/interface/common.d.ts +67 -2
- package/types/component/crosshair/interface/index.d.ts +0 -2
- package/types/component/crosshair/interface/spec.d.ts +8 -4
- package/types/component/crosshair/polar.d.ts +10 -23
- package/types/component/crosshair/utils/cartesian.d.ts +10 -21
- package/types/component/crosshair/utils/common.d.ts +2 -3
- package/types/component/crosshair/utils/polar.d.ts +18 -11
- package/types/component/custom-mark/custom-mark.d.ts +1 -0
- package/types/component/data-zoom/data-filter-base-component.d.ts +4 -4
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +4 -1
- package/types/component/data-zoom/data-zoom/interface.d.ts +2 -3
- package/types/component/data-zoom/interface.d.ts +11 -0
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +4 -2
- package/types/component/geo/geo-coordinate.d.ts +2 -2
- package/types/component/geo/interface.d.ts +1 -1
- package/types/component/index.d.ts +14 -8
- package/types/component/indicator/indicator.d.ts +3 -0
- package/types/component/interface/common.d.ts +0 -2
- package/types/component/interface/theme.d.ts +1 -3
- package/types/component/interface/type.d.ts +0 -1
- package/types/component/label/base-label.d.ts +9 -4
- package/types/component/label/interface.d.ts +14 -8
- package/types/component/label/label.d.ts +5 -3
- package/types/component/label/total-label.d.ts +4 -1
- package/types/component/label/util.d.ts +9 -10
- package/types/component/legend/continuous/legend.d.ts +4 -0
- package/types/component/legend/discrete/legend.d.ts +3 -0
- package/types/component/legend/util.d.ts +2 -2
- package/types/component/marker/base-marker.d.ts +1 -1
- package/types/component/marker/mark-area/cartesian-mark-area.d.ts +3 -0
- package/types/component/marker/mark-area/interface/theme.d.ts +4 -3
- package/types/component/marker/mark-area/polar-mark-area.d.ts +3 -0
- package/types/component/marker/mark-line/cartesian-mark-line.d.ts +3 -0
- package/types/component/marker/mark-line/interface/theme.d.ts +4 -3
- package/types/component/marker/mark-line/polar-mark-line.d.ts +3 -0
- package/types/component/marker/mark-point/cartesian-mark-point.d.ts +3 -0
- package/types/component/marker/mark-point/geo-mark-point.d.ts +3 -0
- package/types/component/marker/mark-point/interface/theme.d.ts +5 -2
- package/types/component/marker/mark-point/polar-mark-point.d.ts +3 -0
- package/types/component/marker/utils.d.ts +12 -0
- package/types/component/player/player.d.ts +3 -0
- package/types/component/title/title.d.ts +3 -0
- package/types/component/tooltip/constant.d.ts +6 -2
- package/types/component/tooltip/interface/common.d.ts +2 -1
- package/types/component/tooltip/processor/base.d.ts +4 -5
- package/types/component/tooltip/processor/dimension-tooltip.d.ts +1 -0
- package/types/component/tooltip/processor/group-tooltip.d.ts +1 -0
- package/types/component/tooltip/processor/interface.d.ts +12 -1
- package/types/component/tooltip/processor/mark-tooltip.d.ts +1 -0
- package/types/component/tooltip/processor/util.d.ts +1 -1
- package/types/component/tooltip/tooltip.d.ts +8 -5
- package/types/component/util.d.ts +1 -2
- package/types/constant/data.d.ts +1 -0
- package/types/constant/event.d.ts +55 -2
- package/types/core/factory.d.ts +31 -2
- package/types/core/index.d.ts +18 -2
- package/types/core/interface.d.ts +19 -5
- package/types/core/vchart.d.ts +8 -7
- package/types/data/transforms/circle-packing.d.ts +1 -1
- package/types/data/transforms/data-key.d.ts +1 -1
- package/types/data/transforms/flatten.d.ts +1 -1
- package/types/data/transforms/funnel.d.ts +1 -6
- package/types/data/transforms/pictogram.d.ts +2 -10
- package/types/data/transforms/sankey-links.d.ts +1 -2
- package/types/data/transforms/sankey-nodes.d.ts +1 -2
- package/types/data/transforms/sankey.d.ts +4 -4
- package/types/data/transforms/sunburst.d.ts +1 -1
- package/types/data/transforms/treemap.d.ts +5 -6
- package/types/data/transforms/venn.d.ts +10 -0
- package/types/data/transforms/waterfall.d.ts +1 -0
- package/types/event/event-dispatcher.d.ts +4 -1
- package/types/event/event.d.ts +4 -1
- package/types/event/events/base.d.ts +1 -2
- package/types/event/events/dimension/util/cartesian.d.ts +2 -1
- package/types/event/events/index.d.ts +1 -5
- package/types/event/index.d.ts +1 -0
- package/types/event/interface.d.ts +19 -13
- package/types/index-harmony-simple.d.ts +4 -4
- package/types/index-harmony.d.ts +1 -1
- package/types/index.d.ts +11 -0
- package/types/interaction/config.d.ts +13 -0
- package/types/interaction/index.d.ts +10 -1
- package/types/interaction/interaction.d.ts +17 -25
- package/types/interaction/interface/common.d.ts +22 -0
- package/types/interaction/interface/spec.d.ts +53 -0
- package/types/interaction/interface/trigger.d.ts +87 -0
- package/types/interaction/triggers/base.d.ts +28 -0
- package/types/interaction/triggers/dimension-hover.d.ts +22 -0
- package/types/interaction/triggers/element-active-by-legend.d.ts +21 -0
- package/types/interaction/triggers/element-active.d.ts +20 -0
- package/types/interaction/triggers/element-highlight-by-group.d.ts +23 -0
- package/types/interaction/triggers/element-highlight-by-key.d.ts +9 -0
- package/types/interaction/triggers/element-highlight-by-legend.d.ts +22 -0
- package/types/interaction/triggers/element-highlight-by-name.d.ts +24 -0
- package/types/interaction/triggers/element-highlight.d.ts +25 -0
- package/types/interaction/triggers/element-select.d.ts +24 -0
- package/types/interaction/triggers/enum.d.ts +6 -0
- package/types/interaction/triggers/util.d.ts +12 -0
- package/types/interaction/zoom/zoomable.d.ts +5 -0
- package/types/layout/base-layout.d.ts +12 -9
- package/types/layout/index.d.ts +4 -4
- package/types/layout/interface.d.ts +8 -3
- package/types/layout/layout-item.d.ts +7 -3
- package/types/layout/util.d.ts +17 -4
- package/types/mark/arc.d.ts +3 -3
- package/types/mark/area.d.ts +2 -0
- package/types/mark/base/base-line.d.ts +25 -2
- package/types/mark/base/base-mark.d.ts +160 -13
- package/types/mark/box-plot.d.ts +11 -5
- package/types/mark/cell.d.ts +6 -3
- package/types/mark/component.d.ts +12 -3
- package/types/mark/glyph.d.ts +30 -0
- package/types/mark/group.d.ts +11 -6
- package/types/mark/index.d.ts +10 -7
- package/types/mark/interface/common.d.ts +81 -9
- package/types/mark/interface/enum.d.ts +6 -0
- package/types/mark/interface/index.d.ts +1 -0
- package/types/mark/interface/mark.d.ts +20 -5
- package/types/mark/interface/type.d.ts +1 -3
- package/types/mark/label.d.ts +4 -3
- package/types/mark/link-path.d.ts +35 -5
- package/types/mark/liquid.d.ts +47 -5
- package/types/mark/ripple.d.ts +39 -4
- package/types/mark/rule.d.ts +4 -1
- package/types/mark/symbol.d.ts +4 -5
- package/types/mark/text.d.ts +5 -3
- package/types/mark/transform/data-sampling.d.ts +10 -0
- package/types/mark/transform/filter.d.ts +1 -0
- package/types/mark/transform/map.d.ts +1 -0
- package/types/mark/transform/symbol-overlap.d.ts +13 -0
- package/types/mark/utils/common.d.ts +4 -1
- package/types/mark/utils/glyph.d.ts +2 -0
- package/types/mark/utils/index.d.ts +2 -0
- package/types/mark/utils/line.d.ts +3 -0
- package/types/model/base-model.d.ts +11 -10
- package/types/model/interface.d.ts +11 -10
- package/types/model/layout-model.d.ts +4 -3
- package/types/plugin/chart/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +2 -3
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +1 -14
- package/types/plugin/other.d.ts +3 -4
- package/types/region/interface.d.ts +0 -4
- package/types/region/region.d.ts +3 -11
- package/types/series/area/animation.d.ts +1 -1
- package/types/series/area/area.d.ts +3 -2
- package/types/series/bar/animation.d.ts +1 -2
- package/types/series/bar/bar.d.ts +9 -9
- package/types/series/bar/constant.d.ts +0 -1
- package/types/series/bar/interface.d.ts +1 -7
- package/types/series/base/base-series-transformer.d.ts +1 -1
- package/types/series/base/base-series.d.ts +23 -40
- package/types/series/base/tooltip-helper.d.ts +1 -2
- package/types/series/box-plot/animation.d.ts +52 -0
- package/types/series/box-plot/box-plot.d.ts +6 -3
- package/types/series/cartesian/cartesian.d.ts +1 -1
- package/types/series/circle-packing/animation.d.ts +1 -1
- package/types/series/circle-packing/circle-packing.d.ts +4 -1
- package/types/series/correlation/animation.d.ts +1 -1
- package/types/series/correlation/correlation.d.ts +6 -4
- package/types/series/dot/dot.d.ts +5 -2
- package/types/series/funnel/constant.d.ts +0 -1
- package/types/series/funnel/funnel.d.ts +10 -11
- package/types/series/funnel/interface.d.ts +2 -13
- package/types/series/funnel/tooltip-helper.d.ts +4 -2
- package/types/series/gauge/animation.d.ts +1 -1
- package/types/series/gauge/gauge-pointer.d.ts +7 -1
- package/types/series/gauge/gauge.d.ts +5 -2
- package/types/series/geo/geo.d.ts +3 -4
- package/types/series/heatmap/animation.d.ts +1 -1
- package/types/series/heatmap/heatmap.d.ts +7 -1
- package/types/series/index.d.ts +24 -19
- package/types/series/interface/common.d.ts +1 -4
- package/types/series/interface/series.d.ts +6 -1
- package/types/series/interface/theme.d.ts +5 -16
- package/types/series/interface/type.d.ts +1 -11
- package/types/series/line/animation.d.ts +1 -1
- package/types/series/line/line.d.ts +4 -1
- package/types/series/link/link.d.ts +8 -2
- package/types/series/liquid/animation.d.ts +1 -1
- package/types/series/liquid/liquid.d.ts +7 -1
- package/types/series/map/interface.d.ts +10 -0
- package/types/series/map/map.d.ts +3 -0
- package/types/series/mixin/line-mixin.d.ts +5 -5
- package/types/series/mosaic/mosaic.d.ts +2 -0
- package/types/series/pictogram/pictogram.d.ts +2 -0
- package/types/series/pictogram/tooltip-helper.d.ts +2 -2
- package/types/series/pie/animation/animation.d.ts +4 -4
- package/types/series/pie/animation/centerOffset.d.ts +1 -1
- package/types/series/pie/constant.d.ts +0 -1
- package/types/series/pie/interface.d.ts +3 -13
- package/types/series/pie/pie.d.ts +13 -11
- package/types/series/polar/animation.d.ts +2 -4
- package/types/series/polar/progress-like/animation.d.ts +1 -1
- package/types/series/polar/progress-like/interface.d.ts +1 -0
- package/types/series/polar/progress-like/progress-like.d.ts +1 -2
- package/types/series/progress/circular/circular.d.ts +7 -1
- package/types/series/progress/linear/animation.d.ts +2 -2
- package/types/series/progress/linear/interface.d.ts +1 -0
- package/types/series/progress/linear/linear.d.ts +7 -1
- package/types/series/radar/animation.d.ts +12 -10
- package/types/series/radar/radar.d.ts +5 -2
- package/types/series/range-column/animation.d.ts +1 -1
- package/types/series/range-column/constant.d.ts +0 -1
- package/types/series/range-column/interface.d.ts +0 -3
- package/types/series/range-column/range-column.d.ts +5 -4
- package/types/series/rose/animation.d.ts +1 -1
- package/types/series/rose/rose.d.ts +3 -0
- package/types/series/sankey/animation.d.ts +14 -1
- package/types/series/sankey/interface.d.ts +0 -1
- package/types/series/sankey/sankey.d.ts +14 -12
- package/types/series/sankey/tooltip-helper.d.ts +1 -1
- package/types/series/scatter/animation.d.ts +1 -1
- package/types/series/scatter/scatter.d.ts +3 -0
- package/types/series/sunburst/animation/enter.d.ts +1 -1
- package/types/series/sunburst/animation/exit.d.ts +1 -1
- package/types/series/sunburst/animation/preset.d.ts +1 -1
- package/types/series/sunburst/animation/utils.d.ts +2 -2
- package/types/series/sunburst/interface.d.ts +1 -1
- package/types/series/sunburst/sunburst.d.ts +4 -1
- package/types/series/treemap/animation.d.ts +1 -1
- package/types/series/treemap/interface.d.ts +1 -1
- package/types/series/treemap/treemap.d.ts +4 -2
- package/types/series/venn/animation.d.ts +12 -1
- package/types/series/venn/venn.d.ts +5 -1
- package/types/series/waterfall/animation.d.ts +1 -1
- package/types/series/waterfall/waterfall.d.ts +6 -2
- package/types/series/word-cloud/animation.d.ts +2 -4
- package/types/series/word-cloud/base.d.ts +4 -3
- package/types/series/word-cloud/interface.d.ts +2 -20
- package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +0 -1
- package/types/theme/builtin/common/series/funnel.d.ts +2 -2
- package/types/theme/builtin/common/series/word-cloud.d.ts +1 -2
- package/types/theme/builtin/index.d.ts +3 -1
- package/types/theme/color-scheme/util.d.ts +1 -1
- package/types/typings/common.d.ts +13 -0
- package/types/typings/spec/chart.d.ts +6 -12
- package/types/typings/spec/common.d.ts +40 -41
- package/types/typings/tooltip/position.d.ts +1 -1
- package/types/typings/visual.d.ts +11 -13
- package/types/util/array.d.ts +1 -0
- package/types/util/index.d.ts +1 -0
- package/types/util/mark.d.ts +5 -0
- package/types/util/math.d.ts +1 -1
- package/types/util/region.d.ts +5 -0
- package/types/util/scale.d.ts +1 -0
- package/types/util/theme/common.d.ts +1 -1
- package/types/util/theme/merge-theme.d.ts +2 -2
- package/types/util/theme/preprocess.d.ts +1 -2
- package/types/vrender-tools.d.ts +1 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
1
|
import type { ISunburstAnimationParams } from './interface';
|
|
2
|
+
import type { IAnimationTypeConfig } from '../../../animation/interface';
|
|
3
3
|
export declare const sunburstExit: (params: ISunburstAnimationParams) => IAnimationTypeConfig;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { IAnimationTypeConfig } from '
|
|
1
|
+
import type { IAnimationTypeConfig } from '../../../animation/interface';
|
|
2
2
|
import type { ISunburstAnimationParams, SunburstAppearPreset } from './interface';
|
|
3
3
|
export declare const sunburstPresetAnimation: (_params: ISunburstAnimationParams, preset: SunburstAppearPreset) => IAnimationTypeConfig;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IMarkGraphic } from '../../../mark/interface/common';
|
|
2
2
|
export declare const computeRatio: (angle: number, range: [number, number]) => number;
|
|
3
|
-
export declare const getInnerMostElements: (
|
|
3
|
+
export declare const getInnerMostElements: (graphics: IMarkGraphic[]) => IMarkGraphic[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
2
2
|
import type { IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings/spec';
|
|
3
|
-
import type { SunburstLabelConfig } from '@visactor/
|
|
3
|
+
import type { SunburstLabelConfig } from '@visactor/vlayouts';
|
|
4
4
|
import type { SunburstAppearPreset, SunburstMark } from './animation/interface';
|
|
5
5
|
import type { IArcMarkSpec, ITextMarkSpec } from '../../typings';
|
|
6
6
|
import type { IPolarSeriesTheme } from '../polar/interface';
|
|
@@ -9,6 +9,9 @@ export declare class SunburstSeries extends PolarSeries<any> {
|
|
|
9
9
|
static readonly type: string;
|
|
10
10
|
type: SeriesTypeEnum;
|
|
11
11
|
static readonly mark: SeriesMarkMap;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
sunburst: import("./interface").ISunburstSeriesTheme;
|
|
14
|
+
};
|
|
12
15
|
private _sunburstMark;
|
|
13
16
|
private _labelMark;
|
|
14
17
|
protected _categoryField: string;
|
|
@@ -48,7 +51,7 @@ export declare class SunburstSeries extends PolarSeries<any> {
|
|
|
48
51
|
protected initTooltip(): void;
|
|
49
52
|
initAnimation(): void;
|
|
50
53
|
initEvent(): void;
|
|
51
|
-
onLayoutEnd(
|
|
54
|
+
onLayoutEnd(): void;
|
|
52
55
|
private _computeRadius;
|
|
53
56
|
private _computeLevel;
|
|
54
57
|
getGroupFields(): string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAnimationTypeConfig } from '
|
|
1
|
+
import type { IAnimationTypeConfig } from '../../animation/interface';
|
|
2
2
|
import type { TreemapAppearPreset } from './interface';
|
|
3
3
|
export declare const treemapPresetAnimation: (preset: TreemapAppearPreset) => IAnimationTypeConfig;
|
|
4
4
|
export declare const registerTreemapAnimation: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IRectMarkSpec, ITextMarkSpec } from '../../typings';
|
|
2
2
|
import type { IHierarchyData, IMarkSpec, IMarkTheme, ISeriesSpec } from '../../typings/spec';
|
|
3
|
-
import type { TreemapOptions } from '@visactor/
|
|
3
|
+
import type { TreemapOptions } from '@visactor/vlayouts';
|
|
4
4
|
import type { ICartesianSeriesTheme } from '../cartesian/interface';
|
|
5
5
|
import type { IAnimationSpec } from '../../animation/spec';
|
|
6
6
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
@@ -11,6 +11,9 @@ export declare class TreemapSeries extends CartesianSeries<any> {
|
|
|
11
11
|
static readonly type: string;
|
|
12
12
|
type: SeriesTypeEnum;
|
|
13
13
|
static readonly mark: SeriesMarkMap;
|
|
14
|
+
static readonly builtInTheme: {
|
|
15
|
+
treemap: import("./interface").ITreemapSeriesTheme;
|
|
16
|
+
};
|
|
14
17
|
static readonly transformerConstructor: typeof TreemapSeriesSpecTransformer;
|
|
15
18
|
readonly transformerConstructor: typeof TreemapSeriesSpecTransformer;
|
|
16
19
|
private _leafMark;
|
|
@@ -30,7 +33,6 @@ export declare class TreemapSeries extends CartesianSeries<any> {
|
|
|
30
33
|
private _enableAnimationHook;
|
|
31
34
|
setAttrFromSpec(): void;
|
|
32
35
|
initData(): void;
|
|
33
|
-
compile(): void;
|
|
34
36
|
protected _runTreemapTransform(render?: boolean): void;
|
|
35
37
|
protected _addDataIndexAndKey(): void;
|
|
36
38
|
getRawDataStatisticsByField(field: string, isNumeric?: boolean): {
|
|
@@ -59,7 +61,7 @@ export declare class TreemapSeries extends CartesianSeries<any> {
|
|
|
59
61
|
handleZoom(event: ZoomEventParam): void;
|
|
60
62
|
getDimensionField(): string[];
|
|
61
63
|
getMeasureField(): string[];
|
|
62
|
-
onLayoutEnd(
|
|
64
|
+
onLayoutEnd(): void;
|
|
63
65
|
protected enableMarkAnimation(): void;
|
|
64
66
|
protected disableMarkAnimation(): void;
|
|
65
67
|
getDefaultShapeType(): string;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ACustomAnimate } from '@visactor/vrender-animate';
|
|
2
|
+
import type { IVennCircle, IVennOverlapArc, VennCircleName } from '@visactor/vlayouts';
|
|
2
3
|
import type { VennAppearPreset } from './interface';
|
|
4
|
+
import type { IAnimationTypeConfig } from '../../animation/interface';
|
|
3
5
|
export declare const vennCirclePresetAnimation: (preset: VennAppearPreset) => IAnimationTypeConfig;
|
|
4
6
|
export declare const vennOverlapPresetAnimation: (preset: VennAppearPreset) => IAnimationTypeConfig;
|
|
7
|
+
export declare class VennOverlapAnimation extends ACustomAnimate<{
|
|
8
|
+
path: string;
|
|
9
|
+
arcs: IVennOverlapArc[];
|
|
10
|
+
}> {
|
|
11
|
+
protected fromCircles: Record<VennCircleName, IVennCircle>;
|
|
12
|
+
protected toCircles: Record<VennCircleName, IVennCircle>;
|
|
13
|
+
onBind(): void;
|
|
14
|
+
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
15
|
+
}
|
|
5
16
|
export declare const registerVennAnimation: () => void;
|
|
@@ -10,6 +10,9 @@ export declare class VennSeries<T extends IVennSeriesSpec = IVennSeriesSpec> ext
|
|
|
10
10
|
static readonly type: string;
|
|
11
11
|
type: SeriesTypeEnum;
|
|
12
12
|
static readonly mark: SeriesMarkMap;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
venn: import("./interface").IVennSeriesTheme;
|
|
15
|
+
};
|
|
13
16
|
static readonly transformerConstructor: typeof VennSeriesSpecTransformer;
|
|
14
17
|
readonly transformerConstructor: typeof VennSeriesSpecTransformer;
|
|
15
18
|
private _circleMark;
|
|
@@ -24,6 +27,7 @@ export declare class VennSeries<T extends IVennSeriesSpec = IVennSeriesSpec> ext
|
|
|
24
27
|
getValueField(): string;
|
|
25
28
|
setValueField(f: string): string;
|
|
26
29
|
setAttrFromSpec(): void;
|
|
30
|
+
initData(): void;
|
|
27
31
|
compile(): void;
|
|
28
32
|
protected _runVennTransform(render?: boolean): void;
|
|
29
33
|
initMark(): void;
|
|
@@ -35,7 +39,7 @@ export declare class VennSeries<T extends IVennSeriesSpec = IVennSeriesSpec> ext
|
|
|
35
39
|
protected initTooltip(): void;
|
|
36
40
|
getDimensionField(): string[];
|
|
37
41
|
getMeasureField(): string[];
|
|
38
|
-
onLayoutEnd(
|
|
42
|
+
onLayoutEnd(): void;
|
|
39
43
|
getDefaultShapeType(): string;
|
|
40
44
|
getActiveMarks(): IMark[];
|
|
41
45
|
getStatisticFields(): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
2
1
|
import type { IBarAnimationParams } from '../bar/interface';
|
|
3
2
|
import type { WaterfallAppearPreset } from './interface';
|
|
3
|
+
import type { IAnimationTypeConfig } from '../../animation/interface';
|
|
4
4
|
export declare function waterfallPresetAnimation(params: IBarAnimationParams, preset: WaterfallAppearPreset): IAnimationTypeConfig;
|
|
5
5
|
export declare const registerWaterfallAnimation: () => void;
|
|
@@ -3,19 +3,22 @@ import type { IWaterfallSeriesSpec } from './interface';
|
|
|
3
3
|
import type { SeriesMarkMap } from '../interface';
|
|
4
4
|
import { SeriesTypeEnum } from '../interface/type';
|
|
5
5
|
import type { ITransformOptions, DataView } from '@visactor/vdataset';
|
|
6
|
-
import { SeriesData } from '../base/series-data';
|
|
7
6
|
import type { IModelEvaluateOption } from '../../model/interface';
|
|
8
7
|
import type { Datum } from '../../typings';
|
|
9
8
|
import type { ILabelMark, IRuleMark, ITextMark } from '../../mark/interface';
|
|
10
9
|
import type { ILabelInfo } from '../../component/label/interface';
|
|
10
|
+
import { type ICompilableData } from '../../compile/data';
|
|
11
11
|
export declare const DefaultBandWidth = 6;
|
|
12
12
|
export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfallSeriesSpec> extends BarSeries<any> {
|
|
13
13
|
static readonly type: string;
|
|
14
14
|
type: SeriesTypeEnum;
|
|
15
15
|
static readonly mark: SeriesMarkMap;
|
|
16
|
+
static readonly builtInTheme: {
|
|
17
|
+
waterfall: import("./interface").IWaterfallSeriesTheme;
|
|
18
|
+
};
|
|
16
19
|
static readonly transformerConstructor: any;
|
|
17
20
|
readonly transformerConstructor: any;
|
|
18
|
-
protected _totalData?:
|
|
21
|
+
protected _totalData?: ICompilableData;
|
|
19
22
|
getTotalData(): any;
|
|
20
23
|
protected _spec: T;
|
|
21
24
|
protected _leaderLineMark: IRuleMark;
|
|
@@ -45,5 +48,6 @@ export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfall
|
|
|
45
48
|
totalPositionX(datum: Datum, field: string, pos?: number): number;
|
|
46
49
|
totalPositionY(datum: Datum, field: string, pos?: number): number;
|
|
47
50
|
initMarkStyle(): void;
|
|
51
|
+
protected isVisibleLeaderLine(datum: Datum): boolean;
|
|
48
52
|
}
|
|
49
53
|
export declare const registerWaterfallSeries: () => void;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export declare const WordCloud3dAnimation: (params: IWordcloud3dAnimationParams | (() => any)) => IAnimationTypeConfig;
|
|
1
|
+
import type { IWordcloudAnimationParams, WordcloudAppearPreset } from './interface';
|
|
2
|
+
import type { IAnimationTypeConfig } from '../../animation/interface';
|
|
4
3
|
export declare const WordCloudScaleInAnimation: (params: IWordcloudAnimationParams) => IAnimationTypeConfig;
|
|
5
4
|
export declare function wordcloudPresetAnimation(params: IWordcloudAnimationParams, preset: WordcloudAppearPreset | boolean): IAnimationTypeConfig;
|
|
6
5
|
export declare const registerWordCloudAnimation: () => void;
|
|
7
|
-
export declare const registerWordCloud3dAnimation: () => void;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { IPadding } from '@visactor/vutils';
|
|
2
2
|
import type { SeriesMarkMap } from '../interface';
|
|
3
|
-
import type { IWordCloudSeriesSpec, WordCloudConfigType, WordCloudShapeConfigType, WordCloudShapeType } from './interface';
|
|
3
|
+
import type { IWordCloudSeriesSpec, IWordCloudSeriesTheme, WordCloudConfigType, WordCloudShapeConfigType, WordCloudShapeType } from './interface';
|
|
4
4
|
import type { Datum, IMarkSpec, IPoint, ITextMarkSpec } from '../../typings';
|
|
5
5
|
import { BaseSeries } from '../base/base-series';
|
|
6
6
|
import type { IMark, IRectMark, ITextMark } from '../../mark/interface';
|
|
7
|
-
import type { GeometricMaskShape, TextShapeMask } from '@visactor/
|
|
7
|
+
import type { GeometricMaskShape, TextShapeMask } from '@visactor/vlayouts';
|
|
8
8
|
export type IBaseWordCloudSeriesSpec = Omit<IWordCloudSeriesSpec, 'type'> & {
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
11
|
export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IBaseWordCloudSeriesSpec> extends BaseSeries<T> {
|
|
12
12
|
static readonly mark: SeriesMarkMap;
|
|
13
|
+
static readonly builtInTheme: Record<string, IWordCloudSeriesTheme>;
|
|
13
14
|
protected _nameField: string;
|
|
14
15
|
protected _valueField?: string;
|
|
15
16
|
setValueField(field: string): void;
|
|
@@ -60,7 +61,7 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
60
61
|
getGroupFields(): string[];
|
|
61
62
|
getStackGroupFields(): string[];
|
|
62
63
|
getStackValueField(): string;
|
|
63
|
-
onLayoutEnd(
|
|
64
|
+
onLayoutEnd(): void;
|
|
64
65
|
getActiveMarks(): IMark[];
|
|
65
66
|
reInit(): void;
|
|
66
67
|
}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import type { ITextMarkSpec, IMarkSpec, ISeriesSpec, ITextFormatMethod, IRectMarkSpec } from '../../typings';
|
|
2
2
|
import type { IAnimationSpec, IMarkAnimateSpec, IStateAnimateSpec } from '../../animation/spec';
|
|
3
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
|
-
import type { shapes } from '@visactor/
|
|
5
|
-
import type {
|
|
6
|
-
import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
|
|
7
|
-
export interface IWordcloud3dAnimationParams {
|
|
8
|
-
radius: number;
|
|
9
|
-
depth_3d: number;
|
|
10
|
-
}
|
|
4
|
+
import type { shapes, GeometricMaskShape, TextShapeMask } from '@visactor/vlayouts';
|
|
5
|
+
import type { IAnimationTypeConfig } from '../../animation/interface';
|
|
11
6
|
export interface IWordcloudAnimationParams {
|
|
12
7
|
animationConfig: () => IAnimationTypeConfig;
|
|
13
8
|
}
|
|
@@ -103,16 +98,3 @@ export interface IWordCloudSeriesTheme {
|
|
|
103
98
|
padding?: number;
|
|
104
99
|
};
|
|
105
100
|
}
|
|
106
|
-
export interface IWordCloud3dSeriesSpec extends IWordCloudSeriesBaseSpec {
|
|
107
|
-
type: 'wordCloud3d';
|
|
108
|
-
depth_3d?: number;
|
|
109
|
-
postProjection?: 'StereographicProjection';
|
|
110
|
-
}
|
|
111
|
-
export interface IWordCloud3dSeriesTheme {
|
|
112
|
-
[SeriesMarkNameEnum.word]?: IMarkSpec<ITextMarkSpec> & {
|
|
113
|
-
padding?: number;
|
|
114
|
-
};
|
|
115
|
-
[SeriesMarkNameEnum.fillingWord]?: IMarkSpec<ITextMarkSpec> & {
|
|
116
|
-
padding?: number;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IFunnelSeriesTheme } from '../../../../series/funnel/interface';
|
|
2
|
+
export declare const getFunnelTheme: (is3d?: boolean) => IFunnelSeriesTheme;
|
|
2
3
|
export declare const funnel: IFunnelSeriesTheme;
|
|
3
|
-
export declare const funnel3d: IFunnel3dSeriesTheme;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { IWordCloudSeriesTheme
|
|
1
|
+
import type { IWordCloudSeriesTheme } from '../../../../series/word-cloud/interface';
|
|
2
2
|
export declare const wordCloud: IWordCloudSeriesTheme;
|
|
3
|
-
export declare const wordCloud3d: IWordCloud3dSeriesTheme;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export * from './light';
|
|
2
2
|
export * from './dark';
|
|
3
3
|
import type { ITheme } from '../interface';
|
|
4
|
+
import { getFunnelTheme } from './common/series/funnel';
|
|
4
5
|
export declare const builtinThemes: Record<string, ITheme>;
|
|
5
6
|
export declare const defaultThemeName: string;
|
|
6
7
|
export declare const themes: Map<string, ITheme>;
|
|
7
8
|
export declare const hasThemeMerged: Map<string, boolean>;
|
|
8
9
|
export declare const registerTheme: (name: string, theme: Partial<ITheme>) => void;
|
|
9
|
-
export declare const getTheme: (name?: string
|
|
10
|
+
export declare const getTheme: (name?: string) => ITheme;
|
|
10
11
|
export declare const removeTheme: (name: string) => boolean;
|
|
11
12
|
export declare const themeExist: (name: any) => boolean;
|
|
12
13
|
export declare const getMergedTheme: (theme: Partial<ITheme>) => ITheme;
|
|
14
|
+
export { getFunnelTheme };
|
|
@@ -3,7 +3,7 @@ import type { ISeriesSpec } from '../../typings';
|
|
|
3
3
|
export declare function getDataScheme(colorScheme?: IThemeColorScheme, seriesSpec?: ISeriesSpec): Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>;
|
|
4
4
|
export declare function computeActualDataScheme(dataScheme: Array<ColorSchemeItem> | ProgressiveDataScheme<ColorSchemeItem>, colorDomain: any[]): Array<ColorSchemeItem>;
|
|
5
5
|
export declare function queryColorFromColorScheme(colorScheme: IThemeColorScheme, colorKey: IColorKey, seriesSpec?: ISeriesSpec): ColorSchemeItem | undefined;
|
|
6
|
-
export declare const getActualColor: (value: any, colorScheme?: IThemeColorScheme
|
|
6
|
+
export declare const getActualColor: (value: any, colorScheme?: IThemeColorScheme) => any;
|
|
7
7
|
export declare function isColorKey(obj: any): obj is IColorKey;
|
|
8
8
|
export declare function isProgressiveDataColorScheme<T>(obj: any): obj is ProgressiveDataScheme<T>;
|
|
9
9
|
export declare function transformColorSchemeToStandardStruct(colorScheme: ColorScheme): IColorSchemeStruct;
|
|
@@ -5,3 +5,16 @@ export type StringOrNumber = string | number;
|
|
|
5
5
|
export type MaybeArray<T> = T | Array<T>;
|
|
6
6
|
export type Maybe<T> = T | undefined | null;
|
|
7
7
|
export type Quadrant = 1 | 2 | 3 | 4;
|
|
8
|
+
export type ValueOf<T, K extends keyof T = keyof T> = T[K];
|
|
9
|
+
export type DiffResult<Prev, Next> = {
|
|
10
|
+
enter: {
|
|
11
|
+
next: Next;
|
|
12
|
+
}[];
|
|
13
|
+
update: {
|
|
14
|
+
prev: Prev;
|
|
15
|
+
next: Next;
|
|
16
|
+
}[];
|
|
17
|
+
exit: {
|
|
18
|
+
prev: Prev;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
@@ -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;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import type { IVChart } from './../../core/interface';
|
|
2
2
|
import type { IImageMarkSpec } from '../visual';
|
|
3
3
|
import type { LayoutCallBack } from '../../layout/interface';
|
|
4
|
-
import type { IElement, srIOption3DType } from '@visactor/vgrammar-core';
|
|
5
4
|
import type { DataSet, DataView, ISimplifyOptions, IFieldsOptions, IFilterOptions, IFoldOptions, IDsvParserOptions } from '@visactor/vdataset';
|
|
6
5
|
import type { RegionSpec } from '../../region/interface';
|
|
7
|
-
import type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interaction/interface';
|
|
6
|
+
import type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interaction/interface/spec';
|
|
8
7
|
import type { IRenderOption } from '../../compile/interface';
|
|
9
8
|
import type { ISeriesTooltipSpec, ITooltipSpec } from '../../component/tooltip/interface';
|
|
10
9
|
import type { ILayoutSpec } from '../../layout/interface';
|
|
11
|
-
import type { ConvertToMarkStyleSpec,
|
|
10
|
+
import type { ConvertToMarkStyleSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
|
|
12
11
|
import type { ISeriesStyle, SeriesType } from '../../series/interface';
|
|
13
12
|
import type { Datum, StringOrNumber } from '../common';
|
|
14
13
|
import type { IInvalidType } from '../data';
|
|
15
14
|
import type { IAnimationSpec, IMorphSeriesSpec } from '../../animation/spec';
|
|
16
15
|
import type { IPlayer } from '../../component/player/interface';
|
|
17
|
-
import type { IMarkProgressiveConfig, MarkTypeEnum } from '../../mark/interface';
|
|
16
|
+
import type { IMark, IMarkProgressiveConfig, MarkTypeEnum } from '../../mark/interface';
|
|
18
17
|
import type { IDataZoomSpec } from '../../component/data-zoom/data-zoom/interface';
|
|
19
18
|
import type { IScrollBarSpec } from '../../component/data-zoom/scroll-bar/interface';
|
|
20
19
|
import type { ICrosshairSpec } from '../../component/crosshair/interface';
|
|
@@ -24,7 +23,7 @@ import type { IBrushSpec } from '../../component/brush/interface';
|
|
|
24
23
|
import type { ITotalLabelSpec } from '../../component/label/interface';
|
|
25
24
|
import type { ILegendSpec } from '../../component/legend/interface';
|
|
26
25
|
import type { ILayoutOrientPadding, ILayoutPaddingSpec } from '../layout';
|
|
27
|
-
import type { IColor, ICustomPath2D, IRichTextCharacter } from '@visactor/vrender-core';
|
|
26
|
+
import type { IColor, ICustomPath2D, IGraphic, IRichTextCharacter } from '@visactor/vrender-core';
|
|
28
27
|
import type { ICommonAxisSpec } from '../../component/axis/interface';
|
|
29
28
|
import type { IMediaQuerySpec } from './media-query';
|
|
30
29
|
import type { IModelSpec } from '../../model/interface';
|
|
@@ -34,9 +33,7 @@ export interface IInitOption extends Omit<IRenderOption, 'pluginList'> {
|
|
|
34
33
|
renderCanvas?: string | HTMLCanvasElement;
|
|
35
34
|
dataSet?: DataSet;
|
|
36
35
|
autoFit?: boolean;
|
|
37
|
-
performanceHook?: IPerformanceHook;
|
|
38
36
|
animation?: boolean;
|
|
39
|
-
options3d?: srIOption3DType;
|
|
40
37
|
layout?: LayoutCallBack;
|
|
41
38
|
poptip?: boolean;
|
|
42
39
|
onError?: (...args: any[]) => void;
|
|
@@ -109,10 +106,11 @@ export type BuildInTransformOptions = {
|
|
|
109
106
|
export interface IFieldsMeta {
|
|
110
107
|
alias?: string;
|
|
111
108
|
domain?: StringOrNumber[];
|
|
112
|
-
lockStatisticsByDomain?: boolean;
|
|
109
|
+
lockStatisticsByDomain?: boolean | 'onlyFull';
|
|
113
110
|
type?: 'ordinal' | 'linear';
|
|
114
111
|
sortIndex?: number;
|
|
115
112
|
sortReverse?: boolean;
|
|
113
|
+
sort?: 'desc' | 'asc';
|
|
116
114
|
}
|
|
117
115
|
export interface SheetParseOptions extends CommonParseOptions {
|
|
118
116
|
type: 'csv' | 'dsv' | 'tsv';
|
|
@@ -199,8 +197,12 @@ export type IMarkStateFilter = {
|
|
|
199
197
|
datums: Datum[];
|
|
200
198
|
datumKeys: string[];
|
|
201
199
|
} | {
|
|
202
|
-
items:
|
|
203
|
-
} | ((datum: Datum, options:
|
|
200
|
+
items: IGraphic[];
|
|
201
|
+
} | ((datum: Datum, options: {
|
|
202
|
+
mark?: IMark;
|
|
203
|
+
type?: string;
|
|
204
|
+
renderNode?: IGraphic;
|
|
205
|
+
}) => boolean);
|
|
204
206
|
export interface IMarkStateSpec<T> {
|
|
205
207
|
filter?: IMarkStateFilter;
|
|
206
208
|
level?: number | undefined;
|
|
@@ -224,35 +226,35 @@ export interface IPerformanceHook {
|
|
|
224
226
|
afterCreateVChart?: (vchart?: IVChart) => void;
|
|
225
227
|
beforeInitializeChart?: (vchart?: IVChart) => void;
|
|
226
228
|
afterInitializeChart?: (vchart?: IVChart) => void;
|
|
227
|
-
beforeCompileToVGrammar?: () => void;
|
|
228
|
-
afterCompileToVGrammar?: () => void;
|
|
229
|
-
beforeRegionCompile?: () => void;
|
|
230
|
-
afterRegionCompile?: () => void;
|
|
231
|
-
beforeSeriesCompile?: () => void;
|
|
232
|
-
afterSeriesCompile?: () => void;
|
|
233
|
-
beforeComponentCompile?: () => void;
|
|
234
|
-
afterComponentCompile?: () => void;
|
|
235
|
-
beforeResizeWithUpdate?: () => void;
|
|
236
|
-
afterResizeWithUpdate?: () => void;
|
|
237
|
-
beforeLayoutWithSceneGraph?: () => void;
|
|
238
|
-
afterLayoutWithSceneGraph?: () => void;
|
|
239
|
-
beforeParseView?: () => void;
|
|
240
|
-
afterParseView?: () => void;
|
|
241
|
-
beforeCreateRuntime?: () => void;
|
|
242
|
-
afterCreateRuntime?: () => void;
|
|
243
|
-
beforeSrViewEvaluateAsync?: () => void;
|
|
244
|
-
afterSrViewEvaluateAsync?: () => void;
|
|
245
|
-
beforeSrViewRunAsync?: () => void;
|
|
246
|
-
afterSrViewRunAsync?: () => void;
|
|
247
|
-
beforeTransform?: (name: string) => void;
|
|
248
|
-
afterTransform?: (name: string) => void;
|
|
249
|
-
beforeCreateVRenderStage?: () => void;
|
|
250
|
-
afterCreateVRenderStage?: () => void;
|
|
251
|
-
beforeCreateVRenderMark?: () => void;
|
|
252
|
-
afterCreateVRenderMark?: () => void;
|
|
229
|
+
beforeCompileToVGrammar?: (vchart?: IVChart) => void;
|
|
230
|
+
afterCompileToVGrammar?: (vchart?: IVChart) => void;
|
|
231
|
+
beforeRegionCompile?: (vchart?: IVChart) => void;
|
|
232
|
+
afterRegionCompile?: (vchart?: IVChart) => void;
|
|
233
|
+
beforeSeriesCompile?: (vchart?: IVChart) => void;
|
|
234
|
+
afterSeriesCompile?: (vchart?: IVChart) => void;
|
|
235
|
+
beforeComponentCompile?: (vchart?: IVChart) => void;
|
|
236
|
+
afterComponentCompile?: (vchart?: IVChart) => void;
|
|
237
|
+
beforeResizeWithUpdate?: (vchart?: IVChart) => void;
|
|
238
|
+
afterResizeWithUpdate?: (vchart?: IVChart) => void;
|
|
239
|
+
beforeLayoutWithSceneGraph?: (vchart?: IVChart) => void;
|
|
240
|
+
afterLayoutWithSceneGraph?: (vchart?: IVChart) => void;
|
|
241
|
+
beforeParseView?: (vchart?: IVChart) => void;
|
|
242
|
+
afterParseView?: (vchart?: IVChart) => void;
|
|
243
|
+
beforeCreateRuntime?: (vchart?: IVChart) => void;
|
|
244
|
+
afterCreateRuntime?: (vchart?: IVChart) => void;
|
|
245
|
+
beforeSrViewEvaluateAsync?: (vchart?: IVChart) => void;
|
|
246
|
+
afterSrViewEvaluateAsync?: (vchart?: IVChart) => void;
|
|
247
|
+
beforeSrViewRunAsync?: (vchart?: IVChart) => void;
|
|
248
|
+
afterSrViewRunAsync?: (vchart?: IVChart) => void;
|
|
249
|
+
beforeTransform?: (name: string, vchart?: IVChart) => void;
|
|
250
|
+
afterTransform?: (name: string, vchart?: IVChart) => void;
|
|
251
|
+
beforeCreateVRenderStage?: (vchart?: IVChart) => void;
|
|
252
|
+
afterCreateVRenderStage?: (vchart?: IVChart) => void;
|
|
253
|
+
beforeCreateVRenderMark?: (vchart?: IVChart) => void;
|
|
254
|
+
afterCreateVRenderMark?: (vchart?: IVChart) => void;
|
|
253
255
|
beforeDoRender?: (vchart?: IVChart) => void;
|
|
254
|
-
beforeVRenderDraw?: () => void;
|
|
255
|
-
afterVRenderDraw?: () => void;
|
|
256
|
+
beforeVRenderDraw?: (vchart?: IVChart) => void;
|
|
257
|
+
afterVRenderDraw?: (vchart?: IVChart) => void;
|
|
256
258
|
}
|
|
257
259
|
export type IBuildinMarkSpec = {
|
|
258
260
|
group: IGroupMarkSpec;
|
|
@@ -261,14 +263,11 @@ export type IBuildinMarkSpec = {
|
|
|
261
263
|
line: ILineMarkSpec;
|
|
262
264
|
text: ITextMarkSpec;
|
|
263
265
|
rect: IRectMarkSpec;
|
|
264
|
-
rect3d: IRect3dMarkSpec;
|
|
265
266
|
image: IImageMarkSpec;
|
|
266
267
|
path: IPathMarkSpec;
|
|
267
268
|
area: IAreaMarkSpec;
|
|
268
269
|
arc: IArcMarkSpec;
|
|
269
|
-
arc3d: IArc3dMarkSpec;
|
|
270
270
|
polygon: IPolygonMarkSpec;
|
|
271
|
-
pyramid3d: IPyramid3dMarkSpec;
|
|
272
271
|
boxPlot: IBoxPlotMarkSpec;
|
|
273
272
|
linkPath: ILinkPathMarkSpec;
|
|
274
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;
|
|
@@ -5,7 +5,7 @@ import type { InterpolateType } from './interpolate';
|
|
|
5
5
|
import type { ScaleType } from './scale';
|
|
6
6
|
import type { ShapeType } from './shape';
|
|
7
7
|
import type { IPoint } from './coordinate';
|
|
8
|
-
import type {
|
|
8
|
+
import type { IModelMarkAttributeContext } from '../compile/mark/interface';
|
|
9
9
|
import type { Datum } from './common';
|
|
10
10
|
import type { IPadding } from '@visactor/vutils';
|
|
11
11
|
import type { IColorKey } from '../theme/color-scheme/interface';
|
|
@@ -18,6 +18,7 @@ export interface IVisualSpecBase<D, T> {
|
|
|
18
18
|
specified?: {
|
|
19
19
|
[key: string]: unknown;
|
|
20
20
|
};
|
|
21
|
+
clamp?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface IVisualSpecStyle<D, T> extends IVisualSpecBase<D, T> {
|
|
23
24
|
field?: string;
|
|
@@ -36,7 +37,7 @@ export interface IVisualScale {
|
|
|
36
37
|
field?: string;
|
|
37
38
|
changeDomain?: 'none' | 'replace' | 'expand';
|
|
38
39
|
}
|
|
39
|
-
export type FunctionType<T> = (datum: Datum, context: IModelMarkAttributeContext,
|
|
40
|
+
export type FunctionType<T> = (datum: Datum, context: IModelMarkAttributeContext, source?: DataView) => T;
|
|
40
41
|
export type ValueType<T> = T;
|
|
41
42
|
export type VisualType<T> = ValueType<T> | FunctionType<T> | IVisual<unknown, T>;
|
|
42
43
|
export type TextureType = 'circle' | 'dimond' | 'rect' | 'vertical-line' | 'horizontal-line' | 'bias-lr' | 'bias-rl' | 'grid';
|
|
@@ -56,7 +57,7 @@ export interface ICommonSpec {
|
|
|
56
57
|
x?: number;
|
|
57
58
|
y?: number;
|
|
58
59
|
z?: number;
|
|
59
|
-
stroke?: string | IGradient | false | (number | boolean)[] | IColorKey;
|
|
60
|
+
stroke?: string | IGradient | false | (number | boolean)[] | IColorKey | null;
|
|
60
61
|
strokeOpacity?: number;
|
|
61
62
|
opacity?: number;
|
|
62
63
|
lineWidth?: number;
|
|
@@ -132,10 +133,16 @@ export interface ITextMarkSpec extends IFillMarkSpec {
|
|
|
132
133
|
ellipsis?: string;
|
|
133
134
|
suffixPosition?: 'start' | 'end' | 'middle';
|
|
134
135
|
underline?: boolean;
|
|
136
|
+
underlineDash?: number[];
|
|
137
|
+
underlineOffset?: number;
|
|
135
138
|
lineThrough?: boolean;
|
|
136
139
|
lineHeight?: number | string | ITokenKey;
|
|
137
140
|
poptip?: PopTipAttributes;
|
|
138
141
|
direction?: 'horizontal' | 'vertical';
|
|
142
|
+
wordBreak?: 'break-word' | 'break-all' | 'keep-all';
|
|
143
|
+
heightLimit?: number;
|
|
144
|
+
lineClamp?: number;
|
|
145
|
+
whiteSpace?: 'normal' | 'no-wrap';
|
|
139
146
|
}
|
|
140
147
|
export type IRichTextMarkSpec = IRichTextAttribute & IFillMarkSpec & {
|
|
141
148
|
type: 'rich';
|
|
@@ -150,9 +157,6 @@ export interface IRectMarkSpec extends IFillMarkSpec {
|
|
|
150
157
|
x1?: number;
|
|
151
158
|
y1?: number;
|
|
152
159
|
}
|
|
153
|
-
export interface IRect3dMarkSpec extends IRectMarkSpec {
|
|
154
|
-
length?: number;
|
|
155
|
-
}
|
|
156
160
|
export interface IBoxPlotMarkSpec extends ICommonSpec {
|
|
157
161
|
lineWidth?: number;
|
|
158
162
|
boxWidth?: number;
|
|
@@ -213,9 +217,6 @@ export interface IArcMarkSpec extends IFillMarkSpec {
|
|
|
213
217
|
cap?: boolean | [boolean, boolean];
|
|
214
218
|
autoCapConical?: boolean;
|
|
215
219
|
}
|
|
216
|
-
export interface IArc3dMarkSpec extends IArcMarkSpec {
|
|
217
|
-
height?: number;
|
|
218
|
-
}
|
|
219
220
|
export interface ICellMarkSpec extends ISymbolMarkSpec {
|
|
220
221
|
padding?: number | number[] | IPadding;
|
|
221
222
|
}
|
|
@@ -231,9 +232,6 @@ export interface IPolygonMarkSpec extends ICommonSpec, IFillMarkSpec {
|
|
|
231
232
|
scaleX?: number;
|
|
232
233
|
scaleY?: number;
|
|
233
234
|
}
|
|
234
|
-
export interface IPyramid3dMarkSpec extends IPolygonMarkSpec {
|
|
235
|
-
points?: IPoint[];
|
|
236
|
-
}
|
|
237
235
|
export type RepeatType = 'no-repeat' | 'repeat-x' | 'repeat-y' | 'repeat';
|
|
238
236
|
export type RepeatXYType = 'no-repeat' | 'repeat' | 'stretch';
|
|
239
237
|
export type ImageOriginType = 'top' | 'bottom';
|
|
@@ -289,7 +287,7 @@ export interface IImageMarkSpec extends IFillMarkSpec {
|
|
|
289
287
|
height?: number;
|
|
290
288
|
repeatX?: IRepeatType;
|
|
291
289
|
repeatY?: IRepeatType;
|
|
292
|
-
image
|
|
290
|
+
image?: string | HTMLImageElement | HTMLCanvasElement;
|
|
293
291
|
}
|
|
294
292
|
export type TextAlign = TextAlignType;
|
|
295
293
|
export type TextBaseLine = TextBaselineType;
|
package/types/util/array.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { array, last as peek, maxInArray as maxInArr, minInArray as minInArr } from '@visactor/vutils';
|
|
2
2
|
export declare function shallowCompare<T, U>(arrA: T | T[], arrB: U | U[]): boolean;
|
|
3
3
|
export declare function combineDomains(domains: number[][]): number[];
|
|
4
|
+
export declare function moveAfterInArray<T>(array: T[], target: T, ref: T): void;
|
|
4
5
|
export { array, peek, maxInArr, minInArr };
|