@visactor/vchart-types 2.0.16-alpha.0 → 2.0.17
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.
|
@@ -27,6 +27,7 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
27
27
|
protected _isWordCloudShape: boolean;
|
|
28
28
|
protected _wordCloudConfig?: WordCloudConfigType;
|
|
29
29
|
protected _wordCloudShapeConfig?: WordCloudShapeConfigType;
|
|
30
|
+
private _wordMeasureCache?;
|
|
30
31
|
protected _padding?: IPadding;
|
|
31
32
|
protected _defaultFontFamily: string;
|
|
32
33
|
protected _keyWordColorCallback: (datum: Datum) => string;
|
|
@@ -64,4 +65,5 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
64
65
|
onLayoutEnd(): void;
|
|
65
66
|
getActiveMarks(): IMark[];
|
|
66
67
|
reInit(): void;
|
|
68
|
+
release(): void;
|
|
67
69
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type CachedWordMeasure = {
|
|
2
|
+
sprite: number[];
|
|
3
|
+
bounds: {
|
|
4
|
+
dTop: number;
|
|
5
|
+
dBottom: number;
|
|
6
|
+
dLeft: number;
|
|
7
|
+
dRight: number;
|
|
8
|
+
};
|
|
9
|
+
wordSize: [number, number];
|
|
10
|
+
};
|
|
11
|
+
export declare class WordMeasureCache {
|
|
12
|
+
private _map;
|
|
13
|
+
private _maxSize;
|
|
14
|
+
constructor(maxSize?: number);
|
|
15
|
+
get(key: string): CachedWordMeasure;
|
|
16
|
+
set(key: string, value: CachedWordMeasure): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
size(): number;
|
|
19
|
+
}
|
|
@@ -87,8 +87,21 @@ export interface ICommonSpec {
|
|
|
87
87
|
}
|
|
88
88
|
export interface IFillMarkSpec extends ICommonSpec {
|
|
89
89
|
fill?: VisualType<string> | IGradient | false | IColorKey;
|
|
90
|
+
shadowBlur?: number;
|
|
91
|
+
shadowColor?: string;
|
|
92
|
+
shadowOffsetX?: number;
|
|
93
|
+
shadowOffsetY?: number;
|
|
90
94
|
fillOpacity?: number;
|
|
91
95
|
background?: IColor | HTMLImageElement | HTMLCanvasElement | null;
|
|
96
|
+
backgroundMode?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
97
|
+
backgroundFit?: boolean;
|
|
98
|
+
backgroundKeepAspectRatio?: boolean;
|
|
99
|
+
backgroundScale?: number;
|
|
100
|
+
backgroundOffsetX?: number;
|
|
101
|
+
backgroundOffsetY?: number;
|
|
102
|
+
backgroundClip?: boolean;
|
|
103
|
+
backgroundCornerRadius?: number | number[];
|
|
104
|
+
backgroundOpacity?: number;
|
|
92
105
|
}
|
|
93
106
|
export type IMarkHtmlSpec = Partial<IGraphicStyle['html']>;
|
|
94
107
|
export interface ISymbolMarkSpec extends IFillMarkSpec {
|
|
@@ -3,3 +3,4 @@ export declare function specTransform(spec: unknown, special?: {
|
|
|
3
3
|
[key: string]: (v: unknown) => unknown;
|
|
4
4
|
}): unknown;
|
|
5
5
|
export declare function functionTransform(spec: ISeriesSpec, VChart: any): any;
|
|
6
|
+
export declare function transformFunctionAttribute(att: unknown, ...args: unknown[]): any;
|