nmrium 0.35.1 → 0.37.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 (279) hide show
  1. package/lib/component/1d/ApodizationLine.d.ts +1 -2
  2. package/lib/component/1d/Chart1D.d.ts +1 -2
  3. package/lib/component/1d/ExclusionZonesAnnotations.d.ts +1 -2
  4. package/lib/component/1d/Line.d.ts +1 -1
  5. package/lib/component/1d/LinesSeries.d.ts +1 -2
  6. package/lib/component/1d/SpectraLegends.d.ts +1 -2
  7. package/lib/component/1d/Viewer1D.d.ts +1 -1
  8. package/lib/component/1d/database/DatabaseElements.d.ts +1 -2
  9. package/lib/component/1d/database/DatabaseSpectrum.d.ts +1 -2
  10. package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts +1 -2
  11. package/lib/component/1d/integral/Integral.d.ts +1 -2
  12. package/lib/component/1d/integral/IntegralIndicator.d.ts +1 -2
  13. package/lib/component/1d/integral/IntegralsSeries.d.ts +1 -2
  14. package/lib/component/1d/jCouplingGraph/JGraph.d.ts +1 -2
  15. package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts +1 -2
  16. package/lib/component/1d/jCouplingGraph/JsCoupling.d.ts +1 -2
  17. package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts +1 -2
  18. package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -2
  19. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts +1 -2
  20. package/lib/component/1d/multiplicityTree/LevelNode.d.ts +1 -2
  21. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -1
  22. package/lib/component/1d/multiplicityTree/StringNode.d.ts +1 -1
  23. package/lib/component/1d/multiplicityTree/TreeNodes.d.ts +1 -1
  24. package/lib/component/1d/peaks/PeakAnnotations.d.ts +1 -2
  25. package/lib/component/1d/peaks/PeaksShapes.d.ts +1 -2
  26. package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +1 -2
  27. package/lib/component/1d/ranges/RangeIntegral.d.ts +1 -2
  28. package/lib/component/1d/ranges/Ranges.d.ts +1 -2
  29. package/lib/component/1d/tool/PeakPointer.d.ts +1 -2
  30. package/lib/component/1d/tool/VerticalIndicator.d.ts +1 -2
  31. package/lib/component/1d/tool/XLabelPointer.d.ts +1 -2
  32. package/lib/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.d.ts +1 -2
  33. package/lib/component/1d-2d/components/FloatMoleculeStructures/index.d.ts +2 -3
  34. package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +1 -2
  35. package/lib/component/1d-2d/tools/BrushX.d.ts +1 -2
  36. package/lib/component/1d-2d/tools/BrushXY.d.ts +1 -2
  37. package/lib/component/1d-2d/tools/CrossLinePointer.d.ts +1 -2
  38. package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts +1 -1
  39. package/lib/component/2d/1d-tracer/Left1DChart.d.ts +1 -1
  40. package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
  41. package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts +1 -1
  42. package/lib/component/2d/Chart2D.d.ts +1 -2
  43. package/lib/component/2d/SlicingView.d.ts +1 -2
  44. package/lib/component/2d/Viewer2D.d.ts +1 -1
  45. package/lib/component/2d/fid/FidCanvas.d.ts +1 -2
  46. package/lib/component/2d/fid/FidContainer.d.ts +1 -2
  47. package/lib/component/2d/ft/Contours.d.ts +1 -2
  48. package/lib/component/2d/ft/Contours.js +0 -6
  49. package/lib/component/2d/ft/FTContainer.d.ts +1 -2
  50. package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -2
  51. package/lib/component/2d/zones/Zones.d.ts +1 -2
  52. package/lib/component/ErrorOverlay.d.ts +1 -2
  53. package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
  54. package/lib/component/EventsTrackers/MouseTracker.d.ts +1 -1
  55. package/lib/component/NMRium.d.ts +2 -0
  56. package/lib/component/NMRium.js +7 -8
  57. package/lib/component/SplitPaneWrapper.d.ts +1 -2
  58. package/lib/component/assignment/index.d.ts +1 -2
  59. package/lib/component/context/LoggerContext.d.ts +1 -1
  60. package/lib/component/elements/ActionButtons.d.ts +1 -1
  61. package/lib/component/elements/ButtonToolTip.d.ts +1 -1
  62. package/lib/component/elements/CheckBoxCell.d.ts +1 -2
  63. package/lib/component/elements/CloseButton.d.ts +1 -1
  64. package/lib/component/elements/ColumnWrapper.d.ts +1 -1
  65. package/lib/component/elements/DeleteButton.d.ts +1 -2
  66. package/lib/component/elements/GroupPane.d.ts +1 -1
  67. package/lib/component/elements/IsotopesViewer.d.ts +1 -1
  68. package/lib/component/elements/Logo.d.ts +1 -2
  69. package/lib/component/elements/Message.d.ts +1 -1
  70. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +1 -2
  71. package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +1 -1
  72. package/lib/component/elements/RemoveAssignmentsButton.d.ts +4 -0
  73. package/lib/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +14 -1
  74. package/lib/component/elements/SVGGroup.d.ts +1 -1
  75. package/lib/component/elements/Table/Table.d.ts +1 -1
  76. package/lib/component/elements/Table/TableBody.d.ts +1 -1
  77. package/lib/component/elements/Table/TableCell.d.ts +1 -1
  78. package/lib/component/elements/Table/TableHead.d.ts +1 -1
  79. package/lib/component/elements/Table/TableRow.d.ts +1 -1
  80. package/lib/component/elements/ToolTip/ToolTip.d.ts +1 -1
  81. package/lib/component/elements/accordion/Accordion.d.ts +1 -1
  82. package/lib/component/elements/accordion/AccordionItem.d.ts +1 -1
  83. package/lib/component/elements/draggable/SVGDraggable.d.ts +1 -1
  84. package/lib/component/elements/formik/ErrorMessage.d.ts +1 -1
  85. package/lib/component/elements/formik/FormikCheckBox.d.ts +1 -1
  86. package/lib/component/elements/formik/FormikColorInput.d.ts +1 -1
  87. package/lib/component/elements/formik/FormikColorPicker.d.ts +1 -1
  88. package/lib/component/elements/formik/FormikColumnFormatField.d.ts +1 -1
  89. package/lib/component/elements/formik/FormikErrorsSummary.d.ts +1 -1
  90. package/lib/component/elements/formik/FormikInput.d.ts +1 -2
  91. package/lib/component/elements/formik/FormikNumberInput.d.ts +1 -2
  92. package/lib/component/elements/formik/FormikSelect.d.ts +1 -2
  93. package/lib/component/elements/formik/FormikSlider.d.ts +1 -2
  94. package/lib/component/elements/formik/FormikTextarea.d.ts +1 -1
  95. package/lib/component/elements/formik/Input.d.ts +1 -2
  96. package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +1 -2
  97. package/lib/component/elements/popup/Alert/Provider.d.ts +1 -1
  98. package/lib/component/elements/popup/Modal/Modal.d.ts +1 -1
  99. package/lib/component/elements/popup/Transition.d.ts +1 -1
  100. package/lib/component/elements/popup/Wrapper.d.ts +1 -2
  101. package/lib/component/elements/resizer/Resizer.d.ts +1 -1
  102. package/lib/component/elements/toggle/ToggleButton.d.ts +1 -1
  103. package/lib/component/elements/toggle/ToggleButtonGroup.d.ts +1 -1
  104. package/lib/component/header/ApodizationOptionsPanel.d.ts +1 -2
  105. package/lib/component/header/AutoPeakPickingOptionPanel.d.ts +1 -1
  106. package/lib/component/header/BaseLineCorrectionPanel.d.ts +1 -2
  107. package/lib/component/header/Header.js +1 -1
  108. package/lib/component/header/HeaderContainer.d.ts +1 -1
  109. package/lib/component/header/LogsHistory.d.ts +1 -2
  110. package/lib/component/header/PhaseCorrectionPanel.d.ts +1 -2
  111. package/lib/component/header/RangesPickingOptionPanel.d.ts +1 -2
  112. package/lib/component/header/ZeroFillingOptionsPanel.d.ts +1 -2
  113. package/lib/component/header/Zones2DOptionPanel.d.ts +1 -2
  114. package/lib/component/highlight/index.d.ts +1 -1
  115. package/lib/component/hooks/useSaveSettings.d.ts +1 -2
  116. package/lib/component/loader/NoData.d.ts +1 -1
  117. package/lib/component/loader/Spinner.d.ts +1 -1
  118. package/lib/component/loader/SpinnerContext.d.ts +1 -1
  119. package/lib/component/modal/AboutPredictionModal.d.ts +2 -0
  120. package/lib/component/modal/AboutPredictionModal.js +49 -0
  121. package/lib/component/modal/ExportAsJcampModal.d.ts +1 -2
  122. package/lib/component/modal/MultipletAnalysisModal.js +6 -1
  123. package/lib/component/modal/editRange/EditRangeModal.js +3 -2
  124. package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +1 -1
  125. package/lib/component/modal/editRange/forms/components/CouplingsTable.js +2 -1
  126. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +1 -2
  127. package/lib/component/modal/editRange/forms/components/DeltaInput.js +1 -1
  128. package/lib/component/modal/editRange/forms/components/SignalFormInfo.d.ts +1 -2
  129. package/lib/component/modal/editRange/forms/components/SignalFormTab.d.ts +1 -1
  130. package/lib/component/modal/editZone/SignalFormTab.d.ts +1 -2
  131. package/lib/component/modal/setting/WorkspaceItem.d.ts +1 -2
  132. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +1 -2
  133. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts +1 -2
  134. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts +1 -2
  135. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts +1 -2
  136. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts +1 -2
  137. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts +1 -2
  138. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts +1 -2
  139. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts +1 -1
  140. package/lib/component/panels/InformationPanel.d.ts +1 -2
  141. package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
  142. package/lib/component/panels/IntegralsPanel/IntegralTable.js +17 -13
  143. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +8 -5
  144. package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts +1 -2
  145. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -0
  146. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +3 -2
  147. package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +1 -2
  148. package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.d.ts +1 -2
  149. package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.d.ts +1 -2
  150. package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.d.ts +1 -2
  151. package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.d.ts +1 -2
  152. package/lib/component/panels/PanelNoData.d.ts +1 -2
  153. package/lib/component/panels/Panels.d.ts +1 -2
  154. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +1 -1
  155. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +0 -1
  156. package/lib/component/panels/RangesPanel/RangesTableRow.js +0 -11
  157. package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.d.ts +1 -2
  158. package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.d.ts +1 -2
  159. package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -3
  160. package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.d.ts +1 -2
  161. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +1 -2
  162. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
  163. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -2
  164. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
  165. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +1 -2
  166. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +1 -1
  167. package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +1 -2
  168. package/lib/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
  169. package/lib/component/panels/SpectrumsPanel/SpectraTable.d.ts +1 -2
  170. package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.d.ts +1 -1
  171. package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.d.ts +1 -1
  172. package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.d.ts +1 -2
  173. package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.d.ts +1 -2
  174. package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
  175. package/lib/component/panels/SpectrumsPanel/base/SpectrumName.d.ts +1 -2
  176. package/lib/component/panels/SpectrumsPanel/base/setting/PlotChart.d.ts +1 -2
  177. package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.d.ts +1 -1
  178. package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.d.ts +1 -2
  179. package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.d.ts +1 -1
  180. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +1 -2
  181. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
  182. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +1 -2
  183. package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +3 -12
  184. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +2 -4
  185. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +12 -16
  186. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts +1 -6
  187. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
  188. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -2
  189. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +2 -3
  190. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +27 -19
  191. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +1 -6
  192. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +2 -2
  193. package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -22
  194. package/lib/component/panels/extra/placeholder/NoTableData.d.ts +1 -2
  195. package/lib/component/panels/extra/preferences/NucleusGroup.d.ts +1 -1
  196. package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts +1 -2
  197. package/lib/component/panels/extra/preferences/PreferencesContainer.d.ts +1 -1
  198. package/lib/component/panels/extra/preferences/PreferencesGroup.d.ts +1 -1
  199. package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -5
  200. package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +3 -29
  201. package/lib/component/panels/filtersPanel/FiltersTable.d.ts +1 -2
  202. package/lib/component/panels/header/SpectraAutomaticPickingButton.d.ts +1 -2
  203. package/lib/component/panels/predictionPanel/PredictionPanel.d.ts +1 -2
  204. package/lib/component/panels/predictionPanel/PredictionPanel.js +6 -1
  205. package/lib/component/reducer/actions/LoadActions.js +14 -6
  206. package/lib/component/reducer/actions/MoleculeActions.js +26 -2
  207. package/lib/component/reducer/actions/PreferencesActions.js +17 -4
  208. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
  209. package/lib/component/toolbar/BasicToolBar.d.ts +1 -2
  210. package/lib/component/toolbar/FunctionToolBar.d.ts +1 -2
  211. package/lib/component/toolbar/HistoryToolBar.d.ts +1 -1
  212. package/lib/component/toolbar/ToolBar.d.ts +1 -2
  213. package/lib/component/workspaces/Workspace.d.ts +2 -1
  214. package/lib/component/workspaces/exercise.js +31 -0
  215. package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
  216. package/lib/data/constants/Multiplets.js +6 -13
  217. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
  218. package/lib/data/data1d/Spectrum1D/ranges/detectSignal.d.ts +1 -1
  219. package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +41 -18
  220. package/lib/data/data1d/filter1d/fft.js +5 -7
  221. package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +2 -2
  222. package/lib/data/data2d/Processing2D.d.ts +3 -3
  223. package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -4
  224. package/lib/data/data2d/Spectrum2D/contours.js +0 -1
  225. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -2
  226. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +12 -0
  227. package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -0
  228. package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +9 -4
  229. package/lib/data/utilities/ZoneUtilities.js +0 -1
  230. package/lib/types/NMRiumGeneralPreferences.d.ts +1 -0
  231. package/lib/versionInfo.js +1 -1
  232. package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +2 -1
  233. package/lib-cjs/component/2d/ft/Contours.js +0 -6
  234. package/lib-cjs/component/NMRium.js +4 -5
  235. package/lib-cjs/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +15 -2
  236. package/lib-cjs/component/header/Header.js +1 -1
  237. package/lib-cjs/component/modal/AboutPredictionModal.js +54 -0
  238. package/lib-cjs/component/modal/MultipletAnalysisModal.js +6 -1
  239. package/lib-cjs/component/modal/editRange/EditRangeModal.js +5 -4
  240. package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +2 -2
  241. package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +2 -1
  242. package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +2 -2
  243. package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +17 -13
  244. package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +7 -4
  245. package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +3 -2
  246. package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +0 -12
  247. package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -3
  248. package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
  249. package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
  250. package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +2 -2
  251. package/lib-cjs/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
  252. package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
  253. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
  254. package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +12 -19
  255. package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
  256. package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +27 -22
  257. package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +2 -2
  258. package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +1 -21
  259. package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +5 -34
  260. package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +6 -1
  261. package/lib-cjs/component/reducer/actions/LoadActions.js +14 -6
  262. package/lib-cjs/component/reducer/actions/MoleculeActions.js +25 -1
  263. package/lib-cjs/component/reducer/actions/PreferencesActions.js +17 -4
  264. package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
  265. package/lib-cjs/component/workspaces/exercise.js +31 -0
  266. package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +1 -0
  267. package/lib-cjs/data/constants/Multiplets.js +6 -13
  268. package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
  269. package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +40 -17
  270. package/lib-cjs/data/data1d/filter1d/fft.js +5 -7
  271. package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +2 -2
  272. package/lib-cjs/data/data2d/Spectrum2D/contours.js +0 -1
  273. package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +1 -2
  274. package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +12 -0
  275. package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +9 -4
  276. package/lib-cjs/data/utilities/ZoneUtilities.js +0 -1
  277. package/lib-cjs/versionInfo.js +1 -1
  278. package/package.json +33 -33
  279. package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.d.ts +0 -4
