@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.
Files changed (45) hide show
  1. package/README.md +0 -2
  2. package/components/AxisY/heatmap/index.d.ts +1 -1
  3. package/components/AxisY/occupancy/components/Ticks/index.d.ts +1 -1
  4. package/components/AxisY/spectrum/index.d.ts +1 -1
  5. package/components/AxisY/spectrum/useRanging/index.d.ts +1 -1
  6. package/components/Cursor/tools.d.ts +2 -2
  7. package/components/FrequencyAllocation/Tooltip/index.d.ts +1 -1
  8. package/components/FrequencyAllocation/types.d.ts +1 -0
  9. package/components/FrequencyMarkerLine/index.d.ts +1 -1
  10. package/components/HeatmapCapture/tools.d.ts +1 -1
  11. package/components/Markers/index.d.ts +2 -2
  12. package/components/Markers/lib/tools.d.ts +3 -3
  13. package/components/Square/index.d.ts +2 -1
  14. package/components/ToolsBar/IconBox.d.ts +2 -1
  15. package/config/constants.d.ts +1 -1
  16. package/engine/dial.d.ts +1 -1
  17. package/engine/gauge.d.ts +1 -1
  18. package/engine/heatmap.d.ts +1 -1
  19. package/engine/index.d.ts +5 -5
  20. package/engine/radar.d.ts +1 -1
  21. package/engine/series.d.ts +2 -2
  22. package/engine/webglExample.d.ts +1 -1
  23. package/engine/webglSeries.d.ts +1 -1
  24. package/hooks/useChannel.d.ts +1 -1
  25. package/hooks/useSpectrumAnalyzer/useTemplateComparison.d.ts +4 -22
  26. package/hooks/useSpectrumChartType.d.ts +1 -1
  27. package/hooks/useSpectrumRule.d.ts +1 -2
  28. package/index.d.ts +5 -5
  29. package/index.js +8885 -8855
  30. package/lib/IQ/Chart.d.ts +1 -2
  31. package/lib/Spectrum/Chart.d.ts +1 -1
  32. package/lib/index.d.ts +4 -4
  33. package/modules/Occupancy/TotalLine/index.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/store/Params.d.ts +1 -1
  36. package/store/constants.d.ts +1 -1
  37. package/store/context.d.ts +1 -1
  38. package/store/data/frequencyAllocation.d.ts +1 -0
  39. package/store/hooks/useStore.d.ts +1 -1
  40. package/store/index.d.ts +1 -1
  41. package/types/index.d.ts +1 -1
  42. package/types/store.d.ts +2 -1
  43. package/utils/converter.d.ts +1 -1
  44. package/utils/index.d.ts +2 -2
  45. package/utils/subscription.d.ts +1 -1
package/lib/IQ/Chart.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type React from 'react';
2
2
  import { ChartType } from '../../config';
