@rfkit/charts 1.0.87 → 1.0.88

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.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { Spectrum, LevelStream, IQ, Gauge, Dial, Heatmap, Occupancy, } from './lib';
2
2
  export type { RecursiveObject, // 递归对象 后期会删除
3
3
  RecursiveFunction, // 递归方法 后期会删除
4
- AxisYRange, AxisXProps, SeriesConfig, SegmentsOriginal, SpectrumBandwidth, MarkerType, HeatmapCaptureType, SetSeries, SetSpectrumBandwidth, SetSegments, SetAntennaFactor, SetChannels, SetMarker, SpectrumExtraData, PublishSpectrum, PublishHeatmap, PublishOccupancy, PublishLevelStream, PublishIQ, PublishDial, PublishGauge, Reset, Render, PublishData, } from './types';
5
- export { PSType, ChartType, SegmentsEvent, MarkerEventType, SeriesType, } from './config';
4
+ AxisYRange, AxisXProps, SeriesConfig, SegmentsOriginal, SpectrumBandwidth, MarkerType, SetSeries, SetSpectrumBandwidth, SetSegments, SetAntennaFactor, SetChannels, SetMarker, SpectrumExtraData, PublishSpectrum, PublishHeatmap, PublishOccupancy, PublishLevelStream, PublishIQ, PublishDial, PublishGauge, Reset, Render, PublishData, } from './types';
5
+ export { HeatmapCaptureType } from './types';
6
+ export { PSType, ChartType, SegmentsEvent, MarkerEventType, SeriesType, OptionKey, } from './config';
package/index.js CHANGED
@@ -5079,14 +5079,14 @@ FullTicks_styles_module_options.insertStyleElement = insertStyleElement_default(
5079
5079
  injectStylesIntoStyleTag_default()(FullTicks_styles_module.Z, FullTicks_styles_module_options);
5080
5080
  const components_FullTicks_styles_module = FullTicks_styles_module.Z && FullTicks_styles_module.Z.locals ? FullTicks_styles_module.Z.locals : void 0;
5081
5081
  const FullTicks_COMPONENT_KEY = 'AxisYHeatmapTicks';
5082
- const FullTicks_heatmapFullTicks = 10;
5082
+ const HEATMAP_FULL_TICKS = 10;
5083
5083
  const FullTicks_Ticks = (props)=>{
5084
5084
  const { id } = props;
5085
5085
  const { state: { globalID } } = useStore_useStore();
5086
- const [timeValues, setTimeValues] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(Array(FullTicks_heatmapFullTicks).fill(''));
5086
+ const [timeValues, setTimeValues] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(Array(HEATMAP_FULL_TICKS).fill(''));
5087
5087
  const positions = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
5088
5088
  const pos = [];
5089
- for(let i = 0; i < FullTicks_heatmapFullTicks; i++)pos.push(`${100 - i / (FullTicks_heatmapFullTicks - 1) * 100}%`);
5089
+ for(let i = 0; i < HEATMAP_FULL_TICKS; i++)pos.push(`${100 - i / (HEATMAP_FULL_TICKS - 1) * 100}%`);
5090
5090
  return pos;
5091
5091
  }, []);
5092
5092
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
@@ -5094,8 +5094,8 @@ const FullTicks_Ticks = (props)=>{
5094
5094
  const { waterfallData } = withDatabase(globalID).getAllRawData();
5095
5095
  const values = [];
5096
5096
  const dataLength = waterfallData.length;
5097
- for(let i = 0; i < FullTicks_heatmapFullTicks; i++){
5098
- const index = Math.floor((dataLength - 1) * i / (FullTicks_heatmapFullTicks - 1));
5097
+ for(let i = 0; i < HEATMAP_FULL_TICKS; i++){
5098
+ const index = Math.floor((dataLength - 1) * i / (HEATMAP_FULL_TICKS - 1));
5099
5099
  const data = waterfallData[index];
5100
5100
  const value = data?.timestamp ? getDateTime(data.timestamp, void 0, void 0, true) : '';
5101
5101
  values.push(value);
@@ -13143,7 +13143,6 @@ function useSeries() {
13143
13143
  if (!config?.name) return;
13144
13144
  const { name, label, data } = config;
13145
13145
  const existingSeries = seriesRef.current.get(name);
13146
- console.log(label, name, existingSeries?.label, existingSeries?.name);
13147
13146
  const newConfig = {
13148
13147
  ...SERIES_DEFAULT_CONFIG,
13149
13148
  ...existingSeries,
@@ -14260,4 +14259,4 @@ const lib_Dial_Dial = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react
14260
14259
  })
14261
14260
  });
14262
14261
  const lib_Dial = lib_Dial_Dial;
14263
- export { constants_ChartType as ChartType, lib_Dial as Dial, lib_Gauge as Gauge, lib_Heatmap as Heatmap, lib_IQ as IQ, lib_LevelStream as LevelStream, constants_MarkerEventType as MarkerEventType, lib_Occupancy as Occupancy, constants_PSType as PSType, constants_SegmentsEvent as SegmentsEvent, constants_SeriesType as SeriesType, lib_Spectrum as Spectrum };
14262
+ 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, lib_LevelStream as 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 };
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.0.87",
8
+ "version": "1.0.88",
9
9
  "private": false
10
10
  }
package/types/store.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface AxisYProps {
23
23
  type?: string;
24
24
  hidden?: string[];
25
25
  linkage?: boolean;
26
- heatmapFullTicks?: number;
26
+ heatmapFullTicks?: boolean;
27
27
  onChange?: (e: RecursiveObject) => void;
28
28
  }
29
29
  export interface AxisXProps {