@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,11 +1,7 @@
|
|
|
1
1
|
import type { IChartExtendsSeriesSpec } from '../../typings/spec/common';
|
|
2
|
-
import type { IRangeColumnSeriesSpec
|
|
2
|
+
import type { IRangeColumnSeriesSpec } from '../../series/range-column/interface';
|
|
3
3
|
import type { ICartesianChartSpec } from '../cartesian/interface';
|
|
4
4
|
export interface IRangeColumnChartSpec extends ICartesianChartSpec, IChartExtendsSeriesSpec<IRangeColumnSeriesSpec> {
|
|
5
5
|
type: 'rangeColumn';
|
|
6
6
|
series?: IRangeColumnSeriesSpec[];
|
|
7
7
|
}
|
|
8
|
-
export interface IRangeColumn3dChartSpec extends ICartesianChartSpec, IChartExtendsSeriesSpec<IRangeColumn3dSeriesSpec> {
|
|
9
|
-
type: 'rangeColumn3d';
|
|
10
|
-
series?: IRangeColumn3dSeriesSpec[];
|
|
11
|
-
}
|
|
@@ -8,5 +8,6 @@ export declare class RangeColumnChart<T extends IRangeColumnChartSpec = IRangeCo
|
|
|
8
8
|
readonly transformerConstructor: typeof RangeColumnChartSpecTransformer;
|
|
9
9
|
readonly type: string;
|
|
10
10
|
readonly seriesType: string;
|
|
11
|
+
protected _setModelOption(): void;
|
|
11
12
|
}
|
|
12
13
|
export declare const registerRangeColumnChart: () => void;
|
|
@@ -8,5 +8,6 @@ export declare class RoseChart<T extends IRoseChartSpec = IRoseChartSpec> extend
|
|
|
8
8
|
readonly transformerConstructor: typeof RoseChartSpecTransformer;
|
|
9
9
|
readonly type: string;
|
|
10
10
|
readonly seriesType: string;
|
|
11
|
+
protected _setModelOption(): void;
|
|
11
12
|
}
|
|
12
13
|
export declare const registerRoseChart: () => void;
|
|
@@ -8,5 +8,6 @@ export declare class ScatterChart<T extends IScatterChartSpec = IScatterChartSpe
|
|
|
8
8
|
readonly transformerConstructor: typeof ScatterChartSpecTransformer;
|
|
9
9
|
readonly type: string;
|
|
10
10
|
readonly seriesType: string;
|
|
11
|
+
protected _setModelOption(): void;
|
|
11
12
|
}
|
|
12
13
|
export declare const registerScatterChart: () => void;
|
|
@@ -9,5 +9,6 @@ export declare class WaterfallChart<T extends IWaterfallChartSpec = IWaterfallCh
|
|
|
9
9
|
readonly transformerConstructor: typeof WaterfallChartSpecTransformer;
|
|
10
10
|
readonly type: string;
|
|
11
11
|
readonly seriesType: string;
|
|
12
|
+
protected _setModelOption(): void;
|
|
12
13
|
}
|
|
13
14
|
export declare const registerWaterfallChart: () => void;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IWordCloudSeriesSpec } from '../../series/word-cloud/interface';
|
|
2
2
|
import type { IChartExtendsSeriesSpec, IChartSpec } from '../../typings/spec/common';
|
|
3
3
|
export interface IWordCloudChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IWordCloudSeriesSpec> {
|
|
4
4
|
type: 'wordCloud';
|
|
5
5
|
series?: IWordCloudSeriesSpec[];
|
|
6
6
|
}
|
|
7
|
-
export interface IWordCloud3dChartSpec extends IChartSpec, IChartExtendsSeriesSpec<IWordCloud3dSeriesSpec> {
|
|
8
|
-
type: 'wordCloud3d';
|
|
9
|
-
series?: IWordCloud3dSeriesSpec[];
|
|
10
|
-
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { IWordCloudChartSpec } from './interface';
|
|
1
|
+
import type { IWordCloudChartSpec } from './interface';
|
|
2
2
|
import { BaseWordCloudChart } from './base/base';
|
|
3
3
|
import { BaseWordCloudChartSpecTransformer } from './base/word-cloud-base-transformer';
|
|
4
|
-
export declare class WordCloudChart
|
|
4
|
+
export declare class WordCloudChart extends BaseWordCloudChart<IWordCloudChartSpec> {
|
|
5
5
|
static readonly type: string;
|
|
6
6
|
static readonly seriesType: string;
|
|
7
|
-
static readonly transformerConstructor:
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
readonly transformerConstructor: {
|
|
11
|
-
new (option: import("../interface").IChartSpecTransformerOption): BaseWordCloudChartSpecTransformer<IWordCloudChartSpec>;
|
|
12
|
-
};
|
|
7
|
+
static readonly transformerConstructor: typeof BaseWordCloudChartSpecTransformer;
|
|
8
|
+
readonly transformerConstructor: typeof BaseWordCloudChartSpecTransformer;
|
|
13
9
|
readonly type: string;
|
|
14
10
|
readonly seriesType: string;
|
|
15
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IColor, IStageParams, IStage, ILayer, IOption3D } from '@visactor/vrender-core';
|
|
1
|
+
import type { IColor, IStageParams, IStage, ILayer, IOption3D, ITicker } from '@visactor/vrender-core';
|
|
2
2
|
import type { IPerformanceHook, RenderMode } from '../../typings/spec/common';
|
|
3
3
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
4
4
|
import type { StringOrNumber } from '../../typings';
|
|
@@ -51,6 +51,7 @@ export interface IRenderOption {
|
|
|
51
51
|
disableDirtyBounds?: boolean;
|
|
52
52
|
enableView3dTransform?: boolean;
|
|
53
53
|
pluginList?: string[];
|
|
54
|
+
ticker?: ITicker;
|
|
54
55
|
optimize?: IOptimizeType;
|
|
55
56
|
enableHtmlAttribute?: boolean;
|
|
56
57
|
supportsTouchEvents?: boolean;
|
|
@@ -83,5 +83,6 @@ export declare abstract class CompilableMark extends GrammarItem implements ICom
|
|
|
83
83
|
pauseAnimationByState(state?: string): import("@visactor/vgrammar-core").IAnimate;
|
|
84
84
|
resumeAnimationByState(state?: string): import("@visactor/vgrammar-core").IAnimate;
|
|
85
85
|
getProductElements(): IElement[];
|
|
86
|
+
clear(): void;
|
|
86
87
|
release(): void;
|
|
87
88
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IMark, IMarkStateStyle, MarkType } from '../../mark/interface';
|
|
1
|
+
import type { IMark, IMarkGraphic, IMarkStateStyle, MarkType } from '../../mark/interface';
|
|
2
2
|
import type { IModel } from '../../model/interface';
|
|
3
|
-
import type { GrammarItemCompileOption, GrammarItemInitOption, IGrammarItem } from '../interface';
|
|
3
|
+
import type { GrammarItemCompileOption, GrammarItemInitOption, IGrammarItem, StateValueMap } from '../interface';
|
|
4
4
|
import type { DataView } from '@visactor/vdataset';
|
|
5
5
|
import type { Maybe, Datum, StringOrNumber } from '../../typings';
|
|
6
6
|
import type { IRegion } from '../../region/interface';
|
|
@@ -24,6 +24,7 @@ export interface IMarkConfig {
|
|
|
24
24
|
morphElementKey?: string;
|
|
25
25
|
overflow?: 'scroll' | 'hidden' | 'scroll-x' | 'scroll-y';
|
|
26
26
|
skipTheme?: boolean;
|
|
27
|
+
useSequentialAnimation?: boolean;
|
|
27
28
|
}
|
|
28
29
|
export interface IMarkStateManager {
|
|
29
30
|
getStateInfoList: () => IStateInfo[];
|
|
@@ -31,8 +32,11 @@ export interface IMarkStateManager {
|
|
|
31
32
|
addStateInfo: (stateInfo: IStateInfo) => void;
|
|
32
33
|
changeStateInfo: (stateInfo: Partial<IStateInfo>) => void;
|
|
33
34
|
clearStateInfo: (stateValues: StateValue[]) => void;
|
|
34
|
-
checkOneState: (renderNode:
|
|
35
|
-
checkState: (renderNode:
|
|
35
|
+
checkOneState: (renderNode: IMarkGraphic, datum: Datum[], state: IStateInfo) => 'in' | 'out' | 'skip';
|
|
36
|
+
checkState: (renderNode: IMarkGraphic, datum: Datum[]) => StateValue[];
|
|
37
|
+
getStateMap: () => StateValueMap;
|
|
38
|
+
updateState: (newState: Partial<StateValueMap>, noRender?: boolean) => void;
|
|
39
|
+
release: () => void;
|
|
36
40
|
}
|
|
37
41
|
export interface IMarkData extends ICompilableData {
|
|
38
42
|
setCompiledProductId: (name: string) => any;
|
|
@@ -79,6 +83,7 @@ export interface ICompilableMark extends IGrammarItem {
|
|
|
79
83
|
setMarkConfig: (config: IMarkConfig) => void;
|
|
80
84
|
getContext: () => any;
|
|
81
85
|
layout: (layoutCallback: () => void) => void;
|
|
86
|
+
setDataLabelType?: () => string;
|
|
82
87
|
}
|
|
83
88
|
export interface IMarkCompileOption extends GrammarItemCompileOption {
|
|
84
89
|
group?: IGroup;
|
|
@@ -21,4 +21,5 @@ export declare class MarkStateManager extends StateManager implements IMarkState
|
|
|
21
21
|
checkItemsState(state: IStateInfo, item: any): boolean | undefined;
|
|
22
22
|
checkFieldsState(state: IStateInfo, datum: Datum[], item: any): boolean;
|
|
23
23
|
checkLinearFieldState(domain: StringOrNumber[], key: string, datum: any, item: any): boolean;
|
|
24
|
+
release(): void;
|
|
24
25
|
}
|
|
@@ -11,6 +11,7 @@ import type { ITransformOptions } from '@visactor/vdataset';
|
|
|
11
11
|
import { DataView } from '@visactor/vdataset';
|
|
12
12
|
import type { IComponentMark } from '../../mark/interface/mark';
|
|
13
13
|
import type { ICompilableMark } from '../../compile/mark';
|
|
14
|
+
import type { ICompilableData } from './../../compile/data/interface';
|
|
14
15
|
export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<string, any> = any> extends BaseComponent<T> implements IAxis {
|
|
15
16
|
static specKey: string;
|
|
16
17
|
specKey: string;
|
|
@@ -54,6 +55,7 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
54
55
|
getVRenderComponents(): import("@visactor/vrender-core").IGroup[];
|
|
55
56
|
created(): void;
|
|
56
57
|
protected _shouldComputeTickData(): boolean;
|
|
58
|
+
protected _onTickDataChange: (tickData?: ICompilableData) => void;
|
|
57
59
|
protected _initData(): void;
|
|
58
60
|
protected collectData(depth: number, rawData?: boolean): {
|
|
59
61
|
min: number;
|
|
@@ -104,5 +106,8 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
|
|
|
104
106
|
addTransformToTickData(options: ITransformOptions, execute?: boolean): void;
|
|
105
107
|
dataToPosition(values: any[]): number;
|
|
106
108
|
getDatum(childGraphic?: IGraphic): any;
|
|
109
|
+
scaleRangeFactor(_?: [number, number], slience?: boolean, clear?: boolean): any;
|
|
110
|
+
scaleRangeFactorEnd(_?: number, slience?: boolean, clear?: boolean): any;
|
|
111
|
+
scaleRangeFactorStart(_?: number, slience?: boolean, clear?: boolean): any;
|
|
107
112
|
}
|
|
108
113
|
export declare const registerAxis: () => void;
|
|
@@ -3,13 +3,14 @@ import type { IEffect, IModelInitOption, IModelSpecInfo } from '../../../model/i
|
|
|
3
3
|
import type { ICartesianSeries } from '../../../series/interface';
|
|
4
4
|
import type { IRegion } from '../../../region/interface';
|
|
5
5
|
import type { ICartesianAxisCommonSpec, IAxisHelper } from './interface';
|
|
6
|
-
import type { IOrientType, IRect } from '../../../typings/space';
|
|
6
|
+
import type { IOrientType, IPadding, IRect } from '../../../typings/space';
|
|
7
7
|
import type { IBaseScale } from '@visactor/vscale';
|
|
8
8
|
import type { StringOrNumber } from '../../../typings/common';
|
|
9
9
|
import type { IPoint } from '../../../typings/coordinate';
|
|
10
10
|
import type { ILayoutRect, ILayoutType } from '../../../typings/layout';
|
|
11
11
|
import type { IComponentOption } from '../../interface';
|
|
12
12
|
import { ComponentTypeEnum } from '../../interface/type';
|
|
13
|
+
import type { LineAxisAttributes } from '@visactor/vrender-components';
|
|
13
14
|
import type { IAxis, ITick } from '../interface';
|
|
14
15
|
import type { ICartesianTickDataOpt } from '@visactor/vrender-components';
|
|
15
16
|
import type { DataSet } from '@visactor/vdataset';
|
|
@@ -28,11 +29,6 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
28
29
|
layoutZIndex: number;
|
|
29
30
|
layoutLevel: number;
|
|
30
31
|
protected _dataSet: DataSet;
|
|
31
|
-
layout3dBox?: {
|
|
32
|
-
width: number;
|
|
33
|
-
height: number;
|
|
34
|
-
length: number;
|
|
35
|
-
};
|
|
36
32
|
protected _orient: IOrientType;
|
|
37
33
|
getOrient(): IOrientType;
|
|
38
34
|
protected getDefaultInteractive(): boolean;
|
|
@@ -42,7 +38,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
42
38
|
protected _scales: IBaseScale[];
|
|
43
39
|
getScales(): IBaseScale[];
|
|
44
40
|
protected _tick: ITick | undefined;
|
|
45
|
-
|
|
41
|
+
protected _axisStyle: Partial<LineAxisAttributes>;
|
|
46
42
|
private _latestBounds;
|
|
47
43
|
private _verticalLimitSize;
|
|
48
44
|
private _unitText;
|
|
@@ -61,11 +57,6 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
61
57
|
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
62
58
|
static createComponent(specInfo: IModelSpecInfo, options: IComponentOption): IAxis;
|
|
63
59
|
initLayout(): void;
|
|
64
|
-
setLayout3dBox(box3d: {
|
|
65
|
-
width: number;
|
|
66
|
-
height: number;
|
|
67
|
-
length: number;
|
|
68
|
-
}): void;
|
|
69
60
|
effect: IEffect;
|
|
70
61
|
protected abstract computeDomain(data: {
|
|
71
62
|
min: number;
|
|
@@ -94,9 +85,10 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
94
85
|
y: number;
|
|
95
86
|
};
|
|
96
87
|
_transformLayoutRect: (result: ILayoutRect) => ILayoutRect;
|
|
88
|
+
_transformLayoutPadding: (padding: IPadding) => IPadding;
|
|
97
89
|
getBoundsInRect(rect: ILayoutRect): IBoundsLike;
|
|
98
90
|
positionToData(pos: number, isViewPos?: boolean): any;
|
|
99
|
-
|
|
91
|
+
protected _getTitleLimit(isX: boolean): number;
|
|
100
92
|
protected _getUpdateAttribute(ignoreGrid: boolean): any;
|
|
101
93
|
protected getLabelItems(length: number): any[];
|
|
102
94
|
protected initEvent(): void;
|
|
@@ -104,6 +96,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
104
96
|
protected _getNormalizedValue(values: any[], length: number): number;
|
|
105
97
|
private _fixAxisOnZero;
|
|
106
98
|
protected _layoutCacheProcessing(rect: ILayoutRect): ILayoutRect;
|
|
99
|
+
reInit(spec?: T): void;
|
|
107
100
|
_clearLayoutCache(): void;
|
|
108
101
|
onDataUpdate(): void;
|
|
109
102
|
private _appendAxisUnit;
|
|
@@ -10,6 +10,12 @@ export declare class CartesianBandAxis<T extends ICartesianBandAxisSpec = ICarte
|
|
|
10
10
|
static type: ComponentTypeEnum;
|
|
11
11
|
type: ComponentTypeEnum;
|
|
12
12
|
static specKey: string;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
axis: import("../interface").IAxisCommonTheme;
|
|
15
|
+
axisBand: import("../interface").IBandAxisTheme;
|
|
16
|
+
axisX: import("./interface").ICartesianAxisCommonTheme;
|
|
17
|
+
axisY: import("./interface").ICartesianAxisCommonTheme;
|
|
18
|
+
};
|
|
13
19
|
protected _scale: BandScale;
|
|
14
20
|
protected _scales: BandScale[];
|
|
15
21
|
protected computeDomain(data: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LogScale } from '@visactor/vscale';
|
|
2
2
|
import { LinearScale } from '@visactor/vscale';
|
|
3
3
|
import { CartesianAxis } from './axis';
|
|
4
|
-
import type { IAxisHelper, ICartesianLinearAxisSpec } from './interface';
|
|
4
|
+
import type { IAxisHelper, ICartesianAxisCommonTheme, ICartesianLinearAxisSpec } from './interface';
|
|
5
5
|
import { ComponentTypeEnum } from '../../interface/type';
|
|
6
6
|
import { LinearAxisMixin } from '../mixin/linear-axis-mixin';
|
|
7
7
|
import type { ICartesianTickDataOpt } from '@visactor/vrender-components';
|
|
@@ -11,6 +11,7 @@ export declare class CartesianLinearAxis<T extends ICartesianLinearAxisSpec = IC
|
|
|
11
11
|
static type: ComponentTypeEnum;
|
|
12
12
|
type: ComponentTypeEnum;
|
|
13
13
|
static specKey: string;
|
|
14
|
+
static readonly builtInTheme: Record<string, ICartesianAxisCommonTheme>;
|
|
14
15
|
protected _zero: boolean;
|
|
15
16
|
protected _nice: boolean;
|
|
16
17
|
protected _extend: {
|
|
@@ -9,6 +9,12 @@ export declare class CartesianLogAxis<T extends ICartesianLogAxisSpec = ICartesi
|
|
|
9
9
|
static type: ComponentTypeEnum;
|
|
10
10
|
type: ComponentTypeEnum;
|
|
11
11
|
static specKey: string;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
axis: import("../interface").IAxisCommonTheme;
|
|
14
|
+
axisLinear: import("../interface").IAxisCommonTheme;
|
|
15
|
+
axisX: import("./interface").ICartesianAxisCommonTheme;
|
|
16
|
+
axisY: import("./interface").ICartesianAxisCommonTheme;
|
|
17
|
+
};
|
|
12
18
|
protected _zero: boolean;
|
|
13
19
|
protected _scale: LogScale;
|
|
14
20
|
protected _scales: LogScale[];
|
|
@@ -9,6 +9,12 @@ export declare class CartesianSymlogAxis<T extends ICartesianSymlogAxisSpec = IC
|
|
|
9
9
|
static type: ComponentTypeEnum;
|
|
10
10
|
type: ComponentTypeEnum;
|
|
11
11
|
static specKey: string;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
axis: import("..").IAxisCommonTheme;
|
|
14
|
+
axisLinear: import("..").IAxisCommonTheme;
|
|
15
|
+
axisX: import("./interface").ICartesianAxisCommonTheme;
|
|
16
|
+
axisY: import("./interface").ICartesianAxisCommonTheme;
|
|
17
|
+
};
|
|
12
18
|
protected _zero: boolean;
|
|
13
19
|
protected _scale: SymlogScale;
|
|
14
20
|
protected _scales: SymlogScale[];
|
|
@@ -10,6 +10,11 @@ export declare class CartesianTimeAxis<T extends ICartesianTimeAxisSpec = ICarte
|
|
|
10
10
|
static type: ComponentTypeEnum;
|
|
11
11
|
type: ComponentTypeEnum;
|
|
12
12
|
static specKey: string;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
axis: import("..").IAxisCommonTheme;
|
|
15
|
+
axisX: import("./interface").ICartesianAxisCommonTheme;
|
|
16
|
+
axisY: import("./interface").ICartesianAxisCommonTheme;
|
|
17
|
+
};
|
|
13
18
|
protected _layerTickData: CompilableData;
|
|
14
19
|
protected _zero: boolean;
|
|
15
20
|
effect: IEffect;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IOrientType } from '../../../../typings';
|
|
2
2
|
import { Direction } from '../../../../typings/space';
|
|
3
3
|
import type { ICartesianAxisCommonSpec } from '../interface';
|
|
4
|
+
import type { AxisType } from '../../interface/common';
|
|
4
5
|
export declare function isXAxis(orient: IOrientType): boolean;
|
|
5
6
|
export declare function isYAxis(orient: IOrientType): boolean;
|
|
6
7
|
export declare function isZAxis(orient: IOrientType): boolean;
|
|
@@ -10,6 +11,7 @@ export declare function getDirectionByOrient(orient: IOrientType): Direction;
|
|
|
10
11
|
export declare function isOrientInSameDirection(orient1: IOrientType, orient2: IOrientType): boolean;
|
|
11
12
|
export declare function transformInverse(spec: ICartesianAxisCommonSpec, isHorizontal: boolean): boolean;
|
|
12
13
|
export declare function getCartesianAxisInfo(spec: ICartesianAxisCommonSpec, isHorizontal?: boolean): {
|
|
13
|
-
axisType:
|
|
14
|
+
axisType: AxisType;
|
|
14
15
|
componentName: string;
|
|
15
16
|
};
|
|
17
|
+
export declare const getCartesianAxisTheme: (orient: IOrientType, type: AxisType, getTheme: (...keys: string[]) => any) => any;
|
|
@@ -4,6 +4,7 @@ import type { Datum, IFormatMethod, IPadding, IRectMarkSpec, IRichTextFormatMeth
|
|
|
4
4
|
import type { IComponentSpec } from '../../base/interface';
|
|
5
5
|
import type { AxisType, IAxisItem, IBandAxisLayer, ITickCalculationCfg, StyleCallback } from './common';
|
|
6
6
|
import type { IBaseScale } from '@visactor/vscale';
|
|
7
|
+
import type { IVChart } from '../../../core';
|
|
7
8
|
export interface ICommonAxisSpec extends Omit<IComponentSpec, 'orient' | 'center'>, IAnimationSpec<string, string> {
|
|
8
9
|
type?: AxisType;
|
|
9
10
|
visible?: boolean;
|
|
@@ -63,7 +64,9 @@ export interface ITick extends IAxisItem<IRuleMarkSpec>, ITickCalculationCfg {
|
|
|
63
64
|
alignWithLabel?: boolean;
|
|
64
65
|
style?: IRuleMarkSpec | StyleCallback<IRuleMarkSpec | undefined>;
|
|
65
66
|
state?: AxisItemStateStyle<IRuleMarkSpec>;
|
|
66
|
-
dataFilter?: (data: AxisItem[]
|
|
67
|
+
dataFilter?: (data: AxisItem[], context: {
|
|
68
|
+
vchart: IVChart;
|
|
69
|
+
}) => AxisItem[];
|
|
67
70
|
}
|
|
68
71
|
export interface ISubTick extends IAxisItem<IRuleMarkSpec> {
|
|
69
72
|
tickCount?: number;
|
|
@@ -80,7 +83,9 @@ export interface ILabel extends IAxisItem<ITextMarkSpec> {
|
|
|
80
83
|
minGap?: number;
|
|
81
84
|
style?: ITextMarkSpec | StyleCallback<ITextMarkSpec | undefined>;
|
|
82
85
|
state?: AxisItemStateStyle<ITextMarkSpec>;
|
|
83
|
-
dataFilter?: (data: AxisItem[], layer: number
|
|
86
|
+
dataFilter?: (data: AxisItem[], layer: number, context: {
|
|
87
|
+
vchart: IVChart;
|
|
88
|
+
}) => AxisItem[];
|
|
84
89
|
}
|
|
85
90
|
export interface IDomainLine extends IAxisItem<IRuleMarkSpec> {
|
|
86
91
|
state?: AxisItemStateStyle<IRuleMarkSpec>;
|
|
@@ -32,6 +32,7 @@ export interface BandAxisMixin {
|
|
|
32
32
|
_tickTransformOption: () => any;
|
|
33
33
|
_forceLayout: () => void;
|
|
34
34
|
_getNormalizedValue: (values: any[], length: number) => number;
|
|
35
|
+
_onTickDataChange: (compilableData: CompilableData) => void;
|
|
35
36
|
}
|
|
36
37
|
export declare class BandAxisMixin {
|
|
37
38
|
private _tickDataMap;
|
|
@@ -10,6 +10,12 @@ export declare class PolarBandAxis<T extends IPolarBandAxisSpec = IPolarBandAxis
|
|
|
10
10
|
static type: ComponentTypeEnum;
|
|
11
11
|
type: ComponentTypeEnum;
|
|
12
12
|
static specKey: string;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
axis: import("../interface").IAxisCommonTheme;
|
|
15
|
+
axisBand: import("../interface").IBandAxisTheme;
|
|
16
|
+
axisAngle: import("./interface").IPolarAxisCommonTheme;
|
|
17
|
+
axisRadius: import("./interface").IPolarAxisCommonTheme;
|
|
18
|
+
};
|
|
13
19
|
protected _scale: BandScale;
|
|
14
20
|
protected _scales: BandScale[];
|
|
15
21
|
protected computeDomain(data: {
|
|
@@ -9,6 +9,12 @@ export declare class PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLine
|
|
|
9
9
|
static type: ComponentTypeEnum;
|
|
10
10
|
type: ComponentTypeEnum;
|
|
11
11
|
static specKey: string;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
axis: import("../interface").IAxisCommonTheme;
|
|
14
|
+
axisLinear: import("../interface").IAxisCommonTheme;
|
|
15
|
+
axisAngle: import("./interface").IPolarAxisCommonTheme;
|
|
16
|
+
axisRadius: import("./interface").IPolarAxisCommonTheme;
|
|
17
|
+
};
|
|
12
18
|
protected _zero: boolean;
|
|
13
19
|
protected _nice: boolean;
|
|
14
20
|
protected _extend: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { IPolarAxisCommonSpec } from '../interface';
|
|
2
2
|
import type { ILayoutRect } from '../../../../typings/layout';
|
|
3
3
|
import type { IPoint } from '../../../../typings/coordinate';
|
|
4
|
+
import type { IPolarOrientType } from '../../../../typings/space';
|
|
5
|
+
import type { AxisType } from '../../interface/common';
|
|
4
6
|
export declare const getPolarAxisInfo: (spec: IPolarAxisCommonSpec, chartSpec: any) => {
|
|
5
|
-
axisType:
|
|
7
|
+
axisType: AxisType;
|
|
6
8
|
componentName: string;
|
|
7
9
|
startAngle: any;
|
|
8
10
|
endAngle: any;
|
|
@@ -14,3 +16,4 @@ export declare const computeLayoutRadius: (getLayoutRadius: () => number | "auto
|
|
|
14
16
|
startAngle: number;
|
|
15
17
|
endAngle: number;
|
|
16
18
|
}) => number;
|
|
19
|
+
export declare const getPolarAxisTheme: (orient: IPolarOrientType, type: AxisType, getTheme: (...keys: string[]) => any) => any;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { IOrientType, IPolarOrientType } from '../../typings';
|
|
2
1
|
import type { AxisType, ICommonAxisSpec, ILinearAxisSpec } from './interface';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type { IPolarAxisHelper } from './polar';
|
|
2
|
+
import type { IAxisHelper } from './cartesian/interface/common';
|
|
3
|
+
import type { IPolarAxisHelper } from './polar/interface/common';
|
|
6
4
|
export declare const DEFAULT_TITLE_STYLE: {
|
|
7
5
|
left: {
|
|
8
6
|
textAlign: string;
|
|
@@ -26,8 +24,6 @@ export declare function getLinearAxisSpecDomain(axisSpec: ILinearAxisSpec, defau
|
|
|
26
24
|
};
|
|
27
25
|
export declare function isValidCartesianAxis(spec: any): boolean;
|
|
28
26
|
export declare function isValidPolarAxis(spec: any): boolean;
|
|
29
|
-
export declare const getCartesianAxisTheme: (orient: IOrientType, type: AxisType, chartTheme: ITheme) => any;
|
|
30
|
-
export declare const getPolarAxisTheme: (orient: IPolarOrientType, type: AxisType, chartTheme: ITheme) => any;
|
|
31
27
|
export declare const isDiscreteAxis: (axisType: AxisType) => boolean;
|
|
32
28
|
export declare function getAxisItem(value: any, normalizedValue: number): {
|
|
33
29
|
id: any;
|
|
@@ -3,7 +3,6 @@ import type { IRegion } from '../../region/interface';
|
|
|
3
3
|
import type { IComponent, IComponentOption } from '../interface';
|
|
4
4
|
import type { IComponentPluginService, IComponentPlugin } from '../../plugin/components/interface';
|
|
5
5
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
6
|
-
import type { IAnimate } from '../../animation/interface';
|
|
7
6
|
import type { Datum, ILayoutRect } from '../../typings';
|
|
8
7
|
import type { IComponentSpec } from './interface';
|
|
9
8
|
import { LayoutModel } from '../../model/layout-model';
|
|
@@ -21,8 +20,6 @@ export declare class BaseComponent<T extends IComponentSpec = IComponentSpec> ex
|
|
|
21
20
|
getRegions(): IRegion[];
|
|
22
21
|
protected _container: IGroup;
|
|
23
22
|
created(): void;
|
|
24
|
-
animate?: IAnimate;
|
|
25
|
-
constructor(spec: T, options: IComponentOption);
|
|
26
23
|
initLayout(): void;
|
|
27
24
|
changeRegions(regions: IRegion[]): void;
|
|
28
25
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { ITheme } from '../../theme';
|
|
2
1
|
import { type IOrientType } from '../../typings';
|
|
3
2
|
import type { ComponentThemeWithDirection } from '../interface';
|
|
4
3
|
import { ComponentTypeEnum } from '../interface/type';
|
|
5
|
-
export declare function getComponentThemeFromGlobalTheme(type: ComponentTypeEnum,
|
|
4
|
+
export declare function getComponentThemeFromGlobalTheme(type: ComponentTypeEnum, getTheme: (...key: string[]) => any, componentSpec: any, chartSpec: any): any;
|
|
6
5
|
export declare const getComponentThemeWithDirection: <T>(componentSpec: {
|
|
7
6
|
orient?: IOrientType;
|
|
8
7
|
}, originalTheme: ComponentThemeWithDirection<T>) => T;
|
|
@@ -6,13 +6,16 @@ import type { IModelRenderOption, IModelSpecInfo } from '../../model/interface';
|
|
|
6
6
|
import type { IRegion } from '../../region/interface';
|
|
7
7
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
8
|
import type { ISeries } from '../../series/interface';
|
|
9
|
-
import type { IMarkGraphic } from '../../mark/interface';
|
|
9
|
+
import type { IMark, IMarkGraphic } from '../../mark/interface';
|
|
10
10
|
import type { BrushInteractiveRangeAttr, IBrush, IBrushSpec } from './interface';
|
|
11
11
|
export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseComponent<T> implements IBrush {
|
|
12
12
|
layoutType: 'none';
|
|
13
13
|
static type: ComponentTypeEnum;
|
|
14
14
|
type: ComponentTypeEnum;
|
|
15
15
|
name: string;
|
|
16
|
+
static readonly builtInTheme: {
|
|
17
|
+
brush: import("./interface").IBrushTheme;
|
|
18
|
+
};
|
|
16
19
|
static specKey: string;
|
|
17
20
|
specKey: string;
|
|
18
21
|
layoutZIndex: number;
|
|
@@ -37,16 +40,36 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
|
|
|
37
40
|
protected _linkedOutOfBrushElementsMap: {
|
|
38
41
|
[elementKey: string]: IMarkGraphic;
|
|
39
42
|
};
|
|
40
|
-
private _needInitOutState;
|
|
41
43
|
private _cacheInteractiveRangeAttrs;
|
|
42
44
|
private _needDisablePickable;
|
|
43
45
|
private _releatedAxes;
|
|
44
46
|
private _regionAxisMap;
|
|
45
47
|
private _axisDataZoomMap;
|
|
46
48
|
private _zoomRecord;
|
|
47
|
-
init(): void;
|
|
48
49
|
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
50
|
+
init(): void;
|
|
51
|
+
private _initNeedOperatedItem;
|
|
49
52
|
created(): void;
|
|
53
|
+
protected _bindRegions(): void;
|
|
54
|
+
protected _bindLinkedSeries(): void;
|
|
55
|
+
private _initRegionAxisMap;
|
|
56
|
+
private _initAxisDataZoomMap;
|
|
57
|
+
protected initEvent(): void;
|
|
58
|
+
onRender(ctx: IModelRenderOption): void;
|
|
59
|
+
changeRegions(regions: IRegion[]): void;
|
|
60
|
+
_compareSpec(spec: T, prevSpec: T): {
|
|
61
|
+
change: boolean;
|
|
62
|
+
reMake: boolean;
|
|
63
|
+
reRender: boolean;
|
|
64
|
+
reSize: boolean;
|
|
65
|
+
reCompile: boolean;
|
|
66
|
+
};
|
|
67
|
+
onLayoutEnd(): void;
|
|
68
|
+
protected _updateBrushComponent(region: IRegion, componentIndex: number): void;
|
|
69
|
+
protected _createBrushComponent(region: IRegion, componentIndex: number): void;
|
|
70
|
+
protected _getBrushInteractiveAttr(region: IRegion): BrushInteractiveRangeAttr;
|
|
71
|
+
private _transformBrushedMarkAttr;
|
|
72
|
+
private _handleBrushChange;
|
|
50
73
|
protected _extendDataInBrush(elementsMap: {
|
|
51
74
|
[brushName: string]: {
|
|
52
75
|
[elementKey: string]: IMarkGraphic;
|
|
@@ -56,36 +79,16 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
|
|
|
56
79
|
}[];
|
|
57
80
|
protected _extendDatumOutOfBrush(elementsMap: {
|
|
58
81
|
[elementKey: string]: IMarkGraphic;
|
|
59
|
-
}): import("
|
|
60
|
-
protected _getBrushInteractiveAttr(region: IRegion): BrushInteractiveRangeAttr;
|
|
61
|
-
protected _updateBrushComponent(region: IRegion, componentIndex: number): void;
|
|
62
|
-
protected _createBrushComponent(region: IRegion, componentIndex: number): void;
|
|
63
|
-
private _handleBrushChange;
|
|
82
|
+
}): import("../..").Datum[];
|
|
64
83
|
private _emitEvent;
|
|
65
|
-
private _transformBrushedMarkAttr;
|
|
66
84
|
private _reconfigItem;
|
|
67
85
|
private _reconfigLinkedItem;
|
|
68
86
|
private _isBrushContainItem;
|
|
87
|
+
protected _initItemMap(itemMap: Record<string, IMark[]>, elementMap: Record<string, IMarkGraphic>, stateName: string): void;
|
|
88
|
+
protected _initMarkBrushState(componentIndex: number, stateName: string): void;
|
|
69
89
|
private _stateClamp;
|
|
70
90
|
private _setAxisAndDataZoom;
|
|
71
|
-
protected _bindRegions(): void;
|
|
72
|
-
protected _bindLinkedSeries(): void;
|
|
73
|
-
private _initRegionAxisMap;
|
|
74
|
-
private _initAxisDataZoomMap;
|
|
75
|
-
private _initNeedOperatedItem;
|
|
76
|
-
protected _initMarkBrushState(componentIndex: number, stateName: string): void;
|
|
77
|
-
protected initEvent(): void;
|
|
78
|
-
onRender(ctx: IModelRenderOption): void;
|
|
79
|
-
changeRegions(regions: IRegion[]): void;
|
|
80
91
|
protected _getNeedClearVRenderComponents(): IGraphic[];
|
|
81
|
-
_compareSpec(spec: T, prevSpec: T): {
|
|
82
|
-
change: boolean;
|
|
83
|
-
reMake: boolean;
|
|
84
|
-
reRender: boolean;
|
|
85
|
-
reSize: boolean;
|
|
86
|
-
reCompile: boolean;
|
|
87
|
-
};
|
|
88
|
-
onLayoutEnd(): void;
|
|
89
92
|
clearGraphic(): void;
|
|
90
93
|
clear(): void;
|
|
91
94
|
}
|
|
@@ -27,6 +27,8 @@ export interface IBrushTheme {
|
|
|
27
27
|
delayType?: IDelayType;
|
|
28
28
|
delayTime?: number;
|
|
29
29
|
sizeThreshold?: number;
|
|
30
|
+
markTypeFilter?: string[];
|
|
31
|
+
onBrushEnd?: (e: any) => boolean;
|
|
30
32
|
}
|
|
31
33
|
export interface IBrushSpec extends IBrushTheme, IBrushDataBindSpec {
|
|
32
34
|
id?: string;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { IZoomTrigger } from './interface';
|
|
2
2
|
export declare class DeskTopTrigger implements IZoomTrigger {
|
|
3
|
-
pointerId: number;
|
|
4
3
|
parserScrollEvent(e: any): any;
|
|
5
4
|
parserZoomEvent(e: any): any;
|
|
6
5
|
clearZoom(): void;
|
|
7
6
|
clearScroll(): void;
|
|
8
7
|
clearDrag(): void;
|
|
9
|
-
parserDragEvent(): boolean;
|
|
10
8
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { IZoomTrigger } from './interface';
|
|
2
2
|
export declare class MobileTrigger implements IZoomTrigger {
|
|
3
3
|
private _lastScale;
|
|
4
|
-
pointerId: number;
|
|
5
4
|
clearZoom(): void;
|
|
6
|
-
parserDragEvent(event: any): boolean;
|
|
7
5
|
parserZoomEvent(event: any): any;
|
|
8
6
|
parserScrollEvent(event: any): any;
|
|
9
7
|
clearScroll(): void;
|
|
@@ -28,7 +28,7 @@ export declare abstract class BaseCrossHair<T extends ICartesianCrosshairSpec |
|
|
|
28
28
|
constructor(spec: T, options: IComponentOption);
|
|
29
29
|
protected abstract _layoutCrosshair(x: number, y: number, tooltipData?: TooltipData, activeType?: TooltipActiveType): void;
|
|
30
30
|
abstract setAxisValue(v: StringOrNumber, axis: IAxis): void;
|
|
31
|
-
abstract layoutByValue(
|
|
31
|
+
abstract layoutByValue(enableRemain?: boolean): void;
|
|
32
32
|
protected abstract _getDatumAtPoint(axis: IAxis, point: IPoint): number | string;
|
|
33
33
|
protected _setAllAxisValues(axisMap: IAxisInfo<IAxis>, point: IPoint, field: string): boolean;
|
|
34
34
|
clearAxisValue(): void;
|