@rfkit/charts 1.1.24 → 1.1.25
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 +2 -7
- package/package.json +1 -1
- package/types/store.d.ts +1 -1
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
|
-
|
|
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
|
package/package.json
CHANGED