@rfkit/charts 1.0.99 → 1.0.101
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 +0 -2
- package/components/AxisY/heatmap/index.d.ts +1 -1
- package/components/AxisY/occupancy/components/Ticks/index.d.ts +1 -1
- package/components/AxisY/spectrum/index.d.ts +1 -1
- package/components/AxisY/spectrum/useRanging/index.d.ts +1 -1
- package/components/Cursor/tools.d.ts +2 -2
- package/components/FrequencyAllocation/Tooltip/index.d.ts +1 -1
- package/components/FrequencyAllocation/types.d.ts +1 -0
- package/components/FrequencyMarkerLine/index.d.ts +1 -1
- package/components/HeatmapCapture/tools.d.ts +1 -1
- package/components/Markers/index.d.ts +2 -2
- package/components/Markers/lib/tools.d.ts +3 -3
- package/components/Square/index.d.ts +2 -1
- package/components/ToolsBar/IconBox.d.ts +2 -1
- package/config/constants.d.ts +1 -1
- package/engine/dial.d.ts +1 -1
- package/engine/gauge.d.ts +1 -1
- package/engine/heatmap.d.ts +1 -1
- package/engine/index.d.ts +5 -5
- package/engine/radar.d.ts +1 -1
- package/engine/series.d.ts +2 -2
- package/engine/webglExample.d.ts +1 -1
- package/engine/webglSeries.d.ts +1 -1
- package/hooks/useChannel.d.ts +1 -1
- package/hooks/useSpectrumAnalyzer/useTemplateComparison.d.ts +4 -22
- package/hooks/useSpectrumChartType.d.ts +1 -1
- package/hooks/useSpectrumRule.d.ts +1 -2
- package/index.d.ts +5 -5
- package/index.js +8885 -8855
- package/lib/IQ/Chart.d.ts +1 -2
- package/lib/Spectrum/Chart.d.ts +1 -1
- package/lib/index.d.ts +4 -4
- package/modules/Occupancy/TotalLine/index.d.ts +1 -1
- package/package.json +1 -1
- package/store/Params.d.ts +1 -1
- package/store/constants.d.ts +1 -1
- package/store/context.d.ts +1 -1
- package/store/data/frequencyAllocation.d.ts +1 -0
- package/store/hooks/useStore.d.ts +1 -1
- package/store/index.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/store.d.ts +2 -1
- package/utils/converter.d.ts +1 -1
- package/utils/index.d.ts +2 -2
- package/utils/subscription.d.ts +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import GradientRibbon from './type/Default/GradientRibbon';
|
|
3
2
|
import type { RenderChartType } from '../../../types';
|
|
3
|
+
import GradientRibbon from './type/Default/GradientRibbon';
|
|
4
4
|
export { GradientRibbon };
|
|
5
5
|
interface Props {
|
|
6
6
|
id: string;
|
|
@@ -4,7 +4,7 @@ export declare const CURSOR_SETACTIVE: (globalID: string, func?: RecursiveFuncti
|
|
|
4
4
|
/**
|
|
5
5
|
* 将位置信息转换为视觉left
|
|
6
6
|
*/
|
|
7
|
-
export declare function convertCoordToVisualLeft({ coord, zoom, segments
|
|
7
|
+
export declare function convertCoordToVisualLeft({ coord, zoom, segments }: {
|
|
8
8
|
coord: {
|
|
9
9
|
left: number;
|
|
10
10
|
};
|
|
@@ -21,7 +21,7 @@ export declare function convertCoordToVisualLeft({ coord, zoom, segments, }: {
|
|
|
21
21
|
/**
|
|
22
22
|
* 将视觉left转换为真实left
|
|
23
23
|
*/
|
|
24
|
-
export declare function convertVisualLeftToRealLeft({ visualLeft, zoom, segments
|
|
24
|
+
export declare function convertVisualLeftToRealLeft({ visualLeft, zoom, segments }: {
|
|
25
25
|
visualLeft: number;
|
|
26
26
|
zoom: {
|
|
27
27
|
interval: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToolType } from '../../config';
|
|
3
|
-
import FrequencyMarkerSwitch from './Switch';
|
|
4
3
|
import FrequencyMarkerLineBoard from './Board';
|
|
4
|
+
import FrequencyMarkerSwitch from './Switch';
|
|
5
5
|
export { FrequencyMarkerSwitch, FrequencyMarkerLineBoard };
|
|
6
6
|
export declare const COMPONENT_KEY = ToolType.FrequencyMarkerLine;
|
|
7
7
|
interface Props {
|
|
@@ -28,6 +28,6 @@ export declare const defaultAreaInfoResult: {
|
|
|
28
28
|
bandwidthFormat: string;
|
|
29
29
|
data: number[][];
|
|
30
30
|
};
|
|
31
|
-
export default function calculateAreaInfo({ endLeft, startLeft, startTop, endTop, frequencyFormat, globalID
|
|
31
|
+
export default function calculateAreaInfo({ endLeft, startLeft, startTop, endTop, frequencyFormat, globalID }: AreaInfoParams): HeatmapAreaData;
|
|
32
32
|
export declare const heatmapCaptureUpdate: (globalID: string, func?: (props: Partial<HeatmapCaptureProps>) => void) => (...args: any[]) => void;
|
|
33
33
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { MARKER_UPDATE_PARAMS, MARKER_UPDATE_ATTRIBUTE, MARKER_UPDATE_RESET, startstop2frequency, bandwidthfrequency2frequency } from './lib/tools';
|
|
3
2
|
import Counter from './lib/Counter.js';
|
|
4
3
|
import Selecter from './lib/Selecter.js';
|
|
5
|
-
|
|
4
|
+
import { bandwidthfrequency2frequency, MARKER_UPDATE_ATTRIBUTE, MARKER_UPDATE_PARAMS, MARKER_UPDATE_RESET, startstop2frequency } from './lib/tools';
|
|
5
|
+
export { Counter, Selecter, startstop2frequency, bandwidthfrequency2frequency, MARKER_UPDATE_PARAMS, MARKER_UPDATE_ATTRIBUTE, MARKER_UPDATE_RESET };
|
|
6
6
|
interface Props {
|
|
7
7
|
id: string;
|
|
8
8
|
counter?: any;
|
|
@@ -2,11 +2,11 @@ import type { MarkerType, RecursiveFunction, SegmentsType } from '../../../types
|
|
|
2
2
|
export declare const MARKER_UPDATE_PARAMS: (id: string, func?: RecursiveFunction) => (...args: any[]) => void;
|
|
3
3
|
export declare const MARKER_UPDATE_ATTRIBUTE: (id: string, func?: RecursiveFunction) => (...args: any[]) => void;
|
|
4
4
|
export declare const MARKER_UPDATE_RESET: (id: string, func?: RecursiveFunction) => (...args: any[]) => void;
|
|
5
|
-
export declare function startstop2frequency({ start, stop
|
|
5
|
+
export declare function startstop2frequency({ start, stop }: {
|
|
6
6
|
start: number;
|
|
7
7
|
stop: number;
|
|
8
8
|
}): (x: number, len: number) => number;
|
|
9
|
-
export declare function bandwidthfrequency2frequency({ frequency, bandwidth
|
|
9
|
+
export declare function bandwidthfrequency2frequency({ frequency, bandwidth }: {
|
|
10
10
|
frequency: number;
|
|
11
11
|
bandwidth: number;
|
|
12
12
|
}): (x: number, len: number) => number;
|
|
@@ -43,7 +43,7 @@ interface ZoomLeftResult {
|
|
|
43
43
|
* @param segments - 数据段信息
|
|
44
44
|
* @returns 返回缩放后的位置信息
|
|
45
45
|
*/
|
|
46
|
-
export declare function splitZoomLeft({ left, zoom, segments
|
|
46
|
+
export declare function splitZoomLeft({ left, zoom, segments }: ZoomLeftParams): ZoomLeftResult;
|
|
47
47
|
/**
|
|
48
48
|
* 移动marker
|
|
49
49
|
*/
|
package/config/constants.d.ts
CHANGED
package/engine/dial.d.ts
CHANGED
package/engine/gauge.d.ts
CHANGED
package/engine/heatmap.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { AxisYRange } from '../types';
|
|
1
2
|
import Engine from './engine';
|
|
2
3
|
import type { StateProps } from './type';
|
|
3
|
-
import type { AxisYRange } from '../types';
|
|
4
4
|
export default class Heatmap extends Engine {
|
|
5
5
|
init(props: StateProps): void;
|
|
6
6
|
updateProps(e: any): void;
|
package/engine/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Dial from './dial';
|
|
2
|
+
import Gauge from './gauge';
|
|
2
3
|
import Heatmap from './heatmap';
|
|
3
4
|
import IQ from './iq';
|
|
4
5
|
import IQEye from './iqEye';
|
|
5
|
-
import Dial from './dial';
|
|
6
6
|
import Radar from './radar';
|
|
7
|
-
import
|
|
7
|
+
import Series from './series';
|
|
8
|
+
import { GraphicType, OrientationType, type StateProps } from './type';
|
|
8
9
|
import WebGLEngine from './webglEngine';
|
|
9
10
|
import WebGLSeries from './webglSeries';
|
|
10
|
-
|
|
11
|
-
export { Heatmap, Series, IQ, IQEye, OrientationType, GraphicType, Dial, Radar, Gauge, WebGLEngine, WebGLSeries, };
|
|
11
|
+
export { Heatmap, Series, IQ, IQEye, OrientationType, GraphicType, Dial, Radar, Gauge, WebGLEngine, WebGLSeries };
|
|
12
12
|
export type { StateProps };
|
package/engine/radar.d.ts
CHANGED
package/engine/series.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type StateProps } from './type';
|
|
2
|
-
import Engine from './engine';
|
|
3
1
|
import type { AxisYRange, RecursiveObject, SeriesConfig } from '../types';
|
|
2
|
+
import Engine from './engine';
|
|
3
|
+
import { type StateProps } from './type';
|
|
4
4
|
export default class Series extends Engine {
|
|
5
5
|
init(props: StateProps): void;
|
|
6
6
|
updateProps(e: RecursiveObject): void;
|
package/engine/webglExample.d.ts
CHANGED
package/engine/webglSeries.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { AxisYRange, RecursiveObject, SeriesConfig } from '../types';
|
|
1
2
|
import { type StateProps } from './type';
|
|
2
3
|
import WebGLEngine from './webglEngine';
|
|
3
|
-
import type { AxisYRange, RecursiveObject, SeriesConfig } from '../types';
|
|
4
4
|
export default class WebGLSeries extends WebGLEngine {
|
|
5
5
|
private vertexData;
|
|
6
6
|
private colorData;
|
package/hooks/useChannel.d.ts
CHANGED
|
@@ -1,26 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { SelectedSignal } from '../../types';
|
|
3
|
-
interface UseTemplateComparisonProps {
|
|
4
|
-
frequencyFormat: RefObject<(x: number) => string>;
|
|
5
|
-
onChange: RefObject<(e: SelectedSignal) => void>;
|
|
6
|
-
globalID: string;
|
|
7
|
-
}
|
|
8
|
-
interface ExceedingSegment {
|
|
9
|
-
maxValue: number;
|
|
10
|
-
minValue: number;
|
|
11
|
-
avgValue: number;
|
|
12
|
-
startFrequency: number;
|
|
13
|
-
stopFrequency: number;
|
|
14
|
-
centerFrequency: number;
|
|
15
|
-
bandwidth: number;
|
|
16
|
-
timestamp: number;
|
|
17
|
-
}
|
|
1
|
+
import { SpectrumOutputData } from '@rfkit/spectrum-analyzer';
|
|
18
2
|
/**
|
|
19
3
|
* 模板数据比较 Hook
|
|
20
|
-
*
|
|
4
|
+
* 用于处理模板超出数据的转换
|
|
21
5
|
*/
|
|
22
|
-
export default function useTemplateComparison(
|
|
23
|
-
|
|
24
|
-
processExceedingData: (data: Float32Array, templateData: Float32Array, timestamp: number) => void;
|
|
6
|
+
export default function useTemplateComparison(): {
|
|
7
|
+
updateTemplateOverData: (templateOverData: SpectrumOutputData["templateOverData"]) => void;
|
|
25
8
|
};
|
|
26
|
-
export {};
|
|
@@ -3,7 +3,7 @@ export interface Props {
|
|
|
3
3
|
type: ChartType;
|
|
4
4
|
heatmapElementID?: string;
|
|
5
5
|
}
|
|
6
|
-
export default function useSpectrumChartType({ type, heatmapElementID
|
|
6
|
+
export default function useSpectrumChartType({ type, heatmapElementID }: Props): {
|
|
7
7
|
enableMetrics: boolean;
|
|
8
8
|
enableWaterfall: boolean;
|
|
9
9
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { PublishData } from '../types';
|
|
2
1
|
import { type Props as ChannelProps } from './useChannel';
|
|
3
|
-
import type { RecursiveFunction } from '../types';
|
|
2
|
+
import type { PublishData, RecursiveFunction } from '../types';
|
|
4
3
|
export declare const SET_SEGMENTS_DISPLAY: (globalID: string, func?: RecursiveFunction) => (...args: any[]) => void;
|
|
5
4
|
export interface Props extends ChannelProps {
|
|
6
5
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
RecursiveFunction, // 递归方法 后期会删除
|
|
4
|
-
|
|
1
|
+
export { ChartType, MarkerEventType, OptionKey, PSType, SegmentsEvent, SeriesType } from './config';
|
|
2
|
+
export { Dial, Gauge, Heatmap, IQ, LevelStream, Occupancy, Spectrum } from './lib';
|
|
3
|
+
export type { AxisXProps, AxisYRange, MarkerType, Publish, PublishData, PublishDial, PublishGauge, PublishHeatmap, PublishIQ, PublishLevelStream, PublishOccupancy, PublishSpectrum, RecursiveFunction, // 递归方法 后期会删除
|
|
4
|
+
RecursiveObject, // 递归对象 后期会删除
|
|
5
|
+
Render, Reset, SegmentsOriginal, SeriesConfig, SetAntennaFactor, SetChannels, SetMarker, SetSegments, SetSeries, SetSpectrumBandwidth, SpectrumBandwidth, SpectrumExtraData } from './types';
|
|
5
6
|
export { HeatmapCaptureType } from './types';
|
|
6
|
-
export { PSType, ChartType, SegmentsEvent, MarkerEventType, SeriesType, OptionKey, } from './config';
|