@@ -18,11 +18,24 @@ function changeSpectrumVerticalAlignment(draft, options) {
18
18
  if (isFid) {
19
19
  draft.view.verticalAlign[nucleus] = 'center';
20
20
  }
21
- else if (dataPerNucleus.length > 1) {
22
- draft.view.verticalAlign[nucleus] = 'stack';
23
- }
24
21
  else {
25
- draft.view.verticalAlign[nucleus] = 'bottom';
22
+ let hasMoreThanOnFt = false;
23
+ let count = 1;
24
+ for (const spectrum of dataPerNucleus) {
25
+ if (count > 1) {
26
+ hasMoreThanOnFt = true;
27
+ break;
28
+ }
29
+ if (spectrum.info.isFt) {
30
+ count++;
31
+ }
32
+ }
33
+ if (hasMoreThanOnFt) {
34
+ draft.view.verticalAlign[nucleus] = 'stack';
35
+ }
36
+ else {
37
+ draft.view.verticalAlign[nucleus] = 'bottom';
38
+ }
26
39
  }
27
40
  }
28
41
  else {
@@ -50,6 +50,7 @@ const getIntegralDefaultValues = (nucleus) => {
50
50
  relative: { show: true, format: '0.00' },
51
51
  color: '#000000',
52
52
  strokeWidth: 1,
53
+ showKind: true,
53
54
  };
54
55
  return getPreferences(preferences, nucleus);
55
56
  };
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export default function BasicToolBar(): JSX.Element;
1
+ export default function BasicToolBar(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export default function FunctionToolBar({ defaultValue, }: {
3
2
  defaultValue?: string;
4
- }): JSX.Element;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,6 @@ interface HistoryToolBarProps {
3
3
  isUndoButtonVisible?: boolean;
4
4
  isRedoButtonVisible?: boolean;
5
5
  }
6
- declare function HistoryToolBar({ isUndoButtonVisible, isRedoButtonVisible, }: HistoryToolBarProps): JSX.Element;
6
+ declare function HistoryToolBar({ isUndoButtonVisible, isRedoButtonVisible, }: HistoryToolBarProps): import("react/jsx-runtime").JSX.Element;
7
7
  declare const _default: import("react").MemoExoticComponent<typeof HistoryToolBar>;
8
8
  export default _default;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export default function ToolBar(): JSX.Element;
1
+ export default function ToolBar(): import("react/jsx-runtime").JSX.Element;
@@ -30,6 +30,7 @@ interface IntegralsNucleusPreferences {
30
30
  relative: ColumnPreferences;
31
31
  color: string;
32
32
  strokeWidth: number;
33
+ showKind: boolean;
33
34
  }
34
35
  interface ZonesNucleusPreferences {
35
36
  deltaPPM: ColumnPreferences;
@@ -39,7 +40,7 @@ interface ZonesGeneralPanelPreferences {
39
40
  relative: ColumnPreferences;
40
41
  }
41
42
  interface NucleusPreferences<T> {
42
- nuclei: Record<string, T>;
43
+ nuclei: Partial<Record<Nucleus, T>>;
43
44
  }
44
45
  interface BasicColumnPreferences {
45
46
  visible: boolean;
@@ -4,6 +4,7 @@ export const exercise = {
4
4
  display: {
5
5
  general: {
6
6
  hideGeneralSettings: true,
7
+ hideLogs: true,
7
8
  },
8
9
  panels: {
9
10
  spectraPanel: { display: true, open: true },
@@ -23,4 +24,34 @@ export const exercise = {
23
24
  spectraStackAlignments: true,
24
25
  },
25
26
  },
27
+ general: {
28
+ dimmedSpectraOpacity: 0.1,
29
+ verticalSplitterPosition: '440px',
30
+ verticalSplitterCloseThreshold: 600,
31
+ spectraRendering: 'auto',
32
+ loggingLevel: 'info',
33
+ },
34
+ formatting: {
35
+ nuclei: {},
36
+ panels: {
37
+ integrals: {
38
+ nuclei: {
39
+ '1H': {
40
+ relative: { show: true, format: '0.00' },
41
+ absolute: { show: false, format: '0.00' },
42
+ color: 'black',
43
+ strokeWidth: 1,
44
+ showKind: false,
45
+ },
46
+ '13C': {
47
+ relative: { show: true, format: '0.00' },
48
+ absolute: { show: false, format: '0.00' },
49
+ color: 'black',
50
+ strokeWidth: 1,
51
+ showKind: false,
52
+ },
53
+ },
54
+ },
55
+ },
56
+ },
26
57
  };
@@ -5,6 +5,7 @@ export const workspaceDefaultProperties = {
5
5
  hideGeneralSettings: false,
6
6
  experimentalFeatures: { display: false },
7
7
  hidePanelOnLoad: false,
8
+ hideLogs: false,
8
9
  },
9
10
  panels: {
10
11
  spectraPanel: { display: false, open: false },
@@ -1,13 +1,6 @@
1
- export const Multiplets = [
2
- { label: 'massive (m)', value: 'm', multiplicity: null },
3
- { label: 'singlet (s)', value: 's', multiplicity: 1 },
4
- { label: 'broad singlet (br s)', value: 'br s', multiplicity: 1 },
5
- { label: 'doublet (d)', value: 'd', multiplicity: 2 },
6
- { label: 'triplet (t)', value: 't', multiplicity: 3 },
7
- { label: 'quartet (q)', value: 'q', multiplicity: 4 },
8
- { label: 'quintet (i)', value: 'i', multiplicity: 5 },
9
- { label: 'sextet (x)', value: 'x', multiplicity: 6 },
10
- { label: 'septet (p)', value: 'p', multiplicity: 7 },
11
- { label: 'octet (o)', value: 'o', multiplicity: 8 },
12
- { label: 'nonet (n)', value: 'n', multiplicity: 9 },
13
- ];
1
+ import { MultiplicityPatterns } from 'nmr-processing';
2
+ export const Multiplets = MultiplicityPatterns.map(({ label, value, acs, multiplicity }) => ({
3
+ label: `${label}`,
4
+ value: acs || value,
5
+ multiplicity,
6
+ }));
@@ -8,7 +8,7 @@ import { initiatePeaks } from './peaks/initiatePeaks';
8
8
  import { initiateRanges } from './ranges/initiateRanges';
9
9
  export function initiateDatum1D(spectrum, options = {}) {
10
10
  const { usedColors = {}, filters = [] } = options;
11
- const spectrumObj = {};
11
+ const spectrumObj = { ...spectrum };
12
12
  spectrumObj.id = spectrum.id || v4();
13
13
  spectrumObj.display = {
14
14
  isVisible: true,
@@ -10,7 +10,7 @@ export default function detectSignal(data: {
10
10
  }): {
11
11
  multiplicity: any;
12
12
  kind: string;
13
- delta: any;
13
+ delta: number;
14
14
  js: any;
15
15
  diaIDs: never[];
16
16
  } | undefined;
@@ -1,6 +1,6 @@
1
1
  import { xGetFromToIndex } from 'ml-spectra-processing';
2
2
  import { analyseMultiplet } from 'multiplet-analysis';
3
- import { xyAutoPeaksPicking } from 'nmr-processing';
3
+ import { signalJoinCouplings, xyAutoPeaksPicking } from 'nmr-processing';
4
4
  export const MAX_LENGTH = 2048;
5
5
  export default function detectSignal(data, options) {
6
6
  const { x, re } = data;
@@ -11,36 +11,59 @@ export default function detectSignal(data, options) {
11
11
  });
12
12
  if (!checkMaxLength ||
13
13
  (checkMaxLength && toIndex - fromIndex <= MAX_LENGTH)) {
14
- const data = {
14
+ const dataRoi = {
15
15
  x: x.slice(fromIndex, toIndex),
16
16
  y: re.slice(fromIndex, toIndex),
17
17
  };
18
- const result = analyseMultiplet(data, {
18
+ const result = analyseMultiplet(dataRoi, {
19
19
  frequency,
20
+ minimalResolution: 0.3,
21
+ maxTestedJ: 17,
22
+ checkSymmetryFirst: true,
20
23
  takeBestPartMultiplet: true,
21
- symmetrizeEachStep: true,
24
+ correctVerticalOffset: true,
25
+ symmetrizeEachStep: false,
26
+ decreasingJvalues: true,
27
+ makeShortCutForSpeed: true,
22
28
  });
23
29
  if (result && result.chemShift === undefined)
24
30
  return;
25
- const signal = {
26
- multiplicity: result.js.map((j) => j.multiplicity).join(''),
31
+ const { delta, js } = joinCouplings(result);
32
+ let cs = 0;
33
+ let area = 0;
34
+ for (let i = 0; i < dataRoi.x.length; i++) {
35
+ cs += dataRoi.x[i] * dataRoi.y[i];
36
+ area += dataRoi.y[i];
37
+ }
38
+ cs /= area;
39
+ const peakList = js.length === 0 ? xyAutoPeaksPicking(dataRoi, { frequency }) : [];
40
+ return {
41
+ multiplicity: js.length > 0
42
+ ? js.map((j) => j.multiplicity).join('')
43
+ : Math.abs(cs - delta) / cs < 1e-3
44
+ ? peakList.length === 1
45
+ ? 's'
46
+ : 'm'
47
+ : 'm',
27
48
  kind: 'signal',
28
- delta: result.chemShift,
29
- js: result.js,
49
+ delta: cs,
50
+ js,
30
51
  diaIDs: [],
31
52
  };
32
- if (result.js.length === 0) {
33
- const { x: xData } = data;
34
- const { chemShift: delta } = result;
35
- const peakList = xyAutoPeaksPicking(data, { frequency });
36
- const deltaX = xData[0] - xData[1];
37
- const peaks = peakList.filter((peak) => peak.x < delta - deltaX && peak.x > delta + deltaX);
38
- if (peaks.length === 1)
39
- signal.multiplicity = 's';
40
- }
41
- return signal;
42
53
  }
43
54
  else {
44
55
  throw new Error(`length of signal should not exceed ${MAX_LENGTH} points`);
45
56
  }
46
57
  }
58
+ function joinCouplings(result) {
59
+ const { chemShift: delta, js } = result;
60
+ return {
61
+ delta,
62
+ js: js.length > 1
63
+ ? signalJoinCouplings({
64
+ delta,
65
+ js,
66
+ }, { tolerance: 0.6, ignoreDiaIDs: true }).js
67
+ : js,
68
+ };
69
+ }
@@ -16,7 +16,7 @@ export function apply(spectrum) {
16
16
  }
17
17
  checkSameLength(spectrum);
18
18
  let digitalFilterApplied = spectrum.filters.some((e) => e.name === 'digitalFilter' && e.flag);
19
- const { meta: { AQ_mod: aqMod }, } = spectrum;
19
+ const { info: { aqMod }, } = spectrum;
20
20
  if (aqMod === 1) {
21
21
  removeDCOffset(spectrum, digitalFilterApplied);
22
22
  }
@@ -24,18 +24,16 @@ export function apply(spectrum) {
24
24
  padDataToNextPowerOfTwo(spectrum, digitalFilterApplied);
25
25
  }
26
26
  const { data, info } = spectrum;
27
- Object.assign(data, reimFFT(data, { applyZeroShift: true }));
27
+ Object.assign(data, reimFFT({
28
+ re: data.re,
29
+ im: data.im,
30
+ }, { applyZeroShift: true }));
28
31
  if (digitalFilterApplied) {
29
32
  let { digitalFilter = 0 } = info;
30
33
  let ph1 = (digitalFilter - Math.floor(digitalFilter)) * Math.PI * 2;
31
34
  Object.assign(data, reimPhaseCorrection(data, 0, -ph1, { reverse: true }));
32
35
  }
33
36
  data.x = generateXAxis(spectrum);
34
- if (info?.reverse?.[0]) {
35
- data.re.reverse();
36
- data.im.reverse();
37
- }
38
- // Object.assign(datum1D.data, data);
39
37
  spectrum.info = { ...info, isFid: false, isFt: true };
40
38
  }
41
39
  export function isApplicable(spectrum) {
@@ -5,8 +5,8 @@ export function padDataToNextPowerOfTwo(spectrum, digitalFilterApplied) {
5
5
  let newRE = new Float64Array(size);
6
6
  let newIM = new Float64Array(size);
7
7
  const pointsToShift = getPointsToShift(spectrum);
8
- newRE.set(re.slice(0, length - pointsToShift));
9
- newIM.set(im.slice(0, length - pointsToShift));
8
+ newRE.set(re.slice(0, size - pointsToShift));
9
+ newIM.set(im.slice(0, size - pointsToShift));
10
10
  if (pointsToShift > 0 && digitalFilterApplied) {
11
11
  newRE.set(re.slice(re.length - pointsToShift), size - pointsToShift);
12
12
  newIM.set(im.slice(re.length - pointsToShift), size - pointsToShift);
@@ -25,8 +25,8 @@ export default class Processing2D {
25
25
  wheel(value: any): void;
26
26
  shiftWheel(value: any): never[] | undefined;
27
27
  drawContours(): {
28
- positive: any;
29
- negative: any;
28
+ positive: Readonly<import("ml-conrec").DrawContourResult<"basic">>;
29
+ negative: Readonly<import("ml-conrec").DrawContourResult<"basic">>;
30
30
  };
31
- getContours(zoomLevel: any, options?: any): any;
31
+ getContours(zoomLevel: any, options?: any): Readonly<import("ml-conrec").DrawContourResult<"basic">>;
32
32
  }
@@ -32,9 +32,6 @@ interface ReturnContoursManager {
32
32
  }
33
33
  declare function getDefaultContoursLevel(options: ContourOptions): Level;
34
34
  declare function contoursManager(spectrumID: string, state: ContoursLevels, options: ContourOptions): ReturnContoursManager;
35
- declare function drawContours(level: number, spectrum: Spectrum2D, negative?: boolean, quadrant?: string): {
36
- contours: any;
37
- timeout: boolean;
38
- };
35
+ declare function drawContours(level: number, spectrum: Spectrum2D, negative?: boolean, quadrant?: string): import("ml-conrec").DrawContourResult<"basic">;
39
36
  export { drawContours, contoursManager, getDefaultContoursLevel, DEFAULT_CONTOURS_OPTIONS, };
40
37
  export type { ContoursLevels, ReturnContoursManager, Level, LevelSign };
@@ -115,7 +115,6 @@ function getContours(zoomLevel, options) {
115
115
  const { negative = false, timeout = 2000, nbLevels, data } = options;
116
116
  const xs = getRange(data.minX, data.maxX, data.z[0].length);
117
117
  const ys = getRange(data.minY, data.maxY, data.z.length);
118
- // @ts-expect-error refactor Conrect class to accept Float32Array Array instead of an array of number
119
118
  const conrec = new Conrec(data.z, { xs, ys, swapAxes: false });
120
119
  const sanResult = calculateSanPlot('2D', data);
121
120
  const median = sanResult.positive;
@@ -5,9 +5,8 @@ import { get2DColor } from './get2DColor';
5
5
  import { initiateZones } from './zones/initiateZones';
6
6
  const defaultMinMax = { z: [], minX: 0, minY: 0, maxX: 0, maxY: 0 };
7
7
  export function initiateDatum2D(spectrum, usedColors = {}) {
8
- const datum = {};
8
+ const datum = { ...spectrum };
9
9
  datum.id = spectrum.id || v4();
10
- datum.selector = spectrum?.selector || {};
11
10
  datum.display = {
12
11
  isPositiveVisible: true,
13
12
  isNegativeVisible: true,
@@ -12,6 +12,18 @@ import { mapZones } from './mapZones';
12
12
  * @param {boolean} options.convolutionByFFT
13
13
  */
14
14
  export function detectZonesManual(datum, options) {
15
+ const { spectralWidth, originFrequency } = datum.info;
16
+ options.tolerances = spectralWidth.map((sw, i) => sw * originFrequency[i]);
15
17
  const zones = getDetectionZones(datum, options);
18
+ let { fromX, fromY, toX, toY } = options.selectedZone;
19
+ if (fromX > toX)
20
+ [fromX, toX] = [toX, fromX];
21
+ if (fromX > toX)
22
+ [fromY, toY] = [toY, fromY];
23
+ zones[0] = {
24
+ ...zones[0],
25
+ x: { from: fromX, to: toX },
26
+ y: { from: fromY, to: toY },
27
+ };
16
28
  return mapZones(zones, datum);
17
29
  }
@@ -7,6 +7,7 @@ export interface DetectionZonesOptions {
7
7
  toY: number;
8
8
  };
9
9
  thresholdFactor: number;
10
+ tolerances?: number[];
10
11
  convolutionByFFT?: boolean;
11
12
  enhanceSymmetry?: boolean;
12
13
  }
@@ -12,20 +12,25 @@ import { xyzAutoZonesPicking } from 'nmr-processing';
12
12
  */
13
13
  export function getDetectionZones(spectrum, options) {
14
14
  let dataMatrix = {};
15
- if (options.selectedZone) {
15
+ const { selectedZone } = options;
16
+ if (selectedZone) {
16
17
  options.enhanceSymmetry = false;
17
- dataMatrix = getSubMatrix(spectrum, options.selectedZone);
18
+ dataMatrix = getSubMatrix(spectrum, selectedZone);
18
19
  }
19
20
  else {
20
21
  dataMatrix = spectrum.data;
21
22
  }
22
- return autoZonesDetection(dataMatrix, { ...options, info: spectrum.info });
23
+ return autoZonesDetection(dataMatrix, {
24
+ ...options,
25
+ info: spectrum.info,
26
+ });
23
27
  }
24
28
  function autoZonesDetection(data, options) {
25
- const { thresholdFactor, clean, maxPercentCutOff, convolutionByFFT, info: { nucleus: nuclei, originFrequency }, } = options;
29
+ const { clean, tolerances, thresholdFactor, maxPercentCutOff, convolutionByFFT, info: { nucleus: nuclei, originFrequency }, } = options;
26
30
  const { enhanceSymmetry = nuclei[0] === nuclei[1] } = options;
27
31
  let zones = xyzAutoZonesPicking(data, {
28
32
  nuclei,
33
+ tolerances,
29
34
  observedFrequencies: originFrequency,
30
35
  thresholdFactor,
31
36
  realTopDetection: true,
@@ -46,7 +46,6 @@ export function unlink(zone, isOnZoneLevel, signalIndex, axis) {
46
46
  delete zone.signals[signalIndex][axis].diaIDs;
47
47
  delete zone.signals[signalIndex][axis].nbAtoms;
48
48
  }
49
- setNbAtoms(zone, axis);
50
49
  }
51
50
  else if (axis !== undefined) {
52
51
  resetDiaIDs(zone, axis);
@@ -3,4 +3,5 @@ export interface NMRiumGeneralPreferences {
3
3
  hideGeneralSettings: boolean;
4
4
  experimentalFeatures: PanelPreferencesType;
5
5
  hidePanelOnLoad: boolean;
6
+ hideLogs: boolean;
6
7
  }
@@ -1 +1 @@
1
- export default { version: 'v0.35.1' };
1
+ export default { version: 'v0.37.0' };
@@ -7,6 +7,7 @@ exports.MultiplicityTree = void 0;
7
7
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
8
8
  /** @jsxImportSource @emotion/react */
9
9
  const react_1 = require("@emotion/react");
10
+ const nmr_processing_1 = require("nmr-processing");
10
11
  const react_2 = require("react");
11
12
  const AssignmentsContext_1 = require("../../assignment/AssignmentsContext");
12
13
  const ChartContext_1 = require("../../context/ChartContext");
@@ -86,7 +87,7 @@ function getTree(range, spectrum, scale) {
86
87
  const treeResult = [];
87
88
  const { signals = [], ...otherRangeProps } = range;
88
89
  for (const signal of signals) {
89
- const isMassive = !(0, MultiplicityUtilities_1.checkMultiplicity)(signal.multiplicity, ['m']);
90
+ const isMassive = !(0, nmr_processing_1.checkMultiplicity)(signal.multiplicity, ['m']);
90
91
  const length = signal?.multiplicity?.length || 0;
91
92
  let width = 0;
92
93
  let height = 0;
@@ -32,12 +32,6 @@ function usePath(spectrum, contours) {
32
32
  }
33
33
  }
34
34
  }
35
- else {
36
- pathBuilder.moveTo(_scaleX(element[0].x + shift.x), _scaleY(element[0].y + shift.y));
37
- for (let j = 1; j < element.length; j++) {
38
- pathBuilder.lineTo(_scaleX(element[j].x + shift.x), _scaleY(element[j].y + shift.y));
39
- }
40
- }
41
35
  }
42
36
  pathBuilder.closePath();
43
37
  return pathBuilder.toString();
@@ -110,21 +110,20 @@ const defaultData = {
110
110
  spectra: [],
111
111
  };
112
112
  const NMRium = (0, react_2.forwardRef)(function NMRium(props, ref) {
113
- return ((0, jsx_runtime_1.jsx)(ui_1.RootLayout, { style: { width: '100%' }, children: (0, jsx_runtime_1.jsx)(react_error_boundary_1.ErrorBoundary, { FallbackComponent: ErrorOverlay_1.default, children: (0, jsx_runtime_1.jsx)(InnerNMRium, { ...props, innerRef: ref }) }) }));
113
+ const { onError, ...otherProps } = props;
114
+ return ((0, jsx_runtime_1.jsx)(ui_1.RootLayout, { style: { width: '100%' }, children: (0, jsx_runtime_1.jsx)(react_error_boundary_1.ErrorBoundary, { FallbackComponent: ErrorOverlay_1.default, onError: onError, children: (0, jsx_runtime_1.jsx)(InnerNMRium, { ...otherProps, innerRef: ref }) }) }));
114
115
  });
115
116
  function InnerNMRium({ data: dataProp = defaultData, workspace, customWorkspaces, preferences, getSpinner = SpinnerContext_1.defaultGetSpinner, onChange, emptyText, innerRef, }) {
116
117
  const rootRef = (0, react_2.useRef)(null);
117
118
  const elementsWrapperRef = (0, react_2.useRef)(null);
118
119
  const viewerRef = (0, react_2.useRef)(null);
119
- const [show, toggle] = (0, react_use_1.useToggle)(false);
120
+ const [show, , setOff, toggle] = (0, ui_1.useOnOff)(false);
120
121
  const handleChange = (0, react_2.useRef)(onChange);
121
122
  (0, react_2.useEffect)(() => {
122
123
  handleChange.current = onChange;
123
124
  }, [onChange]);
124
125
  const isFullscreen = (0, react_use_1.useFullscreen)(rootRef, show, {
125
- onClose: () => {
126
- toggle(false);
127
- },
126
+ onClose: setOff,
128
127
  });
129
128
  const [state, dispatch] = (0, react_2.useReducer)(Reducer_1.spectrumReducer, Reducer_1.initialState, Reducer_1.initState);
130
129
  const [preferencesState, dispatchPreferences] = (0, react_2.useReducer)(preferencesReducer_1.default, preferencesReducer_1.preferencesInitialState, preferencesReducer_1.initPreferencesState);
@@ -1,8 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RemoveAssignmentsButton = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
3
+ exports.RemoveAssignmentsButton = exports.removeAssignmentCssStyle = void 0;
4
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
+ /** @jsxImportSource @emotion/react */
6
+ const react_1 = require("@emotion/react");
5
7
  const fa_1 = require("react-icons/fa");
8
+ exports.removeAssignmentCssStyle = (0, react_1.css) `
9
+ .remove-assignment {
10
+ visibility: hidden;
11
+ }
12
+
13
+ &:hover {
14
+ .remove-assignment {
15
+ visibility: visible;
16
+ }
17
+ }
18
+ `;
6
19
  function RemoveAssignmentsButton({ onClick }) {
7
20
  return ((0, jsx_runtime_1.jsx)("sup", { className: "remove-assignment", children: (0, jsx_runtime_1.jsx)("button", { type: "button", style: {
8
21
  padding: 0,
@@ -106,7 +106,7 @@ function HeaderInner(props) {
106
106
  alignItems: 'center',
107
107
  }, children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.Toolbar, { orientation: "horizontal", children: (0, jsx_runtime_1.jsx)(AboutUsModal_1.default, {}) }) }), (0, jsx_runtime_1.jsx)("div", { className: "toolOptionsPanel", style: { flex: 1 }, children: selectedPanel })] }), (0, jsx_runtime_1.jsxs)(HeaderContainer_1.HeaderContainer, { style: {
108
108
  alignItems: 'center',
109
- }, children: [!hideGeneralSettings && ((0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: workspacesList, selectedKey: workspace.current, onSelect: changeWorkspaceHandler, renderItem: renderItem })), (0, jsx_runtime_1.jsx)(SaveButton, {}), (0, jsx_runtime_1.jsx)(LogsHistory_1.LogsHistory, {}), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)(ui_1.Toolbar, { orientation: "horizontal", children: [(0, jsx_runtime_1.jsx)(ui_1.Toolbar.Item, { id: "user-manual", title: "User manual", onClick: () => window.open(constants_1.docsBaseUrl, '_blank'), children: (0, jsx_runtime_1.jsx)(fa_1.FaQuestionCircle, {}) }), !hideGeneralSettings && ((0, jsx_runtime_1.jsx)(GeneralSettings_1.default, { height: height / 2 })), !isFullscreen && ((0, jsx_runtime_1.jsx)(ui_1.Toolbar.Item, { id: "full-screen", onClick: onMaximize, title: "Full Screen", className: "windowButton", children: (0, jsx_runtime_1.jsx)(fa_1.FaRegWindowMaximize, {}) }))] }) })] })] }) }));
109
+ }, children: [!hideGeneralSettings && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: workspacesList, selectedKey: workspace.current, onSelect: changeWorkspaceHandler, renderItem: renderItem }), (0, jsx_runtime_1.jsx)(SaveButton, {})] })), !general?.hideLogs && (0, jsx_runtime_1.jsx)(LogsHistory_1.LogsHistory, {}), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)(ui_1.Toolbar, { orientation: "horizontal", children: [(0, jsx_runtime_1.jsx)(ui_1.Toolbar.Item, { id: "user-manual", title: "User manual", onClick: () => window.open(constants_1.docsBaseUrl, '_blank'), children: (0, jsx_runtime_1.jsx)(fa_1.FaQuestionCircle, {}) }), !hideGeneralSettings && ((0, jsx_runtime_1.jsx)(GeneralSettings_1.default, { height: height / 2 })), !isFullscreen && ((0, jsx_runtime_1.jsx)(ui_1.Toolbar.Item, { id: "full-screen", onClick: onMaximize, title: "Full Screen", className: "windowButton", children: (0, jsx_runtime_1.jsx)(fa_1.FaRegWindowMaximize, {}) }))] }) })] })] }) }));
110
110
  }
