@rfkit/charts 1.13.6 → 1.14.0

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.
@@ -2,8 +2,9 @@ import type { RendererType } from '@rfkit/renderer';
2
2
  import type { ProcessingOptions } from '@rfkit/spectrum-analyzer';
3
3
  import { type UseSpectrumChartTypeProps as SpectrumChartTypeProps } from '../../hooks/spectrum';
4
4
  import { type OccupancyPortalProps } from '../../modules/OccupancyPortal';
5
- import type { ParamsProps } from '../../types';
6
- export interface Props extends SpectrumChartTypeProps, ParamsProps, OccupancyPortalProps {
5
+ import type { StrictParamsProps } from '../../types';
6
+ export interface Props extends Omit<SpectrumChartTypeProps, 'type'>, StrictParamsProps, OccupancyPortalProps {
7
+ type?: SpectrumChartTypeProps['type'];
7
8
  children?: React.ReactNode;
8
9
  touch?: boolean;
9
10
  processing?: Partial<ProcessingOptions>;
@@ -1,4 +1,4 @@
1
1
  import type React from 'react';
2
2
  import type { Props } from './Chart';
3
- declare const Spectrum: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../..").Publish>>;
3
+ declare const Spectrum: React.ForwardRefExoticComponent<Omit<Props, "publish"> & React.RefAttributes<import("../..").Publish>>;
4
4
  export default Spectrum;
@@ -1,2 +1,3 @@
1
1
  export declare const nextItem: <T extends string | number>(v: T, list: T[]) => T;
2
+ export declare const resolveSpectrumUnitList: (unitList: string[] | undefined, fieldStrengthUnitAvailable: boolean) => string[];
2
3
  export declare function findNeighbors(currentValue: number, arr: number[], deltaY: number): number | null | undefined;
@@ -0,0 +1 @@
1
+ export default function useEnableFieldStrengthUnit(): () => void;
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import './theme/library.css';
2
+ export type { TemplateDetectionRegion, TemplateDetectionSnapshot } from '@rfkit/spectrum-analyzer';
2
3
  export { Dial, Gauge, Heatmap, IQ, LevelStream, Occupancy, Spectrum } from './charts';
3
4
  export { AxisPlacement, ChartType, FrequencyUnit, MarkerEventType, ModuleType, OptionKey, PSType, SegmentsEvent, SeriesType, ToolbarItemType, ToolType } from './config';
4
5
  export { type EnhancedPublish, useSafePublish, withChartPublisher } from './hooks';
@@ -6,7 +7,7 @@ export { setFrequencyAllocationChannelsToCache, setFrequencyAllocationToCache }
6
7
  export { type ChartsThemeChange, type InitChartsThemeOptions, type InitChartsThemeResult, initChartsTheme } from './theme/init-charts-theme';
7
8
  export { type ChartsThemePreference, type ChartsThemeState, getChartsThemeState, subscribeChartsThemeChange } from './theme/theme-runtime';
8
9
  export type { ChartsSizeTokensConfig, ChartsThemeTokensConfig } from './theme/theme-tokens';
9
- export type { AxisXProps, AxisYRange, BandProps, ChartRef, DialPolygon, FrequencyAllocationChannel, FrequencyAllocationDensity, FrequencyAllocationItem, MarkerProps, MarkerType, Publish, PublishData, PublishDial, PublishGauge, PublishHeatmap, PublishIQ, PublishLevelStream, PublishOccupancy, PublishSpectrum, RecursiveFunction, RecursiveObject, Render, Reset, SegmentsOriginal, SeriesConfig, SetAntennaFactor, SetChannels, SetMarker, SetSegments, SetSeries, SetSpectrumBandwidth, SignalData, SignalDetails, SpectrumBandwidth, SpectrumExtraData, StationInfoType } from './types';
10
+ export type { AxisXProps, AxisYRange, BandProps, ChartRef, DialPolygon, FrequencyAllocationChannel, FrequencyAllocationDensity, FrequencyAllocationItem, MarkerProps, MarkerType, Publish, PublishData, PublishDial, PublishGauge, PublishHeatmap, PublishIQ, PublishLevelStream, PublishOccupancy, PublishSpectrum, RecursiveFunction, RecursiveObject, Render, Reset, SegmentsOriginal, SeriesConfig, SetAntennaFactor, SetChannels, SetMarker, SetSegments, SetSeries, SetSpectrumBandwidth, SignalData, SignalDetails, SpectrumBandwidth, SpectrumExtraData, StationInfoType, TemplateDetectedSignal, TemplateDetectedSignalChange } from './types';
10
11
  export { HeatmapCaptureType, MarkerMode } from './types';
11
12
  export { SignalDataType } from './types/store';
12
13
  export type { FrequencyUnitResult } from './utils';