@rfkit/charts 1.1.30 → 1.1.31
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 +8 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8797,7 +8797,7 @@ class Range {
|
|
|
8797
8797
|
const [restrictMin, restrictMax] = restrict;
|
|
8798
8798
|
let finalMin = Math.max(restrictMin, newRange.min);
|
|
8799
8799
|
let finalMax = Math.min(restrictMax, newRange.max);
|
|
8800
|
-
const minRange = step;
|
|
8800
|
+
const minRange = step / 100;
|
|
8801
8801
|
if (finalMax - finalMin < minRange) {
|
|
8802
8802
|
const center = (finalMin + finalMax) / 2;
|
|
8803
8803
|
finalMin = Math.max(restrictMin, center - minRange / 2);
|
|
@@ -15297,6 +15297,12 @@ function useSpectrumChartType({ type, heatmapElementID }) {
|
|
|
15297
15297
|
limit.show = false;
|
|
15298
15298
|
signal.show = false;
|
|
15299
15299
|
marker.enabled = false;
|
|
15300
|
+
frequencyAllocation.show = false;
|
|
15301
|
+
toolsBar.show = false;
|
|
15302
|
+
axisY.restrict = [
|
|
15303
|
+
0,
|
|
15304
|
+
1
|
|
15305
|
+
];
|
|
15300
15306
|
}
|
|
15301
15307
|
if (type === constants_ChartType.MScan) {
|
|
15302
15308
|
limit.show = false;
|
|
@@ -15345,12 +15351,11 @@ function useSpectrumChartType({ type, heatmapElementID }) {
|
|
|
15345
15351
|
]);
|
|
15346
15352
|
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
15347
15353
|
if (type === constants_ChartType.LiteNormalized && globalID) {
|
|
15348
|
-
if (
|
|
15354
|
+
if (axisY.range[0] < 0 || axisY.range[1] > 1) {
|
|
15349
15355
|
axisY.range = [
|
|
15350
15356
|
0,
|
|
15351
15357
|
1
|
|
15352
15358
|
];
|
|
15353
|
-
axisY.disabled = true;
|
|
15354
15359
|
useRangeSet(globalID)(axisY.range);
|
|
15355
15360
|
}
|
|
15356
15361
|
}
|