@rfkit/charts 1.1.29 → 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.
@@ -0,0 +1,3 @@
1
+ import type React from 'react';
2
+ declare const FluorescenceSwitch: React.FC;
3
+ export default FluorescenceSwitch;
@@ -0,0 +1,6 @@
1
+ import type React from 'react';
2
+ interface Props {
3
+ id?: string;
4
+ }
5
+ declare const Fluorescence: React.FC<Props>;
6
+ export default Fluorescence;
@@ -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 {};
@@ -14,6 +14,7 @@ interface SpectrumState {
14
14
  export default class Spectrum {
15
15
  state: SpectrumState;
16
16
  useRangeAutoFocus: () => void;
17
+ useRangeSet: () => void;
17
18
  firstRenderAutoFocus: boolean;
18
19
  constructor(props: Record<string, unknown>);
19
20
  init(): void;
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.1.29",
8
+ "version": "1.1.30",
9
9
  "private": false
10
10
  }
@@ -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
  };
@@ -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;