@rfkit/charts 1.3.2 → 1.3.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
CHANGED
package/utils/series/index.d.ts
CHANGED
|
@@ -29,6 +29,22 @@ export declare function setChartTypeSeriesOverride(globalID: string, seriesName:
|
|
|
29
29
|
* 清除 ChartType 特定的类型覆盖
|
|
30
30
|
*/
|
|
31
31
|
export declare function clearChartTypeSeriesOverrides(globalID: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* 获取 ChartType 特定的 series 类型覆盖
|
|
34
|
+
* @param globalID
|
|
35
|
+
* @param seriesName series 名称
|
|
36
|
+
* @returns 覆盖的类型,如果没有则返回 undefined
|
|
37
|
+
*/
|
|
38
|
+
export declare function getChartTypeSeriesOverride(globalID: string, seriesName: string): GraphicType | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* 获取正确的 series 类型(统一的类型优先级计算)
|
|
41
|
+
* 优先级:ChartType 覆盖 > 特殊类型(templateData) > SeriesMode 配置 > 默认 Line
|
|
42
|
+
*
|
|
43
|
+
* @param globalID 全局 ID
|
|
44
|
+
* @param seriesName series 名称
|
|
45
|
+
* @returns 正确的 GraphicType
|
|
46
|
+
*/
|
|
47
|
+
export declare function getCorrectSeriesType(globalID: string, seriesName: string): GraphicType;
|
|
32
48
|
export { type ModeConfig, SeriesMode, type SeriesModesConfig } from './modes';
|
|
33
49
|
export type { ExternalSeriesConfig };
|
|
34
50
|
/**
|
|
@@ -54,6 +70,7 @@ export declare function updateSeries(globalID: string, config: PartialSeriesConf
|
|
|
54
70
|
export declare function resetSeries(globalID: string): void;
|
|
55
71
|
/**
|
|
56
72
|
* 批量更新 series
|
|
73
|
+
* 注意:只发布一次 BATCH_UPDATED 事件,避免重复触发
|
|
57
74
|
*/
|
|
58
75
|
export declare function batchUpdateSeries(globalID: string, configs: PartialSeriesConfig[]): void;
|
|
59
76
|
export * from './events';
|
|
@@ -61,6 +78,6 @@ export * from './modes';
|
|
|
61
78
|
export * from './subscription';
|
|
62
79
|
/**
|
|
63
80
|
* 获取带有正确 GraphicType 的 series 配置
|
|
64
|
-
*
|
|
81
|
+
* 使用统一的类型优先级计算
|
|
65
82
|
*/
|
|
66
83
|
export declare function getSeriesWithGraphicType(globalID: string): Map<string, SeriesConfig>;
|