@rfkit/charts 1.1.24 → 1.1.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/index.js CHANGED
@@ -12454,8 +12454,7 @@ const useMarkers = (props)=>{
12454
12454
  const level = data[xIndex];
12455
12455
  if (void 0 !== level && !Number.isNaN(level)) {
12456
12456
  const virtualLevel = getVirtualLevel(unit, level)?.toFixed?.(1);
12457
- const levelNum = Number.isNaN(parseFloat(virtualLevel)) ? 0 : parseFloat(virtualLevel);
12458
- e.level = levelNum;
12457
+ e.level = parseFloat(virtualLevel);
12459
12458
  }
12460
12459
  return {
12461
12460
  ...e,
@@ -12479,9 +12478,7 @@ const useMarkers = (props)=>{
12479
12478
  color: markerColor,
12480
12479
  select: false,
12481
12480
  peak: false,
12482
- top: 0,
12483
12481
  frequency: 0,
12484
- level: 0,
12485
12482
  hover: false
12486
12483
  });
12487
12484
  const newMarker = {
@@ -12584,9 +12581,7 @@ const useMarkers = (props)=>{
12584
12581
  color: markerColor,
12585
12582
  select: false,
12586
12583
  peak: isPeak,
12587
- top: 0,
12588
12584
  frequency: 0,
12589
- level: 0,
12590
12585
  hover: false
12591
12586
  });
12592
12587
  newMarkers.push({
@@ -12869,7 +12864,7 @@ const MarkerItem = ({ marker })=>{
12869
12864
  axisX.unit
12870
12865
  ]
12871
12866
  }),
12872
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
12867
+ void 0 !== marker.level && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
12873
12868
  children: [
12874
12869
  marker.level,
12875
12870
  axisY.unit
@@ -14603,7 +14598,6 @@ function useSpectrumChartType({ type, heatmapElementID }) {
14603
14598
  if (type === constants_ChartType.MScan) {
14604
14599
  limit.show = false;
14605
14600
  signal.show = false;
14606
- marker.enabled = false;
14607
14601
  frequencyAllocation.show = false;
14608
14602
  }
14609
14603
  if (type === constants_ChartType.ScanDF360) {
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.24",
8
+ "version": "1.1.26",
9
9
  "private": false
10
10
  }
package/types/store.d.ts CHANGED
@@ -75,7 +75,7 @@ export interface MarkerType {
75
75
  peak: boolean;
76
76
  select: boolean;
77
77
  frequency: number;
78
- level: number;
78
+ level?: number;
79
79
  }
80
80
  export interface MarkerProps {
81
81
  enabled: boolean;