@rfkit/charts 1.18.1 → 1.18.3
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/README.md +17 -0
- package/index.d.ts +1 -1
- package/index.js +12 -12
- package/modules/Level/publish.d.ts +3 -0
- package/modules/Spectrum/Limit/Item.d.ts +3 -0
- package/package.json +2 -2
- package/types/publish.d.ts +8 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { LevelStreamAnalyzer } from '@rfkit/spectrum-analyzer';
|
|
2
|
+
import type { PublishLevelStream, PublishLevelStreamBatch } from '../../types/index.js';
|
|
3
|
+
export declare const processLevelStreamPublish: (analyzer: Pick<LevelStreamAnalyzer, 'process' | 'processBatch'>, event: PublishLevelStream | PublishLevelStreamBatch) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rfkit/charts",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.3",
|
|
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.5.2",
|
|
18
|
-
"@rfkit/spectrum-analyzer": "^0.9.
|
|
18
|
+
"@rfkit/spectrum-analyzer": "^0.9.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=16.9.0",
|
package/types/publish.d.ts
CHANGED
|
@@ -82,9 +82,16 @@ export interface PublishOccupancy {
|
|
|
82
82
|
}
|
|
83
83
|
export interface PublishLevelStream {
|
|
84
84
|
pstype: PSType.LevelStream;
|
|
85
|
+
batch?: false;
|
|
85
86
|
data: number;
|
|
86
87
|
timestamp: string;
|
|
87
88
|
}
|
|
89
|
+
export interface PublishLevelStreamBatch {
|
|
90
|
+
pstype: PSType.LevelStream;
|
|
91
|
+
batch: true;
|
|
92
|
+
data: Float32Array;
|
|
93
|
+
timestamps: Float64Array;
|
|
94
|
+
}
|
|
88
95
|
export interface PublishIQ {
|
|
89
96
|
pstype: PSType.IQ;
|
|
90
97
|
IData: number[];
|
|
@@ -150,7 +157,7 @@ export interface Render {
|
|
|
150
157
|
pstype: PSType.Render;
|
|
151
158
|
[key: string]: unknown;
|
|
152
159
|
}
|
|
153
|
-
export type PublishData = SetOption | SetSeries | SetSpectrumBandwidth | SetSegments | SetChannels | SetMarker | SetAntennaFactor | SetSignal | PublishSpectrum | PublishHeatmap | PublishFluorescence | PublishOccupancy | PublishLevelStream | PublishIQ | PublishAudioWaveform | PublishDial | PublishGauge | AutorangingEvent | PointsEvent | BandEvent | ScopeEvent | Reset | Clear | Resize | Render;
|
|
160
|
+
export type PublishData = SetOption | SetSeries | SetSpectrumBandwidth | SetSegments | SetChannels | SetMarker | SetAntennaFactor | SetSignal | PublishSpectrum | PublishHeatmap | PublishFluorescence | PublishOccupancy | PublishLevelStream | PublishLevelStreamBatch | PublishIQ | PublishAudioWaveform | PublishDial | PublishGauge | AutorangingEvent | PointsEvent | BandEvent | ScopeEvent | Reset | Clear | Resize | Render;
|
|
154
161
|
export type Publish = ((p: PublishData) => void) & {
|
|
155
162
|
getSourceData: () => rawData;
|
|
156
163
|
resetViewport?: () => void;
|