3
- import type { ParamsProps } from '../../types';
4
- import type { RecursiveFunction } from '../../types';
3
+ import type { ParamsProps, RecursiveFunction } from '../../types';
5
4
  export interface Props extends ParamsProps {
6
5
  type: ChartType;
7
6
  publish?: RecursiveFunction;
@@ -1,6 +1,6 @@
1
- import type { ParamsProps, RecursiveFunction, RecursiveObject } from '../../types';
2
1
  import { type Props as SpectrumChartTypeProps } from '../../hooks/useSpectrumChartType';
3
2
  import { type Props as SpectrumRuleProps } from '../../hooks/useSpectrumRule';
3
+ import type { ParamsProps, RecursiveFunction, RecursiveObject } from '../../types';
4
4
  export interface Props extends SpectrumChartTypeProps, SpectrumRuleProps, ParamsProps {
5
5
  selecter?: RecursiveObject;
6
6
  publish?: RecursiveFunction;
package/lib/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
+ import Dial from './Dial';
2
+ import Gauge from './Gauge';
1
3
  import Heatmap from './Heatmap';
2
- import Occupancy from './Occupancy';
4
+ import IQ from './IQ';
3
5
  import LevelStream from './LevelStream';
6
+ import Occupancy from './Occupancy';
4
7
  import Spectrum from './Spectrum';
5
- import IQ from './IQ';
6
- import Gauge from './Gauge';
7
- import Dial from './Dial';
8
8
  export { Spectrum, LevelStream, IQ, Gauge, Dial, Heatmap, Occupancy };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  interface Props {
3
3
  value?: number;
4
4
  }
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.0.99",
8
+ "version": "1.0.101",
9
9
  "private": false
10
10
  }
package/store/Params.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { StoreState, ParamsProps } from '../types';
2
+ import type { ParamsProps, StoreState } from '../types';
3
3
  /**
4
4
  * 混合参数
5
5
  * @param key 参数键名
@@ -1,4 +1,4 @@
1
- import type { AxisYRange } from "../types";
1
+ import type { AxisYRange } from '../types';
2
2
  export declare const restrictList: {
3
3
  dBm: number[];
4
4
  dBμV: number[];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { StoreState, DispatchAction } from '../types/store';
2
+ import type { DispatchAction, StoreState } from '../types/store';
3
3
  interface AppContextType {
4
4
  state: StoreState;
5
5
  dispatch: (action: DispatchAction) => void;
@@ -1,2 +1,3 @@
1
1
  import type { FrequencyAllocationItem } from '../../types/store';
2
+ export declare const originalFrequencyAllocationData: FrequencyAllocationItem[];
2
3
  export declare const frequencyAllocationData: FrequencyAllocationItem[];
@@ -1,4 +1,4 @@
1
- import type { StoreState, DispatchAction } from '../../types/store';
1
+ import type { DispatchAction, StoreState } from '../../types/store';
2
2
  /**
3
3
  * 使用全局状态的 hook
4
4
  * @returns 状态和 dispatch 函数
package/store/index.d.ts CHANGED
@@ -2,4 +2,4 @@ import type React from 'react';
2
2
  import type { StoreProps } from '../types/store';
3
3
  declare const Store: React.FC<StoreProps>;
4
4
  export default Store;
5
- export { useStore, useSelector } from './hooks/useStore';
5
+ export { useSelector, useStore } from './hooks/useStore';
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './base';
2
- export * from './publish';
3
2
  export * from './common';
3
+ export * from './publish';
4
4
  export * from './store';
package/types/store.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { TimestampedFloat32Array } from '@rfkit/spectrum-analyzer';
2
- import type { AxisXRange, AxisYRange, RecursiveFunction, RecursiveObject, SegmentsType, SeriesConfig, StationInfoType, TopRightBottomLeft } from './';
3
2
  import type { SeriesType } from '../config';
3
+ import type { AxisXRange, AxisYRange, RecursiveFunction, RecursiveObject, SegmentsType, SeriesConfig, StationInfoType, TopRightBottomLeft } from './';
4
4
  export interface SystemConfig {
5
5
  width: number;
6
6
  height: number;
@@ -210,6 +210,7 @@ export interface FrequencyAllocationItem {
210
210
  color: string;
211
211
  title: string;
212
212
  description: string;
213
+ gradientColors?: [string, string];
213
214
  }
214
215
  export interface FrequencyAllocationProps {
215
216
  show: boolean;
@@ -12,4 +12,4 @@ declare const mW2dBm: (input: number) => number;
12
12
  declare const mW2dBuV: (input: number) => number;
13
13
  declare const mW2V: (input: number) => number;
14
14
  declare const spectrum2dBm: (inputs: Array<number>) => number[];
15
- export { dBm2dBuV, dBm2V, dBm2mW, dBuV2dBm, dBuV2V, dBuV2uV, dBuV2mW, V2dBm, V2dBuV, V2mW, mW2dBm, mW2dBuV, mW2V, spectrum2dBm, };
15
+ export { dBm2dBuV, dBm2V, dBm2mW, dBuV2dBm, dBuV2V, dBuV2uV, dBuV2mW, V2dBm, V2dBuV, V2mW, mW2dBm, mW2dBuV, mW2V, spectrum2dBm };
package/utils/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
+ import type { TimestampedFloat32Array } from '@rfkit/spectrum-analyzer';
1
2
  import type { ModuleType } from '../config';
2
3
  import type { RecursiveObject, SegmentsOriginal, SegmentsType } from '../types';
3
- import type { TimestampedFloat32Array } from '@rfkit/spectrum-analyzer';
4
4
  /**
5
5
  * GUID
6
6
  * @returns {string}
@@ -80,7 +80,7 @@ export declare function getThemeFillStyle(): {
80
80
  export declare const mergeObjects: (e: RecursiveObject, params: RecursiveObject) => RecursiveObject;
81
81
  export declare function getMidIndex(indexStart: number, indexEnd: number): number;
82
82
  export declare const getFrequencyToFixed: (frequency: number, fixedNum?: number) => string;
83
- export declare const createChartRenderID: ({ moduleType, globalID, }: {
83
+ export declare const createChartRenderID: ({ moduleType, globalID }: {
84
84
  moduleType?: ModuleType;
85
85
  globalID?: string;
86
86
  }) => string;
@@ -1,5 +1,5 @@
1
- import type { RecursiveFunction } from '../types';
2
1
  import type { SpectrumAnalyzer, SpectrumData } from '@rfkit/spectrum-analyzer';
2
+ import type { RecursiveFunction } from '../types';
3
3
  export declare function openData(globalID: string, data: any, defaultData: any): any;
4
4
  /**
5
5
  * 共享订阅