@rfkit/charts 1.1.21 → 1.1.23

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.
Files changed (3) hide show
  1. package/index.d.ts +2 -2
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { setFrequencyAllocationToCache } from './components/FrequencyAllocation/
2
2
  export { ChartType, MarkerEventType, OptionKey, PSType, SegmentsEvent, SeriesType } from './config';
3
3
  export { default as useSafePublish } from './hooks/useSafePublish';
4
4
  export { Dial, Gauge, Heatmap, IQ, LevelStream, Occupancy, Spectrum } from './lib';
5
- export type { AxisXProps, AxisYRange, ChartRef, MarkerMode, MarkerProps, MarkerType, Publish, PublishData, PublishDial, PublishGauge, PublishHeatmap, PublishIQ, PublishLevelStream, PublishOccupancy, PublishSpectrum, RecursiveFunction, // 递归方法 后期会删除
5
+ export type { AxisXProps, AxisYRange, ChartRef, MarkerProps, MarkerType, Publish, PublishData, PublishDial, PublishGauge, PublishHeatmap, PublishIQ, PublishLevelStream, PublishOccupancy, PublishSpectrum, RecursiveFunction, // 递归方法 后期会删除
6
6
  RecursiveObject, // 递归对象 后期会删除
7
7
  Render, Reset, SegmentsOriginal, SeriesConfig, SetAntennaFactor, SetChannels, SetMarker, SetSegments, SetSeries, SetSpectrumBandwidth, SpectrumBandwidth, SpectrumExtraData, StationInfoType } from './types';
8
- export { HeatmapCaptureType } from './types';
8
+ export { HeatmapCaptureType, MarkerMode } from './types';
package/index.js CHANGED
@@ -12451,7 +12451,7 @@ const useMarkers = (props)=>{
12451
12451
  left = outsideLeft + insideLeft / multiple;
12452
12452
  const frequencyStr = frequencyFormat(left);
12453
12453
  const frequency = parseFloat(frequencyStr);
12454
- const level = data[xIndex];
12454
+ const level = data[xIndex] || '';
12455
12455
  const virtualLevel = getVirtualLevel(unit, level)?.toFixed?.(1);
12456
12456
  const levelNum = parseFloat(virtualLevel);
12457
12457
  const top = (max - levelNum) / (max - min) * 100;
@@ -14779,4 +14779,4 @@ const SpectrumChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react
14779
14779
  });
14780
14780
  const lib_Spectrum_Spectrum = withChartPublisher(SpectrumChart, 'Spectrum');
14781
14781
  const lib_Spectrum = lib_Spectrum_Spectrum;
14782
- export { constants_ChartType as ChartType, lib_Dial as Dial, lib_Gauge as Gauge, lib_Heatmap as Heatmap, store_HeatmapCaptureType as HeatmapCaptureType, lib_IQ as IQ, LevelStream, constants_MarkerEventType as MarkerEventType, lib_Occupancy as Occupancy, constants_OptionKey as OptionKey, constants_PSType as PSType, constants_SegmentsEvent as SegmentsEvent, constants_SeriesType as SeriesType, lib_Spectrum as Spectrum, setFrequencyAllocationToCache, useSafePublish };
14782
+ export { constants_ChartType as ChartType, lib_Dial as Dial, lib_Gauge as Gauge, lib_Heatmap as Heatmap, store_HeatmapCaptureType as HeatmapCaptureType, lib_IQ as IQ, LevelStream, constants_MarkerEventType as MarkerEventType, store_MarkerMode as MarkerMode, lib_Occupancy as Occupancy, constants_OptionKey as OptionKey, constants_PSType as PSType, constants_SegmentsEvent as SegmentsEvent, constants_SeriesType as SeriesType, lib_Spectrum as Spectrum, setFrequencyAllocationToCache, useSafePublish };
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.21",
8
+ "version": "1.1.23",
9
9
  "private": false
10
10
  }