@rfkit/charts 1.14.1 → 1.15.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.
- package/charts/Dial/Chart.d.ts +1 -1
- package/charts/Dial/index.d.ts +2 -2
- package/charts/Gauge/Chart.d.ts +1 -1
- package/charts/Gauge/index.d.ts +2 -2
- package/charts/Heatmap/Chart.d.ts +1 -1
- package/charts/Heatmap/index.d.ts +2 -2
- package/charts/IQ/Chart.d.ts +2 -2
- package/charts/IQ/index.d.ts +2 -2
- package/charts/LevelStream/Chart.d.ts +1 -1
- package/charts/LevelStream/index.d.ts +2 -2
- package/charts/Occupancy/Chart.d.ts +1 -1
- package/charts/Occupancy/index.d.ts +2 -2
- package/charts/SpatialSpectrum/Chart.d.ts +1 -1
- package/charts/SpatialSpectrum/index.d.ts +2 -2
- package/charts/Spectrum/Chart.d.ts +3 -3
- package/charts/Spectrum/heatmapCaptureDefaults.d.ts +1 -1
- package/charts/Spectrum/index.d.ts +2 -2
- package/charts/index.d.ts +7 -7
- package/components/AxisX/Ticks.d.ts +1 -1
- package/components/AxisX/index.d.ts +1 -1
- package/components/AxisX/ticks/DataNFixedTicks.d.ts +6 -0
- package/components/AxisX/ticks/MScanTicks.d.ts +3 -0
- package/components/AxisX/ticks/ThreeFixedTicks.d.ts +3 -0
- package/components/AxisX/ticks/shared.d.ts +13 -0
- package/components/AxisY/heatmap/index.d.ts +2 -2
- package/components/AxisY/spectrum/controls/index.d.ts +3 -3
- package/components/AxisY/spectrum/index.d.ts +4 -4
- package/components/AxisY/spectrum/presenters/TicksPanel/index.d.ts +1 -1
- package/components/AxisY/spectrum/presenters/index.d.ts +1 -1
- package/components/AxisY/spectrum/useRanging/index.d.ts +4 -4
- package/components/AxisY/spectrum/useRanging/ranging.d.ts +1 -1
- package/components/AxisY/spectrum/useRanging/tools.d.ts +2 -1
- package/components/AxisY/tools.d.ts +2 -2
- package/components/Container/runtime.d.ts +1 -1
- package/components/Cursor/index.d.ts +1 -1
- package/components/Cursor/registry.d.ts +1 -1
- package/components/Cursor/tools.d.ts +1 -1
- package/components/Cursor/useCursorSample.d.ts +1 -1
- package/components/DragSelectBox/index.d.ts +1 -1
- package/components/EventBus/position.d.ts +1 -1
- package/components/EventBus/tools.d.ts +3 -3
- package/components/EventBus/useKeyEvent.d.ts +1 -1
- package/components/Overlay/index.d.ts +4 -4
- package/components/Toolbar/controls/SeriesControl/index.d.ts +1 -1
- package/components/Toolbar/controls/index.d.ts +4 -4
- package/components/Toolbar/decorations/GradientRibbon/index.d.ts +1 -1
- package/components/Toolbar/decorations/index.d.ts +2 -2
- package/components/Toolbar/icons/index.d.ts +1 -1
- package/components/Toolbar/index.d.ts +1 -1
- package/components/Toolbar/primitives/IconBox.d.ts +2 -2
- package/components/Toolbar/primitives/ToolbarContentBox.d.ts +2 -2
- package/components/Toolbar/primitives/ToolbarDropdown.d.ts +1 -1
- package/components/Toolbar/primitives/ToolbarGroupIconBox.d.ts +1 -1
- package/components/Toolbar/primitives/index.d.ts +8 -8
- package/components/Toolbar/registry.d.ts +1 -1
- package/components/Toolbar/toggles/index.d.ts +10 -10
- package/components/Zoom/tools.d.ts +1 -1
- package/components/Zoom/xRange.d.ts +1 -1
- package/config/constants.d.ts +7 -7
- package/config/index.d.ts +2 -2
- package/hooks/data/index.d.ts +3 -3
- package/hooks/data/useSegments.d.ts +1 -1
- package/hooks/index.d.ts +8 -8
- package/hooks/publish/enhancedPublish.d.ts +2 -2
- package/hooks/publish/index.d.ts +3 -3
- package/hooks/publish/usePublish.d.ts +2 -2
- package/hooks/publish/useSafePublish.d.ts +2 -2
- package/hooks/spectrum/index.d.ts +5 -5
- package/hooks/spectrum/useSpectrumChartType.d.ts +1 -1
- package/hooks/spectrum/useSpectrumRule.d.ts +2 -2
- package/hooks/spectrum/waterfall.d.ts +1 -1
- package/hooks/useChart/index.d.ts +1 -1
- package/hooks/useChartComponent.d.ts +1 -1
- package/hooks/useModuleSubscription.d.ts +3 -3
- package/hooks/useSeriesManager/index.d.ts +2 -2
- package/hooks/useSeriesManager/useFilteredSeries.d.ts +1 -1
- package/hooks/useSeriesManager/useSeriesManager.d.ts +2 -2
- package/index.d.ts +12 -12
- package/index.js +60 -112
- package/index.js.LICENSE.txt +1 -1
- package/modules/Dial/render.d.ts +1 -1
- package/modules/Fluorescence/render.d.ts +1 -1
- package/modules/Gauge/render.d.ts +1 -1
- package/modules/Heatmap/Capture/index.d.ts +1 -1
- package/modules/Heatmap/Capture/sliderInfo.d.ts +2 -2
- package/modules/Heatmap/Capture/tools.d.ts +2 -2
- package/modules/Heatmap/render.d.ts +1 -1
- package/modules/HeatmapPortal/index.d.ts +1 -1
- package/modules/IQEye/index.d.ts +1 -1
- package/modules/IQPlanisphere/index.d.ts +1 -1
- package/modules/IQStream/index.d.ts +1 -1
- package/modules/Occupancy/render.d.ts +1 -1
- package/modules/OccupancyPortal/index.d.ts +1 -1
- package/modules/SpatialSpectrum/render.d.ts +1 -1
- package/modules/Spectrum/AxisYCanvas/index.d.ts +1 -1
- package/modules/Spectrum/AxisYCanvas/useCanvasAxisY.d.ts +1 -1
- package/modules/Spectrum/BandLayer/bandState.d.ts +3 -3
- package/modules/Spectrum/BandLayer/index.d.ts +1 -1
- package/modules/Spectrum/BandLayer/useBandLayerController.d.ts +1 -1
- package/modules/Spectrum/Blaze/index.d.ts +1 -1
- package/modules/Spectrum/Blaze/tools.d.ts +1 -1
- package/modules/Spectrum/FrequencyAllocation/color.d.ts +1 -1
- package/modules/Spectrum/FrequencyAllocation/index.d.ts +2 -2
- package/modules/Spectrum/FrequencyAllocation/model/channelModel.d.ts +1 -1
- package/modules/Spectrum/FrequencyAllocation/model/density.d.ts +1 -1
- package/modules/Spectrum/FrequencyAllocation/model/index.d.ts +5 -5
- package/modules/Spectrum/FrequencyAllocation/model/resolveFrequencyAllocationData.d.ts +2 -2
- package/modules/Spectrum/FrequencyAllocation/model/resolver.d.ts +4 -4
- package/modules/Spectrum/FrequencyAllocation/model/useAllocationAtCursor.d.ts +2 -2
- package/modules/Spectrum/FrequencyAllocation/model/useFrequencyAllocationData.d.ts +2 -2
- package/modules/Spectrum/FrequencyAllocation/overlays/Tooltip/index.d.ts +1 -1
- package/modules/Spectrum/FrequencyAllocation/overlays/index.d.ts +1 -1
- package/modules/Spectrum/FrequencyAllocation/presenters/AllocationInfo/index.d.ts +1 -1
- package/modules/Spectrum/FrequencyAllocation/presenters/AllocationSegments/index.d.ts +1 -1
- package/modules/Spectrum/FrequencyAllocation/presenters/index.d.ts +2 -2
- package/modules/Spectrum/FrequencyAllocation/tools.d.ts +1 -1
- package/modules/Spectrum/FrequencyAllocation/types.d.ts +1 -1
- package/modules/Spectrum/FrequencyDataBoard/hooks/index.d.ts +1 -1
- package/modules/Spectrum/FrequencyDataBoard/hooks/useStationInfoAtCursor.d.ts +1 -1
- package/modules/Spectrum/FrequencyDataBoard/index.d.ts +1 -1
- package/modules/Spectrum/FrequencyDataBoard/panels/StationInfoPanel/index.d.ts +1 -1
- package/modules/Spectrum/FrequencyDataBoard/panels/index.d.ts +1 -1
- package/modules/Spectrum/FrequencyTagLine/index.d.ts +3 -3
- package/modules/Spectrum/Markers/MarkerItem/index.d.ts +1 -1
- package/modules/Spectrum/Markers/hooks/useMarkerEvents.d.ts +1 -1
- package/modules/Spectrum/Markers/hooks/useMarkers.d.ts +2 -2
- package/modules/Spectrum/Markers/index.d.ts +1 -1
- package/modules/Spectrum/Markers/tools.d.ts +1 -1
- package/modules/Spectrum/Scope/index.d.ts +1 -1
- package/modules/Spectrum/Scope/useScope.d.ts +1 -1
- package/modules/Spectrum/Signal/index.d.ts +3 -3
- package/modules/Spectrum/Signal/metadata/index.d.ts +2 -2
- package/modules/Spectrum/Signal/model/index.d.ts +4 -4
- package/modules/Spectrum/Signal/model/match.d.ts +2 -2
- package/modules/Spectrum/Signal/model/resolver.d.ts +3 -3
- package/modules/Spectrum/Signal/model/tree.d.ts +2 -2
- package/modules/Spectrum/Signal/model/useStationInfoAtCursor.d.ts +3 -3
- package/modules/Spectrum/Signal/model/useUnifiedSignals.d.ts +1 -1
- package/modules/Spectrum/Signal/presenters/SignalSegments/index.d.ts +1 -1
- package/modules/Spectrum/Signal/presenters/index.d.ts +1 -1
- package/modules/Spectrum/Signal/tools.d.ts +1 -1
- package/modules/Spectrum/Signal/useSignalDataManager.d.ts +1 -1
- package/modules/Spectrum/Stripe/index.d.ts +1 -1
- package/modules/Spectrum/render.d.ts +2 -2
- package/modules/Spectrum/useMarkerPublish.d.ts +1 -1
- package/modules/Spectrum/useSpectrumAnalyzer/index.d.ts +1 -1
- package/modules/Spectrum/useSpectrumAnalyzer/thresholdData.d.ts +1 -1
- package/modules/base/CircularRenderer.d.ts +1 -1
- package/modules/base/GradientRenderer.d.ts +1 -1
- package/modules/base/IQRenderer.d.ts +1 -1
- package/modules/base/index.d.ts +4 -4
- package/package.json +1 -1
- package/runtime/interaction/index.d.ts +2 -2
- package/runtime/passThrough.d.ts +1 -1
- package/store/Params.d.ts +2 -1
- package/store/bandState.d.ts +1 -1
- package/store/chart-store.d.ts +1 -1
- package/store/constants.d.ts +1 -1
- package/store/context.d.ts +3 -3
- package/store/defaultState.d.ts +1 -1
- package/store/globalState.d.ts +2 -2
- package/store/hooks/index.d.ts +1 -1
- package/store/hooks/useStore.d.ts +3 -3
- package/store/index.d.ts +2 -2
- package/store/reducer.d.ts +1 -1
- package/store/runtime.d.ts +2 -2
- package/theme/init-charts-theme.d.ts +2 -2
- package/theme/theme-runtime.d.ts +1 -1
- package/theme/theme-styles.d.ts +1 -1
- package/types/common.d.ts +1 -1
- package/types/index.d.ts +4 -4
- package/types/publish.d.ts +5 -5
- package/types/store/axis.d.ts +3 -2
- package/types/store/index.d.ts +15 -15
- package/types/store/marker.d.ts +1 -1
- package/types/store/series.d.ts +1 -1
- package/types/store/ui.d.ts +3 -2
- package/types/store.d.ts +1 -1
- package/utils/cursor.d.ts +2 -2
- package/utils/frequency.d.ts +2 -2
- package/utils/frequencyCalculation.d.ts +1 -1
- package/utils/index.d.ts +7 -7
- package/utils/object.d.ts +1 -1
- package/utils/series/events.d.ts +2 -2
- package/utils/series/index.d.ts +4 -4
- package/utils/series/subscription.d.ts +1 -1
- package/utils/subscription.d.ts +1 -1
- package/utils/throttle.d.ts +4 -1
package/hooks/publish/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { EnhancedPublish } from './enhancedPublish';
|
|
2
|
-
export { default as usePublish, PUB_SUB } from './usePublish';
|
|
3
|
-
export { default as useSafePublish } from './useSafePublish';
|
|
1
|
+
export type { EnhancedPublish } from './enhancedPublish.js';
|
|
2
|
+
export { default as usePublish, PUB_SUB } from './usePublish.js';
|
|
3
|
+
export { default as useSafePublish } from './useSafePublish.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Publish } from '../../types';
|
|
2
|
-
import { type CSMCallback } from '../../utils/subscription';
|
|
1
|
+
import type { Publish } from '../../types/index.js';
|
|
2
|
+
import { type CSMCallback } from '../../utils/subscription.js';
|
|
3
3
|
export declare const PUB_SUB: (globalID: string, func?: CSMCallback) => (...args: any[]) => void;
|
|
4
4
|
interface Props {
|
|
5
5
|
subscribe?: CSMCallback;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PublishData } from '../../types';
|
|
2
|
-
import { type EnhancedPublish } from './enhancedPublish';
|
|
1
|
+
import type { PublishData } from '../../types/index.js';
|
|
2
|
+
import { type EnhancedPublish } from './enhancedPublish.js';
|
|
3
3
|
export interface UseSafePublishReturn {
|
|
4
4
|
publish: (data: PublishData) => void;
|
|
5
5
|
chartRef: React.RefObject<EnhancedPublish>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { Props as UseSpectrumChartTypeProps } from './useSpectrumChartType';
|
|
2
|
-
export { default as useSpectrumChartType } from './useSpectrumChartType';
|
|
3
|
-
export { default as useSpectrumRule, SET_SEGMENTS_DISPLAY } from './useSpectrumRule';
|
|
4
|
-
export { default as useTouchMode } from './useTouchMode';
|
|
5
|
-
export { shouldEnableSpectrumWaterfall } from './waterfall';
|
|
1
|
+
export type { Props as UseSpectrumChartTypeProps } from './useSpectrumChartType.js';
|
|
2
|
+
export { default as useSpectrumChartType } from './useSpectrumChartType.js';
|
|
3
|
+
export { default as useSpectrumRule, SET_SEGMENTS_DISPLAY } from './useSpectrumRule.js';
|
|
4
|
+
export { default as useTouchMode } from './useTouchMode.js';
|
|
5
|
+
export { shouldEnableSpectrumWaterfall } from './waterfall.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartType } from '../../config';
|
|
2
|
-
import type { PublishData, RecursiveFunction } from '../../types';
|
|
1
|
+
import { ChartType } from '../../config/index.js';
|
|
2
|
+
import type { PublishData, RecursiveFunction } from '../../types/index.js';
|
|
3
3
|
export declare const SET_SEGMENTS_DISPLAY: (globalID: string, func?: RecursiveFunction<[number | undefined]>) => (...args: any[]) => void;
|
|
4
4
|
export default function useSpectrumRule(type: ChartType): (e: PublishData) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { RecursiveObject, RenderChartType } from '../../types';
|
|
2
|
+
import type { RecursiveObject, RenderChartType } from '../../types/index.js';
|
|
3
3
|
type RenderConstructor<T extends RenderChartType = RenderChartType> = new (props: {
|
|
4
4
|
id: string;
|
|
5
5
|
globalID: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ComponentType } from 'react';
|
|
2
|
-
import type { Publish } from '../types';
|
|
2
|
+
import type { Publish } from '../types/index.js';
|
|
3
3
|
export declare function withChartPublisher<TProps extends {
|
|
4
4
|
publish?: Publish;
|
|
5
5
|
}>(ChartComponent: ComponentType<TProps>, componentName: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<TProps, "publish">> & React.RefAttributes<Publish>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ModuleType } from '../config';
|
|
2
|
-
import type { PublishData } from '../types';
|
|
3
|
-
import { type ChartSubscriptionInterface, type DataExtractor, type ModuleEventHandler, type ModulePublishType } from './module-subscription-core';
|
|
1
|
+
import type { ModuleType } from '../config/index.js';
|
|
2
|
+
import type { PublishData } from '../types/index.js';
|
|
3
|
+
import { type ChartSubscriptionInterface, type DataExtractor, type ModuleEventHandler, type ModulePublishType } from './module-subscription-core.js';
|
|
4
4
|
interface UseModuleSubscriptionOptions<TData = unknown> {
|
|
5
5
|
moduleType: ModuleType;
|
|
6
6
|
chart: ChartSubscriptionInterface<TData> | null | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useFilteredSeries } from './useFilteredSeries';
|
|
2
|
-
export { useSeriesForComponent, useSeriesManager } from './useSeriesManager';
|
|
1
|
+
export { useFilteredSeries } from './useFilteredSeries.js';
|
|
2
|
+
export { useSeriesForComponent, useSeriesManager } from './useSeriesManager.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SeriesConfig } from '../../utils/series';
|
|
1
|
+
import type { SeriesConfig } from '../../utils/series/index.js';
|
|
2
2
|
export declare function useFilteredSeries(globalID: string | undefined, filter?: (config: SeriesConfig) => boolean): {
|
|
3
3
|
name: string;
|
|
4
4
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SeriesConfig } from '../../utils/series';
|
|
2
|
-
import { type SeriesMode } from '../../utils/series';
|
|
1
|
+
import type { SeriesConfig } from '../../utils/series/index.js';
|
|
2
|
+
import { type SeriesMode } from '../../utils/series/index.js';
|
|
3
3
|
export interface UseSeriesManagerOptions {
|
|
4
4
|
subscribeToMode?: boolean;
|
|
5
5
|
subscribeToData?: boolean;
|
package/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './theme/library.css';
|
|
2
2
|
export type { TemplateDetectionRegion, TemplateDetectionSnapshot } from '@rfkit/spectrum-analyzer';
|
|
3
|
-
export { Dial, Gauge, Heatmap, IQ, LevelStream, Occupancy, Spectrum } from './charts';
|
|
4
|
-
export { AxisPlacement, ChartType, FrequencyUnit, MarkerEventType, ModuleType, OptionKey, PSType, SegmentsEvent, SeriesType, ToolbarItemType, ToolType } from './config';
|
|
5
|
-
export { type EnhancedPublish, useSafePublish, withChartPublisher } from './hooks';
|
|
6
|
-
export { setFrequencyAllocationChannelsToCache, setFrequencyAllocationToCache } from './modules/Spectrum/FrequencyAllocation/tools';
|
|
7
|
-
export { type ChartsThemeChange, type InitChartsThemeOptions, type InitChartsThemeResult, initChartsTheme } from './theme/init-charts-theme';
|
|
8
|
-
export { type ChartsThemePreference, type ChartsThemeState, getChartsThemeState, subscribeChartsThemeChange } from './theme/theme-runtime';
|
|
9
|
-
export type { ChartsSizeTokensConfig, ChartsThemeTokensConfig } from './theme/theme-tokens';
|
|
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';
|
|
11
|
-
export { HeatmapCaptureType, MarkerMode } from './types';
|
|
12
|
-
export { SignalDataType } from './types/store';
|
|
13
|
-
export type { FrequencyUnitResult } from './utils';
|
|
14
|
-
export { formatFrequencyUnit, formatFrequencyUnitFromHz, formatFrequencyUnitFromMHz } from './utils';
|
|
3
|
+
export { Dial, Gauge, Heatmap, IQ, LevelStream, Occupancy, Spectrum } from './charts/index.js';
|
|
4
|
+
export { AxisPlacement, ChartType, FrequencyUnit, MarkerEventType, ModuleType, OptionKey, PSType, SegmentsEvent, SeriesType, ToolbarItemType, ToolType } from './config/index.js';
|
|
5
|
+
export { type EnhancedPublish, useSafePublish, withChartPublisher } from './hooks/index.js';
|
|
6
|
+
export { setFrequencyAllocationChannelsToCache, setFrequencyAllocationToCache } from './modules/Spectrum/FrequencyAllocation/tools.js';
|
|
7
|
+
export { type ChartsThemeChange, type InitChartsThemeOptions, type InitChartsThemeResult, initChartsTheme } from './theme/init-charts-theme.js';
|
|
8
|
+
export { type ChartsThemePreference, type ChartsThemeState, getChartsThemeState, subscribeChartsThemeChange } from './theme/theme-runtime.js';
|
|
9
|
+
export type { ChartsSizeTokensConfig, ChartsThemeTokensConfig } from './theme/theme-tokens.js';
|
|
10
|
+
export type { AxisXProps, AxisYProps, 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/index.js';
|
|
11
|
+
export { HeatmapCaptureType, MarkerMode } from './types/index.js';
|
|
12
|
+
export { SignalDataType } from './types/store/index.js';
|
|
13
|
+
export type { FrequencyUnitResult } from './utils/index.js';
|
|
14
|
+
export { formatFrequencyUnit, formatFrequencyUnitFromHz, formatFrequencyUnitFromMHz } from './utils/index.js';
|