@rfkit/charts 1.2.17 → 1.2.18

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
@@ -15938,7 +15938,7 @@ function useSpectrumAnalyzer(props) {
15938
15938
  if (e.maxData) analyzer.current.setMaxData(e.maxData);
15939
15939
  if (e.minData) analyzer.current.setMinData(e.minData);
15940
15940
  if (e.avgData) analyzer.current.setAvgData(e.avgData);
15941
- if (e.templateData) analyzer.current.setTemplateData(e.templateData);
15941
+ if (e.templateData) analyzer.current.setTemplateData(e.templateData, e.templateTolerance);
15942
15942
  if (e.backgroundNoiseData) analyzer.current.setBackgroundNoiseData(e.backgroundNoiseData);
15943
15943
  if (e.extraData) analyzer.current?.setExtraData(e.extraData);
15944
15944
  break;
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.2.17",
8
+ "version": "1.2.18",
9
9
  "private": false
10
10
  }
@@ -54,6 +54,7 @@ export interface PublishSpectrum {
54
54
  avgData?: Float32Array;
55
55
  backgroundNoiseData?: Float32Array;
56
56
  templateData?: Float32Array;
57
+ templateTolerance?: number;
57
58
  extraData?: SpectrumExtraData;
58
59
  timestamp?: number;
59
60
  offset?: number;