@rfkit/charts 1.3.13 → 1.4.1

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 (223) hide show
  1. package/README.md +169 -229
  2. package/{lib → charts}/index.d.ts +1 -1
  3. package/components/AxisY/heatmap/index.d.ts +1 -1
  4. package/components/AxisY/heatmap/variants/standard/index.d.ts +6 -0
  5. package/components/AxisY/spectrum/controls/index.d.ts +3 -0
  6. package/components/AxisY/spectrum/index.d.ts +3 -2
  7. package/components/AxisY/spectrum/{components/Ticks → presenters/TicksPanel}/index.d.ts +3 -3
  8. package/components/AxisY/spectrum/presenters/index.d.ts +1 -0
  9. package/components/AxisY/spectrum/useRanging/index.d.ts +4 -1
  10. package/components/AxisY/spectrum/useRanging/ranging.d.ts +3 -1
  11. package/components/Container/runtime.d.ts +10 -0
  12. package/components/Cursor/popover-support.d.ts +8 -0
  13. package/components/Cursor/registry.d.ts +7 -0
  14. package/components/DragSelectBox/index.d.ts +3 -1
  15. package/components/GridLines/OccupancyDashed/index.d.ts +3 -0
  16. package/components/{Dropdown → Overlay/Dropdown}/index.d.ts +10 -2
  17. package/components/{Tooltip → Overlay/Tooltip}/index.d.ts +1 -1
  18. package/components/Overlay/index.d.ts +4 -0
  19. package/components/{ToolsBar → Toolbar/controls}/SeriesControl/index.d.ts +1 -1
  20. package/components/Toolbar/controls/index.d.ts +4 -0
  21. package/components/{ToolsBar → Toolbar/decorations}/GradientRibbon/index.d.ts +1 -1
  22. package/components/Toolbar/decorations/index.d.ts +2 -0
  23. package/components/Toolbar/primitives/IconBox.d.ts +11 -0
  24. package/components/Toolbar/primitives/ToolbarContentBox.d.ts +11 -0
  25. package/components/Toolbar/primitives/ToolbarDropdown.d.ts +16 -0
  26. package/components/Toolbar/primitives/ToolbarGlyph.d.ts +10 -0
  27. package/components/Toolbar/primitives/ToolbarGroup.d.ts +10 -0
  28. package/components/Toolbar/primitives/ToolbarGroupIconBox.d.ts +5 -0
  29. package/components/Toolbar/primitives/ToolbarSurface.d.ts +15 -0
  30. package/components/Toolbar/primitives/index.d.ts +8 -0
  31. package/components/Toolbar/primitives/styles.d.ts +41 -0
  32. package/components/Toolbar/registry.d.ts +12 -0
  33. package/components/Toolbar/toggles/index.d.ts +10 -0
  34. package/components/Zoom/ZoomViewportLayer.d.ts +7 -0
  35. package/components/ui/button.d.ts +16 -0
  36. package/components/ui/checkbox.d.ts +4 -0
  37. package/components/ui/cursor-follow-layer.d.ts +10 -0
  38. package/components/ui/dialog.d.ts +12 -0
  39. package/components/ui/dropdown-menu.d.ts +9 -0
  40. package/components/ui/input.d.ts +1 -0
  41. package/components/ui/number-input.d.ts +10 -0
  42. package/components/ui/panel.d.ts +9 -0
  43. package/components/ui/popover.d.ts +7 -0
  44. package/components/ui/scroll-area.d.ts +5 -0
  45. package/components/ui/select.d.ts +11 -0
  46. package/components/ui/separator.d.ts +4 -0
  47. package/components/ui/slider.d.ts +2 -0
  48. package/components/ui/switch.d.ts +2 -0
  49. package/components/ui/tabs.d.ts +7 -0
  50. package/components/ui/tooltip.d.ts +7 -0
  51. package/components/ui/useChartsPortalContainer.d.ts +1 -0
  52. package/config/constants.d.ts +2 -2
  53. package/config/setting.d.ts +3 -3
  54. package/hooks/index.d.ts +2 -3
  55. package/hooks/module-subscription-core.d.ts +23 -0
  56. package/hooks/publish/enhancedPublish.d.ts +17 -0
  57. package/hooks/publish/index.d.ts +1 -1
  58. package/hooks/publish/publish-event.d.ts +9 -0
  59. package/hooks/publish/useSafePublish.d.ts +2 -8
  60. package/hooks/useChartComponent.d.ts +0 -6
  61. package/hooks/useDragSelect.d.ts +2 -0
  62. package/hooks/useLevelStreamAnalyzer.d.ts +1 -1
  63. package/hooks/useModuleSubscription.d.ts +21 -23
  64. package/index.d.ts +7 -3
  65. package/index.js +23912 -11942
  66. package/modules/Gauge/render.d.ts +0 -2
  67. package/{components/HeatmapCapture → modules/Heatmap/Capture}/tools.d.ts +1 -1
  68. package/modules/Heatmap/CursorPopover.d.ts +6 -0
  69. package/modules/Heatmap/render.d.ts +2 -0
  70. package/modules/Level/CursorPopover.d.ts +6 -0
  71. package/modules/Occupancy/CursorPopover.d.ts +3 -0
  72. package/modules/Occupancy/TotalLine/index.d.ts +1 -1
  73. package/modules/Occupancy/total-line-runtime.d.ts +4 -0
  74. package/modules/Spectrum/AxisYCanvas/index.d.ts +6 -0
  75. package/{components/AxisYByCanvas → modules/Spectrum/AxisYCanvas}/useCanvasAxisY.d.ts +2 -2
  76. package/modules/Spectrum/BandLayer/index.d.ts +5 -0
  77. package/modules/Spectrum/BandLayer/useBandLayerController.d.ts +2 -0
  78. package/{components → modules/Spectrum}/Blaze/tools.d.ts +1 -1
  79. package/modules/Spectrum/CursorPopover.d.ts +6 -0
  80. package/{components → modules/Spectrum}/FrequencyAllocation/color.d.ts +1 -1
  81. package/{components → modules/Spectrum}/FrequencyAllocation/index.d.ts +2 -2
  82. package/modules/Spectrum/FrequencyAllocation/model/index.d.ts +4 -0
  83. package/modules/Spectrum/FrequencyAllocation/model/resolveFrequencyAllocationData.d.ts +2 -0
  84. package/modules/Spectrum/FrequencyAllocation/model/resolver.d.ts +18 -0
  85. package/modules/Spectrum/FrequencyAllocation/model/useAllocationAtCursor.d.ts +6 -0
  86. package/modules/Spectrum/FrequencyAllocation/model/useFrequencyAllocationData.d.ts +1 -0
  87. package/modules/Spectrum/FrequencyAllocation/overlays/Tooltip/index.d.ts +4 -0
  88. package/modules/Spectrum/FrequencyAllocation/overlays/index.d.ts +1 -0
  89. package/{components/FrequencyAllocation → modules/Spectrum/FrequencyAllocation/presenters}/AllocationInfo/index.d.ts +1 -1
  90. package/modules/Spectrum/FrequencyAllocation/presenters/AllocationSegments/index.d.ts +12 -0
  91. package/modules/Spectrum/FrequencyAllocation/presenters/index.d.ts +2 -0
  92. package/{components → modules/Spectrum}/FrequencyAllocation/tools.d.ts +1 -1
  93. package/{components → modules/Spectrum}/FrequencyAllocation/types.d.ts +1 -1
  94. package/modules/Spectrum/FrequencyDataBoard/hooks/index.d.ts +1 -0
  95. package/modules/Spectrum/FrequencyDataBoard/hooks/useStationInfoAtCursor.d.ts +1 -0
  96. package/{components → modules/Spectrum}/FrequencyDataBoard/index.d.ts +1 -0
  97. package/{components/FrequencyDataBoard/StationInfo → modules/Spectrum/FrequencyDataBoard/panels/StationInfoPanel}/index.d.ts +1 -1
  98. package/modules/Spectrum/FrequencyDataBoard/panels/index.d.ts +1 -0
  99. package/{components → modules/Spectrum}/FrequencyTagLine/index.d.ts +2 -2
  100. package/{components → modules/Spectrum}/Markers/MarkerItem/index.d.ts +1 -1
  101. package/{components → modules/Spectrum}/Markers/hooks/useMarkerEvents.d.ts +1 -1
  102. package/{components → modules/Spectrum}/Markers/hooks/useMarkers.d.ts +2 -2
  103. package/{components → modules/Spectrum}/Markers/tools.d.ts +1 -1
  104. package/{components → modules/Spectrum}/Scope/useScope.d.ts +1 -1
  105. package/{components → modules/Spectrum}/Signal/index.d.ts +2 -1
  106. package/modules/Spectrum/Signal/metadata/index.d.ts +1 -0
  107. package/modules/Spectrum/Signal/model/index.d.ts +3 -0
  108. package/modules/Spectrum/Signal/model/resolver.d.ts +40 -0
  109. package/modules/Spectrum/Signal/model/useStationInfoAtCursor.d.ts +7 -0
  110. package/modules/Spectrum/Signal/model/useUnifiedSignals.d.ts +6 -0
  111. package/modules/Spectrum/Signal/presenters/SignalSegments/index.d.ts +10 -0
  112. package/modules/Spectrum/Signal/presenters/index.d.ts +1 -0
  113. package/{components → modules/Spectrum}/Signal/tools.d.ts +1 -1
  114. package/{components → modules/Spectrum}/Signal/useSignalDataManager.d.ts +1 -1
  115. package/modules/Spectrum/Signal/utils.d.ts +27 -0
  116. package/modules/Spectrum/render.d.ts +31 -52
  117. package/{hooks → modules/Spectrum}/useSpectrumAnalyzer/index.d.ts +1 -1
  118. package/modules/base/BaseRenderer.d.ts +63 -0
  119. package/modules/base/CircularRenderer.d.ts +4 -5
  120. package/package.json +28 -4
  121. package/{modules/tools.d.ts → runtime/passThrough.d.ts} +1 -1
  122. package/store/Params.d.ts +2 -1
  123. package/store/chart-store.d.ts +11 -0
  124. package/store/constants.d.ts +2 -3
  125. package/store/context.d.ts +6 -3
  126. package/store/globalState.d.ts +4 -0
  127. package/store/hooks/index.d.ts +1 -0
  128. package/store/hooks/useStore.d.ts +11 -1
  129. package/store/index.d.ts +1 -1
  130. package/store/reducer.d.ts +1 -67
  131. package/store/runtime.d.ts +16 -0
  132. package/tailwind-bridge.css +50 -0
  133. package/theme/init-charts-theme.d.ts +12 -0
  134. package/theme/style-scope.d.ts +20 -0
  135. package/theme/theme-color.d.ts +7 -0
  136. package/theme/theme-contract.d.ts +28 -0
  137. package/theme/theme-runtime.d.ts +14 -0
  138. package/theme/theme-styles.d.ts +10 -0
  139. package/theme/theme-tokens.d.ts +85 -0
  140. package/types/common.d.ts +1 -1
  141. package/types/store/index.d.ts +6 -4
  142. package/types/store/ui.d.ts +19 -5
  143. package/utils/cn.d.ts +2 -0
  144. package/utils/converter.d.ts +1 -1
  145. package/utils/cursor.d.ts +12 -0
  146. package/utils/frequencyCalculation.d.ts +8 -0
  147. package/utils/index.d.ts +1 -1
  148. package/utils/subscription.d.ts +18 -2
  149. package/components/AxisY/heatmap/type/Default/index.d.ts +0 -6
  150. package/components/AxisYByCanvas/index.d.ts +0 -6
  151. package/components/Band/index.d.ts +0 -5
  152. package/components/Band/useBand.d.ts +0 -2
  153. package/components/Cursor/Popover/index.d.ts +0 -10
  154. package/components/FrequencyAllocation/SegmentContainer.d.ts +0 -12
  155. package/components/FrequencyAllocation/Tooltip/index.d.ts +0 -8
  156. package/components/FrequencyAllocation/useAllocationFinder.d.ts +0 -10
  157. package/components/GridLines/Occdahsed/index.d.ts +0 -3
  158. package/components/Signal/SegmentContainer.d.ts +0 -26
  159. package/components/Signal/useStationFinder.d.ts +0 -12
  160. package/components/Signal/utils.d.ts +0 -15
  161. package/components/SignalAnalysis/Switch/index.d.ts +0 -3
  162. package/components/ToolsBar/IconBox.d.ts +0 -12
  163. package/components/Zoom/ZoomOffsetContainer/index.d.ts +0 -7
  164. package/lib/LevelStream/useAxisY.d.ts +0 -1
  165. package/utils/theme.d.ts +0 -18
  166. /package/{lib → charts}/Dial/Chart.d.ts +0 -0
  167. /package/{lib → charts}/Dial/index.d.ts +0 -0
  168. /package/{lib → charts}/Gauge/Chart.d.ts +0 -0
  169. /package/{lib → charts}/Gauge/index.d.ts +0 -0
  170. /package/{lib → charts}/Heatmap/Chart.d.ts +0 -0
  171. /package/{lib → charts}/Heatmap/index.d.ts +0 -0
  172. /package/{lib → charts}/IQ/Chart.d.ts +0 -0
  173. /package/{lib → charts}/IQ/index.d.ts +0 -0
  174. /package/{lib → charts}/LevelStream/Chart.d.ts +0 -0
  175. /package/{lib → charts}/LevelStream/index.d.ts +0 -0
  176. /package/{lib → charts}/Occupancy/Chart.d.ts +0 -0
  177. /package/{lib → charts}/Occupancy/index.d.ts +0 -0
  178. /package/{lib → charts}/SpatialSpectrum/Chart.d.ts +0 -0
  179. /package/{lib → charts}/SpatialSpectrum/index.d.ts +0 -0
  180. /package/{lib → charts}/Spectrum/Chart.d.ts +0 -0
  181. /package/{lib → charts}/Spectrum/index.d.ts +0 -0
  182. /package/components/AxisY/heatmap/{type/Default → variants/standard}/GradientRibbon/index.d.ts +0 -0
  183. /package/components/AxisY/occupancy/{type/Default → variants/standard}/index.d.ts +0 -0
  184. /package/components/AxisY/spectrum/{components/Autoranging/index.d.ts → controls/AutorangingControl.d.ts} +0 -0
  185. /package/components/AxisY/spectrum/{components/Step/index.d.ts → controls/StepControl.d.ts} +0 -0
  186. /package/components/AxisY/spectrum/{components/Unit/index.d.ts → controls/UnitControl.d.ts} +0 -0
  187. /package/components/{Popover → Overlay/Popover}/index.d.ts +0 -0
  188. /package/components/{Portal → Overlay/Portal}/index.d.ts +0 -0
  189. /package/components/{ToolsBar → Toolbar/controls}/Reset.d.ts +0 -0
  190. /package/components/{ToolsBar → Toolbar/controls}/SegmentsDisplayControl/index.d.ts +0 -0
  191. /package/components/{ToolsBar → Toolbar/controls}/SeriesDisplayControl/index.d.ts +0 -0
  192. /package/components/{ToolsBar → Toolbar/decorations}/SpacerLine.d.ts +0 -0
  193. /package/components/{ToolsBar → Toolbar}/index.d.ts +0 -0
  194. /package/{components/GuageBox/index.d.ts → modules/Gauge/InteractionSurface.d.ts} +0 -0
  195. /package/{components/HeatmapCapture → modules/Heatmap/Capture}/Area/index.d.ts +0 -0
  196. /package/{components/HeatmapCapture → modules/Heatmap/Capture}/RowIndex/index.d.ts +0 -0
  197. /package/{components/HeatmapCapture → modules/Heatmap/Capture}/Slider/index.d.ts +0 -0
  198. /package/{components/FrequencyTagLine → modules/Heatmap/Capture}/Switch/index.d.ts +0 -0
  199. /package/{components/HeatmapCapture → modules/Heatmap/Capture}/index.d.ts +0 -0
  200. /package/{components/HeatmapCapture → modules/Heatmap/TimeRange}/Switch/index.d.ts +0 -0
  201. /package/{components → modules/Heatmap}/TimeRange/useTimeRange.d.ts +0 -0
  202. /package/{components → modules/Spectrum}/Blaze/index.d.ts +0 -0
  203. /package/{components → modules/Spectrum}/DeltaMeasurement/Switch.d.ts +0 -0
  204. /package/{components → modules/Spectrum}/DeltaMeasurement/index.d.ts +0 -0
  205. /package/{components → modules/Spectrum}/DragFrame/index.d.ts +0 -0
  206. /package/{components → modules/Spectrum}/FrequencyAllocation/Switch/index.d.ts +0 -0
  207. /package/{components → modules/Spectrum}/FrequencyAllocation/data.d.ts +0 -0
  208. /package/{components → modules/Spectrum}/FrequencyTagLine/Board/index.d.ts +0 -0
  209. /package/{components/Limit → modules/Spectrum/FrequencyTagLine}/Switch/index.d.ts +0 -0
  210. /package/{components → modules/Spectrum}/Legend/index.d.ts +0 -0
  211. /package/{components → modules/Spectrum}/Limit/Item.d.ts +0 -0
  212. /package/{components/TimeRange → modules/Spectrum/Limit}/Switch/index.d.ts +0 -0
  213. /package/{components → modules/Spectrum}/Limit/index.d.ts +0 -0
  214. /package/{components → modules/Spectrum}/Markers/Switch/index.d.ts +0 -0
  215. /package/{components → modules/Spectrum}/Markers/index.d.ts +0 -0
  216. /package/{components → modules/Spectrum}/Scope/index.d.ts +0 -0
  217. /package/{components → modules/Spectrum}/SegmentsZebra/index.d.ts +0 -0
  218. /package/{components → modules/Spectrum}/Signal/Switch/index.d.ts +0 -0
  219. /package/{components/Signal/type.d.ts → modules/Spectrum/Signal/metadata/signalType.d.ts} +0 -0
  220. /package/{components → modules/Spectrum}/Stripe/Switch/index.d.ts +0 -0
  221. /package/{components → modules/Spectrum}/Stripe/index.d.ts +0 -0
  222. /package/{hooks/publish → modules/Spectrum}/useMarkerPublish.d.ts +0 -0
  223. /package/{hooks → modules/Spectrum}/useSpectrumAnalyzer/useTemplateComparison.d.ts +0 -0
