@rfkit/charts 1.3.13 → 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.
- package/README.md +57 -0
- package/components/AxisY/spectrum/controls/index.d.ts +3 -0
- package/components/AxisY/spectrum/index.d.ts +3 -2
- package/components/AxisY/spectrum/{components/Ticks → presenters/TicksPanel}/index.d.ts +3 -3
- package/components/AxisY/spectrum/presenters/index.d.ts +1 -0
- package/components/AxisY/spectrum/useRanging/index.d.ts +4 -1
- package/components/AxisY/spectrum/useRanging/ranging.d.ts +3 -1
- package/components/AxisYByCanvas/useCanvasAxisY.d.ts +2 -2
- package/components/Cursor/registry.d.ts +7 -0
- package/components/DragSelectBox/index.d.ts +3 -1
- package/components/FrequencyAllocation/index.d.ts +2 -2
- package/components/FrequencyAllocation/model/index.d.ts +4 -0
- package/components/FrequencyAllocation/model/resolveFrequencyAllocationData.d.ts +2 -0
- package/components/FrequencyAllocation/model/resolver.d.ts +18 -0
- package/components/FrequencyAllocation/model/useAllocationAtCursor.d.ts +6 -0
- package/components/FrequencyAllocation/model/useFrequencyAllocationData.d.ts +1 -0
- package/components/FrequencyAllocation/overlays/Tooltip/index.d.ts +4 -0
- package/components/FrequencyAllocation/overlays/index.d.ts +1 -0
- package/components/FrequencyAllocation/{AllocationInfo → presenters/AllocationInfo}/index.d.ts +1 -1
- package/components/FrequencyAllocation/presenters/AllocationSegments/index.d.ts +12 -0
- package/components/FrequencyAllocation/presenters/index.d.ts +2 -0
- package/components/FrequencyDataBoard/hooks/index.d.ts +1 -0
- package/components/FrequencyDataBoard/hooks/useStationInfoAtCursor.d.ts +1 -0
- package/components/FrequencyDataBoard/index.d.ts +1 -0
- package/components/FrequencyDataBoard/{StationInfo → panels/StationInfoPanel}/index.d.ts +1 -1
- package/components/FrequencyDataBoard/panels/index.d.ts +1 -0
- package/components/FrequencyTagLine/index.d.ts +1 -1
- package/components/GridLines/OccupancyDashed/index.d.ts +3 -0
- package/components/{Dropdown → Overlay/Dropdown}/index.d.ts +10 -2
- package/components/{Tooltip → Overlay/Tooltip}/index.d.ts +1 -1
- package/components/Overlay/index.d.ts +4 -0
- package/components/Signal/index.d.ts +2 -1
- package/components/Signal/metadata/index.d.ts +1 -0
- package/components/Signal/model/index.d.ts +3 -0
- package/components/Signal/model/resolver.d.ts +40 -0
- package/components/Signal/model/useStationInfoAtCursor.d.ts +7 -0
- package/components/Signal/model/useUnifiedSignals.d.ts +6 -0
- package/components/Signal/presenters/SignalSegments/index.d.ts +10 -0
- package/components/Signal/presenters/index.d.ts +1 -0
- package/components/Signal/utils.d.ts +13 -1
- package/components/ToolsBar/{SeriesControl → controls/SeriesControl}/index.d.ts +1 -1
- package/components/ToolsBar/controls/index.d.ts +4 -0
- package/components/ToolsBar/{GradientRibbon → decorations/GradientRibbon}/index.d.ts +1 -1
- package/components/ToolsBar/decorations/index.d.ts +2 -0
- package/components/ToolsBar/primitives/IconBox.d.ts +11 -0
- package/components/ToolsBar/primitives/ToolbarContentBox.d.ts +11 -0
- package/components/ToolsBar/primitives/ToolbarDropdown.d.ts +16 -0
- package/components/ToolsBar/primitives/ToolbarGlyph.d.ts +10 -0
- package/components/ToolsBar/primitives/ToolbarGroup.d.ts +10 -0
- package/components/ToolsBar/primitives/ToolbarGroupIconBox.d.ts +5 -0
- package/components/ToolsBar/primitives/ToolbarSurface.d.ts +15 -0
- package/components/ToolsBar/primitives/index.d.ts +8 -0
- package/components/ToolsBar/primitives/styles.d.ts +41 -0
- package/components/ToolsBar/registry.d.ts +12 -0
- package/components/ToolsBar/toggles/index.d.ts +10 -0
- package/components/ui/button.d.ts +16 -0
- package/components/ui/checkbox.d.ts +4 -0
- package/components/ui/cursor-follow-layer.d.ts +10 -0
- package/components/ui/dialog.d.ts +12 -0
- package/components/ui/dropdown-menu.d.ts +9 -0
- package/components/ui/input.d.ts +1 -0
- package/components/ui/number-input.d.ts +10 -0
- package/components/ui/panel.d.ts +9 -0
- package/components/ui/popover.d.ts +7 -0
- package/components/ui/scroll-area.d.ts +5 -0
- package/components/ui/select.d.ts +11 -0
- package/components/ui/separator.d.ts +4 -0
- package/components/ui/slider.d.ts +2 -0
- package/components/ui/switch.d.ts +2 -0
- package/components/ui/tabs.d.ts +7 -0
- package/components/ui/tooltip.d.ts +7 -0
- package/components/ui/useChartsPortalContainer.d.ts +1 -0
- package/config/setting.d.ts +3 -3
- package/hooks/index.d.ts +2 -2
- package/hooks/publish/enhancedPublish.d.ts +17 -0
- package/hooks/publish/index.d.ts +1 -0
- package/hooks/publish/useSafePublish.d.ts +2 -8
- package/hooks/useChartComponent.d.ts +0 -6
- package/hooks/useDragSelect.d.ts +2 -0
- package/index.d.ts +4 -0
- package/index.js +19316 -7774
- package/lib/index.d.ts +1 -1
- package/package.json +8 -1
- package/store/Params.d.ts +2 -1
- package/store/constants.d.ts +2 -3
- package/store/context.d.ts +1 -1
- package/store/globalState.d.ts +4 -0
- package/store/hooks/index.d.ts +1 -0
- package/store/index.d.ts +1 -1
- package/store/reducer.d.ts +0 -34
- package/tailwind-bridge.css +123 -0
- package/theme/charts-theme-controller.d.ts +27 -0
- package/theme/charts-theme-environment.d.ts +7 -0
- package/theme/init-charts-theme.d.ts +16 -0
- package/theme/shadcn-theme-config.d.ts +221 -0
- package/theme/style-scope.d.ts +21 -0
- package/types/store/ui.d.ts +15 -1
- package/utils/cn.d.ts +2 -0
- package/utils/converter.d.ts +1 -1
- package/utils/cursor.d.ts +12 -0
- package/utils/frequencyCalculation.d.ts +8 -0
- package/utils/index.d.ts +1 -0
- package/utils/subscription.d.ts +1 -0
- package/utils/theme.d.ts +2 -2
- package/components/FrequencyAllocation/SegmentContainer.d.ts +0 -12
- package/components/FrequencyAllocation/Tooltip/index.d.ts +0 -8
- package/components/FrequencyAllocation/useAllocationFinder.d.ts +0 -10
- package/components/GridLines/Occdahsed/index.d.ts +0 -3
- package/components/Signal/SegmentContainer.d.ts +0 -26
- package/components/Signal/useStationFinder.d.ts +0 -12
- package/components/ToolsBar/IconBox.d.ts +0 -12
- /package/components/AxisY/spectrum/{components/Autoranging/index.d.ts → controls/AutorangingControl.d.ts} +0 -0
- /package/components/AxisY/spectrum/{components/Step/index.d.ts → controls/StepControl.d.ts} +0 -0
- /package/components/AxisY/spectrum/{components/Unit/index.d.ts → controls/UnitControl.d.ts} +0 -0
- /package/components/Cursor/{Popover → popovers}/index.d.ts +0 -0
- /package/components/{GuageBox → GaugeBox}/index.d.ts +0 -0
- /package/components/{Popover → Overlay/Popover}/index.d.ts +0 -0
- /package/components/{Portal → Overlay/Portal}/index.d.ts +0 -0
- /package/components/Signal/{type.d.ts → metadata/signalType.d.ts} +0 -0
- /package/components/ToolsBar/{Reset.d.ts → controls/Reset.d.ts} +0 -0
- /package/components/ToolsBar/{SegmentsDisplayControl → controls/SegmentsDisplayControl}/index.d.ts +0 -0
- /package/components/ToolsBar/{SeriesDisplayControl → controls/SeriesDisplayControl}/index.d.ts +0 -0
- /package/components/ToolsBar/{SpacerLine.d.ts → decorations/SpacerLine.d.ts} +0 -0
|
@@ -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,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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/components/ToolsBar/{SegmentsDisplayControl → controls/SegmentsDisplayControl}/index.d.ts
RENAMED
|
File without changes
|
/package/components/ToolsBar/{SeriesDisplayControl → controls/SeriesDisplayControl}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|