@visactor/vchart-types 2.0.23-alpha.7 → 2.0.23-alpha.9
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/compile/compiler.d.ts +2 -0
- package/types/series/scatter/scatter.d.ts +0 -3
- package/types/series/treemap/interface.d.ts +1 -1
- package/types/series/waterfall/waterfall.d.ts +2 -0
- package/types/typings/spec/common.d.ts +4 -2
- package/types/util/spec/transform.d.ts +5 -2
|
@@ -47,6 +47,8 @@ export declare class Compiler implements ICompiler {
|
|
|
47
47
|
updateLayoutTag(): void;
|
|
48
48
|
protected handleLayoutEnd: () => void;
|
|
49
49
|
protected handleStageRender: () => void;
|
|
50
|
+
private _isGeoRegionRoamDragEnabled;
|
|
51
|
+
private _shouldDisableCanvasTouchAction;
|
|
50
52
|
private _setCanvasStyle;
|
|
51
53
|
compile(ctx: {
|
|
52
54
|
chart: IChart;
|
|
@@ -21,7 +21,6 @@ export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeries
|
|
|
21
21
|
private _sizeField;
|
|
22
22
|
private _shape;
|
|
23
23
|
private _shapeField;
|
|
24
|
-
private _enableLabelAnimationHook?;
|
|
25
24
|
protected _invalidType: IScatterInvalidType;
|
|
26
25
|
setAttrFromSpec(): void;
|
|
27
26
|
private _getSeriesAttribute;
|
|
@@ -36,8 +35,6 @@ export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeries
|
|
|
36
35
|
initLabelMarkStyle(labelMark?: ILabelMark): void;
|
|
37
36
|
private _updateSymbolGraphicPosition;
|
|
38
37
|
private _ensureLabelGraphicPostMatrix;
|
|
39
|
-
private _isGeoCoordinateSeries;
|
|
40
|
-
private _refreshLabelComponent;
|
|
41
38
|
handleZoom(e: any): void;
|
|
42
39
|
handlePan(e: any): void;
|
|
43
40
|
onLayoutEnd(): void;
|
|
@@ -31,7 +31,7 @@ export interface ITreemapSeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimatio
|
|
|
31
31
|
padding?: TreemapOptions['labelPadding'];
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
export interface ITreemapSeriesTheme extends ICartesianSeriesTheme {
|
|
34
|
+
export interface ITreemapSeriesTheme extends Omit<ICartesianSeriesTheme, 'label'> {
|
|
35
35
|
gapWidth?: TreemapOptions['padding'];
|
|
36
36
|
nodePadding?: TreemapOptions['padding'];
|
|
37
37
|
[SeriesMarkNameEnum.leaf]?: Partial<IMarkTheme<IRectMarkSpec>>;
|
|
@@ -48,6 +48,8 @@ export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfall
|
|
|
48
48
|
};
|
|
49
49
|
totalPositionX(datum: Datum, field: string, pos?: number): number;
|
|
50
50
|
totalPositionY(datum: Datum, field: string, pos?: number): number;
|
|
51
|
+
protected _isCategoryAxisInverse(): boolean;
|
|
52
|
+
protected _getLeaderLineCategoryPos(isStart: boolean, isDecrease: boolean): number;
|
|
51
53
|
initMarkStyle(): void;
|
|
52
54
|
protected isVisibleLeaderLine(datum: Datum): boolean;
|
|
53
55
|
}
|
|
@@ -221,10 +221,11 @@ export interface IMarkStateTheme<T> extends Record<string, T> {
|
|
|
221
221
|
selected?: T;
|
|
222
222
|
selected_reverse?: T;
|
|
223
223
|
}
|
|
224
|
+
type ConvertToThemeMarkStyleSpec<T> = T extends Record<string, any> ? Partial<ConvertToMarkStyleSpec<T>> : never;
|
|
224
225
|
export type IMarkTheme<T> = {
|
|
225
226
|
visible?: boolean;
|
|
226
|
-
style?: T
|
|
227
|
-
state?: IMarkStateTheme<T
|
|
227
|
+
style?: ConvertToThemeMarkStyleSpec<T>;
|
|
228
|
+
state?: IMarkStateTheme<ConvertToThemeMarkStyleSpec<T>>;
|
|
228
229
|
interactive?: boolean;
|
|
229
230
|
};
|
|
230
231
|
export interface IPerformanceHook {
|
|
@@ -310,3 +311,4 @@ export type IRichTextFormatMethod<T extends any[]> = (...args: T) => {
|
|
|
310
311
|
text: IRichTextCharacter[];
|
|
311
312
|
} | IRichTextCharacter[];
|
|
312
313
|
export type IFormatMethod<T extends any[]> = (...args: T) => ReturnType<ITextFormatMethod<T>> | ReturnType<IRichTextFormatMethod<T>>;
|
|
314
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
interface IFunctionTransformRegistry {
|
|
2
|
+
getFunction: (key: string) => unknown;
|
|
3
|
+
}
|
|
2
4
|
export declare function specTransform(spec: unknown, special?: {
|
|
3
5
|
[key: string]: (v: unknown) => unknown;
|
|
4
6
|
}): unknown;
|
|
5
|
-
export declare function functionTransform(
|
|
7
|
+
export declare function functionTransform(value: unknown, registry: IFunctionTransformRegistry): any;
|
|
6
8
|
export declare function transformFunctionAttribute(att: unknown, ...args: unknown[]): any;
|
|
9
|
+
export {};
|