@rfkit/charts 1.14.0 → 1.14.2

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 (187) hide show
  1. package/charts/Dial/Chart.d.ts +1 -1
  2. package/charts/Dial/index.d.ts +2 -2
  3. package/charts/Gauge/Chart.d.ts +1 -1
  4. package/charts/Gauge/index.d.ts +2 -2
  5. package/charts/Heatmap/Chart.d.ts +1 -1
  6. package/charts/Heatmap/index.d.ts +2 -2
  7. package/charts/IQ/Chart.d.ts +2 -2
  8. package/charts/IQ/index.d.ts +2 -2
  9. package/charts/LevelStream/Chart.d.ts +1 -1
  10. package/charts/LevelStream/index.d.ts +2 -2
  11. package/charts/Occupancy/Chart.d.ts +1 -1
  12. package/charts/Occupancy/index.d.ts +2 -2
  13. package/charts/SpatialSpectrum/Chart.d.ts +1 -1
  14. package/charts/SpatialSpectrum/index.d.ts +2 -2
  15. package/charts/Spectrum/Chart.d.ts +3 -3
  16. package/charts/Spectrum/heatmapCaptureDefaults.d.ts +1 -1
  17. package/charts/Spectrum/index.d.ts +2 -2
  18. package/charts/index.d.ts +7 -7
  19. package/components/AxisX/Ticks.d.ts +1 -1
  20. package/components/AxisX/index.d.ts +1 -1
  21. package/components/AxisX/ticks/DataNFixedTicks.d.ts +6 -0
  22. package/components/AxisX/ticks/MScanTicks.d.ts +3 -0
  23. package/components/AxisX/ticks/ThreeFixedTicks.d.ts +3 -0
  24. package/components/AxisX/ticks/shared.d.ts +13 -0
  25. package/components/AxisY/heatmap/index.d.ts +2 -2
  26. package/components/AxisY/spectrum/controls/index.d.ts +3 -3
  27. package/components/AxisY/spectrum/index.d.ts +4 -4
  28. package/components/AxisY/spectrum/presenters/TicksPanel/index.d.ts +1 -1
  29. package/components/AxisY/spectrum/presenters/index.d.ts +1 -1
  30. package/components/AxisY/spectrum/useRanging/index.d.ts +4 -4
  31. package/components/AxisY/spectrum/useRanging/ranging.d.ts +1 -1
  32. package/components/AxisY/tools.d.ts +1 -1
  33. package/components/Container/runtime.d.ts +1 -1
  34. package/components/Cursor/index.d.ts +1 -1
  35. package/components/Cursor/registry.d.ts +1 -1
  36. package/components/Cursor/tools.d.ts +1 -1
  37. package/components/Cursor/useCursorSample.d.ts +1 -1
  38. package/components/DragSelectBox/index.d.ts +1 -1
  39. package/components/EventBus/position.d.ts +1 -1
  40. package/components/EventBus/tools.d.ts +3 -3
  41. package/components/EventBus/useKeyEvent.d.ts +1 -1
  42. package/components/Overlay/index.d.ts +4 -4
  43. package/components/Toolbar/controls/SeriesControl/index.d.ts +1 -1
  44. package/components/Toolbar/controls/index.d.ts +4 -4
  45. package/components/Toolbar/decorations/GradientRibbon/index.d.ts +1 -1
  46. package/components/Toolbar/decorations/index.d.ts +2 -2
  47. package/components/Toolbar/icons/index.d.ts +1 -1
  48. package/components/Toolbar/index.d.ts +1 -1
  49. package/components/Toolbar/primitives/IconBox.d.ts +2 -2
  50. package/components/Toolbar/primitives/ToolbarContentBox.d.ts +2 -2
  51. package/components/Toolbar/primitives/ToolbarDropdown.d.ts +1 -1
  52. package/components/Toolbar/primitives/ToolbarGroupIconBox.d.ts +1 -1
  53. package/components/Toolbar/primitives/index.d.ts +8 -8
  54. package/components/Toolbar/registry.d.ts +1 -1
  55. package/components/Toolbar/toggles/index.d.ts +10 -10
  56. package/components/Zoom/tools.d.ts +1 -1
  57. package/components/Zoom/xRange.d.ts +1 -1
  58. package/config/constants.d.ts +7 -7
  59. package/config/index.d.ts +2 -2
  60. package/hooks/data/index.d.ts +3 -3
  61. package/hooks/data/useSegments.d.ts +1 -1
  62. package/hooks/index.d.ts +8 -8
  63. package/hooks/publish/enhancedPublish.d.ts +2 -2
  64. package/hooks/publish/index.d.ts +3 -3
  65. package/hooks/publish/usePublish.d.ts +2 -2
  66. package/hooks/publish/useSafePublish.d.ts +2 -2
  67. package/hooks/spectrum/index.d.ts +5 -5
  68. package/hooks/spectrum/useSpectrumChartType.d.ts +1 -1
  69. package/hooks/spectrum/useSpectrumRule.d.ts +2 -2
  70. package/hooks/spectrum/waterfall.d.ts +1 -1
  71. package/hooks/useChart/index.d.ts +1 -1
  72. package/hooks/useChartComponent.d.ts +1 -1
  73. package/hooks/useModuleSubscription.d.ts +3 -3
  74. package/hooks/useSeriesManager/index.d.ts +2 -2
  75. package/hooks/useSeriesManager/useFilteredSeries.d.ts +1 -1
  76. package/hooks/useSeriesManager/useSeriesManager.d.ts +2 -2
  77. package/index.d.ts +12 -12
  78. package/index.js +60 -112
  79. package/index.js.LICENSE.txt +1 -1
  80. package/modules/Dial/render.d.ts +1 -1
  81. package/modules/Fluorescence/render.d.ts +1 -1
  82. package/modules/Gauge/render.d.ts +1 -1
  83. package/modules/Heatmap/Capture/index.d.ts +1 -1
  84. package/modules/Heatmap/Capture/sliderInfo.d.ts +2 -2
  85. package/modules/Heatmap/Capture/tools.d.ts +2 -2
  86. package/modules/Heatmap/render.d.ts +1 -1
  87. package/modules/HeatmapPortal/index.d.ts +1 -1
  88. package/modules/IQEye/index.d.ts +1 -1
  89. package/modules/IQPlanisphere/index.d.ts +1 -1
  90. package/modules/IQStream/index.d.ts +1 -1
  91. package/modules/Occupancy/render.d.ts +1 -1
  92. package/modules/OccupancyPortal/index.d.ts +1 -1
  93. package/modules/SpatialSpectrum/render.d.ts +1 -1
  94. package/modules/Spectrum/AxisYCanvas/index.d.ts +1 -1
  95. package/modules/Spectrum/AxisYCanvas/useCanvasAxisY.d.ts +1 -1
  96. package/modules/Spectrum/BandLayer/bandState.d.ts +3 -3
  97. package/modules/Spectrum/BandLayer/index.d.ts +1 -1
  98. package/modules/Spectrum/BandLayer/useBandLayerController.d.ts +1 -1
  99. package/modules/Spectrum/Blaze/index.d.ts +1 -1
  100. package/modules/Spectrum/Blaze/tools.d.ts +1 -1
  101. package/modules/Spectrum/FrequencyAllocation/color.d.ts +1 -1
  102. package/modules/Spectrum/FrequencyAllocation/index.d.ts +2 -2
  103. package/modules/Spectrum/FrequencyAllocation/model/channelModel.d.ts +1 -1
  104. package/modules/Spectrum/FrequencyAllocation/model/density.d.ts +1 -1
  105. package/modules/Spectrum/FrequencyAllocation/model/index.d.ts +5 -5
  106. package/modules/Spectrum/FrequencyAllocation/model/resolveFrequencyAllocationData.d.ts +2 -2
  107. package/modules/Spectrum/FrequencyAllocation/model/resolver.d.ts +4 -4
  108. package/modules/Spectrum/FrequencyAllocation/model/useAllocationAtCursor.d.ts +2 -2
  109. package/modules/Spectrum/FrequencyAllocation/model/useFrequencyAllocationData.d.ts +2 -2
  110. package/modules/Spectrum/FrequencyAllocation/overlays/Tooltip/index.d.ts +1 -1
  111. package/modules/Spectrum/FrequencyAllocation/overlays/index.d.ts +1 -1
  112. package/modules/Spectrum/FrequencyAllocation/presenters/AllocationInfo/index.d.ts +1 -1
  113. package/modules/Spectrum/FrequencyAllocation/presenters/AllocationSegments/index.d.ts +1 -1
  114. package/modules/Spectrum/FrequencyAllocation/presenters/index.d.ts +2 -2
  115. package/modules/Spectrum/FrequencyAllocation/tools.d.ts +1 -1
  116. package/modules/Spectrum/FrequencyAllocation/types.d.ts +1 -1
  117. package/modules/Spectrum/FrequencyDataBoard/hooks/index.d.ts +1 -1
  118. package/modules/Spectrum/FrequencyDataBoard/hooks/useStationInfoAtCursor.d.ts +1 -1
  119. package/modules/Spectrum/FrequencyDataBoard/index.d.ts +1 -1
  120. package/modules/Spectrum/FrequencyDataBoard/panels/StationInfoPanel/index.d.ts +1 -1
  121. package/modules/Spectrum/FrequencyDataBoard/panels/index.d.ts +1 -1
  122. package/modules/Spectrum/FrequencyTagLine/index.d.ts +3 -3
  123. package/modules/Spectrum/Markers/MarkerItem/index.d.ts +1 -1
  124. package/modules/Spectrum/Markers/hooks/useMarkerEvents.d.ts +1 -1
  125. package/modules/Spectrum/Markers/hooks/useMarkers.d.ts +2 -2
  126. package/modules/Spectrum/Markers/index.d.ts +1 -1
  127. package/modules/Spectrum/Markers/tools.d.ts +1 -1
  128. package/modules/Spectrum/Scope/index.d.ts +1 -1
  129. package/modules/Spectrum/Scope/useScope.d.ts +1 -1
  130. package/modules/Spectrum/Signal/index.d.ts +3 -3
  131. package/modules/Spectrum/Signal/metadata/index.d.ts +2 -2
  132. package/modules/Spectrum/Signal/model/index.d.ts +4 -4
  133. package/modules/Spectrum/Signal/model/match.d.ts +2 -2
  134. package/modules/Spectrum/Signal/model/resolver.d.ts +3 -3
  135. package/modules/Spectrum/Signal/model/tree.d.ts +2 -2
  136. package/modules/Spectrum/Signal/model/useStationInfoAtCursor.d.ts +3 -3
  137. package/modules/Spectrum/Signal/model/useUnifiedSignals.d.ts +1 -1
  138. package/modules/Spectrum/Signal/presenters/SignalSegments/index.d.ts +1 -1
  139. package/modules/Spectrum/Signal/presenters/index.d.ts +1 -1
  140. package/modules/Spectrum/Signal/tools.d.ts +1 -1
  141. package/modules/Spectrum/Signal/useSignalDataManager.d.ts +1 -1
  142. package/modules/Spectrum/Stripe/index.d.ts +1 -1
  143. package/modules/Spectrum/render.d.ts +2 -2
  144. package/modules/Spectrum/useMarkerPublish.d.ts +1 -1
  145. package/modules/Spectrum/useSpectrumAnalyzer/index.d.ts +1 -1
  146. package/modules/Spectrum/useSpectrumAnalyzer/thresholdData.d.ts +1 -1
  147. package/modules/base/CircularRenderer.d.ts +1 -1
  148. package/modules/base/GradientRenderer.d.ts +1 -1
  149. package/modules/base/IQRenderer.d.ts +1 -1
  150. package/modules/base/index.d.ts +4 -4
  151. package/package.json +1 -1
  152. package/runtime/interaction/index.d.ts +2 -2
  153. package/runtime/passThrough.d.ts +1 -1
  154. package/store/Params.d.ts +1 -1
  155. package/store/bandState.d.ts +1 -1
  156. package/store/chart-store.d.ts +1 -1
  157. package/store/constants.d.ts +1 -1
  158. package/store/context.d.ts +3 -3
  159. package/store/defaultState.d.ts +1 -1
  160. package/store/globalState.d.ts +2 -2
  161. package/store/hooks/index.d.ts +1 -1
  162. package/store/hooks/useStore.d.ts +3 -3
  163. package/store/index.d.ts +2 -2
  164. package/store/reducer.d.ts +1 -1
  165. package/store/runtime.d.ts +2 -2
  166. package/theme/init-charts-theme.d.ts +2 -2
  167. package/theme/theme-runtime.d.ts +1 -1
  168. package/theme/theme-styles.d.ts +1 -1
  169. package/types/common.d.ts +1 -1
  170. package/types/index.d.ts +4 -4
  171. package/types/publish.d.ts +5 -5
  172. package/types/store/axis.d.ts +2 -2
  173. package/types/store/index.d.ts +15 -15
  174. package/types/store/marker.d.ts +1 -1
  175. package/types/store/series.d.ts +1 -1
  176. package/types/store/signal.d.ts +1 -0
  177. package/types/store/ui.d.ts +2 -2
  178. package/types/store.d.ts +1 -1
  179. package/utils/cursor.d.ts +2 -2
  180. package/utils/frequency.d.ts +2 -2
  181. package/utils/frequencyCalculation.d.ts +1 -1
  182. package/utils/index.d.ts +7 -7
  183. package/utils/object.d.ts +1 -1
  184. package/utils/series/events.d.ts +2 -2
  185. package/utils/series/index.d.ts +4 -4
  186. package/utils/series/subscription.d.ts +1 -1
  187. package/utils/subscription.d.ts +1 -1
@@ -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';
1
+ import { ChartType } from '../../config/index.js';
2
2
  export interface Props {
3
3
  type: ChartType;
4
4
  heatmapElementID?: string;
@@ -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,4 +1,4 @@
1
- import type { ChartType } from '../../config';
1
+ import type { ChartType } from '../../config/index.js';
2
2
  export declare const shouldEnableSpectrumWaterfall: ({ heatmapElementID, type }: {
3
3
  heatmapElementID?: string;
4
4
  type?: ChartType | string;
@@ -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, 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';