@visactor/vchart-types 1.8.10-alpha.0 → 1.9.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/chart/base/base-chart-transformer.d.ts +1 -0
- package/types/chart/base/base-chart.d.ts +1 -0
- package/types/chart/base/util.d.ts +7 -0
- package/types/chart/index.d.ts +5 -3
- package/types/chart/interface/chart.d.ts +1 -0
- package/types/chart/interface/common.d.ts +1 -4
- package/types/chart/interface/type.d.ts +2 -1
- package/types/chart/liquid/index.d.ts +2 -0
- package/types/chart/liquid/interface.d.ts +7 -0
- package/types/chart/liquid/liquid-transformer.d.ts +6 -0
- package/types/chart/liquid/liquid.d.ts +13 -0
- package/types/compile/compiler.d.ts +16 -5
- package/types/compile/data/compilable-data.d.ts +1 -1
- package/types/compile/data/interface.d.ts +1 -1
- package/types/compile/mark/compilable-mark.d.ts +4 -2
- package/types/compile/mark/interface.d.ts +3 -2
- package/types/compile/mark/mark-state-manager.d.ts +2 -2
- package/types/compile/signal/state-manager.d.ts +1 -1
- package/types/component/axis/base-axis.d.ts +8 -9
- package/types/component/axis/cartesian/axis.d.ts +5 -11
- package/types/component/axis/cartesian/band-axis.d.ts +1 -0
- package/types/component/axis/cartesian/interface/common.d.ts +3 -5
- package/types/component/axis/cartesian/interface/spec.d.ts +4 -19
- package/types/component/axis/interface/common.d.ts +10 -0
- package/types/component/axis/interface/spec.d.ts +4 -7
- package/types/component/axis/mixin/band-axis-mixin.d.ts +13 -1
- package/types/component/axis/polar/axis.d.ts +7 -3
- package/types/component/axis/polar/band-axis.d.ts +1 -0
- package/types/component/axis/util.d.ts +6 -0
- package/types/component/base/base-component.d.ts +0 -5
- package/types/component/crosshair/base.d.ts +10 -2
- package/types/component/crosshair/cartesian.d.ts +5 -0
- package/types/component/crosshair/config.d.ts +1 -2
- package/types/component/crosshair/interface/spec.d.ts +2 -1
- package/types/component/indicator/indicator.d.ts +2 -0
- package/types/component/indicator/interface.d.ts +1 -0
- package/types/component/interface/common.d.ts +1 -0
- package/types/component/label/base-label.d.ts +0 -3
- package/types/component/label/interface.d.ts +1 -0
- package/types/component/legend/base-legend.d.ts +1 -1
- package/types/component/legend/util.d.ts +1 -1
- package/types/core/factory.d.ts +5 -0
- package/types/core/vchart.d.ts +7 -3
- package/types/event/events/dimension/util/cartesian.d.ts +1 -1
- package/types/interaction/interface.d.ts +24 -2
- package/types/layout/interface.d.ts +3 -0
- package/types/layout/layout-item.d.ts +2 -1
- package/types/mark/interface/type.d.ts +1 -0
- package/types/mark/liquid.d.ts +13 -0
- package/types/model/base-model.d.ts +1 -2
- package/types/model/interface.d.ts +3 -2
- package/types/plugin/components/axis-sync/axis-sync.d.ts +13 -0
- package/types/plugin/components/axis-sync/index.d.ts +1 -0
- package/types/plugin/components/axis-sync/tick-align-transform.d.ts +7 -0
- package/types/plugin/components/axis-sync/zero-align-transform.d.ts +15 -0
- package/types/plugin/components/index.d.ts +1 -1
- package/types/plugin/components/register.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +65 -0
- package/types/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.d.ts +22 -0
- package/types/plugin/components/tooltip-handler/canvas/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/constants.d.ts +17 -0
- package/types/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +28 -0
- package/types/plugin/components/tooltip-handler/dom/index.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/dom/interface.d.ts +57 -0
- package/types/plugin/components/tooltip-handler/dom/model/base-tooltip-model.d.ts +25 -0
- package/types/plugin/components/tooltip-handler/dom/model/content-column-model.d.ts +23 -0
- package/types/plugin/components/tooltip-handler/dom/model/content-model.d.ts +15 -0
- package/types/plugin/components/tooltip-handler/dom/model/interface.d.ts +9 -0
- package/types/plugin/components/tooltip-handler/dom/model/shape-model.d.ts +23 -0
- package/types/plugin/components/tooltip-handler/dom/model/style-constants.d.ts +8 -0
- package/types/plugin/components/tooltip-handler/dom/model/text-model.d.ts +5 -0
- package/types/plugin/components/tooltip-handler/dom/model/title-model.d.ts +15 -0
- package/types/plugin/components/tooltip-handler/dom/model/tooltip-model.d.ts +21 -0
- package/types/plugin/components/tooltip-handler/dom/util.d.ts +6 -0
- package/types/plugin/components/tooltip-handler/index.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/interface/common.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/interface/index.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/interface/style.d.ts +8 -0
- package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +8 -0
- package/types/plugin/components/tooltip-handler/utils/common.d.ts +19 -0
- package/types/plugin/components/tooltip-handler/utils/compose.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/utils/get-spec.d.ts +5 -0
- package/types/plugin/components/tooltip-handler/utils/index.d.ts +6 -0
- package/types/plugin/components/tooltip-handler/utils/pattern.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +7 -0
- package/types/region/interface.d.ts +0 -3
- package/types/series/bar/bar.d.ts +12 -3
- package/types/series/bar/interface.d.ts +5 -2
- package/types/series/base/base-series.d.ts +30 -5
- package/types/series/cartesian/cartesian.d.ts +6 -0
- package/types/series/gauge/gauge-pointer.d.ts +1 -0
- package/types/series/heatmap/heatmap.d.ts +1 -0
- package/types/series/interface/common.d.ts +1 -1
- package/types/series/interface/series.d.ts +0 -2
- package/types/series/interface/theme.d.ts +2 -0
- package/types/series/interface/type.d.ts +6 -2
- package/types/series/link/link.d.ts +1 -0
- package/types/series/liquid/animation.d.ts +14 -0
- package/types/series/liquid/constant.d.ts +2 -0
- package/types/series/liquid/interface.d.ts +35 -0
- package/types/series/liquid/liquid.d.ts +50 -0
- package/types/series/liquid/tooltip-helper.d.ts +9 -0
- package/types/series/liquid/util.d.ts +2 -0
- package/types/series/mixin/line-mixin.d.ts +0 -2
- package/types/series/pie/pie.d.ts +1 -0
- package/types/series/progress/circular/circular.d.ts +1 -0
- package/types/series/progress/linear/linear.d.ts +1 -0
- package/types/series/word-cloud/base.d.ts +5 -5
- package/types/theme/builtin/common/series/liquid.d.ts +2 -0
- package/types/typings/layout.d.ts +1 -0
- package/types/typings/spec/common.d.ts +3 -2
- package/types/typings/tooltip/line.d.ts +4 -0
- package/types/typings/visual.d.ts +6 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ISeriesOption } from '../interface/common';
|
|
2
|
-
import type { ITrigger } from '../../interaction/interface';
|
|
3
2
|
import type { ISeries } from '../interface/series';
|
|
4
3
|
import type { IMark, IMarkProgressiveConfig } from '../../mark/interface';
|
|
5
4
|
import type { ILineMark } from '../../mark/line';
|
|
@@ -28,7 +27,6 @@ export interface LineLikeSeriesMixin extends ISeries {
|
|
|
28
27
|
_option: ISeriesOption;
|
|
29
28
|
_seriesField: string;
|
|
30
29
|
_theme: Maybe<ILineLikeSeriesTheme>;
|
|
31
|
-
_trigger: ITrigger;
|
|
32
30
|
_tooltipHelper: ISeriesTooltipHelper;
|
|
33
31
|
_invalidType: IInvalidType;
|
|
34
32
|
_region: IRegion;
|
|
@@ -35,6 +35,7 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
|
|
|
35
35
|
private startAngleScale;
|
|
36
36
|
private endAngleScale;
|
|
37
37
|
initMarkStyle(): void;
|
|
38
|
+
initInteraction(): void;
|
|
38
39
|
protected initTooltip(): void;
|
|
39
40
|
initMarkStyleWithSpec(mark?: IMark, spec?: any, key?: string): void;
|
|
40
41
|
initLabelMarkStyle(textMark: ITextMark): void;
|
|
@@ -16,6 +16,7 @@ export declare class CircularProgressSeries<T extends ICircularProgressSeriesSpe
|
|
|
16
16
|
initMarkStyle(): void;
|
|
17
17
|
private _initProgressMark;
|
|
18
18
|
private _initProgressMarkStyle;
|
|
19
|
+
initInteraction(): void;
|
|
19
20
|
protected initTooltip(): void;
|
|
20
21
|
private _initTrackMark;
|
|
21
22
|
private _initTrackMarkStyle;
|
|
@@ -18,6 +18,7 @@ export declare class LinearProgressSeries<T extends ILinearProgressSeriesSpec =
|
|
|
18
18
|
private _initTrackMarkStyle;
|
|
19
19
|
private _initProgressGroupMark;
|
|
20
20
|
private _initProgressGroupMarkStyle;
|
|
21
|
+
initInteraction(): void;
|
|
21
22
|
initAnimation(): void;
|
|
22
23
|
protected initTooltip(): void;
|
|
23
24
|
getActiveMarks(): IMark[];
|
|
@@ -34,18 +34,17 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
34
34
|
protected _wordCloudShapeConfig?: WordCloudShapeConfigType;
|
|
35
35
|
protected _padding?: IPadding;
|
|
36
36
|
protected _defaultFontFamily: string;
|
|
37
|
+
protected _keyWordColorCallback: (datum: Datum) => string;
|
|
38
|
+
protected _fillingColorCallback: (datum: Datum) => string;
|
|
37
39
|
setAttrFromSpec(): void;
|
|
38
40
|
protected _wordMark: ITextMark;
|
|
39
|
-
protected _fillingWordMark: ITextMark;
|
|
40
41
|
initMark(): void;
|
|
41
42
|
initMarkStyle(): void;
|
|
42
43
|
protected initTooltip(): void;
|
|
43
44
|
initAnimation(): void;
|
|
44
45
|
protected getWordOrdinalColorScale(field: string, isFillingWord: boolean): any;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
field: string;
|
|
48
|
-
};
|
|
46
|
+
protected initColorCallback(field: string, isFillingWord: boolean): (datum: Datum) => any;
|
|
47
|
+
getWordColor: (datum: Datum) => string;
|
|
49
48
|
compile(): void;
|
|
50
49
|
protected _wordCloudTransformOption(): Object;
|
|
51
50
|
protected _wordCloudShapeTransformOption(): Object;
|
|
@@ -63,4 +62,5 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
63
62
|
getStackValueField(): string;
|
|
64
63
|
onLayoutEnd(ctx: any): void;
|
|
65
64
|
getActiveMarks(): IMark[];
|
|
65
|
+
reInit(): void;
|
|
66
66
|
}
|
|
@@ -3,7 +3,7 @@ import type { LayoutCallBack } from '../../layout/interface';
|
|
|
3
3
|
import type { IElement, srIOption3DType } from '@visactor/vgrammar-core';
|
|
4
4
|
import type { DataSet, DataView, ISimplifyOptions, IFieldsOptions, IFilterOptions, IFoldOptions, IDsvParserOptions } from '@visactor/vdataset';
|
|
5
5
|
import type { IRegionSpec } from '../../region/interface';
|
|
6
|
-
import type { IHoverSpec, ISelectSpec,
|
|
6
|
+
import type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interaction/interface';
|
|
7
7
|
import type { IRenderOption } from '../../compile/interface';
|
|
8
8
|
import type { ITooltipSpec } from '../../component/tooltip/interface';
|
|
9
9
|
import type { ILayoutSpec } from '../../layout/interface';
|
|
@@ -136,7 +136,7 @@ export interface IHierarchyDataValues extends Omit<IDataValues, 'values'> {
|
|
|
136
136
|
values: IHierarchyNodeData;
|
|
137
137
|
}
|
|
138
138
|
export type IHierarchyData = DataView | IHierarchyDataValues;
|
|
139
|
-
export interface ISeriesSpec extends
|
|
139
|
+
export interface ISeriesSpec extends IInteractionSpec {
|
|
140
140
|
type: SeriesType;
|
|
141
141
|
name?: string;
|
|
142
142
|
id?: StringOrNumber;
|
|
@@ -174,6 +174,7 @@ export type IMarkSpec<T extends ICommonSpec = ICommonSpec> = {
|
|
|
174
174
|
visible?: boolean;
|
|
175
175
|
style?: ConvertToMarkStyleSpec<T>;
|
|
176
176
|
state?: Record<StateValue, IMarkStateSpec<T> | IMarkStateStyleSpec<T>>;
|
|
177
|
+
stateSort?: (stateA: string, stateB: string) => number;
|
|
177
178
|
support3d?: boolean;
|
|
178
179
|
customShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;
|
|
179
180
|
} & IMarkProgressiveConfig;
|
|
@@ -8,6 +8,10 @@ export interface IToolTipLinePattern extends ITooltipShapePattern, ITooltipLabel
|
|
|
8
8
|
visible?: TooltipContentProperty<boolean>;
|
|
9
9
|
isKeyAdaptive?: TooltipContentProperty<boolean>;
|
|
10
10
|
spaceRow?: TooltipContentProperty<number>;
|
|
11
|
+
keyTimeFormat?: string;
|
|
12
|
+
keyTimeFormatMode?: 'utc' | 'local';
|
|
13
|
+
valueTimeFormat?: string;
|
|
14
|
+
valueTimeFormatMode?: 'utc' | 'local';
|
|
11
15
|
}
|
|
12
16
|
export interface IToolTipLineActual extends ITooltipShapeActual, ITooltipLabelActual {
|
|
13
17
|
key?: string;
|
|
@@ -164,6 +164,12 @@ export interface IRippleMarkSpec extends ICommonSpec {
|
|
|
164
164
|
ripple?: number;
|
|
165
165
|
size?: number;
|
|
166
166
|
}
|
|
167
|
+
export interface ILiquidMarkSpec extends ICommonSpec {
|
|
168
|
+
wave?: number;
|
|
169
|
+
}
|
|
170
|
+
export interface ILiquidOutlineSpec extends ISymbolMarkSpec {
|
|
171
|
+
lineWidth: number;
|
|
172
|
+
}
|
|
167
173
|
export interface IOutlierMarkSpec {
|
|
168
174
|
fill?: string;
|
|
169
175
|
size?: number;
|