@visactor/vchart-types 1.6.2 → 1.7.0-alpha.0
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/utils.d.ts +2 -2
- package/types/chart/base-chart.d.ts +4 -4
- package/types/chart/interface/chart.d.ts +2 -2
- package/types/compile/mark/compilable-mark.d.ts +1 -2
- package/types/component/axis/base-axis.d.ts +1 -0
- package/types/component/axis/cartesian/axis.d.ts +12 -9
- package/types/component/axis/cartesian/interface/theme.d.ts +1 -1
- package/types/component/axis/polar/axis.d.ts +3 -4
- package/types/component/base/base-component.d.ts +12 -4
- package/types/component/brush/brush.d.ts +3 -4
- package/types/component/crosshair/base.d.ts +4 -5
- package/types/component/crosshair/cartesian.d.ts +2 -0
- package/types/component/crosshair/interface/spec.d.ts +1 -1
- package/types/component/crosshair/polar.d.ts +2 -0
- package/types/component/custom-mark/custom-mark.d.ts +3 -4
- package/types/component/data-zoom/data-filter-base-component.d.ts +6 -8
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +1 -1
- package/types/component/data-zoom/data-zoom/interface.d.ts +1 -0
- package/types/component/data-zoom/scroll-bar/interface.d.ts +1 -1
- package/types/component/geo/geo-coordinate.d.ts +4 -3
- package/types/component/indicator/indicator.d.ts +2 -4
- package/types/component/indicator/interface.d.ts +1 -1
- package/types/component/interface/common.d.ts +3 -3
- package/types/component/label/base-label.d.ts +3 -4
- package/types/component/label/label.d.ts +3 -3
- package/types/component/label/totalLabel.d.ts +3 -3
- package/types/component/legend/base-legend.d.ts +6 -9
- package/types/component/legend/continuous/legend.d.ts +4 -1
- package/types/component/legend/discrete/legend.d.ts +4 -1
- package/types/component/legend/discrete/util.d.ts +1 -1
- package/types/component/legend/util.d.ts +1 -1
- package/types/component/map-label/component.d.ts +2 -4
- package/types/component/marker/base-marker.d.ts +2 -3
- package/types/component/marker/interface.d.ts +1 -1
- package/types/component/marker/mark-area/mark-area.d.ts +1 -3
- package/types/component/marker/mark-line/mark-line.d.ts +1 -3
- package/types/component/marker/mark-point/mark-point.d.ts +1 -3
- package/types/component/player/interface/theme.d.ts +1 -1
- package/types/component/player/player.d.ts +6 -7
- package/types/component/title/interface/theme.d.ts +1 -1
- package/types/component/title/title.d.ts +6 -9
- package/types/component/tooltip/handler/dom/model/shape-model.d.ts +1 -0
- package/types/component/tooltip/tooltip.d.ts +4 -3
- package/types/constant/layout.d.ts +1 -0
- package/types/core/factory.d.ts +5 -2
- package/types/core/vchart.d.ts +1 -0
- package/types/event/events/base.d.ts +16 -0
- package/types/event/events/dimension/util/cartesian.d.ts +1 -1
- package/types/event/events/dimension/util/common.d.ts +1 -2
- package/types/event/events/dimension/util/polar.d.ts +1 -1
- package/types/event/interface.d.ts +1 -1
- package/types/interaction/zoom/zoomable.d.ts +1 -0
- package/types/layout/base-layout.d.ts +3 -5
- package/types/layout/grid-layout/grid-layout.d.ts +1 -2
- package/types/layout/interface.d.ts +74 -6
- package/types/layout/layout-item.d.ts +71 -0
- package/types/layout/layout3d/index.d.ts +2 -4
- package/types/layout/util.d.ts +1 -1
- package/types/mark/base/base-mark.d.ts +3 -3
- package/types/model/base-model.d.ts +10 -6
- package/types/model/interface.d.ts +20 -82
- package/types/model/layout-model.d.ts +39 -0
- package/types/region/interface.d.ts +3 -2
- package/types/region/region.d.ts +12 -7
- package/types/series/base/base-series.d.ts +10 -4
- package/types/series/funnel/interface.d.ts +1 -2
- package/types/series/interface/series.d.ts +3 -2
- package/types/series/mixin/line-mixin.d.ts +2 -1
- package/types/series/sankey/sankey.d.ts +2 -1
- package/types/theme/builtin/common-mobile/component/axis/band-axis.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +3 -0
- package/types/theme/builtin/common-mobile/component/axis/common-axis.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/axis/linear-axis.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/axis/polar-axis.d.ts +3 -0
- package/types/theme/builtin/common-mobile/component/crosshair.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/data-zoom.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/index.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/indicator.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/legend/color-legend.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/legend/continuous.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/legend/discrete-legend.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/legend/size-legend.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/map-label.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/mark-area.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/mark-line.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/mark-point.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/player.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/poptip.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/title.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/tooltip.d.ts +2 -0
- package/types/theme/builtin/common-mobile/component/total-label.d.ts +2 -0
- package/types/theme/builtin/common-mobile/constants.d.ts +2 -0
- package/types/theme/builtin/common-mobile/mark.d.ts +3 -0
- package/types/theme/builtin/dark-mobile/index.d.ts +2 -0
- package/types/theme/builtin/light-mobile/index.d.ts +2 -0
- package/types/theme/interface.d.ts +1 -2
- package/types/typings/index.d.ts +1 -0
- package/types/typings/layout.d.ts +23 -0
- package/types/typings/spec/common.d.ts +1 -2
- package/types/util/space.d.ts +1 -1
|
@@ -9,9 +9,9 @@ export declare const AnimationStates: string[];
|
|
|
9
9
|
export declare function animationConfig<Preset extends string>(defaultConfig?: MarkAnimationSpec, userConfig?: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, params?: {
|
|
10
10
|
dataIndex: (datum: any) => number;
|
|
11
11
|
}): MarkAnimationSpec;
|
|
12
|
-
export declare function userAnimationConfig<M extends string, Preset extends string>(markName: SeriesMarkNameEnum | string, spec: IAnimationSpec<M, Preset>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "
|
|
12
|
+
export declare function userAnimationConfig<M extends string, Preset extends string>(markName: SeriesMarkNameEnum | string, spec: IAnimationSpec<M, Preset>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "enter" | "exit" | "disappear", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<string>>>;
|
|
13
13
|
export declare function shouldMarkDoMorph(spec: ISeriesSpec & IAnimationSpec<string, string>, markName: string): boolean;
|
|
14
14
|
export declare function isTimeLineAnimation(animationConfig: IAnimationConfig): boolean;
|
|
15
15
|
export declare function isChannelAnimation(animationConfig: IAnimationConfig): boolean;
|
|
16
|
-
export declare function uniformAnimationConfig<Preset extends string>(config: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "
|
|
16
|
+
export declare function uniformAnimationConfig<Preset extends string>(config: Partial<Record<IAnimationState, boolean | IStateAnimateSpec<Preset> | IAnimationConfig | IAnimationConfig[]>>, ctx: ISeriesMarkAttributeContext): Partial<Record<"none" | "normal" | "state" | "update" | "appear" | "enter" | "exit" | "disappear", boolean | IAnimationConfig | IAnimationConfig[] | IStateAnimateSpec<Preset>>>;
|
|
17
17
|
export declare function isAnimationEnabledForSeries(series: ISeries): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChartData } from './chart-meta/data';
|
|
2
|
-
import type { ISeriesSpec, Datum, IMarkStateSpec, IRegionQuerier, MaybeArray, IPadding, IRect, StringOrNumber, IChartSpec, IDataValues } from '../typings';
|
|
3
|
-
import type { LayoutCallBack } from '../layout/interface';
|
|
4
|
-
import type { ILayoutModelState,
|
|
2
|
+
import type { ISeriesSpec, Datum, IMarkStateSpec, IRegionQuerier, MaybeArray, IPadding, IRect, StringOrNumber, IChartSpec, IDataValues, ILayoutRect, ILayoutOrientPadding } from '../typings';
|
|
3
|
+
import type { ILayoutItem, LayoutCallBack } from '../layout/interface';
|
|
4
|
+
import type { ILayoutModelState, IModel, IModelOption, IUpdateSpecResult } from '../model/interface';
|
|
5
5
|
import type { IChart, IChartLayoutOption, IChartRenderOption, IChartOption, IChartEvaluateOption, ILayoutParams, DimensionIndexOption } from './interface';
|
|
6
6
|
import type { ISeries } from '../series/interface';
|
|
7
7
|
import type { IRegion } from '../region/interface';
|
|
@@ -82,7 +82,7 @@ export declare class BaseChart extends CompilableBase implements IChart {
|
|
|
82
82
|
onLayoutStart(option: IChartLayoutOption): void;
|
|
83
83
|
onLayoutEnd(option: IChartLayoutOption): void;
|
|
84
84
|
onEvaluateEnd(option: IChartEvaluateOption): void;
|
|
85
|
-
getLayoutElements():
|
|
85
|
+
getLayoutElements(): ILayoutItem[];
|
|
86
86
|
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
87
87
|
getAllRegions: () => IRegion[];
|
|
88
88
|
getRegionsInIds: (ids: number[]) => IRegion[];
|
|
@@ -4,13 +4,13 @@ import type { IRunningConfig as IMorphConfig, IView } from '@visactor/vgrammar-c
|
|
|
4
4
|
import type { IParserOptions } from '@visactor/vdataset/es/parser';
|
|
5
5
|
import type { IComponent } from '../../component/interface';
|
|
6
6
|
import type { IMark } from '../../mark/interface';
|
|
7
|
-
import type {
|
|
7
|
+
import type { IModel, IUpdateSpecResult } from '../../model/interface';
|
|
8
8
|
import type { IRegion } from '../../region/interface';
|
|
9
9
|
import type { ISeries } from '../../series/interface';
|
|
10
10
|
import type { IChartEvaluateOption, IChartInitOption, IChartLayoutOption, IChartOption, IChartRenderOption, ILayoutParams } from './common';
|
|
11
11
|
import type { IBoundsLike, IPadding } from '@visactor/vutils';
|
|
12
12
|
import type { ICompilable } from '../../compile/interface';
|
|
13
|
-
import type { IRegionQuerier, MaybeArray, Datum, IMarkStateSpec, StringOrNumber, IShowTooltipOption, IDataValues } from '../../typings';
|
|
13
|
+
import type { IRegionQuerier, MaybeArray, Datum, IMarkStateSpec, StringOrNumber, IShowTooltipOption, IDataValues, ILayoutRect } from '../../typings';
|
|
14
14
|
import type { DataView } from '@visactor/vdataset';
|
|
15
15
|
import type { IThemeColorScheme } from '../../theme/color-scheme/interface';
|
|
16
16
|
export type DimensionIndexOption = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IGroupMark, IMark, MarkAnimationSpec, MarkFunctionCallback, Nil, TransformSpec } from '@visactor/vgrammar-core';
|
|
2
2
|
import type { DataView } from '@visactor/vdataset';
|
|
3
3
|
import { GrammarItem } from '../grammar-item';
|
|
4
|
-
import type { Maybe,
|
|
4
|
+
import type { Maybe, StringOrNumber } from '../../typings';
|
|
5
5
|
import type { IMarkProgressiveConfig, IMarkStateStyle, MarkType } from '../../mark/interface';
|
|
6
6
|
import type { IModel } from '../../model/interface';
|
|
7
7
|
import { MarkStateManager } from './mark-state-manager';
|
|
@@ -95,7 +95,6 @@ export declare abstract class CompilableMark extends GrammarItem implements ICom
|
|
|
95
95
|
compileAnimation(): void;
|
|
96
96
|
compileContext(): void;
|
|
97
97
|
compileSignal(): void;
|
|
98
|
-
protected _computeAttribute(key: string, state: StateValueType): (datum: Datum, opt: IAttributeOpt) => any;
|
|
99
98
|
protected compileCommonAttributeCallback(key: string, state: string): MarkFunctionCallback<any>;
|
|
100
99
|
protected compileTransform(): void;
|
|
101
100
|
protected _lookupGrammar(id: string): IMark;
|
|
@@ -13,6 +13,7 @@ import type { ITransformOptions } from '@visactor/vdataset';
|
|
|
13
13
|
import { type IComponentMark } from '../../mark/component';
|
|
14
14
|
export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<string, any> = any> extends BaseComponent<T> implements IAxis {
|
|
15
15
|
static specKey: string;
|
|
16
|
+
specKey: string;
|
|
16
17
|
protected _orient: IPolarOrientType | IOrientType;
|
|
17
18
|
getOrient(): IOrientType | IPolarOrientType;
|
|
18
19
|
protected _scale: IBaseScale;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
2
|
-
import type { IEffect, IModelInitOption
|
|
2
|
+
import type { IEffect, IModelInitOption } from '../../../model/interface';
|
|
3
3
|
import type { ICartesianSeries } from '../../../series/interface';
|
|
4
4
|
import type { IRegion } from '../../../region/interface';
|
|
5
5
|
import type { ICartesianAxisCommonSpec, IAxisHelper, ICartesianAxisCommonTheme } from './interface';
|
|
6
6
|
import type { IOrientType } from '../../../typings/space';
|
|
7
7
|
import type { IBaseScale } from '@visactor/vscale';
|
|
8
|
-
import type {
|
|
9
|
-
import type { IPoint
|
|
8
|
+
import type { StringOrNumber } from '../../../typings/common';
|
|
9
|
+
import type { IPoint } from '../../../typings/coordinate';
|
|
10
|
+
import type { ILayoutRect, ILayoutType } from '../../../typings/layout';
|
|
10
11
|
import type { IComponentOption } from '../../interface';
|
|
11
12
|
import { ComponentTypeEnum } from '../../interface/type';
|
|
12
13
|
import type { IAxis, ITick } from '../interface';
|
|
@@ -21,7 +22,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
21
22
|
protected readonly _defaultBandInnerPadding = 0.1;
|
|
22
23
|
protected readonly _defaultBandOuterPadding = 0.3;
|
|
23
24
|
directionStr?: 'l2r' | 'r2l' | 't2b' | 'b2t';
|
|
24
|
-
layoutType:
|
|
25
|
+
layoutType: ILayoutType;
|
|
25
26
|
layoutZIndex: number;
|
|
26
27
|
layoutLevel: number;
|
|
27
28
|
protected _dataSet: DataSet;
|
|
@@ -32,8 +33,6 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
32
33
|
};
|
|
33
34
|
protected _orient: IOrientType;
|
|
34
35
|
getOrient(): IOrientType;
|
|
35
|
-
get layoutOrient(): IOrientType;
|
|
36
|
-
set layoutOrient(v: IOrientType);
|
|
37
36
|
protected _scales: IBaseScale[];
|
|
38
37
|
getScales(): IBaseScale[];
|
|
39
38
|
protected _theme: ICartesianAxisCommonTheme;
|
|
@@ -63,6 +62,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
63
62
|
constructor(spec: T, options: IComponentOption);
|
|
64
63
|
static createAxis(spec: any, options: IComponentOption, isHorizontal?: boolean): IAxis;
|
|
65
64
|
static createComponent(spec: any, options: IComponentOption): IAxis | IAxis[];
|
|
65
|
+
initLayout(): void;
|
|
66
66
|
setLayout3dBox(box3d: {
|
|
67
67
|
width: number;
|
|
68
68
|
height: number;
|
|
@@ -95,9 +95,12 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
95
95
|
values: any[];
|
|
96
96
|
}[];
|
|
97
97
|
protected updateSeriesScale(): void;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
_transformLayoutPosition: (pos: Partial<IPoint>) => {
|
|
99
|
+
x: number;
|
|
100
|
+
y: number;
|
|
101
|
+
};
|
|
102
|
+
_transformLayoutRect: (result: ILayoutRect) => ILayoutRect;
|
|
103
|
+
getBoundsInRect(rect: ILayoutRect): IBoundsLike;
|
|
101
104
|
updateLayoutAttribute(): void;
|
|
102
105
|
private _getTitleLimit;
|
|
103
106
|
private _getUpdateAttribute;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ILayoutNumber, ILayoutPaddingSpec } from '../../../../typings/layout';
|
|
2
2
|
import type { ITick, IGrid } from '../../interface';
|
|
3
3
|
import type { ICartesianAxisUnit, ICartesianDomainLine, ICartesianLabel, ICartesianTitle } from './common';
|
|
4
4
|
import type { ICartesianAxisCommonSpec } from './spec';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { IBaseScale } from '@visactor/vscale';
|
|
2
|
-
import type { LayoutItem } from '../../../model/layout-item';
|
|
3
2
|
import type { IPolarAxis, IPolarAxisCommonSpec, IPolarAxisCommonTheme } from './interface';
|
|
4
3
|
import type { IComponentOption } from '../../interface';
|
|
5
4
|
import { ComponentTypeEnum } from '../../interface/type';
|
|
6
5
|
import type { IPolarSeries } from '../../../series/interface';
|
|
7
|
-
import type { IPoint, IPolarOrientType, IPolarPoint, StringOrNumber } from '../../../typings';
|
|
6
|
+
import type { IPoint, IPolarOrientType, IPolarPoint, StringOrNumber, ILayoutType } from '../../../typings';
|
|
8
7
|
import type { IEffect } from '../../../model/interface';
|
|
9
8
|
import { AxisComponent } from '../base-axis';
|
|
10
9
|
import type { ITick } from '../interface';
|
|
@@ -15,7 +14,7 @@ export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarA
|
|
|
15
14
|
protected readonly _defaultBandPosition = 0;
|
|
16
15
|
protected readonly _defaultBandInnerPadding = 0;
|
|
17
16
|
protected readonly _defaultBandOuterPadding = 0;
|
|
18
|
-
layoutType:
|
|
17
|
+
layoutType: ILayoutType;
|
|
19
18
|
layoutZIndex: number;
|
|
20
19
|
protected _tick: ITick | undefined;
|
|
21
20
|
protected _center: IPoint | null;
|
|
@@ -37,7 +36,7 @@ export declare abstract class PolarAxis<T extends IPolarAxisCommonSpec = IPolarA
|
|
|
37
36
|
static createComponent(spec: any, options: IComponentOption): IPolarAxis | IPolarAxis[];
|
|
38
37
|
effect: IEffect;
|
|
39
38
|
setAttrFromSpec(): void;
|
|
40
|
-
|
|
39
|
+
_transformLayoutPosition: (pos: Partial<IPoint>) => Partial<IPoint>;
|
|
41
40
|
onLayoutEnd(ctx: any): void;
|
|
42
41
|
onRender(ctx: any): void;
|
|
43
42
|
changeRegions(): void;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { IGraphic, IGroup } from '@visactor/vrender-core';
|
|
2
|
-
import { BaseModel } from '../../model/base-model';
|
|
3
2
|
import type { IRegion } from '../../region/interface';
|
|
4
3
|
import type { IComponent, IComponentOption } from '../interface';
|
|
5
4
|
import type { BaseEventParams } from '../../event/interface';
|
|
6
5
|
import type { IComponentPluginService, IComponentPlugin } from '../../plugin/components/interface';
|
|
6
|
+
import type { IBoundsLike } from '@visactor/vutils';
|
|
7
7
|
import type { IGroupMark } from '@visactor/vgrammar-core';
|
|
8
8
|
import type { IAnimate } from '../../animation/interface';
|
|
9
|
-
import type { Datum } from '../../typings';
|
|
9
|
+
import type { Datum, ILayoutRect } from '../../typings';
|
|
10
10
|
import type { IComponentSpec } from './interface';
|
|
11
|
-
|
|
11
|
+
import { LayoutModel } from '../../model/layout-model';
|
|
12
|
+
export declare abstract class BaseComponent<T extends IComponentSpec = IComponentSpec> extends LayoutModel<T> implements IComponent {
|
|
12
13
|
name: string;
|
|
13
14
|
readonly modelType: string;
|
|
14
15
|
pluginService?: IComponentPluginService;
|
|
@@ -19,6 +20,7 @@ export declare abstract class BaseComponent<T extends IComponentSpec = IComponen
|
|
|
19
20
|
created(): void;
|
|
20
21
|
animate?: IAnimate;
|
|
21
22
|
constructor(spec: T, options: IComponentOption);
|
|
23
|
+
initLayout(): void;
|
|
22
24
|
abstract changeRegions(regions: IRegion[]): void;
|
|
23
25
|
abstract getVRenderComponents(): IGraphic[];
|
|
24
26
|
protected callPlugin(cb: (plugin: IComponentPlugin) => void): void;
|
|
@@ -41,5 +43,11 @@ export declare abstract class BaseComponent<T extends IComponentSpec = IComponen
|
|
|
41
43
|
compile(): void;
|
|
42
44
|
compileMarks(group?: string | IGroupMark): void;
|
|
43
45
|
protected _delegateEvent: (component: IGraphic, event: any, type: string, item?: any, datum?: Datum) => void;
|
|
44
|
-
getGraphicBounds
|
|
46
|
+
getGraphicBounds: () => {
|
|
47
|
+
x1: number;
|
|
48
|
+
y1: number;
|
|
49
|
+
x2: number;
|
|
50
|
+
y2: number;
|
|
51
|
+
};
|
|
52
|
+
getBoundsInRect(rect: ILayoutRect, fullRect: ILayoutRect): IBoundsLike;
|
|
45
53
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LayoutItem } from '../../model/layout-item';
|
|
2
1
|
import { BaseComponent } from '../base/base-component';
|
|
3
2
|
import type { IComponentOption } from '../interface';
|
|
4
3
|
import { ComponentTypeEnum } from '../interface/type';
|
|
@@ -9,13 +8,13 @@ import type { IGraphic } from '@visactor/vrender-core';
|
|
|
9
8
|
import type { ISeries } from '../../series/interface';
|
|
10
9
|
import type { IElement } from '@visactor/vgrammar-core';
|
|
11
10
|
import type { BrushInteractiveRangeAttr, IBrush, IBrushSpec } from './interface';
|
|
11
|
+
import type { ILayoutType } from '../../typings/layout';
|
|
12
12
|
export declare class Brush extends BaseComponent<IBrushSpec> implements IBrush {
|
|
13
|
-
layoutType:
|
|
13
|
+
layoutType: ILayoutType;
|
|
14
14
|
static type: ComponentTypeEnum;
|
|
15
15
|
type: ComponentTypeEnum;
|
|
16
16
|
name: string;
|
|
17
|
-
layoutZIndex:
|
|
18
|
-
static speckey: string;
|
|
17
|
+
layoutZIndex: number;
|
|
19
18
|
protected _brushComponents: BrushComponent[];
|
|
20
19
|
protected _relativeRegions: IRegion[];
|
|
21
20
|
protected _linkedSeries: ISeries[];
|
|
@@ -2,8 +2,7 @@ import type { Dict, IBoundsLike } from '@visactor/vutils';
|
|
|
2
2
|
import type { IModelLayoutOption, IModelRenderOption } from '../../model/interface';
|
|
3
3
|
import type { IRegion } from '../../region/interface';
|
|
4
4
|
import { BaseComponent } from '../base/base-component';
|
|
5
|
-
import type { IPadding, Maybe, StringOrNumber } from '../../typings';
|
|
6
|
-
import type { LayoutItem } from '../../model/layout-item';
|
|
5
|
+
import type { ILayoutType, IPadding, Maybe, StringOrNumber } from '../../typings';
|
|
7
6
|
import type { IComponentOption } from '../interface';
|
|
8
7
|
import type { ICrossHair, CrossHairTrigger, ICartesianCrosshairSpec, IPolarCrosshairSpec, ICrosshairTheme, ICrosshairCategoryFieldSpec } from './interface';
|
|
9
8
|
import type { IAxis } from '../axis/interface';
|
|
@@ -32,9 +31,9 @@ export interface IHair {
|
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
33
|
export declare abstract class BaseCrossHair<T extends ICartesianCrosshairSpec | IPolarCrosshairSpec> extends BaseComponent<T> implements ICrossHair {
|
|
35
|
-
layoutType:
|
|
36
|
-
gridZIndex:
|
|
37
|
-
labelZIndex:
|
|
34
|
+
layoutType: ILayoutType;
|
|
35
|
+
gridZIndex: number;
|
|
36
|
+
labelZIndex: number;
|
|
38
37
|
trigger: CrossHairTrigger;
|
|
39
38
|
enable: boolean;
|
|
40
39
|
showDefault: boolean;
|
|
@@ -7,6 +7,8 @@ import type { IGraphic } from '@visactor/vrender-core';
|
|
|
7
7
|
import type { IAxis } from '../axis/interface';
|
|
8
8
|
import type { StringOrNumber } from '../../typings';
|
|
9
9
|
export declare class CartesianCrossHair<T extends ICartesianCrosshairSpec = ICartesianCrosshairSpec> extends BaseCrossHair<T> {
|
|
10
|
+
static specKey: string;
|
|
11
|
+
specKey: string;
|
|
10
12
|
static type: ComponentTypeEnum;
|
|
11
13
|
type: ComponentTypeEnum;
|
|
12
14
|
name: string;
|
|
@@ -59,7 +59,7 @@ export interface ICrosshairLabelBackgroundSpec {
|
|
|
59
59
|
minWidth?: number;
|
|
60
60
|
maxWidth?: number;
|
|
61
61
|
padding?: IPadding | number | number[];
|
|
62
|
-
style
|
|
62
|
+
style?: Partial<IRectMarkSpec>;
|
|
63
63
|
}
|
|
64
64
|
export interface ICrosshairDataBindSpec {
|
|
65
65
|
bindingAxesIndex?: number[];
|
|
@@ -16,6 +16,8 @@ type IAxisInfo = Map<number, IBound & {
|
|
|
16
16
|
axis: IPolarAxis;
|
|
17
17
|
}>;
|
|
18
18
|
export declare class PolarCrossHair<T extends IPolarCrosshairSpec = IPolarCrosshairSpec> extends BaseCrossHair<T> {
|
|
19
|
+
static specKey: string;
|
|
20
|
+
specKey: string;
|
|
19
21
|
static type: ComponentTypeEnum;
|
|
20
22
|
type: ComponentTypeEnum;
|
|
21
23
|
name: string;
|
|
@@ -3,15 +3,14 @@ import { ComponentTypeEnum } from '../interface/type';
|
|
|
3
3
|
import type { IComponentOption } from '../interface';
|
|
4
4
|
import type { IRegion } from '../../region/interface';
|
|
5
5
|
import type { IModelRenderOption } from '../../model/interface';
|
|
6
|
-
import type {
|
|
7
|
-
import type { EnableMarkType, ICustomMarkGroupSpec, ICustomMarkSpec } from '../../typings';
|
|
6
|
+
import type { EnableMarkType, ICustomMarkGroupSpec, ICustomMarkSpec, ILayoutType } from '../../typings';
|
|
8
7
|
import type { MarkTypeEnum } from '../../mark/interface';
|
|
9
8
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
10
9
|
export declare class CustomMark extends BaseComponent<any> {
|
|
11
10
|
static type: ComponentTypeEnum;
|
|
12
11
|
type: ComponentTypeEnum;
|
|
13
|
-
layoutType:
|
|
14
|
-
layoutZIndex:
|
|
12
|
+
layoutType: ILayoutType;
|
|
13
|
+
layoutZIndex: number;
|
|
15
14
|
layoutLevel: number;
|
|
16
15
|
protected _spec: (ICustomMarkSpec<Exclude<EnableMarkType, MarkTypeEnum.group>> | ICustomMarkGroupSpec)[];
|
|
17
16
|
static createComponent(spec: any, options: IComponentOption): CustomMark[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BaseComponent } from '../base/base-component';
|
|
2
|
-
import type { IEffect, IModelInitOption
|
|
3
|
-
import type { LayoutItem } from '../../model/layout-item';
|
|
2
|
+
import type { IEffect, IModelInitOption } from '../../model/interface';
|
|
4
3
|
import type { IComponent, IComponentOption } from '../interface';
|
|
5
|
-
import type { AdaptiveSpec, IOrientType, StringOrNumber } from '../../typings';
|
|
4
|
+
import type { AdaptiveSpec, ILayoutRect, ILayoutType, IOrientType, StringOrNumber } from '../../typings';
|
|
6
5
|
import type { IBaseScale } from '@visactor/vscale';
|
|
7
6
|
import type { ICartesianBandAxisSpec } from '../axis/cartesian';
|
|
8
7
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
@@ -11,7 +10,7 @@ import type { IDataFilterComponent, IDataFilterComponentSpec, IRoamDragSpec, IRo
|
|
|
11
10
|
import type { BaseEventParams } from '../../event/interface';
|
|
12
11
|
import type { AbstractComponent } from '@visactor/vrender-components';
|
|
13
12
|
export declare abstract class DataFilterBaseComponent<T extends IDataFilterComponentSpec = IDataFilterComponentSpec> extends BaseComponent<AdaptiveSpec<T, 'width' | 'height'>> implements IDataFilterComponent {
|
|
14
|
-
layoutType:
|
|
13
|
+
layoutType: ILayoutType;
|
|
15
14
|
protected _component: AbstractComponent;
|
|
16
15
|
protected _orient: IOrientType;
|
|
17
16
|
protected _isHorizontal: boolean;
|
|
@@ -20,8 +19,6 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
20
19
|
protected _cacheRect?: ILayoutRect;
|
|
21
20
|
protected _cacheVisibility?: boolean;
|
|
22
21
|
get orient(): IOrientType;
|
|
23
|
-
get layoutOrient(): IOrientType;
|
|
24
|
-
set layoutOrient(v: IOrientType);
|
|
25
22
|
protected _stateScale: IBaseScale;
|
|
26
23
|
protected _relatedAxisComponent: IComponent;
|
|
27
24
|
protected _originalStateFields: Record<number, string | number>;
|
|
@@ -68,6 +65,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
68
65
|
get visible(): boolean;
|
|
69
66
|
constructor(spec: T, options: IComponentOption);
|
|
70
67
|
created(): void;
|
|
68
|
+
initLayout(): void;
|
|
71
69
|
protected _setAxisFromSpec(): void;
|
|
72
70
|
protected _setRegionsFromSpec(): void;
|
|
73
71
|
onDataUpdate(): void;
|
|
@@ -96,7 +94,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
96
94
|
protected update(ctx: IComponentOption): void;
|
|
97
95
|
protected resize(ctx: IComponentOption): void;
|
|
98
96
|
protected _parseDomainFromState(startValue: number | string, endValue: number | string): any;
|
|
99
|
-
protected _handleStateChange: (startValue: number, endValue: number) => boolean;
|
|
97
|
+
protected _handleStateChange: (startValue: number, endValue: number, tag?: string) => boolean;
|
|
100
98
|
protected _handleChartZoom: (params: {
|
|
101
99
|
zoomDelta: number;
|
|
102
100
|
zoomX?: number;
|
|
@@ -110,7 +108,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
110
108
|
protected _handleChartMove: (value: number, rate: number) => void;
|
|
111
109
|
protected _initCommonEvent(): void;
|
|
112
110
|
updateLayoutAttribute(): void;
|
|
113
|
-
|
|
111
|
+
getBoundsInRect(rect: ILayoutRect): IBoundsLike;
|
|
114
112
|
hide(): void;
|
|
115
113
|
show(): void;
|
|
116
114
|
protected _getAxisBandSize(axisSpec?: ICartesianBandAxisSpec): {
|
|
@@ -36,7 +36,7 @@ export declare class DataZoom<T extends IDataZoomSpec = IDataZoomSpec> extends D
|
|
|
36
36
|
protected _dataToPositionY: (datum: Datum) => number;
|
|
37
37
|
protected _dataToPositionY2: (datum: Datum) => number;
|
|
38
38
|
protected _createOrUpdateComponent(): void;
|
|
39
|
-
protected _handleChange(start: number, end: number, updateComponent?: boolean): void;
|
|
39
|
+
protected _handleChange(start: number, end: number, updateComponent?: boolean, tag?: string): void;
|
|
40
40
|
protected _handleDataCollectionChange(): void;
|
|
41
41
|
protected _getComponentAttrs(): {
|
|
42
42
|
backgroundStyle: IRectGraphicAttribute;
|
|
@@ -50,6 +50,7 @@ export interface IDataZoomSpec extends IDataZoomStyle, IDataFilterComponentSpec
|
|
|
50
50
|
formatMethod?: (text: string | number) => string | string[];
|
|
51
51
|
};
|
|
52
52
|
brushSelect?: boolean;
|
|
53
|
+
ignoreBandSize?: boolean;
|
|
53
54
|
}
|
|
54
55
|
export type IDataZoomTheme = IComponentSpec & IDataZoomStyle & {
|
|
55
56
|
orient?: IDataZoomSpec['orient'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ILayoutItemSpec } from '../../../
|
|
1
|
+
import type { ILayoutItemSpec } from '../../../layout/interface';
|
|
2
2
|
import type { IPadding } from '../../../typings';
|
|
3
3
|
import type { IRectMarkSpec } from '../../../typings/visual';
|
|
4
4
|
import type { IFilterMode } from '../constant';
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import type { IPoint } from '../../typings/coordinate';
|
|
2
2
|
import { Projection } from './projection';
|
|
3
|
-
import type { IEffect, IModelLayoutOption, IModelRenderOption
|
|
3
|
+
import type { IEffect, IModelLayoutOption, IModelRenderOption } from '../../model/interface';
|
|
4
4
|
import type { IComponentOption } from '../interface';
|
|
5
5
|
import { ComponentTypeEnum } from '../interface/type';
|
|
6
6
|
import { BaseComponent } from '../base/base-component';
|
|
7
7
|
import type { IGeoRegionSpec, IRegion } from '../../region/interface';
|
|
8
8
|
import type { IGeoCoordinate, IGeoCoordinateSpec, IProjectionSpec } from './interface';
|
|
9
|
-
import type { IChartSpec, StringOrNumber } from '../../typings';
|
|
9
|
+
import type { IChartSpec, ILayoutType, StringOrNumber } from '../../typings';
|
|
10
10
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
11
11
|
export declare function projectionName(key: string, id: number): string;
|
|
12
12
|
export declare class GeoCoordinate extends BaseComponent<IGeoRegionSpec> implements IGeoCoordinate {
|
|
13
13
|
static type: ComponentTypeEnum;
|
|
14
14
|
type: ComponentTypeEnum;
|
|
15
15
|
name: string;
|
|
16
|
-
layoutType:
|
|
16
|
+
layoutType: ILayoutType;
|
|
17
|
+
protected layoutZIndex: number;
|
|
17
18
|
_longitudeField?: string;
|
|
18
19
|
get longitudeField(): string;
|
|
19
20
|
_latitudeField?: string;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import type { IComponentOption } from '../interface';
|
|
2
2
|
import { ComponentTypeEnum } from '../interface/type';
|
|
3
|
-
import type { LayoutItem } from '../../model/layout-item';
|
|
4
3
|
import { BaseComponent } from '../base/base-component';
|
|
5
4
|
import type { IRegion } from '../../region/interface';
|
|
6
5
|
import type { IIndicator, IIndicatorSpec, IIndicatorTheme } from './interface';
|
|
7
|
-
import type { Maybe } from '../../typings';
|
|
6
|
+
import type { ILayoutType, Maybe } from '../../typings';
|
|
8
7
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
9
8
|
export declare class Indicator<T extends IIndicatorSpec> extends BaseComponent<T> implements IIndicator {
|
|
10
|
-
static speckey: string;
|
|
11
9
|
static type: ComponentTypeEnum;
|
|
12
10
|
type: ComponentTypeEnum;
|
|
13
11
|
name: string;
|
|
14
|
-
layoutType:
|
|
12
|
+
layoutType: ILayoutType;
|
|
15
13
|
layoutZIndex: number;
|
|
16
14
|
layoutLevel: number;
|
|
17
15
|
private _gap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IPercent } from '../../
|
|
1
|
+
import type { IPercent } from '../../typings/layout';
|
|
2
2
|
import type { ConvertToMarkStyleSpec, ITextMarkSpec } from '../../typings/visual';
|
|
3
3
|
import type { IComponentSpec } from '../base/interface';
|
|
4
4
|
import type { IComponent } from '../interface';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ISeriesFilter } from '../../region/interface';
|
|
2
2
|
import type { IAnimate } from '../../animation/interface';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ILayoutModel, IModelOption } from '../../model/interface';
|
|
4
4
|
import type { IRegion } from '../../region/interface';
|
|
5
5
|
import type { ISeries } from '../../series/interface';
|
|
6
6
|
import type { StringOrNumber } from '../../typings';
|
|
@@ -10,7 +10,6 @@ export interface IComponentOption extends IModelOption {
|
|
|
10
10
|
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
11
11
|
getRegionsInIds: (ids: number[]) => IRegion[];
|
|
12
12
|
getRegionsInUserIdOrIndex: (user_ids?: StringOrNumber[], index?: number[]) => IRegion[];
|
|
13
|
-
defaultSpec?: any;
|
|
14
13
|
getAllSeries: () => ISeries[];
|
|
15
14
|
getSeriesInIndex: (index?: number[]) => ISeries[];
|
|
16
15
|
getSeriesInIds: (ids?: number[]) => ISeries[];
|
|
@@ -20,7 +19,7 @@ export interface IComponentOption extends IModelOption {
|
|
|
20
19
|
getComponentByUserId: (userId: StringOrNumber) => IComponent | undefined;
|
|
21
20
|
getComponentsByKey: (key: string) => IComponent[];
|
|
22
21
|
}
|
|
23
|
-
export interface IComponent extends
|
|
22
|
+
export interface IComponent extends ILayoutModel {
|
|
24
23
|
readonly name: string;
|
|
25
24
|
readonly animate?: IAnimate;
|
|
26
25
|
getRegions: () => IRegion[];
|
|
@@ -31,6 +30,7 @@ export interface IComponent extends IModel, ILayoutItem {
|
|
|
31
30
|
}
|
|
32
31
|
export interface IComponentConstructor {
|
|
33
32
|
type: string;
|
|
33
|
+
specKey?: string;
|
|
34
34
|
createComponent: (spec: any, options: IComponentOption) => IComponent | IComponent[] | undefined;
|
|
35
35
|
new (spec: any, options: IComponentOption): IComponent;
|
|
36
36
|
}
|
|
@@ -3,15 +3,15 @@ import type { IComponentOption } from '../interface';
|
|
|
3
3
|
import { ComponentTypeEnum } from '../interface/type';
|
|
4
4
|
import type { IRegion } from '../../region/interface';
|
|
5
5
|
import type { IModelRenderOption } from '../../model/interface';
|
|
6
|
-
import type { LayoutItem } from '../../model/layout-item';
|
|
7
6
|
import type { ILabelSpec } from './interface';
|
|
8
7
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
8
|
+
import type { ILayoutType } from '../../typings/layout';
|
|
9
9
|
export declare abstract class BaseLabelComponent<T extends ILabelSpec = ILabelSpec> extends BaseComponent<T> {
|
|
10
10
|
static type: ComponentTypeEnum;
|
|
11
11
|
type: ComponentTypeEnum;
|
|
12
12
|
name: string;
|
|
13
|
-
layoutType:
|
|
14
|
-
layoutZIndex:
|
|
13
|
+
layoutType: ILayoutType;
|
|
14
|
+
layoutZIndex: number;
|
|
15
15
|
constructor(spec: T, options: IComponentOption);
|
|
16
16
|
protected _interactiveConfig(labelSpec: ILabelSpec): {
|
|
17
17
|
hover: boolean;
|
|
@@ -26,7 +26,6 @@ export declare abstract class BaseLabelComponent<T extends ILabelSpec = ILabelSp
|
|
|
26
26
|
hover: boolean;
|
|
27
27
|
select: boolean;
|
|
28
28
|
};
|
|
29
|
-
setLayoutStartPosition(): void;
|
|
30
29
|
_compareSpec(): {
|
|
31
30
|
change: boolean;
|
|
32
31
|
reMake: boolean;
|
|
@@ -2,7 +2,6 @@ import type { IComponentOption } from '../interface';
|
|
|
2
2
|
import { ComponentTypeEnum } from '../interface/type';
|
|
3
3
|
import type { IRegion } from '../../region/interface';
|
|
4
4
|
import type { IModelInitOption } from '../../model/interface';
|
|
5
|
-
import type { LayoutItem } from '../../model/layout-item';
|
|
6
5
|
import type { ISeries } from '../../series/interface';
|
|
7
6
|
import { type ILabel, type IMark } from '@visactor/vgrammar-core';
|
|
8
7
|
import { type IComponentMark } from '../../mark/component';
|
|
@@ -11,6 +10,7 @@ import type { IGroup } from '@visactor/vrender-core';
|
|
|
11
10
|
import type { ILabelSpec } from './interface';
|
|
12
11
|
import { type ILabelMark } from '../../mark/label';
|
|
13
12
|
import type { ICompilableMark } from '../../compile/mark';
|
|
13
|
+
import type { ILayoutType } from '../../typings/layout';
|
|
14
14
|
export interface ILabelInfo {
|
|
15
15
|
baseMark: ICompilableMark;
|
|
16
16
|
labelMark: ILabelMark;
|
|
@@ -25,8 +25,8 @@ export declare class Label<T extends ILabelSpec = ILabelSpec> extends BaseLabelC
|
|
|
25
25
|
static type: ComponentTypeEnum;
|
|
26
26
|
type: ComponentTypeEnum;
|
|
27
27
|
name: string;
|
|
28
|
-
layoutType:
|
|
29
|
-
layoutZIndex:
|
|
28
|
+
layoutType: ILayoutType;
|
|
29
|
+
layoutZIndex: number;
|
|
30
30
|
protected _labelInfoMap: Map<IRegion, ILabelInfo[]>;
|
|
31
31
|
protected _labelComponentMap: Map<IComponentMark, ILabelInfo | ILabelInfo[]>;
|
|
32
32
|
protected _layoutRule: 'series' | 'region';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { IComponentOption } from '../interface';
|
|
2
2
|
import { ComponentTypeEnum } from '../interface/type';
|
|
3
|
-
import type { LayoutItem } from '../../model/layout-item';
|
|
4
3
|
import type { MarkType } from '../../mark/interface';
|
|
5
4
|
import type { ISeries } from '../../series/interface';
|
|
6
5
|
import { BaseLabelComponent } from './base-label';
|
|
7
6
|
import type { ITotalLabelSpec, ITotalLabelTheme } from './interface';
|
|
8
7
|
import type { IModelInitOption } from '../../model/interface';
|
|
8
|
+
import type { ILayoutType } from '../../typings';
|
|
9
9
|
export declare class TotalLabel extends BaseLabelComponent {
|
|
10
10
|
static type: ComponentTypeEnum;
|
|
11
11
|
type: ComponentTypeEnum;
|
|
12
12
|
name: string;
|
|
13
|
-
layoutType:
|
|
14
|
-
layoutZIndex:
|
|
13
|
+
layoutType: ILayoutType;
|
|
14
|
+
layoutZIndex: number;
|
|
15
15
|
private _textMark?;
|
|
16
16
|
private _baseMark?;
|
|
17
17
|
series: ISeries;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { DataView } from '@visactor/vdataset';
|
|
2
2
|
import type { IRegion } from '../../region/interface';
|
|
3
3
|
import { BaseComponent } from '../base/base-component';
|
|
4
|
-
import type { IEffect
|
|
5
|
-
import type {
|
|
6
|
-
import type { IOrientType, IPoint, StringOrNumber } from '../../typings';
|
|
4
|
+
import type { IEffect } from '../../model/interface';
|
|
5
|
+
import type { ILayoutRect, ILayoutType, IOrientType, IPoint, StringOrNumber } from '../../typings';
|
|
7
6
|
import { CompilableData } from '../../compile/data/compilable-data';
|
|
8
7
|
import type { ILegend, ILegendCommonSpec } from './interface';
|
|
9
8
|
import type { IGraphic, IGroup } from '@visactor/vrender-core';
|
|
10
9
|
export declare abstract class BaseLegend<T extends ILegendCommonSpec> extends BaseComponent<T> implements ILegend {
|
|
11
|
-
layoutType:
|
|
12
|
-
layoutZIndex:
|
|
10
|
+
layoutType: ILayoutType;
|
|
11
|
+
layoutZIndex: number;
|
|
13
12
|
layoutLevel: number;
|
|
14
13
|
protected _orient: IOrientType;
|
|
15
14
|
get orient(): IOrientType;
|
|
@@ -17,8 +16,6 @@ export declare abstract class BaseLegend<T extends ILegendCommonSpec> extends Ba
|
|
|
17
16
|
get visible(): boolean;
|
|
18
17
|
protected _position: 'start' | 'middle' | 'end';
|
|
19
18
|
get position(): "middle" | "start" | "end";
|
|
20
|
-
get layoutOrient(): IOrientType;
|
|
21
|
-
set layoutOrient(v: IOrientType);
|
|
22
19
|
protected _legendData: CompilableData;
|
|
23
20
|
getLegendData(): any;
|
|
24
21
|
private _preSelectedData;
|
|
@@ -50,8 +47,8 @@ export declare abstract class BaseLegend<T extends ILegendCommonSpec> extends Ba
|
|
|
50
47
|
private _bindLegendDataChange;
|
|
51
48
|
protected initData(): void;
|
|
52
49
|
setSelectedData(selectedData: StringOrNumber[]): void;
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
afterSetLayoutStartPoint(pos: IPoint): void;
|
|
51
|
+
getBoundsInRect(rect: ILayoutRect, fullSpace: ILayoutRect): {
|
|
55
52
|
x1: number;
|
|
56
53
|
y1: number;
|
|
57
54
|
x2: number;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { DataView } from '@visactor/vdataset';
|
|
2
|
-
import type { IModelInitOption
|
|
2
|
+
import type { IModelInitOption } from '../../../model/interface';
|
|
3
3
|
import type { IComponentOption } from '../../interface';
|
|
4
4
|
import { ComponentTypeEnum } from '../../interface/type';
|
|
5
5
|
import type { ILegend } from '../interface';
|
|
6
6
|
import type { IColorLegendSpec, IColorLegendTheme, ISizeLegendSpec } from './interface';
|
|
7
7
|
import { BaseLegend } from '../base-legend';
|
|
8
|
+
import type { ILayoutRect } from '../../../typings/layout';
|
|
8
9
|
export declare class ContinuousLegend<T extends IColorLegendSpec | ISizeLegendSpec = IColorLegendSpec | ISizeLegendSpec> extends BaseLegend<T> {
|
|
10
|
+
static specKey: string;
|
|
11
|
+
specKey: string;
|
|
9
12
|
static type: ComponentTypeEnum;
|
|
10
13
|
type: ComponentTypeEnum;
|
|
11
14
|
name: string;
|