@visactor/vchart-types 1.12.6 → 1.12.8
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.d.ts +1 -0
- package/types/chart/chart-meta/data.d.ts +1 -2
- package/types/chart/gauge/interface.d.ts +1 -1
- package/types/chart/treemap/interface.d.ts +1 -1
- package/types/chart/venn/interface.d.ts +2 -2
- package/types/component/axis/cartesian/interface/common.d.ts +1 -0
- package/types/component/interface/index.d.ts +0 -1
- package/types/component/title/interface/spec.d.ts +3 -3
- package/types/component/tooltip/constant.d.ts +5 -4
- package/types/component/tooltip/interface/common.d.ts +1 -1
- package/types/component/tooltip/interface/spec.d.ts +8 -0
- package/types/component/tooltip/interface/theme.d.ts +2 -2
- package/types/component/tooltip/processor/base.d.ts +3 -5
- package/types/component/tooltip/tooltip.d.ts +9 -4
- package/types/component/tooltip/utils/common.d.ts +6 -4
- package/types/component/tooltip/utils/get-spec.d.ts +4 -4
- package/types/component/tooltip/utils/get-value.d.ts +1 -2
- package/types/component/tooltip/utils/index.d.ts +0 -1
- package/types/data/initialize.d.ts +1 -2
- package/types/data/transforms/pie.d.ts +3 -0
- package/types/model/interface.d.ts +14 -0
- package/types/plugin/chart/media-query/media-query.d.ts +1 -0
- package/types/plugin/chart/plugin-service.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/base.d.ts +1 -13
- package/types/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +0 -1
- package/types/plugin/components/tooltip-handler/interface/style.d.ts +1 -2
- package/types/plugin/components/tooltip-handler/utils/position.d.ts +3 -5
- package/types/region/interface.d.ts +3 -1
- package/types/series/base/tooltip-helper.d.ts +30 -6
- package/types/series/box-plot/tooltip-helper.d.ts +2 -2
- package/types/series/cartesian/cartesian.d.ts +1 -1
- package/types/series/dot/tooltip-helper.d.ts +8 -2
- package/types/series/funnel/funnel.d.ts +1 -0
- package/types/series/funnel/interface.d.ts +3 -1
- package/types/series/gauge/pointer-tooltip-helper.d.ts +2 -1
- package/types/series/heatmap/tooltip-helper.d.ts +2 -3
- package/types/series/interface/tooltip-helper.d.ts +5 -4
- package/types/series/link/tooltip-helper.d.ts +5 -2
- package/types/series/liquid/tooltip-helper.d.ts +4 -5
- package/types/series/progress/linear/tooltip-helper.d.ts +2 -3
- package/types/series/range-area/tooltip-helper.d.ts +1 -3
- package/types/series/range-column/tooltip-helper.d.ts +1 -2
- package/types/series/sankey/sankey.d.ts +1 -1
- package/types/series/sankey/tooltip-helper.d.ts +3 -3
- package/types/typings/spec/common.d.ts +3 -3
- package/types/typings/tooltip/position.d.ts +1 -0
- package/types/typings/tooltip/shape.d.ts +0 -1
- package/types/typings/tooltip/tooltip.d.ts +7 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
2
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
-
import type { Datum
|
|
3
|
+
import type { Datum } from '../../typings';
|
|
4
4
|
export declare class LiquidSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
getLiquidFillColor: (datum: Datum) => any;
|
|
5
|
+
markTooltipKeyCallback: (datum: any) => string;
|
|
6
|
+
markTooltipValueCallback: (datum: any) => any;
|
|
7
|
+
shapeStrokeCallback: (datum: Datum) => any;
|
|
9
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseSeriesTooltipHelper } from '../../base/tooltip-helper';
|
|
2
2
|
import type { ISeriesTooltipHelper } from '../../interface';
|
|
3
|
-
import type {
|
|
4
|
-
import type { IDimensionInfo } from '../../../event/events/dimension/interface';
|
|
3
|
+
import type { TooltipActiveType } from '../../../typings';
|
|
5
4
|
export declare class LinearProgressSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
6
|
-
|
|
5
|
+
protected enableByType(activeType: TooltipActiveType): boolean;
|
|
7
6
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
2
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
-
import type { ITooltipPattern, TooltipActiveType } from '../../typings';
|
|
4
|
-
import type { IDimensionInfo } from '../../event/events/dimension/interface';
|
|
5
3
|
export declare class RangeAreaSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
6
|
-
|
|
4
|
+
protected _getMeasureData: (datum: any) => string;
|
|
7
5
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
2
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
-
import type { ITooltipPattern, TooltipActiveType } from '../../typings';
|
|
4
3
|
export declare class RangeColumnSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
5
|
-
|
|
4
|
+
protected _getMeasureData: (datum: any) => string;
|
|
6
5
|
}
|
|
@@ -27,7 +27,7 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
|
|
|
27
27
|
private _colorScale;
|
|
28
28
|
private _nodeList;
|
|
29
29
|
private _needClear;
|
|
30
|
-
get direction(): "
|
|
30
|
+
get direction(): "horizontal" | "vertical";
|
|
31
31
|
getCategoryField(): string;
|
|
32
32
|
setCategoryField(f: string): string;
|
|
33
33
|
protected _valueField: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ISeriesTooltipHelper } from '../interface';
|
|
2
2
|
import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
|
|
3
|
-
import type {
|
|
4
|
-
import type { IDimensionInfo } from '../../event/events/dimension/interface';
|
|
3
|
+
import type { Datum } from '@visactor/vgrammar-core';
|
|
5
4
|
export declare class SankeySeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
|
|
6
|
-
|
|
5
|
+
protected _getDimensionData: (datum: any) => any;
|
|
6
|
+
markTooltipValueCallback: (datum: Datum) => string | undefined;
|
|
7
7
|
}
|
|
@@ -6,7 +6,7 @@ import type { DataSet, DataView, ISimplifyOptions, IFieldsOptions, IFilterOption
|
|
|
6
6
|
import type { RegionSpec } from '../../region/interface';
|
|
7
7
|
import type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interaction/interface';
|
|
8
8
|
import type { IRenderOption } from '../../compile/interface';
|
|
9
|
-
import type { ITooltipSpec } from '../../component/tooltip/interface';
|
|
9
|
+
import type { ISeriesTooltipSpec, ITooltipSpec } from '../../component/tooltip/interface';
|
|
10
10
|
import type { ILayoutSpec } from '../../layout/interface';
|
|
11
11
|
import type { ConvertToMarkStyleSpec, IArc3dMarkSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IPyramid3dMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
|
|
12
12
|
import type { StateValue } from '../../compile/mark';
|
|
@@ -160,14 +160,14 @@ export interface ISeriesSpec extends IInteractionSpec {
|
|
|
160
160
|
percent?: boolean;
|
|
161
161
|
stackOffsetSilhouette?: boolean;
|
|
162
162
|
invalidType?: IInvalidType;
|
|
163
|
-
tooltip?:
|
|
163
|
+
tooltip?: ISeriesTooltipSpec;
|
|
164
164
|
animation?: boolean;
|
|
165
165
|
animationThreshold?: number;
|
|
166
166
|
support3d?: boolean;
|
|
167
167
|
morph?: IMorphSeriesSpec;
|
|
168
168
|
extensionMark?: (IExtensionMarkSpec<Exclude<EnableMarkType, 'group'>> | IExtensionGroupMarkSpec)[];
|
|
169
169
|
}
|
|
170
|
-
export type IChartExtendsSeriesSpec<T extends ISeriesSpec> = Omit<T, 'data' | 'morph' | 'stackValue'>;
|
|
170
|
+
export type IChartExtendsSeriesSpec<T extends ISeriesSpec> = Omit<T, 'data' | 'morph' | 'stackValue' | 'tooltip'>;
|
|
171
171
|
export type AdaptiveSpec<T, K extends keyof any> = {
|
|
172
172
|
[key in Exclude<keyof T, K>]: T[key];
|
|
173
173
|
} & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ITooltipHandlerSpec } from '../../component/tooltip/interface/spec';
|
|
1
2
|
import type { MaybeArray } from '../common';
|
|
2
3
|
import type { TooltipPatternProperty, TooltipUpdateCallback } from './common';
|
|
3
4
|
import type { TooltipActiveType, TooltipData } from './handler';
|
|
@@ -28,4 +29,10 @@ export interface ITooltipActual {
|
|
|
28
29
|
activeType?: TooltipActiveType;
|
|
29
30
|
position?: ITooltipPositionActual;
|
|
30
31
|
data?: TooltipData;
|
|
32
|
+
handler?: Partial<ITooltipHandlerSpec>;
|
|
33
|
+
maxLineCount?: number;
|
|
34
|
+
updateTitle?: TooltipUpdateCallback<ITooltipLineActual>;
|
|
35
|
+
updateContent?: TooltipUpdateCallback<ITooltipLineActual[]>;
|
|
36
|
+
updatePosition?: TooltipUpdateCallback<ITooltipPositionActual>;
|
|
37
|
+
othersLine?: ITooltipLineActual;
|
|
31
38
|
}
|