111
111
  function SaveButton() {
112
112
  const { workspace, workspaces, originalWorkspaces } = (0, PreferencesContext_1.usePreferences)();
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
7
+ /** @jsxImportSource @emotion/react */
8
+ const react_1 = require("@emotion/react");
9
+ const fa_1 = require("react-icons/fa");
10
+ const ui_1 = require("react-science/ui");
11
+ const Button_1 = __importDefault(require("../elements/Button"));
12
+ const styles = (0, react_1.css) `
13
+ width: 600px;
14
+
15
+ .content {
16
+ padding: 2em;
17
+ }
18
+
19
+ ul {
20
+ list-style-type: disc;
21
+ margin-left: 25px;
22
+ }
23
+
24
+ p,
25
+ li {
26
+ user-select: text;
27
+ font-size: 1.1em;
28
+ }
29
+
30
+ a {
31
+ color: #00bcd4;
32
+ }
33
+
34
+ a:hover,
35
+ a:focus {
36
+ text-decoration: underline;
37
+ }
38
+
39
+ .header span {
40
+ color: #464646;
41
+ font-size: 15px;
42
+ flex: 1;
43
+ user-select: none;
44
+ }
45
+
46
+ p {
47
+ padding: 0.8em 0;
48
+ }
49
+ `;
50
+ function AboutPredictionModal() {
51
+ const [isOpenDialog, openDialog, closeDialog] = (0, ui_1.useOnOff)(false);
52
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { onClick: openDialog, tooltipOrientation: "horizontal", toolTip: "About Prediction", children: (0, jsx_runtime_1.jsx)(fa_1.FaInfo, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Modal, { hasCloseButton: true, isOpen: isOpenDialog, onRequestClose: closeDialog, children: (0, jsx_runtime_1.jsxs)("div", { css: styles, children: [(0, jsx_runtime_1.jsx)(ui_1.Modal.Header, { children: (0, jsx_runtime_1.jsx)("div", { className: "header", children: (0, jsx_runtime_1.jsx)("span", { children: "About Prediction" }) }) }), (0, jsx_runtime_1.jsx)(ui_1.Modal.Body, { children: (0, jsx_runtime_1.jsxs)("div", { className: "content", children: [(0, jsx_runtime_1.jsx)("p", { children: "If you are using our tools please cite us:" }), (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: ["Banfi, D.; Patiny, L.", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.2533/chimia.2008.280", target: "_blank", rel: "noreferrer", children: "www.nmrdb.org: Resurrecting and processing NMR spectra on-line" }), ' ', "Chimia, 2008, 62(4), 280-281."] }), (0, jsx_runtime_1.jsxs)("li", { children: ["Andr\u00E9s M. Castillo, Luc Patiny and Julien Wist.", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1016/j.jmr.2010.12.008", target: "_blank", rel: "noreferrer", children: "Fast and Accurate Algorithm for the Simulation of NMR spectra of Large Spin Systems" }), ". Journal of Magnetic Resonance 2011."] })] }), (0, jsx_runtime_1.jsx)("p", { children: "1H NMR prediction was possible thanks to the tool of the FCT-Universidade NOVA de Lisboa developed by Yuri Binev and Joao Aires-de-Sousa:" }), (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: ["Y. Binev, M.M. Marques, J. Aires-de-Sousa,", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1021/ci700172n", target: "_blank", rel: "noreferrer", children: "Prediction of 1H NMR coupling constants with associative neural networks trained for chemical shifts" }), ' ', "J. Chem. Inf. Model. 2007, 47/(6), 2089-2097."] }), (0, jsx_runtime_1.jsxs)("li", { children: ["Aires-de-Sousa, M. Hemmer, J. Gasteiger,", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1021/ac010737m", target: "_blank", rel: "noreferrer", children: "\u201C Prediction of 1H NMR Chemical Shifts Using Neural Networks\u201D" }), ", Analytical Chemistry, 2002, 74(1), 80-90."] })] }), (0, jsx_runtime_1.jsx)("p", { children: "13 NMR prediction was possible thanks to NMRshiftDB:" }), (0, jsx_runtime_1.jsx)("ul", { children: (0, jsx_runtime_1.jsxs)("li", { children: ["Steinbeck, Christoph, Stefan Krause, and Stefan Kuhn.", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1021/ci0341363", target: "_blank", rel: "noreferrer", children: "NMRShiftDB Constructing a Free Chemical Information System with Open-Source Components." }), ' ', "Journal of chemical information and computer sciences, 2003, 43(6): 1733-1739."] }) })] }) })] }) })] }));
53
+ }
54
+ exports.default = AboutPredictionModal;
@@ -131,8 +131,13 @@ function MultipletAnalysisModal({ data, activeSpectrum, scaleX, startX, endX, on
131
131
  try {
132
132
  const result = (0, multiplet_analysis_1.analyseMultiplet)(analysesProps, {
133
133
  frequency: info.originFrequency,
134
+ minimalResolution: 0.3,
135
+ maxTestedJ: 17,
134
136
  takeBestPartMultiplet: true,
135
- symmetrizeEachStep: true,
137
+ correctVerticalOffset: true,
138
+ symmetrizeEachStep: false,
139
+ decreasingJvalues: true,
140
+ makeShortCutForSpeed: true,
136
141
  debug: true,
137
142
  });
138
143
  setCalcFinished(true);