nmrium 0.51.0 → 0.52.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 (98) hide show
  1. package/lib/component/1d/LinesSeries.js +1 -1
  2. package/lib/component/EventsTrackers/KeysListenerTracker.js +3 -3
  3. package/lib/component/context/DispatchContext.d.ts +1 -1
  4. package/lib/component/elements/Label.js +1 -1
  5. package/lib/component/header/ApodizationOptionsPanel.js +1 -1
  6. package/lib/component/header/AutoPeakPickingOptionPanel.js +1 -1
  7. package/lib/component/header/BaseLineCorrectionPanel.js +2 -2
  8. package/lib/component/header/Header.js +1 -1
  9. package/lib/component/header/PhaseCorrectionPanel.js +1 -1
  10. package/lib/component/header/PhaseCorrectionTwoDimensionsPanel.js +2 -2
  11. package/lib/component/header/RangesPickingOptionPanel.js +1 -1
  12. package/lib/component/header/ZeroFillingOptionsPanel.js +1 -1
  13. package/lib/component/header/Zones2DOptionPanel.js +6 -2
  14. package/lib/component/hooks/useToolsFunctions.d.ts +1 -1
  15. package/lib/component/hooks/useToolsFunctions.js +3 -3
  16. package/lib/component/modal/AboutPredictionModal.js +1 -1
  17. package/lib/component/modal/AboutSpectrumSimulationModal.js +1 -1
  18. package/lib/component/modal/EditPeakShapeModal.js +1 -1
  19. package/lib/component/modal/LoadJCAMPModal.js +1 -1
  20. package/lib/component/modal/LogsHistoryModal.js +1 -1
  21. package/lib/component/modal/MultipletAnalysisModal.js +1 -1
  22. package/lib/component/modal/SaveAsModal.js +2 -2
  23. package/lib/component/modal/editZone/EditPathLengthFormik.js +2 -2
  24. package/lib/component/modal/editZone/EditZoneModal.js +1 -1
  25. package/lib/component/modal/metaImportation/MetaImportationModal.js +1 -1
  26. package/lib/component/modal/setting/GeneralSettings.js +2 -2
  27. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +1 -1
  28. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +1 -1
  29. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +1 -1
  30. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +1 -1
  31. package/lib/component/panels/Panels.js +5 -5
  32. package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
  33. package/lib/component/panels/RangesPanel/RangesPreferences.js +1 -1
  34. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts +5 -0
  35. package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraPanelHeader.js +8 -8
  36. package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraTable.js +1 -1
  37. package/lib/component/panels/SpectraPanel/SpectraTabs.d.ts +1 -0
  38. package/lib/component/panels/{SpectrumsPanel/SpectrumsTabs.js → SpectraPanel/SpectraTabs.js} +6 -6
  39. package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectrumListPanel.js +2 -2
  40. package/lib/component/panels/databasePanel/DatabasePreferences.js +1 -1
  41. package/lib/component/panels/header/SpectraAutomaticPickingButton.js +1 -1
  42. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +1 -1
  43. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +2 -2
  44. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
  45. package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +1 -1
  46. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +2 -2
  47. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +1 -1
  48. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +1 -1
  49. package/lib/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.js +1 -1
  50. package/lib/component/reducer/IgnoreActions.js +1 -1
  51. package/lib/component/reducer/Reducer.d.ts +1 -0
  52. package/lib/component/reducer/Reducer.js +17 -16
  53. package/lib/component/reducer/actions/DomainActions.js +3 -3
  54. package/lib/component/reducer/actions/LoadActions.js +1 -1
  55. package/lib/component/reducer/actions/PreferencesActions.js +2 -2
  56. package/lib/component/reducer/actions/ToolsActions.d.ts +3 -3
  57. package/lib/component/reducer/actions/ToolsActions.js +8 -8
  58. package/lib/component/reducer/actions/ZonesActions.d.ts +2 -0
  59. package/lib/component/reducer/actions/ZonesActions.js +5 -1
  60. package/lib/component/toolbar/ToolBar.js +15 -15
  61. package/lib/component/toolbar/toolbarMenu.js +4 -4
  62. package/lib/constants.js +5 -5
  63. package/lib/data/data2d/Spectrum2D/getSlice.js +1 -1
  64. package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -0
  65. package/lib/versionInfo.js +1 -1
  66. package/package.json +2 -1
  67. package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +0 -5
  68. package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.d.ts +0 -1
  69. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraPreferences.d.ts +0 -0
  70. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraPreferences.js +0 -0
  71. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraTable.d.ts +0 -0
  72. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectrumListPanel.d.ts +0 -0
  73. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ColorIndicator.d.ts +0 -0
  74. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ColorIndicator.js +0 -0
  75. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/RenderAsHTML.d.ts +0 -0
  76. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/RenderAsHTML.js +0 -0
  77. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ShowHideSpectrumButton.d.ts +0 -0
  78. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ShowHideSpectrumButton.js +0 -0
  79. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/SpectraColumnsManager.d.ts +0 -0
  80. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/SpectraColumnsManager.js +0 -0
  81. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/SpectrumName.d.ts +0 -0
  82. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/SpectrumName.js +0 -0
  83. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/PlotChart.d.ts +0 -0
  84. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/PlotChart.js +0 -0
  85. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum1DHistogram.d.ts +0 -0
  86. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum1DHistogram.js +0 -0
  87. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum1DSetting.d.ts +0 -0
  88. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum1DSetting.js +0 -0
  89. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum2DHistogram.d.ts +0 -0
  90. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum2DHistogram.js +0 -0
  91. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum2DSetting.d.ts +0 -0
  92. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum2DSetting.js +0 -0
  93. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/SpectrumSetting.d.ts +0 -0
  94. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/SpectrumSetting.js +0 -0
  95. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/processSnapPlot.d.ts +0 -0
  96. /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/processSnapPlot.js +0 -0
  97. /package/lib/component/reducer/actions/{SpectrumsActions.d.ts → SpectraActions.d.ts} +0 -0
  98. /package/lib/component/reducer/actions/{SpectrumsActions.js → SpectraActions.js} +0 -0
