@rfkit/charts 1.1.28 → 1.1.30
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 +2 -0
- package/components/AxisY/spectrum/useRanging/ranging.d.ts +2 -6
- package/components/AxisYByCanvas/index.d.ts +6 -0
- package/components/AxisYByCanvas/useCanvasAxisY.d.ts +30 -0
- package/components/Dropdown/index.d.ts +4 -1
- package/components/EventBus/tools.d.ts +1 -0
- package/config/constants.d.ts +28 -0
- package/engine/fluorescence.d.ts +38 -0
- package/engine/index.d.ts +2 -1
- package/engine/type.d.ts +2 -0
- package/index.d.ts +1 -1
- package/index.js +1512 -673
- package/modules/Fluorescence/Switch/index.d.ts +3 -0
- package/modules/Fluorescence/index.d.ts +6 -0
- package/modules/Fluorescence/render.d.ts +42 -0
- package/modules/Spectrum/render.d.ts +1 -0
- package/package.json +1 -1
- package/store/reducer.d.ts +2 -0
- package/types/publish.d.ts +5 -1
- package/types/store.d.ts +8 -0
- package/utils/index.d.ts +1 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Fluorescence as Chart } from '../../engine';
|
|
2
|
+
import type { RecursiveObject } from '../../types';
|
|
3
|
+
interface FluorescenceRenderProps {
|
|
4
|
+
id: string;
|
|
5
|
+
globalID: string;
|
|
6
|
+
}
|
|
7
|
+
interface FluorescenceRenderState extends FluorescenceRenderProps {
|
|
8
|
+
chart: Chart | null;
|
|
9
|
+
}
|
|
10
|
+
export default class FluorescenceRender {
|
|
11
|
+
state: FluorescenceRenderState;
|
|
12
|
+
constructor(props: FluorescenceRenderProps);
|
|
13
|
+
init(): void;
|
|
14
|
+
/**
|
|
15
|
+
* 参数发生改变
|
|
16
|
+
*
|
|
17
|
+
* @param params 更新的参数
|
|
18
|
+
* @memberof WaterfallRender
|
|
19
|
+
*/
|
|
20
|
+
updateParams(params: Partial<FluorescenceRenderProps>): void;
|
|
21
|
+
/**
|
|
22
|
+
* 更新属性
|
|
23
|
+
*
|
|
24
|
+
* @param {RecursiveObject} props
|
|
25
|
+
* @memberof FluorescenceRender
|
|
26
|
+
*/
|
|
27
|
+
updateProps(props: RecursiveObject): void;
|
|
28
|
+
/**
|
|
29
|
+
* 更新数据
|
|
30
|
+
*
|
|
31
|
+
* @param {*} fluorescenceData
|
|
32
|
+
* @memberof FluorescenceRender
|
|
33
|
+
*/
|
|
34
|
+
updateSeries(data: {
|
|
35
|
+
fluorescenceData: Map<number, number>[];
|
|
36
|
+
fluorescenceMaxCount: number;
|
|
37
|
+
}): void;
|
|
38
|
+
reset(): void;
|
|
39
|
+
resize(): void;
|
|
40
|
+
clear(): void;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
package/package.json
CHANGED
package/store/reducer.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare const defaultState: () => {
|
|
|
30
30
|
levelStream?: import("../types").LevelStreamProps;
|
|
31
31
|
timeRange?: number;
|
|
32
32
|
stationInfo: import("../types").StationInfoProps;
|
|
33
|
+
fluorescence: import("../types").FluorescenceProps;
|
|
33
34
|
publish?: import("..").Publish;
|
|
34
35
|
};
|
|
35
36
|
export declare const reducer: (state: StoreState, action: DispatchAction) => {
|
|
@@ -62,5 +63,6 @@ export declare const reducer: (state: StoreState, action: DispatchAction) => {
|
|
|
62
63
|
levelStream?: import("../types").LevelStreamProps;
|
|
63
64
|
timeRange?: number;
|
|
64
65
|
stationInfo: import("../types").StationInfoProps;
|
|
66
|
+
fluorescence: import("../types").FluorescenceProps;
|
|
65
67
|
publish?: import("..").Publish;
|
|
66
68
|
};
|
package/types/publish.d.ts
CHANGED
|
@@ -63,6 +63,10 @@ export interface PublishHeatmap {
|
|
|
63
63
|
data: number[][];
|
|
64
64
|
timestamps: number[];
|
|
65
65
|
}
|
|
66
|
+
export interface PublishFluorescence {
|
|
67
|
+
pstype: PSType.Fluorescence;
|
|
68
|
+
data: Uint32Array[];
|
|
69
|
+
}
|
|
66
70
|
export interface PublishOccupancy {
|
|
67
71
|
pstype: PSType.Occupancy;
|
|
68
72
|
data: Float32Array;
|
|
@@ -105,7 +109,7 @@ export interface Render {
|
|
|
105
109
|
pstype: PSType.Render;
|
|
106
110
|
[key: string]: unknown;
|
|
107
111
|
}
|
|
108
|
-
export type PublishData = SetOption | SetSeries | SetSpectrumBandwidth | SetSegments | SetChannels | SetMarker | SetAntennaFactor | SetStationInfo | PublishSpectrum | PublishHeatmap | PublishOccupancy | PublishLevelStream | PublishIQ | PublishDial | PublishGauge | Reset | Clear | Resize | Render;
|
|
112
|
+
export type PublishData = SetOption | SetSeries | SetSpectrumBandwidth | SetSegments | SetChannels | SetMarker | SetAntennaFactor | SetStationInfo | PublishSpectrum | PublishHeatmap | PublishFluorescence | PublishOccupancy | PublishLevelStream | PublishIQ | PublishDial | PublishGauge | Reset | Clear | Resize | Render;
|
|
109
113
|
export type Publish = ((p: PublishData) => void) & {
|
|
110
114
|
getSourceData: () => rawData;
|
|
111
115
|
};
|
package/types/store.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface SystemConfig {
|
|
|
11
11
|
}
|
|
12
12
|
export interface AxisYProps {
|
|
13
13
|
show?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
14
15
|
gradientRibbon?: boolean;
|
|
15
16
|
realRange?: number[];
|
|
16
17
|
range?: AxisYRange;
|
|
@@ -38,6 +39,7 @@ export interface AxisXProps {
|
|
|
38
39
|
}
|
|
39
40
|
export interface ToolsBarProps {
|
|
40
41
|
show: boolean;
|
|
42
|
+
hiddenTools?: string[];
|
|
41
43
|
}
|
|
42
44
|
export interface SeriesProps {
|
|
43
45
|
weaken: boolean | number;
|
|
@@ -243,6 +245,10 @@ export interface StationInfoProps {
|
|
|
243
245
|
show: boolean;
|
|
244
246
|
data: StationInfoType[];
|
|
245
247
|
}
|
|
248
|
+
export interface FluorescenceProps {
|
|
249
|
+
show: boolean;
|
|
250
|
+
display: boolean;
|
|
251
|
+
}
|
|
246
252
|
export interface StoreState {
|
|
247
253
|
globalID: string;
|
|
248
254
|
config: unknown;
|
|
@@ -272,6 +278,7 @@ export interface StoreState {
|
|
|
272
278
|
levelStream?: LevelStreamProps;
|
|
273
279
|
timeRange?: number;
|
|
274
280
|
stationInfo: StationInfoProps;
|
|
281
|
+
fluorescence: FluorescenceProps;
|
|
275
282
|
[key: string]: unknown;
|
|
276
283
|
publish?: Publish;
|
|
277
284
|
}
|
|
@@ -286,6 +293,7 @@ export interface StoreProps extends ParamsProps {
|
|
|
286
293
|
export interface ParamsProps {
|
|
287
294
|
axisY?: Partial<AxisYProps>;
|
|
288
295
|
axisX?: Partial<AxisXProps>;
|
|
296
|
+
fluorescence?: Partial<FluorescenceProps>;
|
|
289
297
|
gridLines?: boolean;
|
|
290
298
|
legend?: Partial<LegendProps>;
|
|
291
299
|
marker?: Partial<MarkerProps>;
|
package/utils/index.d.ts
CHANGED
|
@@ -104,3 +104,4 @@ export declare const debounce: <T extends (...args: unknown[]) => unknown>(fn: T
|
|
|
104
104
|
* 基于 requestAnimationFrame 的节流函数,适合视觉更新相关操作
|
|
105
105
|
*/
|
|
106
106
|
export declare function debounceRequestAnimationFrame<T extends unknown[]>(func?: (...args: T) => void): (...args: T) => void;
|
|
107
|
+
export declare const getThemeColor: (property: string, opacity?: number) => string;
|