@rfkit/charts 1.3.12 → 1.4.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.
Files changed (124) hide show
  1. package/README.md +57 -0
  2. package/components/AxisY/spectrum/controls/index.d.ts +3 -0
  3. package/components/AxisY/spectrum/index.d.ts +3 -2
  4. package/components/AxisY/spectrum/{components/Ticks → presenters/TicksPanel}/index.d.ts +3 -3
  5. package/components/AxisY/spectrum/presenters/index.d.ts +1 -0
  6. package/components/AxisY/spectrum/useRanging/index.d.ts +4 -1
  7. package/components/AxisY/spectrum/useRanging/ranging.d.ts +3 -1
  8. package/components/AxisYByCanvas/useCanvasAxisY.d.ts +2 -2
  9. package/components/Cursor/registry.d.ts +7 -0
  10. package/components/DragSelectBox/index.d.ts +3 -1
  11. package/components/FrequencyAllocation/index.d.ts +2 -2
  12. package/components/FrequencyAllocation/model/index.d.ts +4 -0
  13. package/components/FrequencyAllocation/model/resolveFrequencyAllocationData.d.ts +2 -0
  14. package/components/FrequencyAllocation/model/resolver.d.ts +18 -0
  15. package/components/FrequencyAllocation/model/useAllocationAtCursor.d.ts +6 -0
  16. package/components/FrequencyAllocation/model/useFrequencyAllocationData.d.ts +1 -0
  17. package/components/FrequencyAllocation/overlays/Tooltip/index.d.ts +4 -0
  18. package/components/FrequencyAllocation/overlays/index.d.ts +1 -0
  19. package/components/FrequencyAllocation/{AllocationInfo → presenters/AllocationInfo}/index.d.ts +1 -1
  20. package/components/FrequencyAllocation/presenters/AllocationSegments/index.d.ts +12 -0
  21. package/components/FrequencyAllocation/presenters/index.d.ts +2 -0
  22. package/components/FrequencyDataBoard/hooks/index.d.ts +1 -0
  23. package/components/FrequencyDataBoard/hooks/useStationInfoAtCursor.d.ts +1 -0
  24. package/components/FrequencyDataBoard/index.d.ts +1 -0
  25. package/components/FrequencyDataBoard/{StationInfo → panels/StationInfoPanel}/index.d.ts +1 -1
  26. package/components/FrequencyDataBoard/panels/index.d.ts +1 -0
  27. package/components/FrequencyTagLine/index.d.ts +1 -1
  28. package/components/GridLines/OccupancyDashed/index.d.ts +3 -0
  29. package/components/{Dropdown → Overlay/Dropdown}/index.d.ts +10 -2
  30. package/components/{Tooltip → Overlay/Tooltip}/index.d.ts +1 -1
  31. package/components/Overlay/index.d.ts +4 -0
  32. package/components/Signal/index.d.ts +2 -1
  33. package/components/Signal/metadata/index.d.ts +1 -0
  34. package/components/Signal/model/index.d.ts +3 -0
  35. package/components/Signal/model/resolver.d.ts +40 -0
  36. package/components/Signal/model/useStationInfoAtCursor.d.ts +7 -0
  37. package/components/Signal/model/useUnifiedSignals.d.ts +6 -0
  38. package/components/Signal/presenters/SignalSegments/index.d.ts +10 -0
  39. package/components/Signal/presenters/index.d.ts +1 -0
  40. package/components/Signal/utils.d.ts +13 -1
  41. package/components/ToolsBar/{SeriesControl → controls/SeriesControl}/index.d.ts +1 -1
  42. package/components/ToolsBar/controls/index.d.ts +4 -0
  43. package/components/ToolsBar/{GradientRibbon → decorations/GradientRibbon}/index.d.ts +1 -1
  44. package/components/ToolsBar/decorations/index.d.ts +2 -0
  45. package/components/ToolsBar/primitives/IconBox.d.ts +11 -0
  46. package/components/ToolsBar/primitives/ToolbarContentBox.d.ts +11 -0
  47. package/components/ToolsBar/primitives/ToolbarDropdown.d.ts +16 -0
  48. package/components/ToolsBar/primitives/ToolbarGlyph.d.ts +10 -0
  49. package/components/ToolsBar/primitives/ToolbarGroup.d.ts +10 -0
  50. package/components/ToolsBar/primitives/ToolbarGroupIconBox.d.ts +5 -0
  51. package/components/ToolsBar/primitives/ToolbarSurface.d.ts +15 -0
  52. package/components/ToolsBar/primitives/index.d.ts +8 -0
  53. package/components/ToolsBar/primitives/styles.d.ts +41 -0
  54. package/components/ToolsBar/registry.d.ts +12 -0
  55. package/components/ToolsBar/toggles/index.d.ts +10 -0
  56. package/components/ui/button.d.ts +16 -0
  57. package/components/ui/checkbox.d.ts +4 -0
  58. package/components/ui/cursor-follow-layer.d.ts +10 -0
  59. package/components/ui/dialog.d.ts +12 -0
  60. package/components/ui/dropdown-menu.d.ts +9 -0
  61. package/components/ui/input.d.ts +1 -0
  62. package/components/ui/number-input.d.ts +10 -0
  63. package/components/ui/panel.d.ts +9 -0
  64. package/components/ui/popover.d.ts +7 -0
  65. package/components/ui/scroll-area.d.ts +5 -0
  66. package/components/ui/select.d.ts +11 -0
  67. package/components/ui/separator.d.ts +4 -0
  68. package/components/ui/slider.d.ts +2 -0
  69. package/components/ui/switch.d.ts +2 -0
  70. package/components/ui/tabs.d.ts +7 -0
  71. package/components/ui/tooltip.d.ts +7 -0
  72. package/components/ui/useChartsPortalContainer.d.ts +1 -0
  73. package/config/setting.d.ts +3 -3
  74. package/hooks/index.d.ts +2 -2
  75. package/hooks/publish/enhancedPublish.d.ts +17 -0
  76. package/hooks/publish/index.d.ts +1 -0
  77. package/hooks/publish/useSafePublish.d.ts +2 -8
  78. package/hooks/useChartComponent.d.ts +0 -6
  79. package/hooks/useDragSelect.d.ts +2 -0
  80. package/index.d.ts +4 -0
  81. package/index.js +19460 -7822
  82. package/lib/index.d.ts +1 -1
  83. package/package.json +8 -1
  84. package/store/Params.d.ts +2 -1
  85. package/store/constants.d.ts +2 -3
  86. package/store/context.d.ts +1 -1
  87. package/store/globalState.d.ts +4 -0
  88. package/store/hooks/index.d.ts +1 -0
  89. package/store/index.d.ts +1 -1
  90. package/store/reducer.d.ts +0 -34
  91. package/tailwind-bridge.css +123 -0
  92. package/theme/charts-theme-controller.d.ts +27 -0
  93. package/theme/charts-theme-environment.d.ts +7 -0
  94. package/theme/init-charts-theme.d.ts +16 -0
  95. package/theme/shadcn-theme-config.d.ts +221 -0
  96. package/theme/style-scope.d.ts +21 -0
  97. package/types/store/ui.d.ts +15 -1
  98. package/utils/cn.d.ts +2 -0
  99. package/utils/converter.d.ts +1 -1
  100. package/utils/cursor.d.ts +12 -0
  101. package/utils/frequency.d.ts +1 -0
  102. package/utils/frequencyCalculation.d.ts +8 -0
  103. package/utils/index.d.ts +1 -0
  104. package/utils/subscription.d.ts +3 -2
  105. package/utils/theme.d.ts +2 -2
  106. package/components/FrequencyAllocation/SegmentContainer.d.ts +0 -12
  107. package/components/FrequencyAllocation/Tooltip/index.d.ts +0 -8
  108. package/components/FrequencyAllocation/useAllocationFinder.d.ts +0 -10
  109. package/components/GridLines/Occdahsed/index.d.ts +0 -3
  110. package/components/Signal/SegmentContainer.d.ts +0 -26
  111. package/components/Signal/useStationFinder.d.ts +0 -12
  112. package/components/ToolsBar/IconBox.d.ts +0 -12
  113. /package/components/AxisY/spectrum/{components/Autoranging/index.d.ts → controls/AutorangingControl.d.ts} +0 -0
  114. /package/components/AxisY/spectrum/{components/Step/index.d.ts → controls/StepControl.d.ts} +0 -0
  115. /package/components/AxisY/spectrum/{components/Unit/index.d.ts → controls/UnitControl.d.ts} +0 -0
  116. /package/components/Cursor/{Popover → popovers}/index.d.ts +0 -0
  117. /package/components/{GuageBox → GaugeBox}/index.d.ts +0 -0
  118. /package/components/{Popover → Overlay/Popover}/index.d.ts +0 -0
  119. /package/components/{Portal → Overlay/Portal}/index.d.ts +0 -0
  120. /package/components/Signal/{type.d.ts → metadata/signalType.d.ts} +0 -0
  121. /package/components/ToolsBar/{Reset.d.ts → controls/Reset.d.ts} +0 -0
  122. /package/components/ToolsBar/{SegmentsDisplayControl → controls/SegmentsDisplayControl}/index.d.ts +0 -0
  123. /package/components/ToolsBar/{SeriesDisplayControl → controls/SeriesDisplayControl}/index.d.ts +0 -0
  124. /package/components/ToolsBar/{SpacerLine.d.ts → decorations/SpacerLine.d.ts} +0 -0
@@ -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,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;
File without changes