package/lib/constants.js CHANGED
@@ -1,23 +1,23 @@
1
1
  export const docsBaseUrl = 'https://docs.nmrium.org';
2
2
  export const helpList = {
3
3
  zoom: {
4
- text: 'Zoom Tool',
4
+ text: 'Zoom tool',
5
5
  url: `${docsBaseUrl}/help/zoom-and-scale`,
6
6
  },
7
7
  peakPicking: {
8
- text: 'peak picking tool',
8
+ text: 'Peak picking tool',
9
9
  url: `${docsBaseUrl}/help/peaks`,
10
10
  },
11
11
  integralPicking: {
12
- text: 'integral tool',
12
+ text: 'Integral tool',
13
13
  url: `${docsBaseUrl}/help/integrations`,
14
14
  },
15
15
  fullScreen: {
16
- text: 'Full Screen mode',
16
+ text: 'Full screen mode',
17
17
  url: `${docsBaseUrl}/help/general`,
18
18
  },
19
19
  loadSpectrum: {
20
- text: 'load spectrums',
20
+ text: 'Load spectra',
21
21
  url: `${docsBaseUrl}/help/loading-a-spectrum`,
22
22
  },
23
23
  };
@@ -63,7 +63,7 @@ export function getSlice(spectrum, position, options = {}) {
63
63
  function initiateData(from, to, size) {
64
64
  return {
65
65
  x: xSequentialFillFromTo({ from, to, size }),
66
- re: new Float64Array(length),
66
+ re: new Float64Array(size),
67
67
  };
68
68
  }
69
69
  function getRealData(data, info) {
@@ -7,6 +7,7 @@ export interface DetectionZonesOptions {
7
7
  toY: number;
8
8
  };
9
9
  thresholdFactor: number;
10
+ maxPercentCutOff: number;
10
11
  tolerances?: number[];
11
12
  convolutionByFFT?: boolean;
12
13
  enhanceSymmetry?: boolean;
@@ -1 +1 @@
1
- export default { version: 'v0.51.0' };
1
+ export default { version: 'v0.52.0' };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nmrium",
3
3
  "description": "React component to display and process nuclear magnetic resonance (NMR) spectra.",
4
- "version": "0.51.0",
4
+ "version": "0.52.0",
5
5
  "license": "MIT",
6
6
  "module": "lib/component/main/index.js",
7
7
  "types": "lib/component/main/index.d.ts",
@@ -84,6 +84,7 @@
84
84
  "ml-conrec": "^5.0.2",
85
85
  "ml-gsd": "^12.1.6",
86
86
  "ml-matrix": "^6.11.0",
87
+ "ml-signal-processing": "^1.0.4",
87
88
  "ml-spectra-processing": "^14.2.2",
88
89
  "ml-stat": "^1.3.3",
89
90
  "ml-tree-similarity": "^2.2.0",
@@ -1,5 +0,0 @@
1
- interface SpectraPanelHeaderProps {
2
- onSettingClick: () => void;
3
- }
4
- export default function SpectrumsTabs({ onSettingClick, }: SpectraPanelHeaderProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1 +0,0 @@
1
- export default function SpectrumsTabs(): import("@emotion/react/jsx-runtime").JSX.Element;