@visactor/vchart-types 1.9.0-alpha.1 → 1.9.0-alpha.3
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/interface/type.d.ts +1 -1
- package/types/compile/interface/compiler.d.ts +2 -0
- package/types/compile/mark/interface.d.ts +0 -9
- package/types/component/axis/cartesian/axis.d.ts +8 -1
- package/types/component/axis/cartesian/interface/spec.d.ts +19 -3
- package/types/component/crosshair/config.d.ts +1 -1
- package/types/component/data-zoom/constant.d.ts +1 -1
- package/types/component/marker/base-marker.d.ts +5 -1
- package/types/component/tooltip/interface/theme.d.ts +1 -0
- package/types/component/tooltip/tooltip.d.ts +2 -1
- package/types/data/transforms/marker-filter.d.ts +5 -0
- package/types/interaction/drill/drillable.d.ts +1 -1
- package/types/interaction/zoom/zoomable.d.ts +1 -1
- package/types/layout/interface.d.ts +0 -1
- package/types/mark/interface/type.d.ts +1 -1
- package/types/plugin/components/tooltip-handler/base.d.ts +3 -2
- package/types/plugin/components/tooltip-handler/dom/constant.d.ts +1 -0
- package/types/plugin/components/tooltip-handler/dom/model/content-model.d.ts +2 -1
- package/types/plugin/components/tooltip-handler/dom/model/interface.d.ts +3 -2
- package/types/plugin/components/tooltip-handler/dom/model/style-constants.d.ts +0 -1
- package/types/plugin/components/tooltip-handler/dom/model/tooltip-model.d.ts +1 -1
- package/types/plugin/components/tooltip-handler/dom/utils/common.d.ts +3 -0
- package/types/plugin/components/tooltip-handler/dom/utils/index.d.ts +2 -0
- package/types/plugin/components/tooltip-handler/dom/utils/style.d.ts +4 -0
- package/types/plugin/components/tooltip-handler/interface/style.d.ts +5 -0
- package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +3 -3
- package/types/plugin/components/tooltip-handler/utils/common.d.ts +3 -2
- package/types/series/base/base-series.d.ts +3 -2
- package/types/series/base/tooltip-helper.d.ts +3 -1
- package/types/series/interface/common.d.ts +1 -0
- package/types/series/interface/type.d.ts +1 -2
- package/types/series/range-column/interface.d.ts +2 -2
- package/types/series/word-cloud/interface.d.ts +2 -11
- package/types/typings/shape.d.ts +0 -21
- package/types/typings/space.d.ts +1 -1
- package/types/typings/spec/common.d.ts +2 -0
- package/types/typings/tooltip/position.d.ts +2 -2
- package/types/plugin/components/tooltip-handler/dom/util.d.ts +0 -6
|
@@ -34,6 +34,8 @@ export interface IRenderOption {
|
|
|
34
34
|
pluginList?: string[];
|
|
35
35
|
optimize?: IOptimizeType;
|
|
36
36
|
enableHtmlAttribute?: boolean;
|
|
37
|
+
supportsTouchEvents?: boolean;
|
|
38
|
+
supportsPointerEvents?: boolean;
|
|
37
39
|
}
|
|
38
40
|
export type CompilerListenerParameters = {
|
|
39
41
|
type: EventType;
|
|
@@ -132,15 +132,6 @@ export type STATE_CUSTOM = string;
|
|
|
132
132
|
export type StateValueNot = STATE_HOVER_REVERSE | STATE_CUSTOM;
|
|
133
133
|
export type StateValue = STATE_NORMAL | STATE_HOVER | STATE_CUSTOM;
|
|
134
134
|
export type StateValueType = StateValue | StateValueNot;
|
|
135
|
-
export declare enum STATE_LEVEL {
|
|
136
|
-
NORMAL = 0,
|
|
137
|
-
DIMENSION_SELECTED = 1,
|
|
138
|
-
RELATIONAL_SELECTED = 2,
|
|
139
|
-
SELECTED = 3,
|
|
140
|
-
DIMENSION_HOVER = 4,
|
|
141
|
-
RELATIONAL_HOVER = 5,
|
|
142
|
-
HOVER = 6
|
|
143
|
-
}
|
|
144
135
|
export interface IAttributeOpt {
|
|
145
136
|
element: IElement;
|
|
146
137
|
mark: IElement['mark'];
|
|
@@ -3,7 +3,7 @@ import type { IEffect, IModelInitOption, IModelSpecInfo } from '../../../model/i
|
|
|
3
3
|
import type { ICartesianSeries } from '../../../series/interface';
|
|
4
4
|
import type { IRegion } from '../../../region/interface';
|
|
5
5
|
import type { ICartesianAxisCommonSpec, IAxisHelper } from './interface';
|
|
6
|
-
import type { IOrientType } from '../../../typings/space';
|
|
6
|
+
import type { IOrientType, IRect } from '../../../typings/space';
|
|
7
7
|
import type { IBaseScale } from '@visactor/vscale';
|
|
8
8
|
import type { StringOrNumber } from '../../../typings/common';
|
|
9
9
|
import type { IPoint } from '../../../typings/coordinate';
|
|
@@ -50,6 +50,12 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
50
50
|
height: number;
|
|
51
51
|
_lastComputeOutBounds: IBoundsLike;
|
|
52
52
|
};
|
|
53
|
+
protected _innerOffset: {
|
|
54
|
+
top: number;
|
|
55
|
+
bottom: number;
|
|
56
|
+
left: number;
|
|
57
|
+
right: number;
|
|
58
|
+
};
|
|
53
59
|
constructor(spec: T, options: IComponentOption);
|
|
54
60
|
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
55
61
|
static createComponent(specInfo: IModelSpecInfo, options: IComponentOption): IAxis;
|
|
@@ -69,6 +75,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
69
75
|
protected updateScaleRange(): boolean;
|
|
70
76
|
init(option: IModelInitOption): void;
|
|
71
77
|
setAttrFromSpec(): void;
|
|
78
|
+
onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect, ctx: any): void;
|
|
72
79
|
protected getSeriesStatisticsField(s: ICartesianSeries): string[];
|
|
73
80
|
protected _tickTransformOption(): ICartesianTickDataOpt;
|
|
74
81
|
protected axisHelper(): IAxisHelper;
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ILayoutNumber, IRectMarkSpec, StringOrNumber } from '../../../../typings';
|
|
2
2
|
import type { IBandAxisSpec, ILinearAxisSpec, IGrid, ICommonAxisSpec } from '../../interface';
|
|
3
3
|
import type { ICartesianDomainLine, ICartesianLabel, ITimeLayerType, ICartesianTitle, ICartesianAxisUnit } from './common';
|
|
4
4
|
import type { AxisItemStateStyle } from '@visactor/vrender-components';
|
|
5
5
|
export type ICartesianAxisSpec = ICartesianLinearAxisSpec | ICartesianBandAxisSpec | ICartesianTimeAxisSpec | ICartesianLogAxisSpec | ICartesianSymlogAxisSpec;
|
|
6
|
+
export type ICartesianVertical = {
|
|
7
|
+
orient: 'left' | 'right';
|
|
8
|
+
innerOffset?: {
|
|
9
|
+
top?: ILayoutNumber;
|
|
10
|
+
bottom?: ILayoutNumber;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type ICartesianHorizontal = {
|
|
14
|
+
orient: 'top' | 'bottom';
|
|
15
|
+
innerOffset?: {
|
|
16
|
+
left?: ILayoutNumber;
|
|
17
|
+
right?: ILayoutNumber;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type ICartesianZ = {
|
|
21
|
+
orient: 'z';
|
|
22
|
+
};
|
|
6
23
|
export type ICartesianAxisCommonSpec = ICommonAxisSpec & {
|
|
7
|
-
orient: IOrientType;
|
|
8
24
|
grid?: IGrid;
|
|
9
25
|
subGrid?: IGrid;
|
|
10
26
|
domainLine?: ICartesianDomainLine;
|
|
@@ -20,7 +36,7 @@ export type ICartesianAxisCommonSpec = ICommonAxisSpec & {
|
|
|
20
36
|
depth?: number;
|
|
21
37
|
unit?: ICartesianAxisUnit;
|
|
22
38
|
hasDimensionTooltip?: boolean;
|
|
23
|
-
};
|
|
39
|
+
} & (ICartesianVertical | ICartesianHorizontal | ICartesianZ);
|
|
24
40
|
export interface ILinearAxisSync {
|
|
25
41
|
axisId: StringOrNumber;
|
|
26
42
|
zeroAlign?: boolean;
|
|
@@ -18,7 +18,11 @@ export declare abstract class BaseMarker<T extends IMarkerSpec> extends BaseComp
|
|
|
18
18
|
protected _layoutOffsetY: number;
|
|
19
19
|
private _firstSeries;
|
|
20
20
|
created(): void;
|
|
21
|
-
|
|
21
|
+
protected _getAllRelativeSeries(): {
|
|
22
|
+
getRelativeSeries: () => ICartesianSeries;
|
|
23
|
+
getStartRelativeSeries: () => ICartesianSeries;
|
|
24
|
+
getEndRelativeSeries: () => ICartesianSeries;
|
|
25
|
+
};
|
|
22
26
|
private _getFieldInfoFromSpec;
|
|
23
27
|
protected _processSpecX(specX: IDataPos | IDataPosCallback): {
|
|
24
28
|
getRelativeSeries: () => ICartesianSeries;
|
|
@@ -31,6 +31,7 @@ export declare class Tooltip extends BaseComponent<any> implements ITooltip {
|
|
|
31
31
|
tooltipHandler?: ITooltipHandler;
|
|
32
32
|
private _alwaysShow;
|
|
33
33
|
private _cacheInfo;
|
|
34
|
+
private _cacheParams;
|
|
34
35
|
private _eventList;
|
|
35
36
|
protected _processor: ITooltipActiveTypeAsKeys<MarkTooltipProcessor, DimensionTooltipProcessor>;
|
|
36
37
|
protected _isTooltipShown: boolean;
|
|
@@ -59,7 +60,7 @@ export declare class Tooltip extends BaseComponent<any> implements ITooltip {
|
|
|
59
60
|
setAttrFromSpec(): void;
|
|
60
61
|
showTooltip(datum: Datum, options: IShowTooltipOption): false | "none" | TooltipActiveType;
|
|
61
62
|
hideTooltip(): boolean;
|
|
62
|
-
private
|
|
63
|
+
private _isSameAsCache;
|
|
63
64
|
private _isPointerInChart;
|
|
64
65
|
private _isPointerOnTooltip;
|
|
65
66
|
getVisible(): boolean;
|
|
@@ -17,7 +17,7 @@ export interface IDrillable {
|
|
|
17
17
|
export declare class Drillable implements IDrillable {
|
|
18
18
|
private _drillParams;
|
|
19
19
|
private _drillInfo;
|
|
20
|
-
private
|
|
20
|
+
private _getDrillTriggerEvent;
|
|
21
21
|
private _hideTooltip;
|
|
22
22
|
initDrillable(params: DrillParams): void;
|
|
23
23
|
initDrillableData(dataSet: DataSet): void;
|
|
@@ -53,7 +53,7 @@ export declare class Zoomable implements IZoomable {
|
|
|
53
53
|
private _gestureController;
|
|
54
54
|
private _isGestureListener;
|
|
55
55
|
initZoomable(evt: IEvent, mode?: RenderMode): void;
|
|
56
|
-
private
|
|
56
|
+
private _getZoomTriggerEvent;
|
|
57
57
|
private _zoomEventDispatch;
|
|
58
58
|
private _getRegionOrSeriesLayout;
|
|
59
59
|
private _bindZoomEventAsRegion;
|
|
@@ -3,12 +3,13 @@ import type { Maybe, ILayoutPoint, RenderMode } from '../../../typings';
|
|
|
3
3
|
import type { TooltipData, IToolTipActual, TooltipActiveType, ITooltipHandler, ITooltipPattern, ITooltipPositionActual } from '../../../typings/tooltip';
|
|
4
4
|
import type { IGroup } from '@visactor/vrender-core';
|
|
5
5
|
import type { Compiler } from '../../../compile/compiler';
|
|
6
|
-
import type { IContainerSize
|
|
6
|
+
import type { IContainerSize } from '@visactor/vrender-components';
|
|
7
7
|
import type { IChartOption } from '../../../chart/interface';
|
|
8
8
|
import type { ITooltipSpec, Tooltip, TooltipHandlerParams } from '../../../component/tooltip';
|
|
9
9
|
import { TooltipResult } from '../../../component/tooltip';
|
|
10
10
|
import type { IComponentPlugin, IComponentPluginService } from '../interface';
|
|
11
11
|
import { BasePlugin } from '../../base/base-plugin';
|
|
12
|
+
import type { ITooltipAttributes } from './interface';
|
|
12
13
|
type ChangeTooltipFunc = (visible: boolean, params: TooltipHandlerParams, changePositionOnly?: boolean, activeType?: TooltipActiveType, data?: TooltipData) => TooltipResult;
|
|
13
14
|
type ChangeTooltipPositionFunc = (changePositionOnly: boolean, data: TooltipData, params: TooltipHandlerParams) => TooltipResult;
|
|
14
15
|
export declare abstract class BaseTooltipHandler extends BasePlugin implements ITooltipHandler, IComponentPlugin {
|
|
@@ -21,7 +22,7 @@ export declare abstract class BaseTooltipHandler extends BasePlugin implements I
|
|
|
21
22
|
protected _env: RenderMode;
|
|
22
23
|
get env(): "desktop-browser" | "mobile-browser" | "node" | "worker" | "miniApp" | "wx" | "desktop-miniApp" | "lynx";
|
|
23
24
|
protected _component: Tooltip;
|
|
24
|
-
protected _attributes?:
|
|
25
|
+
protected _attributes?: ITooltipAttributes | null;
|
|
25
26
|
protected _chartContainer: Maybe<HTMLElement>;
|
|
26
27
|
protected _compiler: Compiler;
|
|
27
28
|
protected _cacheViewSpec: ITooltipSpec | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_TOOLTIP_Z_INDEX = "99999999999999";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseTooltipModel } from './base-tooltip-model';
|
|
2
2
|
import { ContentColumnModel } from './content-column-model';
|
|
3
|
-
import type
|
|
3
|
+
import { type Maybe } from '@visactor/vutils';
|
|
4
4
|
export declare class ContentModel extends BaseTooltipModel {
|
|
5
5
|
shapeBox: Maybe<ContentColumnModel>;
|
|
6
6
|
keyBox: Maybe<ContentColumnModel>;
|
|
@@ -11,5 +11,6 @@ export declare class ContentModel extends BaseTooltipModel {
|
|
|
11
11
|
private _initValueBox;
|
|
12
12
|
setStyle(style?: Partial<CSSStyleDeclaration>): void;
|
|
13
13
|
setContent(): void;
|
|
14
|
+
protected _getContentContainerStyle(): Partial<CSSStyleDeclaration>;
|
|
14
15
|
release(): void;
|
|
15
16
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { TooltipAttributes } from '@visactor/vrender-components';
|
|
2
1
|
import type { IToolTipActual, Maybe } from '../../../../../typings';
|
|
3
2
|
import type { IDomTooltipStyle } from '../interface';
|
|
3
|
+
import type { ITooltipAttributes } from '../../interface';
|
|
4
4
|
export interface ITooltipModelOption {
|
|
5
5
|
valueToHtml: (value: any) => string;
|
|
6
6
|
getTooltipStyle: () => IDomTooltipStyle;
|
|
7
7
|
getTooltipActual: () => Maybe<IToolTipActual>;
|
|
8
|
-
getTooltipAttributes: () => Maybe<
|
|
8
|
+
getTooltipAttributes: () => Maybe<ITooltipAttributes>;
|
|
9
|
+
getContainer: () => HTMLElement;
|
|
9
10
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const defaultH2Style: Partial<CSSStyleDeclaration>;
|
|
2
2
|
export declare const defaultContainerStyle: Partial<CSSStyleDeclaration>;
|
|
3
|
-
export declare const defaultContentContainerStyle: Partial<CSSStyleDeclaration>;
|
|
4
3
|
export declare const defaultContentColumnStyle: Partial<CSSStyleDeclaration>;
|
|
5
4
|
export declare const defaultKeyStyle: Partial<CSSStyleDeclaration>;
|
|
6
5
|
export declare const defaultAdaptiveKeyStyle: Partial<CSSStyleDeclaration>;
|
|
@@ -7,7 +7,7 @@ export declare class TooltipModel extends BaseTooltipModel {
|
|
|
7
7
|
content: ContentModel | null;
|
|
8
8
|
private _classList;
|
|
9
9
|
private _id;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(option: ITooltipModelOption, classList: string[], id: string);
|
|
11
11
|
setVisibility(visibility: boolean): void;
|
|
12
12
|
init(): void;
|
|
13
13
|
private _initPanel;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TooltipAttributes } from '@visactor/vrender-components';
|
|
1
2
|
import type { ITextAttribute, IFillStyle, RichTextWordBreak } from '@visactor/vrender-core';
|
|
2
3
|
export interface ITooltipTextStyle extends Partial<ITextAttribute & IFillStyle> {
|
|
3
4
|
spacing?: number;
|
|
@@ -6,3 +7,7 @@ export interface ITooltipTextStyle extends Partial<ITextAttribute & IFillStyle>
|
|
|
6
7
|
wordBreak?: RichTextWordBreak;
|
|
7
8
|
autoWidth?: boolean;
|
|
8
9
|
}
|
|
10
|
+
export interface ITooltipAttributes extends TooltipAttributes {
|
|
11
|
+
panelDomHeight?: number;
|
|
12
|
+
maxContentHeight?: number;
|
|
13
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TooltipPanelAttrs } from '@visactor/vrender-components';
|
|
2
2
|
import type { IToolTipActual } from '../../../../typings';
|
|
3
|
-
import type { ITooltipTextStyle } from '../interface';
|
|
3
|
+
import type { ITooltipAttributes, ITooltipTextStyle } from '../interface';
|
|
4
4
|
import type { ITheme } from '../../../../theme';
|
|
5
5
|
import type { ITooltipSpec, ITooltipTextTheme, ITooltipTheme } from '../../../../component/tooltip';
|
|
6
6
|
export declare function getTextAttributes(style?: ITooltipTextTheme, globalTheme?: ITheme, defaultAttributes?: Partial<ITooltipTextStyle>): ITooltipTextStyle;
|
|
7
7
|
export declare const getPanelAttributes: (style: ITooltipTheme['panel']) => TooltipPanelAttrs;
|
|
8
|
-
export declare const getTooltipAttributes: (actualTooltip: IToolTipActual, spec: ITooltipSpec, globalTheme: ITheme) =>
|
|
8
|
+
export declare const getTooltipAttributes: (actualTooltip: IToolTipActual, spec: ITooltipSpec, globalTheme: ITheme) => ITooltipAttributes;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Datum } from '@visactor/vgrammar-core';
|
|
2
|
-
import type { MaybeArray, TooltipContentProperty, TooltipData, TooltipPatternProperty } from '../../../../typings';
|
|
2
|
+
import type { IToolTipLinePattern, ITooltipPattern, MaybeArray, TooltipContentProperty, TooltipData, TooltipPatternProperty } from '../../../../typings';
|
|
3
3
|
import type { ITooltipTextStyle } from '../interface/style';
|
|
4
4
|
import type { TooltipRichTextAttrs } from '@visactor/vrender-components';
|
|
5
5
|
import type { TooltipHandlerParams } from '../../../../component/tooltip';
|
|
6
6
|
export declare function escapeHTML(value: any): string;
|
|
7
7
|
export declare const getTooltipContentValue: <T>(field?: TooltipContentProperty<T>, datum?: any, params?: TooltipHandlerParams) => T;
|
|
8
|
-
export declare const getTooltipPatternValue: <T>(field?:
|
|
8
|
+
export declare const getTooltipPatternValue: <T>(field?: TooltipPatternProperty<T>, data?: TooltipData, params?: TooltipHandlerParams) => T;
|
|
9
|
+
export declare const getTooltipContentPattern: (field?: ITooltipPattern['content'], data?: TooltipData, params?: TooltipHandlerParams) => Array<IToolTipLinePattern> | undefined;
|
|
9
10
|
export declare function getFirstDatumFromTooltipData(data: TooltipData): Datum;
|
|
10
11
|
export declare function pickFirstValidValue<T>(isValid: (element?: T) => any, ...elements: T[]): T | undefined;
|
|
11
12
|
export declare function convertToColorString(color: any, defaultColor?: string): string;
|
|
@@ -123,6 +123,7 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
123
123
|
initRootMark(): void;
|
|
124
124
|
protected _initExtensionMark(options: {
|
|
125
125
|
hasAnimation: boolean;
|
|
126
|
+
depend?: IMark[];
|
|
126
127
|
}): void;
|
|
127
128
|
private _createExtensionMark;
|
|
128
129
|
protected _updateExtensionMarkSpec(lastSpec?: any): void;
|
|
@@ -133,7 +134,7 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
133
134
|
selector: string[];
|
|
134
135
|
type: string;
|
|
135
136
|
trigger: EventType;
|
|
136
|
-
|
|
137
|
+
triggerOff: EventType;
|
|
137
138
|
blurState: STATE_VALUE_ENUM;
|
|
138
139
|
highlightState: STATE_VALUE_ENUM;
|
|
139
140
|
reverseState?: undefined;
|
|
@@ -145,7 +146,7 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
145
146
|
regionId: number;
|
|
146
147
|
selector: string[];
|
|
147
148
|
trigger: EventType;
|
|
148
|
-
|
|
149
|
+
triggerOff: EventType;
|
|
149
150
|
reverseState: STATE_VALUE_ENUM;
|
|
150
151
|
state: STATE_VALUE_ENUM;
|
|
151
152
|
isMultiple: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TooltipHandlerParams } from '../../component/tooltip/interface';
|
|
2
|
-
import type { ITooltipPattern, ShapeType, TooltipActiveType } from '../../typings';
|
|
2
|
+
import type { IToolTipLinePattern, ITooltipPattern, ShapeType, TooltipActiveType } from '../../typings';
|
|
3
3
|
import type { ISeries, ISeriesTooltipHelper } from '../interface';
|
|
4
4
|
import { BaseTooltipHelper } from '../../model/tooltip-helper';
|
|
5
5
|
import type { IDimensionInfo } from '../../event/events/dimension/interface';
|
|
@@ -26,4 +26,6 @@ export declare class BaseSeriesTooltipHelper extends BaseTooltipHelper implement
|
|
|
26
26
|
titleValueCallback: (datum: Datum, params?: TooltipHandlerParams) => string | undefined;
|
|
27
27
|
getDefaultTooltipPattern(activeType: TooltipActiveType, dimensionInfo?: IDimensionInfo[]): ITooltipPattern | null;
|
|
28
28
|
}
|
|
29
|
+
export declare const addExtraInfoToTooltipTitlePattern: <T>(pattern: ITooltipPattern['title'], extraInfo: T | ((line: IToolTipLinePattern) => T), overwrite?: boolean) => ITooltipPattern['title'] | undefined;
|
|
30
|
+
export declare const addExtraInfoToTooltipContentPattern: <T>(pattern: ITooltipPattern['content'], extraInfo: T | ((line: IToolTipLinePattern) => T), overwrite?: boolean) => ITooltipPattern['content'] | undefined;
|
|
29
31
|
export {};
|
|
@@ -68,6 +68,7 @@ export interface ISeriesMarkInitOption {
|
|
|
68
68
|
support3d?: boolean;
|
|
69
69
|
customShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;
|
|
70
70
|
stateSort?: (stateA: string, stateB: string) => number;
|
|
71
|
+
componentType?: string;
|
|
71
72
|
}
|
|
72
73
|
export interface ISeriesMarkInfo extends IModelMarkInfo {
|
|
73
74
|
name: SeriesMarkNameEnum | string;
|
|
@@ -34,7 +34,7 @@ export declare enum SeriesTypeEnum {
|
|
|
34
34
|
correlation = "correlation",
|
|
35
35
|
liquid = "liquid"
|
|
36
36
|
}
|
|
37
|
-
export declare enum SeriesMarkNameEnum {
|
|
37
|
+
export declare const enum SeriesMarkNameEnum {
|
|
38
38
|
label = "label",
|
|
39
39
|
point = "point",
|
|
40
40
|
line = "line",
|
|
@@ -94,4 +94,3 @@ export declare enum SeriesMarkNameEnum {
|
|
|
94
94
|
liquidBackground = "liquidBackground",
|
|
95
95
|
liquidOutline = "liquidOutline"
|
|
96
96
|
}
|
|
97
|
-
export declare const seriesMarkNameSet: Set<string>;
|
|
@@ -6,13 +6,13 @@ import type { IAnimationSpec } from '../../animation/spec';
|
|
|
6
6
|
import type { RangeColumnAppearPreset } from './animation';
|
|
7
7
|
import type { ILabelSpec } from '../../component/label';
|
|
8
8
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
9
|
-
export declare enum PositionEnum {
|
|
9
|
+
export declare const enum PositionEnum {
|
|
10
10
|
middle = "middle",
|
|
11
11
|
start = "start",
|
|
12
12
|
end = "end",
|
|
13
13
|
bothEnd = "bothEnd"
|
|
14
14
|
}
|
|
15
|
-
export declare enum minMaxPositionEnum {
|
|
15
|
+
export declare const enum minMaxPositionEnum {
|
|
16
16
|
middle = "middle",
|
|
17
17
|
start = "start",
|
|
18
18
|
end = "end"
|
|
@@ -2,17 +2,8 @@ import type { ITextMarkSpec, IMarkSpec, ISeriesSpec } from '../../typings';
|
|
|
2
2
|
import type { IAnimationSpec, IMarkAnimateSpec, IStateAnimateSpec } from '../../animation/spec';
|
|
3
3
|
import type { SeriesMarkNameEnum } from '../interface/type';
|
|
4
4
|
import type { WordcloudAppearPreset } from './animation';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
triangle = "triangle",
|
|
8
|
-
diamond = "diamond",
|
|
9
|
-
square = "square",
|
|
10
|
-
star = "star",
|
|
11
|
-
cardioid = "cardioid",
|
|
12
|
-
circle = "circle",
|
|
13
|
-
pentagon = "pentagon"
|
|
14
|
-
}
|
|
15
|
-
export type WordCloudShapeType = keyof typeof WordCloudShapeEnum;
|
|
5
|
+
import type { shapes } from '@visactor/vgrammar-wordcloud';
|
|
6
|
+
export type WordCloudShapeType = keyof typeof shapes;
|
|
16
7
|
export type EllipsisType = {
|
|
17
8
|
string?: string;
|
|
18
9
|
limitLength?: number;
|
package/types/typings/shape.d.ts
CHANGED
|
@@ -1,26 +1,5 @@
|
|
|
1
1
|
import type { SymbolType } from '@visactor/vrender-core';
|
|
2
|
-
export declare enum ShapeTypeEnum {
|
|
3
|
-
circle = "circle",
|
|
4
|
-
triangle = "triangle",
|
|
5
|
-
triangleUp = "triangleUp",
|
|
6
|
-
triangleLeft = "triangleLeft",
|
|
7
|
-
triangleRight = "triangleRight",
|
|
8
|
-
triangleDown = "triangleDown",
|
|
9
|
-
thinTriangle = "thinTriangle",
|
|
10
|
-
rect = "rect",
|
|
11
|
-
diamond = "diamond",
|
|
12
|
-
square = "square",
|
|
13
|
-
arrowLeft = "arrowLeft",
|
|
14
|
-
arrow2Left = "arrow2Left",
|
|
15
|
-
arrowRight = "arrowRight",
|
|
16
|
-
arrow2Right = "arrow2Right",
|
|
17
|
-
cross = "cross",
|
|
18
|
-
wedge = "wedge",
|
|
19
|
-
star = "star",
|
|
20
|
-
wye = "wye"
|
|
21
|
-
}
|
|
22
2
|
export type ShapeType = SymbolType;
|
|
23
|
-
export declare const ShapeTypes: string[];
|
|
24
3
|
export interface IShapeStyle {
|
|
25
4
|
shape?: ShapeType;
|
|
26
5
|
size?: number;
|
package/types/typings/space.d.ts
CHANGED
|
@@ -260,6 +260,7 @@ export interface ICustomMarkSpec<T extends EnableMarkType> extends IMarkSpec<IBu
|
|
|
260
260
|
type: T;
|
|
261
261
|
dataIndex?: number;
|
|
262
262
|
dataId?: StringOrNumber;
|
|
263
|
+
componentType?: string;
|
|
263
264
|
}
|
|
264
265
|
export interface ICustomMarkGroupSpec extends ICustomMarkSpec<MarkTypeEnum.group> {
|
|
265
266
|
children?: ICustomMarkSpec<EnableMarkType>[];
|
|
@@ -267,6 +268,7 @@ export interface ICustomMarkGroupSpec extends ICustomMarkSpec<MarkTypeEnum.group
|
|
|
267
268
|
export interface IExtensionMarkSpec<T extends Exclude<EnableMarkType, MarkTypeEnum.group>> extends ICustomMarkSpec<T> {
|
|
268
269
|
dataIndex?: number;
|
|
269
270
|
dataId?: StringOrNumber;
|
|
271
|
+
componentType?: string;
|
|
270
272
|
}
|
|
271
273
|
export interface IExtensionGroupMarkSpec extends ICustomMarkSpec<MarkTypeEnum.group> {
|
|
272
274
|
children?: ICustomMarkSpec<EnableMarkType>[];
|
|
@@ -5,7 +5,7 @@ export interface ITooltipPositionPattern {
|
|
|
5
5
|
top?: number | ITooltipPositionCallback;
|
|
6
6
|
bottom?: number | ITooltipPositionCallback;
|
|
7
7
|
}
|
|
8
|
-
export declare enum TooltipFixedPosition {
|
|
8
|
+
export declare const enum TooltipFixedPosition {
|
|
9
9
|
top = "top",
|
|
10
10
|
bottom = "bottom",
|
|
11
11
|
left = "left",
|
|
@@ -20,7 +20,7 @@ export declare enum TooltipFixedPosition {
|
|
|
20
20
|
rb = "rb",
|
|
21
21
|
inside = "inside"
|
|
22
22
|
}
|
|
23
|
-
export declare enum TooltipPositionMode {
|
|
23
|
+
export declare const enum TooltipPositionMode {
|
|
24
24
|
pointer = "pointer",
|
|
25
25
|
mark = "mark"
|
|
26
26
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Maybe } from '@visactor/vutils';
|
|
2
|
-
import type { IDomTooltipStyle } from './interface';
|
|
3
|
-
import type { TooltipAttributes } from '@visactor/vrender-components';
|
|
4
|
-
export declare const getPixelPropertyStr: (num?: number | number[], defaultStr?: string) => string;
|
|
5
|
-
export declare const pixelPropertyStrToNumber: (str: string) => number | number[];
|
|
6
|
-
export declare function getDomStyles(attributes?: Maybe<TooltipAttributes>): IDomTooltipStyle;
|