@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/modules/base/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BaseRenderer, type BaseRenderState, type IRenderer } from './BaseRenderer';
|
|
2
|
-
export { type CircularData, CircularRenderer, type CircularRenderState, type CircularSeriesItem } from './CircularRenderer';
|
|
3
|
-
export { GradientRenderer, type GradientRenderState } from './GradientRenderer';
|
|
4
|
-
export { default as IQRenderer, type IQChartType, type IQData } from './IQRenderer';
|
|
1
|
+
export { BaseRenderer, type BaseRenderState, type IRenderer } from './BaseRenderer.js';
|
|
2
|
+
export { type CircularData, CircularRenderer, type CircularRenderState, type CircularSeriesItem } from './CircularRenderer.js';
|
|
3
|
+
export { GradientRenderer, type GradientRenderState } from './GradientRenderer.js';
|
|
4
|
+
export { default as IQRenderer, type IQChartType, type IQData } from './IQRenderer.js';
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ModuleType } from '../../config';
|
|
2
|
-
import type { CursorEventSnapshot } from '../../types/store';
|
|
1
|
+
import type { ModuleType } from '../../config/index.js';
|
|
2
|
+
import type { CursorEventSnapshot } from '../../types/store/index.js';
|
|
3
3
|
export interface InteractionBounds {
|
|
4
4
|
left: number;
|
|
5
5
|
top: number;
|
package/runtime/passThrough.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type CSMCallback } from '../utils/subscription';
|
|
1
|
+
import { type CSMCallback } from '../utils/subscription.js';
|
|
2
2
|
export default _default;
|
|
3
3
|
declare function _default(globalID: string, name: string, func?: CSMCallback, subscriptionName?: string): (...args: any[]) => void;
|
package/store/Params.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { AxisYProps, ParamsProps, StoreState } from '../types';
|
|
2
|
+
import type { AxisYProps, ParamsProps, StoreState } from '../types/index.js';
|
|
3
|
+
export declare const initializeAxisYProps: (axisY?: Partial<AxisYProps>) => Partial<AxisYProps> | undefined;
|
|
3
4
|
export declare function mergeParameter<K extends keyof StoreState>(key: K, params: StoreState[K] | Partial<StoreState[K]> | null | undefined, state?: StoreState): StoreState[K];
|
|
4
5
|
export declare function normalizeAxisYProps(axisY?: Partial<AxisYProps>): Partial<AxisYProps> | undefined;
|
|
5
6
|
declare const Params: React.FC<ParamsProps>;
|
package/store/bandState.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type BandState } from '../types/store/ui.
|
|
1
|
+
import { type BandState } from '../types/store/ui.js';
|
|
2
2
|
export type BandUpdateStrategy = 'merge' | 'replace';
|
|
3
3
|
export declare function resolveBandState(input: Record<string, unknown>, current?: BandState, strategy?: BandUpdateStrategy): BandState;
|
package/store/chart-store.d.ts
CHANGED
package/store/constants.d.ts
CHANGED
package/store/context.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DispatchAction } from '../types/store';
|
|
3
|
-
import type { ChartStore } from './chart-store';
|
|
4
|
-
import type { ChartRuntime } from './runtime';
|
|
2
|
+
import type { DispatchAction } from '../types/store/index.js';
|
|
3
|
+
import type { ChartStore } from './chart-store.js';
|
|
4
|
+
import type { ChartRuntime } from './runtime.js';
|
|
5
5
|
export interface AppContextType {
|
|
6
6
|
runtime: ChartRuntime;
|
|
7
7
|
store: ChartStore;
|
package/store/defaultState.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type StoreState } from '../types/store';
|
|
1
|
+
import { type StoreState } from '../types/store/index.js';
|
|
2
2
|
export declare function createParams(): StoreState;
|
package/store/globalState.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RecursiveObject } from '../types';
|
|
2
|
-
import type { StoreState } from '../types/store';
|
|
1
|
+
import type { RecursiveObject } from '../types/index.js';
|
|
2
|
+
import type { StoreState } from '../types/store/index.js';
|
|
3
3
|
export declare const setGlobalStoreState: (globalID: string, state: RecursiveObject) => void;
|
|
4
4
|
export declare const getGlobalStoreState: (globalID: string) => StoreState | null;
|
|
5
5
|
export declare const clearGlobalStoreState: (globalID: string) => void;
|
package/store/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useSelector, useStore, useStoreApi, useStoreDispatch } from './useStore';
|
|
1
|
+
export { useSelector, useStore, useStoreApi, useStoreDispatch } from './useStore.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DispatchAction, StoreState } from '../../types/store';
|
|
2
|
-
import type { ChartStore } from '../chart-store';
|
|
3
|
-
import type { ChartRuntime } from '../runtime';
|
|
1
|
+
import type { DispatchAction, StoreState } from '../../types/store/index.js';
|
|
2
|
+
import type { ChartStore } from '../chart-store.js';
|
|
3
|
+
import type { ChartRuntime } from '../runtime.js';
|
|
4
4
|
export declare function useStore(): {
|
|
5
5
|
dispatch: (action: DispatchAction) => void;
|
|
6
6
|
runtime: ChartRuntime;
|
package/store/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { StoreProps } from '../types/store';
|
|
2
|
+
import type { StoreProps } from '../types/store/index.js';
|
|
3
3
|
declare const Store: React.FC<StoreProps>;
|
|
4
4
|
export default Store;
|
|
5
|
-
export { useSelector, useStore, useStoreApi, useStoreDispatch } from './hooks';
|
|
5
|
+
export { useSelector, useStore, useStoreApi, useStoreDispatch } from './hooks/index.js';
|
package/store/reducer.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DispatchAction, StoreState } from '../types/store';
|
|
1
|
+
import type { DispatchAction, StoreState } from '../types/store/index.js';
|
|
2
2
|
export declare const reducer: (state: StoreState, action: DispatchAction) => StoreState;
|
package/store/runtime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DispatchAction, StoreState } from '../types/store';
|
|
2
|
-
import { type ChartStore } from './chart-store';
|
|
1
|
+
import type { DispatchAction, StoreState } from '../types/store/index.js';
|
|
2
|
+
import { type ChartStore } from './chart-store.js';
|
|
3
3
|
type RuntimeCleanup = () => void;
|
|
4
4
|
export interface ChartRuntime {
|
|
5
5
|
destroy: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ChartsThemeState } from './theme-runtime.
|
|
2
|
-
import type { ChartsSizeTokensConfig, ChartsThemeTokensConfig } from './theme-tokens.
|
|
1
|
+
import { type ChartsThemeState } from './theme-runtime.js';
|
|
2
|
+
import type { ChartsSizeTokensConfig, ChartsThemeTokensConfig } from './theme-tokens.js';
|
|
3
3
|
export type ChartsThemeChange = ChartsThemeState;
|
|
4
4
|
export interface InitChartsThemeOptions {
|
|
5
5
|
onChange?: (state: ChartsThemeChange) => void;
|
package/theme/theme-runtime.d.ts
CHANGED
package/theme/theme-styles.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChartsSizeTokensConfig, type ChartsThemeTokensConfig } from './theme-tokens.
|
|
1
|
+
import { type ChartsSizeTokensConfig, type ChartsThemeTokensConfig } from './theme-tokens.js';
|
|
2
2
|
export interface ThemeStyleOptions {
|
|
3
3
|
sizes?: ChartsSizeTokensConfig;
|
|
4
4
|
tokens?: ChartsThemeTokensConfig;
|
package/types/common.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphicType, OrientationType } from '@rfkit/renderer';
|
|
2
|
-
import type { Publish, RecursiveObject, SetSeries } from './';
|
|
2
|
+
import type { Publish, RecursiveObject, SetSeries } from './index.js';
|
|
3
3
|
export type AxisYRange = [number, number];
|
|
4
4
|
export interface AxisXRange {
|
|
5
5
|
start: number;
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './base';
|
|
2
|
-
export * from './common';
|
|
3
|
-
export * from './publish';
|
|
4
|
-
export * from './store';
|
|
1
|
+
export * from './base.js';
|
|
2
|
+
export * from './common.js';
|
|
3
|
+
export * from './publish.js';
|
|
4
|
+
export * from './store/index.js';
|
package/types/publish.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { MarkerEventType, OptionKey, PSType, SegmentsEvent } from '../config';
|
|
2
|
-
import type { rawData } from '../utils/subscription';
|
|
3
|
-
import type { RecursiveObject } from './base';
|
|
4
|
-
import type { SegmentsOriginal, SeriesConfig, SpectrumBandwidth, StationInfoType } from './common';
|
|
5
|
-
import type { BandProps, MarkerType, ParamsProps, SignalData, SignalDataType } from './store';
|
|
1
|
+
import type { MarkerEventType, OptionKey, PSType, SegmentsEvent } from '../config/index.js';
|
|
2
|
+
import type { rawData } from '../utils/subscription.js';
|
|
3
|
+
import type { RecursiveObject } from './base.js';
|
|
4
|
+
import type { SegmentsOriginal, SeriesConfig, SpectrumBandwidth, StationInfoType } from './common.js';
|
|
5
|
+
import type { BandProps, MarkerType, ParamsProps, SignalData, SignalDataType } from './store/index.js';
|
|
6
6
|
export interface SetOption {
|
|
7
7
|
pstype: PSType.Option;
|
|
8
8
|
key: OptionKey;
|
package/types/store/axis.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { AxisPlacement } from '../../config';
|
|
2
|
-
import type { AxisYRange, RecursiveObject } from '
|
|
1
|
+
import type { AxisPlacement } from '../../config/index.js';
|
|
2
|
+
import type { AxisYRange, RecursiveObject } from '../index.js';
|
|
3
3
|
export interface AxisYProps {
|
|
4
4
|
show?: boolean;
|
|
5
5
|
placement?: AxisPlacement;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
gradientRibbon?: boolean;
|
|
8
|
+
defaultRange?: AxisYRange;
|
|
8
9
|
realRange?: number[];
|
|
9
10
|
range?: AxisYRange;
|
|
10
11
|
renderRange?: AxisYRange;
|
package/types/store/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export * from './axis';
|
|
2
|
-
export * from './frequency';
|
|
3
|
-
export * from './heatmap';
|
|
4
|
-
export * from './marker';
|
|
5
|
-
export * from './series';
|
|
6
|
-
export * from './signal';
|
|
7
|
-
export * from './ui';
|
|
8
|
-
import type { Publish, SegmentsType } from '
|
|
9
|
-
import type { AxisXProps, AxisYProps } from './axis';
|
|
10
|
-
import type { FrequencyAllocationProps } from './frequency';
|
|
11
|
-
import type { HeatmapCaptureProps, WaterfallViewportState } from './heatmap';
|
|
12
|
-
import type { MarkerProps } from './marker';
|
|
13
|
-
import type { LevelStreamProps, SeriesProps } from './series';
|
|
14
|
-
import type { SignalAnalysisProps, SignalProps } from './signal';
|
|
15
|
-
import type { BandProps, BandState, BlazeProps, CursorProps, DeltaMeasurementProps, EventBusProps, FluorescenceProps, FrequencyTagLineBoardProps, LegendProps, LimitProps, ScopeProps, StripeProps, SystemConfig, ToolbarProps, ZoomProps } from './ui';
|
|
1
|
+
export * from './axis.js';
|
|
2
|
+
export * from './frequency.js';
|
|
3
|
+
export * from './heatmap.js';
|
|
4
|
+
export * from './marker.js';
|
|
5
|
+
export * from './series.js';
|
|
6
|
+
export * from './signal.js';
|
|
7
|
+
export * from './ui.js';
|
|
8
|
+
import type { Publish, SegmentsType } from '../index.js';
|
|
9
|
+
import type { AxisXProps, AxisYProps } from './axis.js';
|
|
10
|
+
import type { FrequencyAllocationProps } from './frequency.js';
|
|
11
|
+
import type { HeatmapCaptureProps, WaterfallViewportState } from './heatmap.js';
|
|
12
|
+
import type { MarkerProps } from './marker.js';
|
|
13
|
+
import type { LevelStreamProps, SeriesProps } from './series.js';
|
|
14
|
+
import type { SignalAnalysisProps, SignalProps } from './signal.js';
|
|
15
|
+
import type { BandProps, BandState, BlazeProps, CursorProps, DeltaMeasurementProps, EventBusProps, FluorescenceProps, FrequencyTagLineBoardProps, LegendProps, LimitProps, ScopeProps, StripeProps, SystemConfig, ToolbarProps, ZoomProps } from './ui.js';
|
|
16
16
|
export interface StoreState {
|
|
17
17
|
globalID: string;
|
|
18
18
|
config: unknown;
|
package/types/store/marker.d.ts
CHANGED
package/types/store/series.d.ts
CHANGED
package/types/store/ui.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FluorescenceRenderMode, RendererType } from '@rfkit/renderer';
|
|
2
|
-
import type { ModuleType } from '../../config';
|
|
3
|
-
import type { AxisXRange, RecursiveObject, TopRightBottomLeft } from '
|
|
2
|
+
import type { ModuleType } from '../../config/index.js';
|
|
3
|
+
import type { AxisXRange, RecursiveObject, TopRightBottomLeft } from '../index.js';
|
|
4
4
|
export interface ToolbarProps {
|
|
5
5
|
show: boolean;
|
|
6
6
|
hiddenTools?: string[];
|
|
@@ -40,6 +40,7 @@ export interface CursorEventSnapshot {
|
|
|
40
40
|
export interface CursorProps {
|
|
41
41
|
show: boolean;
|
|
42
42
|
active: boolean;
|
|
43
|
+
crosshair?: boolean;
|
|
43
44
|
event: CursorEventSnapshot | null;
|
|
44
45
|
coord: TopRightBottomLeft;
|
|
45
46
|
timeout: number;
|
package/types/store.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './store/index';
|
|
1
|
+
export * from './store/index.js';
|
package/utils/cursor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModuleType } from '../config';
|
|
2
|
-
import type { CursorEventSnapshot } from '../types/store';
|
|
1
|
+
import { ModuleType } from '../config/index.js';
|
|
2
|
+
import type { CursorEventSnapshot } from '../types/store/index.js';
|
|
3
3
|
interface CursorStateLike {
|
|
4
4
|
show: boolean;
|
|
5
5
|
active: boolean;
|
package/utils/frequency.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FrequencyUnit } from '../config/constants';
|
|
2
|
-
import type { RecursiveObject, SegmentsOriginal, SegmentsType } from '../types';
|
|
1
|
+
import { FrequencyUnit } from '../config/constants.js';
|
|
2
|
+
import type { RecursiveObject, SegmentsOriginal, SegmentsType } from '../types/index.js';
|
|
3
3
|
export declare const getFrequencyToFixed: (frequency: number, fixedNum?: number) => string;
|
|
4
4
|
export declare function isdBm(unit: string): boolean;
|
|
5
5
|
export declare const leftSegments2frequency: (segments: SegmentsType) => (left: number) => string;
|
package/utils/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { TimestampedFloat32Array } from '@rfkit/spectrum-analyzer';
|
|
2
|
-
export * from './array';
|
|
3
|
-
export * from './cursor';
|
|
4
|
-
export * from './frequency';
|
|
5
|
-
export * from './frequencyCalculation';
|
|
6
|
-
export * from './object';
|
|
7
|
-
export * from './throttle';
|
|
8
|
-
export * from './time';
|
|
2
|
+
export * from './array.js';
|
|
3
|
+
export * from './cursor.js';
|
|
4
|
+
export * from './frequency.js';
|
|
5
|
+
export * from './frequencyCalculation.js';
|
|
6
|
+
export * from './object.js';
|
|
7
|
+
export * from './throttle.js';
|
|
8
|
+
export * from './time.js';
|
|
9
9
|
export declare const createGUID: () => string;
|
|
10
10
|
export declare const convertToTimestampedArrays: (data: number[][], timestamps?: Array<string>) => TimestampedFloat32Array[];
|
package/utils/object.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RecursiveObject } from '../types';
|
|
1
|
+
import type { RecursiveObject } from '../types/index.js';
|
|
2
2
|
export declare const mergeObjects: <T extends RecursiveObject>(source: T, params: RecursiveObject) => T;
|
package/utils/series/events.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GraphicType } from '@rfkit/renderer';
|
|
2
|
-
import type { SeriesConfig } from './index';
|
|
3
|
-
import type { ModeConfig, SeriesMode } from './modes';
|
|
2
|
+
import type { SeriesConfig } from './index.js';
|
|
3
|
+
import type { ModeConfig, SeriesMode } from './modes.js';
|
|
4
4
|
export declare const SeriesEventName: {
|
|
5
5
|
readonly UPDATED: 'series:updated';
|
|
6
6
|
readonly ADDED: 'series:added';
|
package/utils/series/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare function setChartTypeSeriesOverride(globalID: string, seriesName:
|
|
|
15
15
|
export declare function clearChartTypeSeriesOverrides(globalID: string): void;
|
|
16
16
|
export declare function getChartTypeSeriesOverride(globalID: string, seriesName: string): GraphicType | undefined;
|
|
17
17
|
export declare function getCorrectSeriesType(globalID: string, seriesName: string): GraphicType;
|
|
18
|
-
export { type ModeConfig, SeriesMode, type SeriesModesConfig } from './modes';
|
|
18
|
+
export { type ModeConfig, SeriesMode, type SeriesModesConfig } from './modes.js';
|
|
19
19
|
export type { ExternalSeriesConfig };
|
|
20
20
|
export declare function getSeriesManager(globalID: string): SeriesManager;
|
|
21
21
|
export declare function destroySeriesManager(globalID: string): void;
|
|
@@ -24,7 +24,7 @@ export declare function getSeriesMap(globalID: string): Map<string, SeriesConfig
|
|
|
24
24
|
export declare function updateSeries(globalID: string, config: PartialSeriesConfig): void;
|
|
25
25
|
export declare function resetSeries(globalID: string): void;
|
|
26
26
|
export declare function batchUpdateSeries(globalID: string, configs: PartialSeriesConfig[]): void;
|
|
27
|
-
export * from './events';
|
|
28
|
-
export * from './modes';
|
|
29
|
-
export * from './subscription';
|
|
27
|
+
export * from './events.js';
|
|
28
|
+
export * from './modes.js';
|
|
29
|
+
export * from './subscription.js';
|
|
30
30
|
export declare function getSeriesWithGraphicType(globalID: string): Map<string, SeriesConfig>;
|
package/utils/subscription.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SpectrumAnalyzer, SpectrumOutputData, WaterfallAnalyzer } from '@rfkit/spectrum-analyzer';
|
|
2
|
-
import type { RecursiveFunction } from '../types';
|
|
2
|
+
import type { RecursiveFunction } from '../types/index.js';
|
|
3
3
|
interface ChartsGlobal {
|
|
4
4
|
datas: Record<string, unknown>;
|
|
5
5
|
subscriptions: ChartSubscriptions;
|
package/utils/throttle.d.ts
CHANGED
|
@@ -17,7 +17,10 @@ interface ReactLikeEvent {
|
|
|
17
17
|
clientY?: number;
|
|
18
18
|
buttons?: number;
|
|
19
19
|
}
|
|
20
|
-
export declare function throttleRequestAnimationFrame<T = unknown>(func?: (e?: T | EventSnapshot) => void): (e?: T | ReactLikeEvent) => void
|
|
20
|
+
export declare function throttleRequestAnimationFrame<T = unknown>(func?: (e?: T | EventSnapshot) => void): ((e?: T | ReactLikeEvent) => void) & {
|
|
21
|
+
flush: () => void;
|
|
22
|
+
cancel: () => void;
|
|
23
|
+
};
|
|
21
24
|
export declare function throttleTimer<T = unknown>(func?: (e?: T) => void, wait?: number): (e?: T) => void;
|
|
22
25
|
export declare const debounce: <T extends (...args: unknown[]) => unknown>(fn: T, delay?: number) => ((...args: Parameters<T>) => void) & {
|
|
23
26
|
cancel: () => void;
|