@rfkit/charts 1.13.7 → 1.14.0
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/charts/Spectrum/Chart.d.ts +3 -2
- package/charts/Spectrum/index.d.ts +1 -1
- package/index.d.ts +2 -1
- package/index.js +38 -7
- package/modules/Spectrum/useSpectrumAnalyzer/useTemplateDetection.d.ts +2 -0
- package/package.json +2 -2
- package/types/store/index.d.ts +3 -1
- package/types/store/signal.d.ts +6 -4
- package/modules/Spectrum/useSpectrumAnalyzer/useTemplateComparison.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rfkit/charts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Chart components for wireless monitoring web applications",
|
|
6
6
|
"exports": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "Hxgh",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@rfkit/renderer": "^0.4.0",
|
|
18
|
-
"@rfkit/spectrum-analyzer": "^0.
|
|
18
|
+
"@rfkit/spectrum-analyzer": "^0.9.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=16.9.0",
|
package/types/store/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export interface StoreProps extends ParamsProps {
|
|
|
59
59
|
children: React.ReactNode;
|
|
60
60
|
[key: string]: unknown;
|
|
61
61
|
}
|
|
62
|
-
export interface
|
|
62
|
+
export interface StrictParamsProps {
|
|
63
63
|
axisY?: Partial<AxisYProps>;
|
|
64
64
|
axisX?: Partial<AxisXProps>;
|
|
65
65
|
fluorescence?: Partial<FluorescenceProps>;
|
|
@@ -84,5 +84,7 @@ export interface ParamsProps {
|
|
|
84
84
|
levelStream?: Partial<LevelStreamProps>;
|
|
85
85
|
deltaMeasurement?: Partial<DeltaMeasurementProps>;
|
|
86
86
|
publish?: Publish;
|
|
87
|
+
}
|
|
88
|
+
export interface ParamsProps extends StrictParamsProps {
|
|
87
89
|
[key: string]: unknown;
|
|
88
90
|
}
|
package/types/store/signal.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TemplateDetectionRegion, TemplateDetectionSnapshot } from '@rfkit/spectrum-analyzer';
|
|
1
2
|
export declare enum SignalDataType {
|
|
2
3
|
Station = "station",
|
|
3
4
|
Simple = "simple"
|
|
@@ -19,17 +20,18 @@ export interface SignalData {
|
|
|
19
20
|
level?: number;
|
|
20
21
|
details?: SignalDetails;
|
|
21
22
|
}
|
|
22
|
-
export
|
|
23
|
-
segIndex: number;
|
|
23
|
+
export interface TemplateDetectedSignal extends TemplateDetectionRegion {
|
|
24
24
|
frequency: number;
|
|
25
|
-
|
|
25
|
+
timestamp: TemplateDetectionSnapshot['timestamp'];
|
|
26
|
+
}
|
|
27
|
+
export type TemplateDetectedSignalChange = (signals: TemplateDetectedSignal[], snapshot: TemplateDetectionSnapshot) => void;
|
|
26
28
|
export interface SignalProps {
|
|
27
29
|
show: boolean;
|
|
28
30
|
display: boolean;
|
|
29
31
|
data: SignalData[];
|
|
30
32
|
hiddenCategoryKeys: string[];
|
|
31
33
|
showCount: boolean;
|
|
32
|
-
onChange:
|
|
34
|
+
onChange: TemplateDetectedSignalChange;
|
|
33
35
|
}
|
|
34
36
|
export interface SignalAnalysisProps {
|
|
35
37
|
show: boolean;
|