@rfkit/charts 1.2.16 → 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
@@ -11163,7 +11163,6 @@ const Signal_Switch_Switch = ()=>{
11163
11163
  signal,
11164
11164
  dispatch
11165
11165
  ]);
11166
- console.log('shouldShow', isActive, shouldShow);
11167
11166
  if (!shouldShow) return null;
11168
11167
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ToolsBar_IconBox, {
11169
11168
  onClick: ()=>{
@@ -15939,7 +15938,7 @@ function useSpectrumAnalyzer(props) {
15939
15938
  if (e.maxData) analyzer.current.setMaxData(e.maxData);
15940
15939
  if (e.minData) analyzer.current.setMinData(e.minData);
15941
15940
  if (e.avgData) analyzer.current.setAvgData(e.avgData);
15942
- if (e.templateData) analyzer.current.setTemplateData(e.templateData);
15941
+ if (e.templateData) analyzer.current.setTemplateData(e.templateData, e.templateTolerance);
15943
15942
  if (e.backgroundNoiseData) analyzer.current.setBackgroundNoiseData(e.backgroundNoiseData);
15944
15943
  if (e.extraData) analyzer.current?.setExtraData(e.extraData);
15945
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.16",
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;