@rfkit/charts 1.0.100 → 1.0.102

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.
@@ -1,4 +1,4 @@
1
- import { SpectrumOutputData } from '../../../../spectrum-flow/dist';
1
+ import { SpectrumOutputData } from '@rfkit/spectrum-analyzer';
2
2
  /**
3
3
  * 模板数据比较 Hook
4
4
  * 用于处理模板超出数据的转换
package/index.js CHANGED
@@ -14000,8 +14000,8 @@ function useTemplateComparison() {
14000
14000
  templateOverData.forEach((overData)=>{
14001
14001
  const { startIndex, endIndex } = overData;
14002
14002
  const totalLength = templateOverData.length;
14003
- const startPercent = (startIndex + 1) * 100 / totalLength;
14004
- const endPercent = (endIndex + 1) * 100 / totalLength;
14003
+ const startPercent = (startIndex + 0.5) * 100 / totalLength;
14004
+ const endPercent = (endIndex + 0.5) * 100 / totalLength;
14005
14005
  const centerPercent = (startIndex + endIndex) / 2 * 100 / totalLength;
14006
14006
  const startFreq = frequencyFormatRef.current(startPercent);
14007
14007
  const stopFreq = frequencyFormatRef.current(endPercent);
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.100",
8
+ "version": "1.0.102",
9
9
  "private": false
10
10
  }