@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.
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 +
|
|
14004
|
-
const endPercent = (endIndex +
|
|
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);
|