@rfkit/charts 1.14.1 → 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 (186) 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/ui.d.ts +2 -2
  177. package/types/store.d.ts +1 -1
  178. package/utils/cursor.d.ts +2 -2
  179. package/utils/frequency.d.ts +2 -2
  180. package/utils/frequencyCalculation.d.ts +1 -1
  181. package/utils/index.d.ts +7 -7
  182. package/utils/object.d.ts +1 -1
  183. package/utils/series/events.d.ts +2 -2
  184. package/utils/series/index.d.ts +4 -4
  185. package/utils/series/subscription.d.ts +1 -1
  186. package/utils/subscription.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { ParamsProps } from '../../types';
2
+ import type { ParamsProps } from '../../types/index.js';
3
3
  export interface Props extends ParamsProps {
4
4
  }
5
5
  declare const Chart: React.FC<Props>;
@@ -1,4 +1,4 @@
1
1
  import type React from 'react';
2
- import type { Props } from './Chart';
3
- declare const Dial: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../..").Publish>>;
2
+ import type { Props } from './Chart.js';
3
+ declare const Dial: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../../index.js").Publish>>;
4
4
  export default Dial;
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { ParamsProps } from '../../types';
2
+ import type { ParamsProps } from '../../types/index.js';
3
3
  export interface Props extends ParamsProps {
4
4
  axisY?: {
5
5
  range?: [number, number];
@@ -1,4 +1,4 @@
1
1
  import type React from 'react';
2
- import type { Props } from './Chart';
3
- declare const Gauge: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../..").Publish>>;
2
+ import type { Props } from './Chart.js';
3
+ declare const Gauge: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../../index.js").Publish>>;
4
4
  export default Gauge;
@@ -1,6 +1,6 @@
1
1
  import type { RendererType } from '@rfkit/renderer';
2
2
  import type React from 'react';
3
- import type { ParamsProps } from '../../types';
3
+ import type { ParamsProps } from '../../types/index.js';
4
4
  export interface Props extends ParamsProps {
5
5
  heatmapDefaultData?: Array<Array<number>>;
6
6
  renderer?: RendererType;
@@ -1,4 +1,4 @@
1
1
  import type React from 'react';
2
- import type { Props } from './Chart';
3
- declare const Heatmap: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../..").Publish>>;
2
+ import type { Props } from './Chart.js';
3
+ declare const Heatmap: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../../index.js").Publish>>;
4
4
  export default Heatmap;
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
- import { ChartType } from '../../config';
3
- import type { ParamsProps } from '../../types';
2
+ import { ChartType } from '../../config/index.js';
3
+ import type { ParamsProps } from '../../types/index.js';
4
4
  export interface Props extends ParamsProps {
5
5
  type: ChartType;
6
6
  }
@@ -1,4 +1,4 @@
1
1
  import type React from 'react';
2
- import type { Props } from './Chart';
3
- declare const IQ: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../..").Publish>>;
2
+ import type { Props } from './Chart.js';
3
+ declare const IQ: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../../index.js").Publish>>;
4
4
  export default IQ;
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { ParamsProps } from '../../types';
2
+ import type { ParamsProps } from '../../types/index.js';
3
3
  export interface Props extends ParamsProps {
4
4
  statisticsTime?: number;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import type React from 'react';
2
- import type { Props } from './Chart';
3
- declare const LevelStream: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../..").Publish>>;
2
+ import type { Props } from './Chart.js';
3
+ declare const LevelStream: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../../index.js").Publish>>;
4
4
  export default LevelStream;
@@ -1,4 +1,4 @@
1
- import type { ParamsProps } from '../../types';
1
+ import type { ParamsProps } from '../../types/index.js';
2
2
  export interface Props extends ParamsProps {
3
3
  }
4
4
  declare const Chart: React.FC<Props>;
@@ -1,4 +1,4 @@
1
1
  import type React from 'react';
2
- import type { Props } from './Chart';
3
- declare const Occupancy: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../..").Publish>>;
2
+ import type { Props } from './Chart.js';
3
+ declare const Occupancy: React.ForwardRefExoticComponent<Omit<Omit<Props, "publish">, "ref"> & React.RefAttributes<import("../../index.js").Publish>>;
4
4
  export default Occupancy;
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { ParamsProps } from '../../types';
2
+ import type { ParamsProps } from '../../types/index.js';
3
3
  interface Props extends ParamsProps {
4
4
  }
5
5
  declare const Chart: React.FC<Props>;
@@ -1,3 +1,3 @@
1
- import type { ParamsProps } from '../../types';
2
- declare const SpatialSpectrum: import("react").ForwardRefExoticComponent<Omit<Omit<ParamsProps, "publish">, "ref"> & import("react").RefAttributes<import("../../types").Publish>>;
1
+ import type { ParamsProps } from '../../types/index.js';
2
+ declare const SpatialSpectrum: import("react").ForwardRefExoticComponent<Omit<Omit<ParamsProps, "publish">, "ref"> & import("react").RefAttributes<import("../../types/index.js").Publish>>;
3
3
  export default SpatialSpectrum;
@@ -1,8 +1,8 @@
1
1
  import type { RendererType } from '@rfkit/renderer';
2
2
  import type { ProcessingOptions } from '@rfkit/spectrum-analyzer';
3
- import { type UseSpectrumChartTypeProps as SpectrumChartTypeProps } from '../../hooks/spectrum';
4
- import { type OccupancyPortalProps } from '../../modules/OccupancyPortal';
5
- import type { StrictParamsProps } from '../../types';
3
+ import { type UseSpectrumChartTypeProps as SpectrumChartTypeProps } from '../../hooks/spectrum/index.js';
4
+ import { type OccupancyPortalProps } from '../../modules/OccupancyPortal/index.js';
5
+ import type { StrictParamsProps } from '../../types/index.js';
6
6
  export interface Props extends Omit<SpectrumChartTypeProps, 'type'>, StrictParamsProps, OccupancyPortalProps {
7
7
  type?: SpectrumChartTypeProps['type'];
8
8
  children?: React.ReactNode;
@@ -1,2 +1,2 @@
1
- import type { Props } from './Chart';
1
+ import type { Props } from './Chart.js';
2
2
  export declare const withSpectrumHeatmapCaptureDefaults: <TProps extends Props>(props: TProps) => TProps;
@@ -1,4 +1,4 @@
1
1
  import type React from 'react';
2
- import type { Props } from './Chart';
3
- declare const Spectrum: React.ForwardRefExoticComponent<Omit<Props, "publish"> & React.RefAttributes<import("../..").Publish>>;
2
+ import type { Props } from './Chart.js';
3
+ declare const Spectrum: React.ForwardRefExoticComponent<Omit<Props, "publish"> & React.RefAttributes<import("../../index.js").Publish>>;
4
4
  export default Spectrum;
package/charts/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import Dial from './Dial';
2
- import Gauge from './Gauge';
3
- import Heatmap from './Heatmap';
4
- import IQ from './IQ';
5
- import LevelStream from './LevelStream';
6
- import Occupancy from './Occupancy';
7
- import Spectrum from './Spectrum';
1
+ import Dial from './Dial/index.js';
2
+ import Gauge from './Gauge/index.js';
3
+ import Heatmap from './Heatmap/index.js';
4
+ import IQ from './IQ/index.js';
5
+ import LevelStream from './LevelStream/index.js';
6
+ import Occupancy from './Occupancy/index.js';
7
+ import Spectrum from './Spectrum/index.js';
8
8
  export { Dial, Gauge, Heatmap, IQ, LevelStream, Occupancy, Spectrum };
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import { ChartType } from '../../config';
2
+ import { ChartType } from '../../config/index.js';
3
3
  export interface Props {
4
4
  type: ChartType;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import type React from 'react';
2
- import { type Props as TicksProps } from './Ticks';
2
+ import { type Props as TicksProps } from './Ticks.js';
3
3
  declare const _default: React.NamedExoticComponent<TicksProps>;
4
4
  export default _default;
@@ -0,0 +1,6 @@
1
+ import type React from 'react';
2
+ import { ChartType } from '../../../config/index.js';
3
+ declare const DataNFixedTicks: React.FC<{
4
+ type: ChartType;
5
+ }>;
6
+ export default DataNFixedTicks;
@@ -0,0 +1,3 @@
1
+ import type React from 'react';
2
+ declare const MScanTicks: React.FC;
3
+ export default MScanTicks;
@@ -0,0 +1,3 @@
1
+ import type React from 'react';
2
+ declare const ThreeFixedTicks: React.FC;
3
+ export default ThreeFixedTicks;
@@ -0,0 +1,13 @@
1
+ import type React from 'react';
2
+ export declare const AXIS_X_TICKS_LAYER_CLASS_NAME = "absolute right-0 top-0 flex h-full w-full items-center justify-between text-xs opacity-50";
3
+ export declare const AXIS_X_TICKS_SHELL_CLASS_NAME = "relative h-6 w-full select-none overflow-hidden text-xs leading-6";
4
+ export declare const FrequencyLabel: React.FC<{
5
+ value: string | number;
6
+ unit: string;
7
+ prefix?: string;
8
+ }>;
9
+ export declare const FrequencyTick: React.FC<{
10
+ value: number | string;
11
+ index: number;
12
+ total: number;
13
+ }>;
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
- import type { RenderChartType } from '../../../types';
3
- import GradientRibbon from './variants/standard/GradientRibbon';
2
+ import type { RenderChartType } from '../../../types/index.js';
3
+ import GradientRibbon from './variants/standard/GradientRibbon/index.js';
4
4
  export { GradientRibbon };
5
5
  interface Props {
6
6
  id: string;
@@ -1,3 +1,3 @@
1
- export { default as AutorangingControl } from './AutorangingControl';
2
- export { default as StepControl } from './StepControl';
3
- export { default as UnitControl } from './UnitControl';
1
+ export { default as AutorangingControl } from './AutorangingControl.js';
2
+ export { default as StepControl } from './StepControl.js';
3
+ export { default as UnitControl } from './UnitControl.js';
@@ -1,10 +1,10 @@
1
1
  import type React from 'react';
2
- import type { RenderChartType } from '../../../types';
2
+ import type { RenderChartType } from '../../../types/index.js';
3
3
  interface Props {
4
4
  chart: RenderChartType | null;
5
5
  }
6
6
  declare const AxisYSpectrum: React.FC<Props>;
7
7
  export default AxisYSpectrum;
8
- export * from './controls';
9
- export * from './presenters';
10
- export * from './useRanging';
8
+ export * from './controls/index.js';
9
+ export * from './presenters/index.js';
10
+ export * from './useRanging/index.js';
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { AxisYRange } from '../../../../../types';
2
+ import type { AxisYRange } from '../../../../../types/index.js';
3
3
  interface RangeProps {
4
4
  onChange(): unknown;
5
5
  move?: (value: number) => void;
@@ -1 +1 @@
1
- export { default as TicksPanel } from './TicksPanel';
1
+ export { default as TicksPanel } from './TicksPanel/index.js';
@@ -1,7 +1,7 @@
1
- import { useVirtualRange } from './tools';
2
- import type { RenderChartType } from '../../../../types';
3
- import Ranging, { RangeController, useRangeAutoFocus, useRangeMove, useRangeSet, useRangeZoom } from './ranging';
4
- import { getVirtualLevel, range2realRange } from './tools';
1
+ import { useVirtualRange } from './tools.js';
2
+ import type { RenderChartType } from '../../../../types/index.js';
3
+ import Ranging, { RangeController, useRangeAutoFocus, useRangeMove, useRangeSet, useRangeZoom } from './ranging.js';
4
+ import { getVirtualLevel, range2realRange } from './tools.js';
5
5
  interface Props {
6
6
  chart: RenderChartType | null;
7
7
  }
@@ -1,4 +1,4 @@
1
- import type { AxisYRange, RecursiveFunction, RecursiveObject } from '../../../../types';
1
+ import type { AxisYRange, RecursiveFunction, RecursiveObject } from '../../../../types/index.js';
2
2
  declare class RangeController {
3
3
  state: RecursiveObject;
4
4
  constructor(props: RecursiveObject);
@@ -1,2 +1,2 @@
1
- import type { AxisYRange } from '../../types';
1
+ import type { AxisYRange } from '../../types/index.js';
2
2
  export declare function getAxisYDoubleClickResetRange(restrict: number[] | undefined): AxisYRange;
@@ -1,4 +1,4 @@
1
- import type { SystemConfig } from '../../types/store';
1
+ import type { SystemConfig } from '../../types/store/index.js';
2
2
  export interface ContainerSizeSnapshot {
3
3
  height: number;
4
4
  width: number;
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import { ModuleType } from '../../config';
2
+ import { ModuleType } from '../../config/index.js';
3
3
  interface Props {
4
4
  id: string;
5
5
  type: ModuleType;
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import { ModuleType } from '../../config';
2
+ import { ModuleType } from '../../config/index.js';
3
3
  export declare const resolveCursorPopover: ({ id, mode, type }: {
4
4
  id: string;
5
5
  mode?: ModuleType;
@@ -1,4 +1,4 @@
1
- import type { RecursiveFunction } from '../../types';
1
+ import type { RecursiveFunction } from '../../types/index.js';
2
2
  type CursorTimer = ReturnType<typeof setTimeout> | null;
3
3
  export declare const CURSOR_TIMEOUT: (globalID: string, timer?: CursorTimer) => CursorTimer;
4
4
  export declare const CURSOR_SETACTIVE: (globalID: string, func?: RecursiveFunction) => (...args: any[]) => void;
@@ -1,2 +1,2 @@
1
- import { type CursorSampleSnapshot } from '../../runtime/interaction';
1
+ import { type CursorSampleSnapshot } from '../../runtime/interaction/index.js';
2
2
  export declare const useCursorSample: (id: string) => CursorSampleSnapshot | null;
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
2
  import { type ReactNode } from 'react';
3
- import { type DragType, type RectBounds, type RectPosition } from '../../hooks/useDragSelect';
3
+ import { type DragType, type RectBounds, type RectPosition } from '../../hooks/useDragSelect.js';
4
4
  type DragSelectBoxVariant = 'contained' | 'projected';
5
5
  export interface DragSelectBoxProps {
6
6
  enabled: boolean;
@@ -1,4 +1,4 @@
1
- import type { TopRightBottomLeft } from '../../types';
1
+ import type { TopRightBottomLeft } from '../../types/index.js';
2
2
  export interface EventPositionSource {
3
3
  currentTarget?: EventTarget | null;
4
4
  target?: EventTarget | null;
@@ -1,6 +1,6 @@
1
- import type { TopRightBottomLeft } from '../../types';
2
- import { type ConsumableCSMCallback, type CSMCallback } from '../../utils/subscription';
3
- import { type EventPositionSource } from './position';
1
+ import type { TopRightBottomLeft } from '../../types/index.js';
2
+ import { type ConsumableCSMCallback, type CSMCallback } from '../../utils/subscription.js';
3
+ import { type EventPositionSource } from './position.js';
4
4
  export declare function getEID(id: string): string;
5
5
  export declare const createMoveEventManager: (id: string, name?: string, func?: CSMCallback) => (...args: any[]) => void;
6
6
  export declare const createMouseDownEventManager: (id: string, name?: string, func?: CSMCallback) => (...args: any[]) => void;
@@ -1,3 +1,3 @@
1
- import type { RecursiveFunction } from '../../types';
1
+ import type { RecursiveFunction } from '../../types/index.js';
2
2
  export declare function subscriptionKeyBus(globalID: string, EID: string, func?: RecursiveFunction<[KeyboardEvent]>): (...args: any[]) => void;
3
3
  export default function useKeyEvent(globalID: string, EID: string): void;
@@ -1,4 +1,4 @@
1
- export { type DropdownOption, default as Dropdown } from './Dropdown';
2
- export { default as Popover } from './Popover';
3
- export { default as Portal } from './Portal';
4
- export { default as Tooltip } from './Tooltip';
1
+ export { type DropdownOption, default as Dropdown } from './Dropdown/index.js';
2
+ export { default as Popover } from './Popover/index.js';
3
+ export { default as Portal } from './Portal/index.js';
4
+ export { default as Tooltip } from './Tooltip/index.js';
@@ -1,4 +1,4 @@
1
- import { ChartType } from '../../../../config';
1
+ import { ChartType } from '../../../../config/index.js';
2
2
  interface Props {
3
3
  type?: ChartType;
4
4
  }
@@ -1,4 +1,4 @@
1
- export { default as Reset } from './Reset';
2
- export { default as SegmentsDisplayControl } from './SegmentsDisplayControl';
3
- export { default as SeriesControl } from './SeriesControl';
4
- export { default as SeriesDisplayControl } from './SeriesDisplayControl';
1
+ export { default as Reset } from './Reset.js';
2
+ export { default as SegmentsDisplayControl } from './SegmentsDisplayControl/index.js';
3
+ export { default as SeriesControl } from './SeriesControl/index.js';
4
+ export { default as SeriesDisplayControl } from './SeriesDisplayControl/index.js';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type CSMCallback } from '../../../../utils/subscription';
2
+ import { type CSMCallback } from '../../../../utils/subscription.js';
3
3
  export declare const handleColor: (globalID?: string, name?: string, func?: CSMCallback) => (...args: any[]) => void;
4
4
  declare const _default: React.NamedExoticComponent<{}>;
5
5
  export default _default;
@@ -1,2 +1,2 @@
1
- export { default as GradientRibbon, handleColor } from './GradientRibbon';
2
- export { default as SpacerLine } from './SpacerLine';
1
+ export { default as GradientRibbon, handleColor } from './GradientRibbon/index.js';
2
+ export { default as SpacerLine } from './SpacerLine.js';
@@ -1 +1 @@
1
- export { default as DeltaMeasurementIcon } from './DeltaMeasurementIcon';
1
+ export { default as DeltaMeasurementIcon } from './DeltaMeasurementIcon.js';
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import { ChartType } from '../../config';
2
+ import { ChartType } from '../../config/index.js';
3
3
  interface Props {
4
4
  type?: ChartType;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import type React from 'react';
2
2
  import type { ReactNode } from 'react';
3
- import { type ToolbarTone } from './styles';
4
- import { type ToolbarSurfaceProps } from './ToolbarSurface';
3
+ import { type ToolbarTone } from './styles.js';
4
+ import { type ToolbarSurfaceProps } from './ToolbarSurface.js';
5
5
  export interface IconBoxProps extends Pick<ToolbarSurfaceProps, 'style' | 'className' | 'title' | 'disabled' | 'onClick' | 'onDoubleClick'> {
6
6
  children: ReactNode;
7
7
  active?: boolean;
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
- import { type ToolbarTone } from './styles';
3
- import { type ToolbarSurfaceProps } from './ToolbarSurface';
2
+ import { type ToolbarTone } from './styles.js';
3
+ import { type ToolbarSurfaceProps } from './ToolbarSurface.js';
4
4
  export interface ToolbarContentBoxProps extends Pick<ToolbarSurfaceProps, 'style' | 'className' | 'title' | 'disabled' | 'onClick' | 'onDoubleClick' | 'onWheel'> {
5
5
  contentClassName?: string;
6
6
  active?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import { Dropdown } from '../../Overlay';
2
+ import { Dropdown } from '../../Overlay/index.js';
3
3
  type BaseDropdownProps = React.ComponentProps<typeof Dropdown>;
4
4
  type ToolbarDropdownProps = Omit<BaseDropdownProps, 'triggerVariant'>;
5
5
  interface ToolbarIconDropdownProps extends Omit<BaseDropdownProps, 'triggerVariant' | 'triggerContent'> {
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import IconBox from './IconBox';
2
+ import IconBox from './IconBox.js';
3
3
  type ToolbarGroupIconBoxProps = React.ComponentProps<typeof IconBox>;
4
4
  declare const ToolbarGroupIconBox: React.FC<ToolbarGroupIconBoxProps>;
5
5
  export default ToolbarGroupIconBox;
@@ -1,8 +1,8 @@
1
- export { default as IconBox, type IconBoxProps } from './IconBox';
2
- export * from './styles';
3
- export { default as ToolbarContentBox, type ToolbarContentBoxProps } from './ToolbarContentBox';
4
- export { ToolbarDropdown, ToolbarDropdownGroup, ToolbarIconDropdown } from './ToolbarDropdown';
5
- export { default as ToolbarGlyph } from './ToolbarGlyph';
6
- export { ToolbarGroup, ToolbarGroupSeparator } from './ToolbarGroup';
7
- export { default as ToolbarGroupIconBox } from './ToolbarGroupIconBox';
8
- export { default as ToolbarSurface, type ToolbarSurfaceProps } from './ToolbarSurface';
1
+ export { default as IconBox, type IconBoxProps } from './IconBox.js';
2
+ export * from './styles.js';
3
+ export { default as ToolbarContentBox, type ToolbarContentBoxProps } from './ToolbarContentBox.js';
4
+ export { ToolbarDropdown, ToolbarDropdownGroup, ToolbarIconDropdown } from './ToolbarDropdown.js';
5
+ export { default as ToolbarGlyph } from './ToolbarGlyph.js';
6
+ export { ToolbarGroup, ToolbarGroupSeparator } from './ToolbarGroup.js';
7
+ export { default as ToolbarGroupIconBox } from './ToolbarGroupIconBox.js';
8
+ export { default as ToolbarSurface, type ToolbarSurfaceProps } from './ToolbarSurface.js';
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import { ChartType, ToolbarItemType } from '../../config';
2
+ import { ChartType, ToolbarItemType } from '../../config/index.js';
3
3
  export interface ToolbarItemConfig {
4
4
  component: React.ComponentType<Record<string, unknown>>;
5
5
  toolType: ToolbarItemType;
@@ -1,10 +1,10 @@
1
- export { AutorangingControl as AutorangingSwitch, UnitControl as UnitSwitch } from '../../AxisY/spectrum/controls';
2
- export { default as ZoomSwitch } from '../../Zoom/Switch';
3
- export { default as FluorescenceSwitch } from '../../../modules/Fluorescence/Switch';
4
- export { default as HeatmapCaptureSwitch } from '../../../modules/Heatmap/Capture/Switch';
5
- export { default as TimeRangeSwitch } from '../../../modules/Heatmap/TimeRange/Switch';
6
- export { default as DeltaMeasurementSwitch } from '../../../modules/Spectrum/DeltaMeasurement/Switch';
7
- export { default as FrequencyAllocationSwitch } from '../../../modules/Spectrum/FrequencyAllocation/Switch';
8
- export { default as LimitSwitch } from '../../../modules/Spectrum/Limit/Switch';
9
- export { default as MarkersSwitch } from '../../../modules/Spectrum/Markers/Switch';
10
- export { default as SignalSwitch } from '../../../modules/Spectrum/Signal/Switch';
1
+ export { AutorangingControl as AutorangingSwitch, UnitControl as UnitSwitch } from '../../AxisY/spectrum/controls/index.js';
2
+ export { default as ZoomSwitch } from '../../Zoom/Switch/index.js';
3
+ export { default as FluorescenceSwitch } from '../../../modules/Fluorescence/Switch/index.js';
4
+ export { default as HeatmapCaptureSwitch } from '../../../modules/Heatmap/Capture/Switch/index.js';
5
+ export { default as TimeRangeSwitch } from '../../../modules/Heatmap/TimeRange/Switch/index.js';
6
+ export { default as DeltaMeasurementSwitch } from '../../../modules/Spectrum/DeltaMeasurement/Switch.js';
7
+ export { default as FrequencyAllocationSwitch } from '../../../modules/Spectrum/FrequencyAllocation/Switch/index.js';
8
+ export { default as LimitSwitch } from '../../../modules/Spectrum/Limit/Switch/index.js';
9
+ export { default as MarkersSwitch } from '../../../modules/Spectrum/Markers/Switch/index.js';
10
+ export { default as SignalSwitch } from '../../../modules/Spectrum/Signal/Switch/index.js';
@@ -1,4 +1,4 @@
1
- import type { AxisXRange } from '../../types';
1
+ import type { AxisXRange } from '../../types/index.js';
2
2
  export declare const buildZoomFullRange: <T extends {
3
3
  interval: AxisXRange;
4
4
  isScanSegmentsUpdateMagnify: boolean;
@@ -1,4 +1,4 @@
1
- import type { AxisXRange } from '../../types/common.ts';
1
+ import type { AxisXRange } from '../../types/common.js';
2
2
  interface AnchoredZoomParams {
3
3
  anchorPercent: number;
4
4
  interval: AxisXRange;
@@ -1,11 +1,11 @@
1
1
  export declare const SERIES: {
2
- realData: import("./setting").LineConfig;
3
- minData: import("./setting").LineConfig;
4
- maxData: import("./setting").LineConfig;
5
- avgData: import("./setting").LineConfig;
6
- thresholdData: import("./setting").LineConfig;
7
- templateData: import("./setting").LineConfig;
8
- backgroundNoiseData: import("./setting").LineConfig;
2
+ realData: import("./setting.js").LineConfig;
3
+ minData: import("./setting.js").LineConfig;
4
+ maxData: import("./setting.js").LineConfig;
5
+ avgData: import("./setting.js").LineConfig;
6
+ thresholdData: import("./setting.js").LineConfig;
7
+ templateData: import("./setting.js").LineConfig;
8
+ backgroundNoiseData: import("./setting.js").LineConfig;
9
9
  };
10
10
  export declare const SERIES_NAMES: string[];
11
11
  export declare const REAL_DATA_NAME: string;
package/config/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './constants';
2
- export * from './setting';
1
+ export * from './constants.js';
2
+ export * from './setting.js';
@@ -1,3 +1,3 @@
1
- export { default as useChannel } from './useChannel';
2
- export { default as usePoints } from './usePoints';
3
- export { default as useSegments } from './useSegments';
1
+ export { default as useChannel } from './useChannel.js';
2
+ export { default as usePoints } from './usePoints.js';
3
+ export { default as useSegments } from './useSegments.js';
@@ -1,2 +1,2 @@
1
- import type { SegmentsType } from '../../types';
1
+ import type { SegmentsType } from '../../types/index.js';
2
2
  export default function useSegments(): [SegmentsType, (s: SegmentsType) => void];
package/hooks/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { useChannel, usePoints, useSegments } from './data';
2
- export { type EnhancedPublish, PUB_SUB, usePublish, useSafePublish } from './publish';
3
- export { SET_SEGMENTS_DISPLAY, type UseSpectrumChartTypeProps, useSpectrumChartType, useSpectrumRule } from './spectrum';
4
- export { default as useChart } from './useChart';
5
- export { withChartPublisher } from './useChartComponent';
6
- export { default as useLevelStreamAnalyzer } from './useLevelStreamAnalyzer';
7
- export { useModuleSubscription } from './useModuleSubscription';
8
- export { useFilteredSeries, useSeriesForComponent, useSeriesManager } from './useSeriesManager';
1
+ export { useChannel, usePoints, useSegments } from './data/index.js';
2
+ export { type EnhancedPublish, PUB_SUB, usePublish, useSafePublish } from './publish/index.js';
3
+ export { SET_SEGMENTS_DISPLAY, type UseSpectrumChartTypeProps, useSpectrumChartType, useSpectrumRule } from './spectrum/index.js';
4
+ export { default as useChart } from './useChart/index.js';
5
+ export { withChartPublisher } from './useChartComponent.js';
6
+ export { default as useLevelStreamAnalyzer } from './useLevelStreamAnalyzer.js';
7
+ export { useModuleSubscription } from './useModuleSubscription.js';
8
+ export { useFilteredSeries, useSeriesForComponent, useSeriesManager } from './useSeriesManager/index.js';
@@ -1,5 +1,5 @@
1
- import type { Publish, PublishData } from '../../types';
2
- import { type rawData } from '../../utils/subscription.ts';
1
+ import type { Publish, PublishData } from '../../types/index.js';
2
+ import { type rawData } from '../../utils/subscription.js';
3
3
  type ReadyCleanup = () => void;
4
4
  type ReadyCallback = () => ReadyCleanup | undefined;
5
5
  export interface EnhancedPublish extends Publish {
@@ -1,3 +1,3 @@
1
- export type { EnhancedPublish } from './enhancedPublish';
2
- export { default as usePublish, PUB_SUB } from './usePublish';
3
- export { default as useSafePublish } from './useSafePublish';
1
+ export type { EnhancedPublish } from './enhancedPublish.js';
2
+ export { default as usePublish, PUB_SUB } from './usePublish.js';
3
+ export { default as useSafePublish } from './useSafePublish.js';
@@ -1,5 +1,5 @@
1
- import type { Publish } from '../../types';
2
- import { type CSMCallback } from '../../utils/subscription';
1
+ import type { Publish } from '../../types/index.js';
2
+ import { type CSMCallback } from '../../utils/subscription.js';
3
3
  export declare const PUB_SUB: (globalID: string, func?: CSMCallback) => (...args: any[]) => void;
4
4
  interface Props {
5
5
  subscribe?: CSMCallback;