@rfkit/charts 1.1.32 → 1.1.34

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/index.js CHANGED
@@ -4031,6 +4031,7 @@ function defaultState_createParams() {
4031
4031
  step: stepDefault,
4032
4032
  unit: constants_unitList["0"],
4033
4033
  unitList: constants_unitList,
4034
+ unitDisabled: false,
4034
4035
  type: axisYTypeList["default"],
4035
4036
  hidden: [],
4036
4037
  linkage: true,
@@ -10020,9 +10021,9 @@ const nextItem = (v, list)=>{
10020
10021
  };
10021
10022
  const Unit = ()=>{
10022
10023
  const { state: { axisY, globalID }, dispatch } = useStore_useStore();
10023
- const { unit, unitList, autoranging, onChange } = axisY;
10024
+ const { unit, unitList, unitDisabled, autoranging, onChange } = axisY;
10024
10025
  const updateUnit = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
10025
- if (autoranging) return;
10026
+ if (autoranging || unitDisabled) return;
10026
10027
  const newUnit = nextItem(unit, unitList);
10027
10028
  onChange?.({
10028
10029
  unit: newUnit
@@ -10039,6 +10040,7 @@ const Unit = ()=>{
10039
10040
  axisY,
10040
10041
  unit,
10041
10042
  autoranging,
10043
+ unitDisabled,
10042
10044
  unitList,
10043
10045
  onChange
10044
10046
  ]);
@@ -11149,8 +11151,7 @@ const TOOL_CONFIGS = [
11149
11151
  supportedCharts: [],
11150
11152
  excludedCharts: [
11151
11153
  constants_ChartType.ScanDF360,
11152
- constants_ChartType.LevelStream,
11153
- constants_ChartType.LiteNormalized
11154
+ constants_ChartType.LevelStream
11154
11155
  ]
11155
11156
  },
11156
11157
  {
@@ -15441,6 +15442,7 @@ function useSpectrumChartType({ type, heatmapElementID }) {
15441
15442
  0,
15442
15443
  1
15443
15444
  ];
15445
+ axisY.unitDisabled = true;
15444
15446
  }
15445
15447
  if (type === constants_ChartType.MScan) {
15446
15448
  limit.show = false;
package/package.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "types": "index.d.ts",
6
6
  "author": "Hxgh",
7
7
  "license": "MIT",
8
- "version": "1.1.32",
8
+ "version": "1.1.34",
9
9
  "private": false
10
10
  }
package/types/store.d.ts CHANGED
@@ -21,6 +21,7 @@ export interface AxisYProps {
21
21
  step?: number;
22
22
  unit?: string;
23
23
  unitList?: string[];
24
+ unitDisabled?: boolean;
24
25
  type?: string;
25
26
  hidden?: string[];
26
27
  linkage?: boolean;