@@ -3,13 +3,21 @@ import type { RecursiveFunction } from '../types';
3
3
  interface ChartsGlobal {
4
4
  datas: Record<string, unknown>;
5
5
  subscriptions: ChartSubscriptions;
6
+ owners: RuntimeOwners;
6
7
  }
7
8
  declare global {
8
9
  interface Window {
9
10
  charts?: ChartsGlobal;
10
11
  }
11
12
  }
12
- export declare function openData<T = unknown>(globalID: string, data: T | undefined, defaultData: T): T;
13
+ interface RuntimeOwnerRecord {
14
+ datas: Set<string>;
15
+ subscriptions: Set<string>;
16
+ }
17
+ interface RuntimeOwners {
18
+ [owner: string]: RuntimeOwnerRecord;
19
+ }
20
+ export declare function openData<T = unknown>(key: string, data: T | undefined, defaultData: T, owner?: string): T;
13
21
  /**
14
22
  * 共享订阅
15
23
  * Note: Using any[] for callback args since this is a generic pub/sub system
@@ -22,7 +30,15 @@ interface Subscription {
22
30
  interface ChartSubscriptions {
23
31
  [id: string]: Subscription;
24
32
  }
25
- export declare function createSubscriptionManager(id: string, name?: string, func?: CSMCallback): (...args: any[]) => void;
33
+ export declare function createSubscriptionManager(id: string, name?: string, func?: CSMCallback, owner?: string): (...args: any[]) => void;
34
+ export declare const getPublishSubscriptionKey: (globalID: string) => string;
35
+ export declare const getModuleSubscriptionKey: (globalID: string, moduleName: string) => string;
36
+ export declare const getDatabaseStorageKey: (globalID: string) => string;
37
+ export declare const getAnalyzerStorageKey: (globalID: string) => string;
38
+ export declare const getUpdateDataSubscriptionKey: (id?: string) => string;
39
+ export declare const createPublishSubscriptionManager: (globalID: string, func?: CSMCallback, name?: string) => (...args: any[]) => void;
40
+ export declare const createModuleSubscriptionManager: (globalID: string, moduleName: string, func?: CSMCallback, name?: string) => (...args: any[]) => void;
41
+ export declare function releaseChartsRuntimeOwners(owners: Array<string | undefined>): void;
26
42
  export interface rawData {
27
43
  getAllRawData: (left?: number) => SpectrumOutputData;
28
44
  }
@@ -1,6 +0,0 @@
1
- import type React from 'react';
2
- interface Props {
3
- id: string;
4
- }
5
- declare const Default: React.FC<Props>;
6
- export default Default;
@@ -1,6 +0,0 @@
1
- import type { RenderChartType } from '../../types';
2
- interface AxisYByCanvasProps {
3
- chart: RenderChartType;
4
- }
5
- export default function AxisYByCanvas(props: AxisYByCanvasProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,5 +0,0 @@
1
- import type React from 'react';
2
- import useBand from './useBand';
3
- export { useBand };
4
- declare const Band: React.FC;
5
- export default Band;
@@ -1,2 +0,0 @@
1
- import type { BandProps } from '../../types';
2
- export default function useBand(): (e: BandProps) => void;
@@ -1,10 +0,0 @@
1
- import type React from 'react';
2
- interface PopoverProps {
3
- id: string;
4
- timestamp?: string;
5
- }
6
- export declare const SpectrumPopover: React.FC<PopoverProps>;
7
- export declare const HeatmapPopover: React.FC<PopoverProps>;
8
- export declare const LevelStreamPopover: React.FC<PopoverProps>;
9
- export declare const OccupancyPopover: React.FC;
10
- export {};
@@ -1,12 +0,0 @@
1
- import type React from 'react';
2
- import type { FrequencyAllocationItem } from '../../types';
3
- import type { BandPosition, FrequencyRange } from './types';
4
- interface SegmentContainerProps {
5
- style: React.CSSProperties;
6
- bandPositions: BandPosition[];
7
- onMouseEnter: (band: FrequencyAllocationItem, range: FrequencyRange) => (e: React.MouseEvent) => void;
8
- onMouseMove: (e: React.MouseEvent) => void;
9
- onMouseLeave: () => void;
10
- }
11
- declare const SegmentContainer: React.FC<SegmentContainerProps>;
12
- export default SegmentContainer;
@@ -1,8 +0,0 @@
1
- import type React from 'react';
2
- import type { TooltipState } from '../types';
3
- /**
4
- * 频率划分 Tooltip 组件
5
- * 包含定位逻辑,内部使用 AllocationInfo 展示内容
6
- */
7
- declare const Tooltip: React.FC<TooltipState>;
8
- export default Tooltip;
@@ -1,10 +0,0 @@
1
- import type { FrequencyAllocationItem } from '../../types';
2
- interface UseAllocationFinderProps {
3
- frequency: string;
4
- }
5
- /**
6
- * 频率划分查找 Hook
7
- * 基于当前频率,在频率划分数据中查找匹配的项
8
- */
9
- export declare function useAllocationFinder({ frequency }: UseAllocationFinderProps): FrequencyAllocationItem | undefined;
10
- export {};
@@ -1,3 +0,0 @@
1
- import type React from 'react';
2
- declare const Occdahsed: React.FC;
3
- export default Occdahsed;
@@ -1,26 +0,0 @@
1
- import type React from 'react';
2
- import { type UnifiedSignalItem } from './utils';
3
- /**
4
- * 统一的信号位置数据(兼容 StationInfo 和 SignalData)
5
- */
6
- interface SignalPosition {
7
- item: UnifiedSignalItem;
8
- position: {
9
- left: string;
10
- width: string;
11
- };
12
- startIndex: number;
13
- stopIndex: number;
14
- color: string;
15
- tooltip?: string;
16
- }
17
- interface SegmentContainerProps {
18
- style: React.CSSProperties;
19
- signalPositions: SignalPosition[];
20
- currentFrequency: number;
21
- segmentIndex: number;
22
- isCurrentSegment: boolean;
23
- currentPointIndex: number;
24
- }
25
- declare const SegmentContainer: React.FC<SegmentContainerProps>;
26
- export default SegmentContainer;
@@ -1,12 +0,0 @@
1
- import type { StationInfoType } from '../../types';
2
- interface UseStationFinderProps {
3
- frequency: string;
4
- }
5
- /**
6
- * 信号查找 Hook
7
- * 基于鼠标位置(left)和频率,在信号数据中查找匹配的信号(台站信号 + 简单信号)
8
- *
9
- * 使用索引 + 容差判断,解决 step 跳跃和窄信号难以 hover 的问题
10
- */
11
- export declare function useStationFinder({ frequency }: UseStationFinderProps): StationInfoType | undefined;
12
- export {};
@@ -1,15 +0,0 @@
1
- import type { StationInfoType } from '../../types';
2
- import type { SignalData } from '../../types/store';
3
- import type { FrequencyRangeInput } from '../../utils';
4
- /**
5
- * 统一的信号数据类型(兼容 StationInfo 和 SignalData)
6
- */
7
- export type UnifiedSignalItem = StationInfoType | SignalData;
8
- /**
9
- * 判断是否为完整的台站信息
10
- */
11
- export declare function isStationInfo(item: UnifiedSignalItem): item is StationInfoType;
12
- /**
13
- * 将统一的信号数据转换为频率范围输入(处理 string | number 类型)
14
- */
15
- export declare function toFrequencyRangeInput(item: UnifiedSignalItem): FrequencyRangeInput;
@@ -1,3 +0,0 @@
1
- import type React from 'react';
2
- declare const SignalAnalysisSwitch: React.FC;
3
- export default SignalAnalysisSwitch;
@@ -1,12 +0,0 @@
1
- import type React from 'react';
2
- import type { ReactNode } from 'react';
3
- interface Props {
4
- style?: React.CSSProperties;
5
- className?: string;
6
- title?: string;
7
- children: ReactNode;
8
- onClick?: (e: unknown) => void;
9
- onDoubleClick?: (e: unknown) => void;
10
- }
11
- declare const IconBox: React.FC<Props>;
12
- export default IconBox;
@@ -1,7 +0,0 @@
1
- interface Props {
2
- children: React.ReactNode;
3
- className?: string;
4
- style?: React.CSSProperties;
5
- }
6
- declare const ZoomOffsetContainer: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
7
- export default ZoomOffsetContainer;
@@ -1 +0,0 @@
1
- export default function useAxisY(): void;
package/utils/theme.d.ts DELETED
@@ -1,18 +0,0 @@
1
- /**
2
- * 主题相关工具函数
3
- */
4
- export interface ThemeFillStyle {
5
- fillStyle: string;
6
- fillStylePrimary: string;
7
- fillStyleTransparentBase: string;
8
- }
9
- /**
10
- * 获取主题填充样式
11
- */
12
- export declare function getThemeFillStyle(): ThemeFillStyle;
13
- /**
14
- * 获取主题颜色,支持透明度改变
15
- * @param property CSS 变量名
16
- * @param opacity 可选的透明度 (0-1)
17
- */
18
- export declare const getThemeColor: (property: string, opacity?: number) => string;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes