@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
|
@@ -8,6 +8,9 @@ import type { IPoint, StringOrNumber, TooltipActiveType, TooltipData } from '../
|
|
|
8
8
|
import type { IModelSpecInfo } from '../../model/interface';
|
|
9
9
|
export declare class CartesianCrossHair<T extends ICartesianCrosshairSpec = ICartesianCrosshairSpec> extends BaseCrossHair<T> {
|
|
10
10
|
static specKey: string;
|
|
11
|
+
static readonly builtInTheme: {
|
|
12
|
+
crosshair: import("./interface").ICrosshairTheme;
|
|
13
|
+
};
|
|
11
14
|
static type: ComponentTypeEnum;
|
|
12
15
|
type: ComponentTypeEnum;
|
|
13
16
|
name: string;
|
|
@@ -17,7 +20,7 @@ export declare class CartesianCrossHair<T extends ICartesianCrosshairSpec = ICar
|
|
|
17
20
|
protected _getDatumAtPoint(axis: IAxis, point: IPoint): number | string;
|
|
18
21
|
setAxisValue(datum: StringOrNumber, axis: IAxis): void;
|
|
19
22
|
protected _layoutCrosshair(relativeX: number, relativeY: number, tooltipData?: TooltipData, activeType?: TooltipActiveType): void;
|
|
20
|
-
layoutByValue(
|
|
23
|
+
layoutByValue(enableRemain?: boolean): void;
|
|
21
24
|
private _layoutByField;
|
|
22
25
|
private _updateCrosshairByField;
|
|
23
26
|
}
|
|
@@ -6,7 +6,7 @@ import type { IComponent } from '../../interface';
|
|
|
6
6
|
export interface ICrossHair extends IComponent {
|
|
7
7
|
clearAxisValue: () => void;
|
|
8
8
|
setAxisValue: (v: StringOrNumber, axis: IAxis) => void;
|
|
9
|
-
layoutByValue: (
|
|
9
|
+
layoutByValue: (enableRemain?: boolean) => void;
|
|
10
10
|
hideCrosshair: () => any;
|
|
11
11
|
showCrosshair: (dimInfo: {
|
|
12
12
|
axis: IAxis;
|
|
@@ -9,6 +9,9 @@ import type { IModelSpecInfo } from '../../model/interface';
|
|
|
9
9
|
import type { IAxis } from '../axis';
|
|
10
10
|
export declare class PolarCrossHair<T extends IPolarCrosshairSpec = IPolarCrosshairSpec> extends BaseCrossHair<T> {
|
|
11
11
|
static specKey: string;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
crosshair: import("./interface").ICrosshairTheme;
|
|
14
|
+
};
|
|
12
15
|
static type: ComponentTypeEnum;
|
|
13
16
|
type: ComponentTypeEnum;
|
|
14
17
|
name: string;
|
|
@@ -18,7 +21,7 @@ export declare class PolarCrossHair<T extends IPolarCrosshairSpec = IPolarCrossh
|
|
|
18
21
|
private _findAllAxisContains;
|
|
19
22
|
protected _getDatumAtPoint(axis: IPolarAxis, point: IPoint): any;
|
|
20
23
|
protected _layoutCrosshair(relativeX: number, relativeY: number, tooltipData?: TooltipData, activeType?: TooltipActiveType): void;
|
|
21
|
-
layoutByValue(
|
|
24
|
+
layoutByValue(enableRemain?: boolean): void;
|
|
22
25
|
private _layoutByField;
|
|
23
26
|
}
|
|
24
27
|
export declare const registerPolarCrossHair: () => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ICartesianSeries } from '../../../series';
|
|
2
|
-
import type
|
|
2
|
+
import { type ILayoutPoint } from '../../../typings';
|
|
3
3
|
import type { CrossHairStateByField, CrossHairStateItem } from '../interface';
|
|
4
|
+
import type { IDimensionData } from '../../../event/events/dimension/interface';
|
|
4
5
|
export declare const layoutByValue: (stateByField: CrossHairStateByField, series: ICartesianSeries, layoutStartPoint: ILayoutPoint, enableRemain?: boolean) => CrossHairStateByField;
|
|
5
6
|
export declare const layoutCrosshair: (stateItem: CrossHairStateItem) => {
|
|
6
7
|
visible: boolean;
|
|
@@ -11,3 +12,12 @@ export declare const layoutCrosshair: (stateItem: CrossHairStateItem) => {
|
|
|
11
12
|
[x: string]: number;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
15
|
+
export declare const getCartesianCrosshairRect: (dimensionData: IDimensionData, layoutStartPoint: ILayoutPoint) => {
|
|
16
|
+
visible: boolean;
|
|
17
|
+
start: {
|
|
18
|
+
[x: string]: number;
|
|
19
|
+
};
|
|
20
|
+
end: {
|
|
21
|
+
[x: string]: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -2,8 +2,7 @@ import type { Tag } from '@visactor/vrender-components';
|
|
|
2
2
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
3
3
|
import type { Datum } from '../../../typings';
|
|
4
4
|
import type { ICrosshairTheme } from '../interface';
|
|
5
|
-
import type { ITheme } from '../../../theme';
|
|
6
5
|
export declare function limitTagInBounds(shape: Tag, bounds: IBoundsLike): void;
|
|
7
6
|
export declare function getDatumByValue(data: Datum[], value: number, startField: string, endField?: string): Datum | null;
|
|
8
|
-
export declare const getCartesianCrosshairTheme: (
|
|
9
|
-
export declare const getPolarCrosshairTheme: (
|
|
7
|
+
export declare const getCartesianCrosshairTheme: (getTheme: (...keys: string[]) => any, chartSpec: any) => ICrosshairTheme;
|
|
8
|
+
export declare const getPolarCrosshairTheme: (getTheme: (...keys: string[]) => any, chartSpec: any) => ICrosshairTheme;
|
|
@@ -13,6 +13,9 @@ export declare class DataZoom<T extends IDataZoomSpec = IDataZoomSpec> extends D
|
|
|
13
13
|
type: ComponentTypeEnum;
|
|
14
14
|
name: string;
|
|
15
15
|
readonly transformerConstructor: typeof DataZoomSpecTransformer;
|
|
16
|
+
static readonly builtInTheme: {
|
|
17
|
+
dataZoom: import("./interface").IDataZoomTheme;
|
|
18
|
+
};
|
|
16
19
|
static specKey: string;
|
|
17
20
|
specKey: string;
|
|
18
21
|
layoutZIndex: number;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { IMarkSpec } from '../../../typings/spec';
|
|
2
1
|
import type { IAreaMarkSpec, ILineMarkSpec, IRectMarkSpec, ISymbolMarkSpec, ITextMarkSpec } from '../../../typings/visual';
|
|
3
2
|
import type { IComponentSpec } from '../../base/interface';
|
|
4
3
|
import type { ComponentThemeWithDirection, IComponent } from '../../interface';
|
|
@@ -41,13 +40,13 @@ export interface IDataZoomSpec extends IDataZoomStyle, IDataFilterComponentSpec
|
|
|
41
40
|
valueField?: string;
|
|
42
41
|
startText?: {
|
|
43
42
|
padding?: number;
|
|
44
|
-
style?:
|
|
43
|
+
style?: ITextMarkSpec;
|
|
45
44
|
formatMethod?: (text: string | number) => string | string[];
|
|
46
45
|
formatter?: string | string[];
|
|
47
46
|
};
|
|
48
47
|
endText?: {
|
|
49
48
|
padding?: number;
|
|
50
|
-
style?:
|
|
49
|
+
style?: ITextMarkSpec;
|
|
51
50
|
formatMethod?: (text: string | number) => string | string[];
|
|
52
51
|
formatter?: string | string[];
|
|
53
52
|
};
|
|
@@ -10,6 +10,9 @@ export declare class ScrollBar<T extends IScrollBarSpec = IScrollBarSpec> extend
|
|
|
10
10
|
static type: ComponentTypeEnum;
|
|
11
11
|
type: ComponentTypeEnum;
|
|
12
12
|
name: string;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
scrollBar: import("./interface").IScrollBarTheme;
|
|
15
|
+
};
|
|
13
16
|
static specKey: string;
|
|
14
17
|
specKey: string;
|
|
15
18
|
layoutZIndex: number;
|
|
@@ -6,9 +6,7 @@ import { DataZoom, registerDataZoom } from './data-zoom/data-zoom/data-zoom';
|
|
|
6
6
|
import { CustomMark, registerCustomMark } from './custom-mark/custom-mark';
|
|
7
7
|
import type { IBrushSpec, IBrushTheme } from './brush';
|
|
8
8
|
import { Brush, registerBrush } from './brush/brush';
|
|
9
|
-
import type {
|
|
10
|
-
import { MapLabelComponent, registerMapLabel } from './map-label/component';
|
|
11
|
-
import type { ICartesianLinearAxisSpec, ICartesianBandAxisSpec, ICartesianTimeAxisSpec, ICartesianAxisSpec, ICartesianLogAxisSpec, ICartesianAxisCommonTheme } from './axis/cartesian/index';
|
|
9
|
+
import type { ICartesianLinearAxisSpec, ICartesianBandAxisSpec, ICartesianTimeAxisSpec, ICartesianAxisSpec, ICartesianLogAxisSpec, ICartesianAxisCommonTheme, ICartesianSymlogAxisSpec } from './axis/cartesian/index';
|
|
12
10
|
import { CartesianAxis, CartesianLinearAxis, CartesianBandAxis, CartesianTimeAxis, CartesianLogAxis, CartesianSymlogAxis, registerCartesianBandAxis, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis } from './axis/cartesian/index';
|
|
13
11
|
import type { IPolarAxisCommonTheme, IPolarAxisSpec, IPolarBandAxisSpec, IPolarLinearAxisSpec } from './axis/polar';
|
|
14
12
|
import { PolarAxis, PolarBandAxis, PolarLinearAxis, registerPolarBandAxis, registerPolarLinearAxis } from './axis/polar';
|
|
@@ -39,10 +37,18 @@ import { Label, registerLabel } from './label';
|
|
|
39
37
|
import { TotalLabel, registerTotalLabel } from './label/total-label';
|
|
40
38
|
import { registerPoptip } from './poptip/index';
|
|
41
39
|
import type { IComponentTheme } from './interface';
|
|
42
|
-
import type { IAxisCommonTheme, IAxisItemTheme, IBandAxisTheme } from './axis/interface';
|
|
40
|
+
import type { IAxis, IAxisCommonTheme, IAxisItemTheme, IBandAxisTheme } from './axis/interface';
|
|
43
41
|
import type { IPoptipTheme } from './poptip/interface';
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
import { registerDimensionTooltipProcessor } from './tooltip/processor/dimension-tooltip';
|
|
43
|
+
import { registerMarkTooltipProcessor } from './tooltip/processor/mark-tooltip';
|
|
44
|
+
import { getCartesianCrosshairRect } from './crosshair/utils/cartesian';
|
|
45
|
+
import { registerGroupTooltipProcessor } from './tooltip/processor/group-tooltip';
|
|
46
|
+
import { BandAxisMixin } from './axis/mixin/band-axis-mixin';
|
|
47
|
+
import { LinearAxisMixin } from './axis/mixin/linear-axis-mixin';
|
|
48
|
+
export { ScrollBar, DataZoom, CustomMark, Brush, BandAxisMixin, LinearAxisMixin, CartesianAxis, CartesianBandAxis, CartesianLinearAxis, CartesianTimeAxis, CartesianLogAxis, CartesianSymlogAxis, PolarAxis, PolarBandAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Indicator, Title, GeoCoordinate, CartesianCrossHair, PolarCrossHair, Player, CartesianMarkLine, CartesianMarkArea, CartesianMarkPoint, PolarMarkLine, PolarMarkArea, PolarMarkPoint, GeoMarkPoint, Tooltip, Label, TotalLabel };
|
|
49
|
+
export { getCartesianCrosshairRect };
|
|
50
|
+
export { registerBrush, registerScrollBar, registerTitle, registerMarkTooltipProcessor, registerDimensionTooltipProcessor, registerGroupTooltipProcessor, registerTooltip, registerCartesianBandAxis, registerCartesianCrossHair, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis, registerContinuousLegend, registerCustomMark, registerDataZoom, registerDiscreteLegend, registerGeoCoordinate, registerIndicator, registerLabel, registerTotalLabel, registerMarkLine, registerMarkArea, registerMarkPoint, registerPolarMarkLine, registerPolarMarkArea, registerPolarMarkPoint, registerGeoMarkPoint, registerPlayer, registerPolarBandAxis, registerPolarCrossHair, registerPolarLinearAxis, registerPoptip };
|
|
51
|
+
export type { IAxis, IComponent, IScrollBarSpec, IBrushSpec, ICartesianAxisSpec, ICartesianBandAxisSpec, ICartesianCrosshairSpec, ICartesianLinearAxisSpec, ICartesianTimeAxisSpec, ICartesianLogAxisSpec, ICartesianSymlogAxisSpec, IContinuousLegendSpec, IDataZoomSpec, IDiscreteLegendSpec, IGeoCoordinateSpec, IIndicatorSpec, ILabelSpec, ITotalLabelSpec, IMarkAreaSpec, IMarkLineSpec, IStepMarkLineSpec, IMarkPointSpec, IPlayerSpec, IPolarAxisSpec, IPolarBandAxisSpec, IPolarCrosshairSpec, IPolarLinearAxisSpec, ITitleSpec, ITooltipSpec };
|
|
52
|
+
export type { IComponentTheme, ICrosshairTheme, IAxisItemTheme, IAxisCommonTheme, IBandAxisTheme, IPolarAxisCommonTheme, ICartesianAxisCommonTheme, IBrushTheme, IDataZoomTheme, IScrollBarTheme, IIndicatorTheme, ITotalLabelTheme, ISizeLegendTheme, IColorLegendTheme, IDiscreteLegendTheme, IContinuousLegendTheme, IMarkAreaTheme, IMarkLineTheme, IMarkPointTheme, IPlayerTheme, IPoptipTheme, ITitleTheme, ITooltipTheme };
|
|
48
53
|
export * from './tooltip/interface';
|
|
54
|
+
export { isXAxis, isYAxis, isZAxis } from './axis/cartesian/util';
|
|
@@ -10,6 +10,9 @@ export declare class Indicator<T extends IIndicatorSpec> extends BaseComponent<T
|
|
|
10
10
|
static type: ComponentTypeEnum;
|
|
11
11
|
type: ComponentTypeEnum;
|
|
12
12
|
name: string;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
indicator: import("./interface").IIndicatorTheme;
|
|
15
|
+
};
|
|
13
16
|
static specKey: string;
|
|
14
17
|
specKey: string;
|
|
15
18
|
layoutType: 'none';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ISeriesFilter } from '../../region/interface';
|
|
2
|
-
import type { IAnimate } from '../../animation/interface';
|
|
3
2
|
import type { ILayoutModel, IModelConstructor, IModelOption, IModelSpecInfo } from '../../model/interface';
|
|
4
3
|
import type { IRegion } from '../../region/interface';
|
|
5
4
|
import type { ISeries } from '../../series/interface';
|
|
@@ -23,7 +22,6 @@ export interface IComponentOption extends IModelOption {
|
|
|
23
22
|
}
|
|
24
23
|
export interface IComponent extends ILayoutModel {
|
|
25
24
|
readonly name: string;
|
|
26
|
-
readonly animate?: IAnimate;
|
|
27
25
|
getRegions: () => IRegion[];
|
|
28
26
|
getBindSeriesFilter?: () => ISeriesFilter;
|
|
29
27
|
changeRegions: (regions: IRegion[]) => void;
|
|
@@ -6,7 +6,6 @@ import type { IScrollBarTheme } from '../data-zoom/scroll-bar/interface';
|
|
|
6
6
|
import type { IIndicatorTheme } from '../indicator/interface';
|
|
7
7
|
import type { IDiscreteLegendTheme } from '../legend/discrete/interface';
|
|
8
8
|
import type { IColorLegendTheme, ISizeLegendTheme } from '../legend/continuous/interface';
|
|
9
|
-
import type { IMapLabelTheme } from '../map-label/interface';
|
|
10
9
|
import type { IMarkAreaTheme } from '../marker/mark-area/interface';
|
|
11
10
|
import type { IMarkLineTheme } from '../marker/mark-line/interface';
|
|
12
11
|
import type { IMarkPointTheme } from '../marker/mark-point/interface';
|
|
@@ -26,7 +25,6 @@ export interface IComponentTheme {
|
|
|
26
25
|
axisLinear?: IAxisCommonTheme;
|
|
27
26
|
axisX?: ICartesianAxisCommonTheme;
|
|
28
27
|
axisY?: ICartesianAxisCommonTheme;
|
|
29
|
-
axisZ?: ICartesianAxisCommonTheme;
|
|
30
28
|
axisRadius?: IPolarAxisCommonTheme;
|
|
31
29
|
axisAngle?: IPolarAxisCommonTheme;
|
|
32
30
|
[ComponentTypeEnum.discreteLegend]?: IDiscreteLegendTheme;
|
|
@@ -47,9 +45,9 @@ export interface IComponentTheme {
|
|
|
47
45
|
[ComponentTypeEnum.player]?: IPlayerTheme;
|
|
48
46
|
[ComponentTypeEnum.brush]?: IBrushTheme;
|
|
49
47
|
[ComponentTypeEnum.title]?: ITitleTheme;
|
|
50
|
-
[ComponentTypeEnum.mapLabel]?: IMapLabelTheme;
|
|
51
48
|
[ComponentTypeEnum.poptip]?: IPoptipTheme;
|
|
52
49
|
[ComponentTypeEnum.totalLabel]?: ITotalLabelTheme;
|
|
50
|
+
[key: string]: any;
|
|
53
51
|
}
|
|
54
52
|
export type ComponentThemeWithDirection<T extends {
|
|
55
53
|
orient?: IOrientType;
|
|
@@ -19,10 +19,10 @@ export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<
|
|
|
19
19
|
hover: boolean;
|
|
20
20
|
select: boolean;
|
|
21
21
|
state: {
|
|
22
|
-
hover?: Partial<import("../../
|
|
23
|
-
hover_reverse?: Partial<import("../../
|
|
24
|
-
selected?: Partial<import("../../
|
|
25
|
-
selected_reverse?: Partial<import("../../
|
|
22
|
+
hover?: Partial<import("../../core").IComposedTextMarkSpec>;
|
|
23
|
+
hover_reverse?: Partial<import("../../core").IComposedTextMarkSpec>;
|
|
24
|
+
selected?: Partial<import("../../core").IComposedTextMarkSpec>;
|
|
25
|
+
selected_reverse?: Partial<import("../../core").IComposedTextMarkSpec>;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
_compareSpec(spec: T, prevSpec: T): {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { BaseLabelAttrs } from '@visactor/vrender-components';
|
|
1
|
+
import type { BaseLabelAttrs, DataLabelAttrs } from '@visactor/vrender-components';
|
|
2
2
|
import type { ConvertToMarkStyleSpec, Datum, IComposedTextMarkSpec, IFormatMethod, ITextMarkSpec } from '../../typings';
|
|
3
|
-
import type { IComponentSpec } from '../base/interface';
|
|
4
3
|
import type { ILabelMark, IMark } from '../../mark/interface';
|
|
5
4
|
import type { ISeries } from '../../series/interface';
|
|
6
5
|
import type { IRegion } from '../../region/interface';
|
|
@@ -17,7 +16,8 @@ export interface ILabelComponentContext {
|
|
|
17
16
|
export interface ILabelFormatMethodContext {
|
|
18
17
|
series?: ISeries;
|
|
19
18
|
}
|
|
20
|
-
export interface ILabelSpec extends
|
|
19
|
+
export interface ILabelSpec extends ILabelAnimationSpec {
|
|
20
|
+
zIndex?: number;
|
|
21
21
|
visible?: boolean;
|
|
22
22
|
interactive?: boolean;
|
|
23
23
|
textType?: 'text' | 'rich';
|
|
@@ -27,7 +27,9 @@ export interface ILabelSpec extends IComponentSpec, ILabelAnimationSpec {
|
|
|
27
27
|
position?: string;
|
|
28
28
|
style?: ConvertToMarkStyleSpec<IComposedTextMarkSpec>;
|
|
29
29
|
state?: LabelStateStyle<Partial<IComposedTextMarkSpec>>;
|
|
30
|
-
overlap?: BaseLabelAttrs['overlap']
|
|
30
|
+
overlap?: BaseLabelAttrs['overlap'] & {
|
|
31
|
+
padding?: DataLabelAttrs['size']['padding'];
|
|
32
|
+
};
|
|
31
33
|
smartInvert?: BaseLabelAttrs['smartInvert'];
|
|
32
34
|
stackDataFilterType?: 'min' | 'max';
|
|
33
35
|
dataFilter?: BaseLabelAttrs['dataFilter'];
|
|
@@ -47,7 +49,10 @@ type LabelStateStyle<T> = {
|
|
|
47
49
|
selected?: T;
|
|
48
50
|
selected_reverse?: T;
|
|
49
51
|
};
|
|
50
|
-
export type ITotalLabelSpec = Pick<ILabelSpec, 'visible' | 'formatMethod' | 'interactive' | 'offset' | 'style' | 'state' | 'textType' | 'overlap'
|
|
52
|
+
export type ITotalLabelSpec = Pick<ILabelSpec, 'visible' | 'formatMethod' | 'interactive' | 'offset' | 'style' | 'state' | 'textType' | 'overlap'> & {
|
|
53
|
+
position?: 'top' | 'bottom';
|
|
54
|
+
alwayCalculateTotal?: boolean;
|
|
55
|
+
};
|
|
51
56
|
export interface ITotalLabelTheme extends Pick<ILabelSpec, 'visible' | 'interactive' | 'offset' | 'overlap' | 'smartInvert' | 'animation'> {
|
|
52
57
|
style?: ITextMarkSpec;
|
|
53
58
|
}
|
|
@@ -9,6 +9,9 @@ export declare class TotalLabel extends BaseLabelComponent {
|
|
|
9
9
|
static type: ComponentTypeEnum;
|
|
10
10
|
type: ComponentTypeEnum;
|
|
11
11
|
name: string;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
totalLabel: import("./interface").ITotalLabelTheme;
|
|
14
|
+
};
|
|
12
15
|
static specKey: string;
|
|
13
16
|
specKey: string;
|
|
14
17
|
layoutZIndex: number;
|
|
@@ -25,5 +28,5 @@ export declare class TotalLabel extends BaseLabelComponent {
|
|
|
25
28
|
getVRenderComponents(): any[];
|
|
26
29
|
protected _getSeries(): ISeries;
|
|
27
30
|
}
|
|
28
|
-
export declare function totalLabelPosition(series: ISeries, type: MarkType): string;
|
|
31
|
+
export declare function totalLabelPosition(series: ISeries, type: MarkType, position?: 'top' | 'bottom'): string;
|
|
29
32
|
export declare const registerTotalLabel: () => void;
|
|
@@ -17,7 +17,7 @@ export declare const labelRuleMap: {
|
|
|
17
17
|
venn: typeof vennLabel;
|
|
18
18
|
};
|
|
19
19
|
export declare function defaultLabelConfig(rule: string, labelInfo: ILabelInfo): any;
|
|
20
|
-
export declare function textAttribute(labelInfo: ILabelInfo, datum: Datum, formatMethod?: ILabelSpec['formatMethod'], formatter?: ILabelSpec['formatter']): Partial<import("../../
|
|
20
|
+
export declare function textAttribute(labelInfo: ILabelInfo, datum: Datum, formatMethod?: ILabelSpec['formatMethod'], formatter?: ILabelSpec['formatter']): Partial<import("../../core").IComposedTextMarkSpec>;
|
|
21
21
|
export declare function symbolLabel(labelInfo: ILabelInfo): {
|
|
22
22
|
position: string | ((datum: Datum) => any);
|
|
23
23
|
overlap: boolean | OverlapAttrs;
|
|
@@ -8,6 +8,10 @@ import { BaseLegend } from '../base-legend';
|
|
|
8
8
|
import type { ILayoutRect } from '../../../typings/layout';
|
|
9
9
|
export declare class ContinuousLegend<T extends IColorLegendSpec | ISizeLegendSpec = IColorLegendSpec | ISizeLegendSpec> extends BaseLegend<T> {
|
|
10
10
|
static specKey: string;
|
|
11
|
+
static readonly builtInTheme: {
|
|
12
|
+
colorLegend: import("./interface").IColorLegendTheme;
|
|
13
|
+
sizeLegend: import("./interface").ISizeLegendTheme;
|
|
14
|
+
};
|
|
11
15
|
static type: ComponentTypeEnum;
|
|
12
16
|
type: ComponentTypeEnum;
|
|
13
17
|
name: string;
|
|
@@ -10,6 +10,9 @@ import type { ILayoutRect } from '../../../typings/layout';
|
|
|
10
10
|
import type { StringOrNumber } from '../../../typings';
|
|
11
11
|
export declare class DiscreteLegend extends BaseLegend<IDiscreteLegendSpec> {
|
|
12
12
|
static specKey: string;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
discreteLegend: import("./interface").IDiscreteLegendTheme;
|
|
15
|
+
};
|
|
13
16
|
static type: ComponentTypeEnum;
|
|
14
17
|
type: ComponentTypeEnum;
|
|
15
18
|
name: string;
|
|
@@ -33,9 +33,9 @@ export declare function transformLegendTitleAttributes(title: ITitle): {
|
|
|
33
33
|
} & import("@visactor/vrender-core").SimpleDomStyleOptions & import("@visactor/vrender-core").CommonDomOptions;
|
|
34
34
|
};
|
|
35
35
|
visible?: boolean;
|
|
36
|
-
align?: "start" | "end" | "center";
|
|
37
36
|
padding?: import("@visactor/vrender-components").Padding;
|
|
38
37
|
maxWidth?: number;
|
|
39
38
|
minWidth?: number;
|
|
40
39
|
space?: number;
|
|
40
|
+
align?: "start" | "end" | "center";
|
|
41
41
|
};
|
|
@@ -10,6 +10,9 @@ export declare class CartesianMarkArea extends BaseMarkArea {
|
|
|
10
10
|
name: string;
|
|
11
11
|
static coordinateType: string;
|
|
12
12
|
coordinateType: CoordinateType;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
markArea: import("./interface").IMarkAreaTheme;
|
|
15
|
+
};
|
|
13
16
|
protected _newMarkAreaComponent(attr: MarkAreaAttrs): MarkAreaComponent;
|
|
14
17
|
protected _computePointsAttr(): {
|
|
15
18
|
points: IPoint[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { IMarkAreaLabelPosition, IMarkCommonArcLabelPosition } from '@visactor/vrender-components';
|
|
2
2
|
import type { IArcMarkSpec, IPolygonMarkSpec } from '../../../../typings';
|
|
3
3
|
import type { IMarkerLabelWithoutRefSpec, IMarkerState } from '../../interface';
|
|
4
|
+
export type IMarkAreaLabel = {
|
|
5
|
+
position?: keyof typeof IMarkAreaLabelPosition | IMarkCommonArcLabelPosition;
|
|
6
|
+
} & IMarkerLabelWithoutRefSpec;
|
|
4
7
|
export interface IMarkAreaTheme {
|
|
5
8
|
area?: Partial<IMarkerState<IPolygonMarkSpec | IArcMarkSpec>>;
|
|
6
|
-
label?:
|
|
7
|
-
position?: keyof typeof IMarkAreaLabelPosition | IMarkCommonArcLabelPosition;
|
|
8
|
-
} & IMarkerLabelWithoutRefSpec;
|
|
9
|
+
label?: IMarkAreaLabel | IMarkAreaLabel[];
|
|
9
10
|
}
|
|
@@ -10,6 +10,9 @@ export declare class PolarMarkArea extends BaseMarkArea {
|
|
|
10
10
|
name: string;
|
|
11
11
|
static coordinateType: string;
|
|
12
12
|
coordinateType: CoordinateType;
|
|
13
|
+
static readonly builtInTheme: {
|
|
14
|
+
polarMarkArea: import("./interface").IMarkAreaTheme;
|
|
15
|
+
};
|
|
13
16
|
protected _markerComponent: MarkArcAreaComponent;
|
|
14
17
|
protected _newMarkAreaComponent(attr: MarkArcAreaAttrs | MarkAreaAttrs): MarkArcAreaComponent | MarkAreaComponent;
|
|
15
18
|
protected _computePointsAttr(): {
|
|
@@ -9,6 +9,9 @@ export declare class CartesianMarkLine extends BaseMarkLine {
|
|
|
9
9
|
name: string;
|
|
10
10
|
static coordinateType: string;
|
|
11
11
|
coordinateType: CoordinateType;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
markLine: import("./interface").IMarkLineTheme;
|
|
14
|
+
};
|
|
12
15
|
protected _markerComponent: MarkLineComponent;
|
|
13
16
|
protected _newMarkLineComponent(attr: MarkLineAttrs): MarkLineComponent;
|
|
14
17
|
protected _computePointsAttr(): {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { IMarkCommonArcLabelPosition, IMarkLineLabelPosition } from '@visactor/vrender-components';
|
|
2
2
|
import type { IArcMarkSpec, ILineMarkSpec } from '../../../../typings';
|
|
3
3
|
import type { IMarkerLabelSpec, IMarkerState, IMarkerSymbol } from '../../interface';
|
|
4
|
+
export type IMarkLineLabel = {
|
|
5
|
+
position?: keyof typeof IMarkLineLabelPosition | IMarkCommonArcLabelPosition;
|
|
6
|
+
} & IMarkerLabelSpec;
|
|
4
7
|
export interface IMarkLineTheme {
|
|
5
8
|
line?: Partial<IMarkerState<ILineMarkSpec | IArcMarkSpec>>;
|
|
6
|
-
label?:
|
|
7
|
-
position?: keyof typeof IMarkLineLabelPosition | IMarkCommonArcLabelPosition;
|
|
8
|
-
} & IMarkerLabelSpec;
|
|
9
|
+
label?: IMarkLineLabel | IMarkLineLabel[];
|
|
9
10
|
startSymbol?: IMarkerSymbol;
|
|
10
11
|
endSymbol?: IMarkerSymbol;
|
|
11
12
|
}
|
|
@@ -9,6 +9,9 @@ export declare class PolarMarkLine extends BaseMarkLine {
|
|
|
9
9
|
name: string;
|
|
10
10
|
static coordinateType: string;
|
|
11
11
|
coordinateType: CoordinateType;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
polarMarkLine: import("./interface").IMarkLineTheme;
|
|
14
|
+
};
|
|
12
15
|
protected _markerComponent: MarkArcLineComponent;
|
|
13
16
|
protected _newMarkLineComponent(attr: MarkArcLineAttrs | MarkLineAttrs): MarkArcLineComponent | MarkLineComponent;
|
|
14
17
|
protected _computePointsAttr(): {
|
|
@@ -8,6 +8,9 @@ export declare class CartesianMarkPoint extends BaseMarkPoint {
|
|
|
8
8
|
name: string;
|
|
9
9
|
static coordinateType: string;
|
|
10
10
|
coordinateType: CoordinateType;
|
|
11
|
+
static readonly builtInTheme: {
|
|
12
|
+
markPoint: import("./interface").IMarkPointTheme<Partial<import("../interface").IMarkerSymbol>>;
|
|
13
|
+
};
|
|
11
14
|
protected _computePointsAttr(): {
|
|
12
15
|
point: IPoint;
|
|
13
16
|
};
|
|
@@ -7,6 +7,9 @@ export declare class GeoMarkPoint extends BaseMarkPoint {
|
|
|
7
7
|
name: string;
|
|
8
8
|
static coordinateType: string;
|
|
9
9
|
coordinateType: CoordinateType;
|
|
10
|
+
static readonly builtInTheme: {
|
|
11
|
+
geoMarkPoint: import("./interface").IMarkPointTheme<Partial<import("../interface").IMarkerSymbol>>;
|
|
12
|
+
};
|
|
10
13
|
protected _computePointsAttr(): {
|
|
11
14
|
point: import("../../../typings").IPoint;
|
|
12
15
|
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import type { IImageGraphicAttribute, IRichTextGraphicAttribute, IGroupGraphicAttribute } from '@visactor/vrender-core';
|
|
2
2
|
import type { IMarkPointItemPosition } from '@visactor/vrender-components';
|
|
3
3
|
import type { ILineMarkSpec, ISymbolMarkSpec } from '../../../../typings';
|
|
4
|
-
import type { IMarkerLabelSpec, IMarkerRef, IMarkerState, IMarkerSymbol } from '../../interface';
|
|
4
|
+
import type { IMarkerLabelSpec, IMarkerRef, IMarkerState, IMarkerSymbol, MarkerStateCallback, MarkerStateValue, MarkerStyleCallback } from '../../interface';
|
|
5
5
|
import type { IRegion } from '../../../../region/interface';
|
|
6
6
|
export type IOffsetCallback = (region: IRegion) => number;
|
|
7
|
+
export type IItemContentStyle = ISymbolMarkSpec | IImageGraphicAttribute | IGroupGraphicAttribute;
|
|
7
8
|
export interface IItemContent extends IMarkerRef {
|
|
8
|
-
type?: 'symbol' | 'text' | 'image' | 'richText';
|
|
9
9
|
position?: keyof typeof IMarkPointItemPosition;
|
|
10
10
|
offsetX?: number | 'regionRight' | 'regionLeft' | IOffsetCallback;
|
|
11
11
|
offsetY?: number | 'regionTop' | 'regionBottom' | IOffsetCallback;
|
|
12
12
|
confine?: boolean;
|
|
13
|
+
type?: 'symbol' | 'text' | 'image' | 'custom';
|
|
14
|
+
style?: IItemContentStyle | MarkerStyleCallback<IItemContentStyle> | IMarkerLabelSpec;
|
|
15
|
+
state?: Record<MarkerStateValue, IItemContentStyle | MarkerStateCallback<IItemContentStyle>>;
|
|
13
16
|
symbol?: Partial<IMarkerState<ISymbolMarkSpec>>;
|
|
14
17
|
image?: Partial<IMarkerState<IImageGraphicAttribute>>;
|
|
15
18
|
text?: IMarkerLabelSpec;
|
|
@@ -8,6 +8,9 @@ export declare class PolarMarkPoint extends BaseMarkPoint {
|
|
|
8
8
|
name: string;
|
|
9
9
|
static coordinateType: string;
|
|
10
10
|
coordinateType: CoordinateType;
|
|
11
|
+
static readonly builtInTheme: {
|
|
12
|
+
polarMarkPoint: import("./interface").IMarkPointTheme<Partial<import("../interface").IMarkerSymbol>>;
|
|
13
|
+
};
|
|
11
14
|
protected _computePointsAttr(): {
|
|
12
15
|
point: {
|
|
13
16
|
x: number;
|
|
@@ -22,6 +22,18 @@ export declare function transformState(state: {} | Record<MarkerStateValue, any
|
|
|
22
22
|
export declare function transformStyle(style: any, markerData: DataView, markerAttributeContext: IMarkerAttributeContext): any;
|
|
23
23
|
export declare function transformOffset(offset: string | number | Function, region: IRegion): any;
|
|
24
24
|
export declare function computeOffsetFromRegion(point: IPointLike, offset: string | number, region: IRegion): number;
|
|
25
|
+
export declare function getProcessInfo(spec: any): {
|
|
26
|
+
isXProcess: boolean;
|
|
27
|
+
isYProcess: boolean;
|
|
28
|
+
isX1Process: boolean;
|
|
29
|
+
isY1Process: boolean;
|
|
30
|
+
isAngleProcess: boolean;
|
|
31
|
+
isRadiusProcess: boolean;
|
|
32
|
+
isAngle1Process: boolean;
|
|
33
|
+
isRadius1Process: boolean;
|
|
34
|
+
isCoordinatesProcess: boolean;
|
|
35
|
+
isValidProcess: boolean;
|
|
36
|
+
};
|
|
25
37
|
export declare function getMarkLineProcessInfo(spec: any): {
|
|
26
38
|
doXProcess: boolean;
|
|
27
39
|
doXYY1Process: boolean;
|
|
@@ -9,6 +9,9 @@ import { BaseComponent } from '../base/base-component';
|
|
|
9
9
|
export declare class Player extends BaseComponent<IPlayer> implements IComponent {
|
|
10
10
|
layoutZIndex: number;
|
|
11
11
|
layoutLevel: number;
|
|
12
|
+
static readonly builtInTheme: {
|
|
13
|
+
player: import("./interface").IPlayerTheme;
|
|
14
|
+
};
|
|
12
15
|
static specKey: string;
|
|
13
16
|
specKey: string;
|
|
14
17
|
static type: ComponentTypeEnum;
|
|
@@ -15,6 +15,9 @@ export declare class Title<T extends ITitleSpec = ITitleSpec> extends BaseCompon
|
|
|
15
15
|
layoutType: ILayoutType;
|
|
16
16
|
layoutZIndex: number;
|
|
17
17
|
layoutLevel: number;
|
|
18
|
+
static readonly builtInTheme: {
|
|
19
|
+
title: import("./interface").ITitleTheme;
|
|
20
|
+
};
|
|
18
21
|
protected _orient: IOrientType;
|
|
19
22
|
private _titleComponent;
|
|
20
23
|
private _cacheAttrs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ITooltipLineActual
|
|
1
|
+
import type { ITooltipLineActual } from '../../typings';
|
|
2
2
|
export declare const TooltipHandlerType: {
|
|
3
3
|
dom: string;
|
|
4
4
|
canvas: string;
|
|
@@ -6,5 +6,9 @@ export declare const TooltipHandlerType: {
|
|
|
6
6
|
export declare const TOOLTIP_EL_CLASS_NAME = "vchart-tooltip-element";
|
|
7
7
|
export declare const TOOLTIP_MAX_LINE_COUNT = 20;
|
|
8
8
|
export declare const TOOLTIP_OTHERS_LINE: ITooltipLineActual;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const enum TooltipType {
|
|
10
|
+
group = "group",
|
|
11
|
+
mark = "mark",
|
|
12
|
+
dimension = "dimension"
|
|
13
|
+
}
|
|
10
14
|
export declare const DEFAULT_SHOW_DELAY = 50;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DimensionEventParams } from '../../../event/events/dimension/interface';
|
|
2
2
|
import type { DimensionTooltipInfo, GroupTooltipInfo, MarkTooltipInfo } from '../processor/interface';
|
|
3
|
-
import type { Datum, IShowTooltipOption, ITooltipActual } from '../../../typings';
|
|
3
|
+
import type { Datum, IShowTooltipOption, ITooltipActual, ITooltipHandler } from '../../../typings';
|
|
4
4
|
import type { IComponent } from '../../interface';
|
|
5
5
|
import type { ITooltipSpec } from './spec';
|
|
6
6
|
export type TooltipHandlerParams = DimensionEventParams & {
|
|
@@ -24,6 +24,7 @@ export declare const enum TooltipResult {
|
|
|
24
24
|
failed = 1
|
|
25
25
|
}
|
|
26
26
|
export interface ITooltip extends IComponent {
|
|
27
|
+
tooltipHandler?: ITooltipHandler;
|
|
27
28
|
getVisible: () => boolean;
|
|
28
29
|
showTooltip: (datum: Datum, options: IShowTooltipOption) => void;
|
|
29
30
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { BaseEventParams } from '../../../event/interface';
|
|
2
2
|
import type { ITooltipActual, TooltipActiveType, TooltipData } from '../../../typings';
|
|
3
|
-
import type { TooltipHandlerParams } from '../interface';
|
|
3
|
+
import type { ITooltip, TooltipHandlerParams } from '../interface';
|
|
4
4
|
import { TooltipResult } from '../interface/common';
|
|
5
|
-
import type { Tooltip } from '../tooltip';
|
|
6
5
|
import type { MouseEventData, TooltipInfo } from './interface';
|
|
7
|
-
import type { IDimensionInfo } from '../../../event/events/dimension';
|
|
6
|
+
import type { IDimensionInfo } from '../../../event/events/dimension/interface';
|
|
8
7
|
export declare abstract class BaseTooltipProcessor {
|
|
9
|
-
readonly component:
|
|
8
|
+
readonly component: ITooltip;
|
|
10
9
|
abstract activeType: TooltipActiveType;
|
|
11
10
|
protected _cacheActiveSpec: ITooltipActual | undefined;
|
|
12
|
-
constructor(component:
|
|
11
|
+
constructor(component: ITooltip);
|
|
13
12
|
abstract showTooltip(info: TooltipInfo, params: BaseEventParams, changePositionOnly: boolean): TooltipResult;
|
|
14
13
|
abstract getMouseEventData(params: BaseEventParams): MouseEventData;
|
|
15
14
|
protected _showTooltipByHandler: (data: TooltipData | undefined, params: TooltipHandlerParams) => TooltipResult;
|
|
@@ -9,3 +9,4 @@ export declare class DimensionTooltipProcessor extends BaseTooltipProcessor {
|
|
|
9
9
|
protected _getDimensionInfo(params: BaseEventParams): IDimensionInfo[];
|
|
10
10
|
getMouseEventData(params: BaseEventParams): MouseEventData;
|
|
11
11
|
}
|
|
12
|
+
export declare const registerDimensionTooltipProcessor: () => void;
|