@rfkit/charts 1.18.0 → 1.18.1

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/README.md CHANGED
@@ -168,6 +168,8 @@ import { AxisXLabelMode, Spectrum } from '@rfkit/charts';
168
168
 
169
169
  `Frequency` 显示左、中、右的绝对频率;`CenterBandwidth` 显示中心频率与两侧相对中心的偏移;`Auto`(默认)保留原显示。可以运行时切换,不需要重新推送数据,也不会重置缩放。
170
170
 
171
+ 单段 `ChartType.Scan` 也支持 `CenterBandwidth`,`Auto` 仍显示原来的等分频率标签。
172
+
171
173
  ## 信号标注接入
172
174
 
173
175
  信号标注数据由业务项目负责适配,图表只接收内部结构。有业务颜色时按约定传入,没有显式颜色时使用内置类型色。
@@ -2,6 +2,7 @@ import type React from 'react';
2
2
  import { ChartType } from '../../config/index.js';
3
3
  export interface Props {
4
4
  type: ChartType;
5
+ allowScanCenterBandwidth?: boolean;
5
6
  }
6
7
  declare const _default: React.NamedExoticComponent<Props>;
7
8
  export default _default;
@@ -2,5 +2,6 @@ import type React from 'react';
2
2
  import { ChartType } from '../../../config/index.js';
3
3
  declare const DataNFixedTicks: React.FC<{
4
4
  type: ChartType;
5
+ allowCenterBandwidth: boolean;
5
6
  }>;
6
7
  export default DataNFixedTicks;