@rfkit/charts 1.2.25 → 1.2.26

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/engine/index.d.ts CHANGED
@@ -6,6 +6,6 @@ import IQ from './iq';
6
6
  import IQEye from './iqEye';
7
7
  import Radar from './radar';
8
8
  import Series from './series';
9
- import { GraphicType, OrientationType, type AxisYRange, type SeriesConfig, type StateProps } from './type';
9
+ import { type AxisYRange, GraphicType, OrientationType, type SeriesConfig, type StateProps } from './type';
10
10
  export { Dial, Fluorescence, Gauge, GraphicType, Heatmap, IQ, IQEye, OrientationType, Radar, Series };
11
11
  export type { AxisYRange, SeriesConfig, StateProps };
package/index.js CHANGED
@@ -15352,24 +15352,43 @@ const modules_Occupancy = Occupancy_Occupancy;
15352
15352
  const Occupancy_Chart_Chart = (props)=>{
15353
15353
  const { publish } = props;
15354
15354
  const { state: { globalID } } = useStore_useStore();
15355
+ const handleSpectrumRule = useSpectrumRule(constants_ChartType.Scan);
15355
15356
  hooks_usePublish({
15356
15357
  publish,
15357
15358
  subscribe: (e)=>{
15358
- if (e.pstype === constants_PSType.Occupancy) tools(globalID, constants_ModuleType.Occupancy)({
15359
- ...e,
15360
- pstype: constants_PSType.Render
15361
- });
15359
+ handleSpectrumRule(e);
15360
+ if (e.pstype === constants_PSType.Occupancy) {
15361
+ if (e.data) {
15362
+ const db = withDatabase(globalID);
15363
+ db.getAllRawData = ()=>({
15364
+ ...getDefaultData().getAllRawData(),
15365
+ occupancyData: e.data
15366
+ });
15367
+ }
15368
+ tools(globalID, constants_ModuleType.Occupancy)({
15369
+ ...e,
15370
+ pstype: constants_PSType.Render
15371
+ });
15372
+ }
15362
15373
  }
15363
15374
  });
15364
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_Container, {
15365
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_FlexBox, {
15366
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Occupancy, {})
15367
- })
15375
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(components_Container, {
15376
+ children: [
15377
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_FlexBox, {
15378
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(modules_Occupancy, {})
15379
+ }),
15380
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(components_AxisX, {
15381
+ type: constants_ChartType.Scan
15382
+ })
15383
+ ]
15368
15384
  });
15369
15385
  };
15370
15386
  const Occupancy_Chart = Occupancy_Chart_Chart;
15371
15387
  const OccupancyChart = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(store, {
15372
15388
  ...props,
15389
+ zoom: {
15390
+ show: false
15391
+ },
15373
15392
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Occupancy_Chart, {
15374
15393
  ...props
15375
15394
  })
@@ -1,4 +1,3 @@
1
- import type React from 'react';
2
1
  import type { ParamsProps } from '../../types';
3
2
  export interface Props extends ParamsProps {
4
3
  }
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.2.25",
8
+ "version": "1.2.26",
9
9
  "private": false
10
10
  }
@@ -1,7 +1,7 @@
1
1
  import type { MarkerEventType, OptionKey, PSType, SegmentsEvent } from '../config';
2
2
  import type { rawData } from '../utils/subscription';
3
- import type { SegmentsOriginal, SeriesConfig, SpectrumBandwidth, StationInfoType } from './common';
4
3
  import type { RecursiveObject } from './base';
4
+ import type { SegmentsOriginal, SeriesConfig, SpectrumBandwidth, StationInfoType } from './common';
5
5
  import type { BandProps, MarkerType, ParamsProps, SignalData, SignalDataType } from './store';
6
6
  export interface SetOption {
7
7
  pstype: PSType.Option;