nmrium 0.62.1-pre.1742933761 → 0.63.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 (934) hide show
  1. package/lib/component/1d/ApodizationLine.d.ts.map +1 -1
  2. package/lib/component/1d/ApodizationLine.js +46 -30
  3. package/lib/component/1d/ApodizationLine.js.map +1 -1
  4. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  5. package/lib/component/1d/BrushTracker1D.js +31 -10
  6. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  7. package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
  8. package/lib/component/1d/FloatPublicationString.js +8 -9
  9. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  10. package/lib/component/1d/FloatingRanges.js +1 -1
  11. package/lib/component/1d/FloatingRanges.js.map +1 -1
  12. package/lib/component/1d/FooterBanner.js.map +1 -1
  13. package/lib/component/1d/SpectraLegends.js.map +1 -1
  14. package/lib/component/1d/Viewer1D.js +1 -1
  15. package/lib/component/1d/Viewer1D.js.map +1 -1
  16. package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
  17. package/lib/component/1d/database/DatabaseSpectrum.js +3 -2
  18. package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
  19. package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
  20. package/lib/component/1d/inset/DraggableInset.js.map +1 -1
  21. package/lib/component/1d/inset/SpectraInsets.d.ts +1 -1
  22. package/lib/component/1d/inset/SpectraInsets.d.ts.map +1 -1
  23. package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
  24. package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
  25. package/lib/component/1d/matrix/useMatrix.d.ts.map +1 -1
  26. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
  27. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js.map +1 -1
  28. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  29. package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +1 -1
  30. package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
  31. package/lib/component/1d/peaks/usePeakShapesPath.d.ts +1 -1
  32. package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
  33. package/lib/component/1d/ranges/AssignmentLabel.d.ts +1 -0
  34. package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
  35. package/lib/component/1d/ranges/AssignmentLabel.js +6 -4
  36. package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
  37. package/lib/component/1d/ranges/Range.d.ts +2 -1
  38. package/lib/component/1d/ranges/Range.d.ts.map +1 -1
  39. package/lib/component/1d/ranges/Range.js +14 -6
  40. package/lib/component/1d/ranges/Range.js.map +1 -1
  41. package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
  42. package/lib/component/1d/ranges/Ranges.js +31 -8
  43. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  44. package/lib/component/1d/ranges/RangesIntegrals.js.map +1 -1
  45. package/lib/component/1d/utilities/scale.js +1 -1
  46. package/lib/component/1d/utilities/scale.js.map +1 -1
  47. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +0 -6
  48. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
  49. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +3 -4
  50. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
  51. package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
  52. package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
  53. package/lib/component/1d-2d/tools/BrushXY.js +7 -2
  54. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  55. package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts.map +1 -1
  56. package/lib/component/2d/1d-tracer/Left1DChart.d.ts +1 -1
  57. package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
  58. package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
  59. package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
  60. package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts.map +1 -1
  61. package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
  62. package/lib/component/2d/BrushTracker2D.js +21 -4
  63. package/lib/component/2d/BrushTracker2D.js.map +1 -1
  64. package/lib/component/2d/SVGContent2D.d.ts +1 -1
  65. package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
  66. package/lib/component/2d/SVGContent2D.js +2 -2
  67. package/lib/component/2d/SVGContent2D.js.map +1 -1
  68. package/lib/component/2d/fid/FidCanvas.js.map +1 -1
  69. package/lib/component/2d/ft/Contours.js.map +1 -1
  70. package/lib/component/2d/ft/FTContainer.d.ts +1 -1
  71. package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
  72. package/lib/component/2d/useTracesSpectra.d.ts +7 -1
  73. package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
  74. package/lib/component/2d/useTracesSpectra.js +18 -14
  75. package/lib/component/2d/useTracesSpectra.js.map +1 -1
  76. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +14 -0
  77. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -0
  78. package/lib/component/2d/utilities/extractSpectrumSignals.js +41 -0
  79. package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -0
  80. package/lib/component/2d/zones/SignalsGuideLines.d.ts +2 -0
  81. package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -0
  82. package/lib/component/2d/zones/SignalsGuideLines.js +146 -0
  83. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -0
  84. package/lib/component/2d/zones/Zone.d.ts.map +1 -1
  85. package/lib/component/2d/zones/Zone.js +17 -21
  86. package/lib/component/2d/zones/Zone.js.map +1 -1
  87. package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
  88. package/lib/component/2d/zones/ZonesAssignmentsLabels.js +64 -1
  89. package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
  90. package/lib/component/EventsTrackers/BrushTracker.d.ts +38 -3
  91. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  92. package/lib/component/EventsTrackers/BrushTracker.js +136 -38
  93. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  94. package/lib/component/assignment/utilities/filterAssignedIDs.d.ts +3 -0
  95. package/lib/component/assignment/utilities/filterAssignedIDs.d.ts.map +1 -0
  96. package/lib/component/assignment/utilities/filterAssignedIDs.js +4 -0
  97. package/lib/component/assignment/utilities/filterAssignedIDs.js.map +1 -0
  98. package/lib/component/assignment/utilities/getAssignments.d.ts +1 -1
  99. package/lib/component/assignment/utilities/getAssignments.d.ts.map +1 -1
  100. package/lib/component/context/CoreContext.d.ts +4 -0
  101. package/lib/component/context/CoreContext.d.ts.map +1 -0
  102. package/lib/component/context/CoreContext.js +11 -0
  103. package/lib/component/context/CoreContext.js.map +1 -0
  104. package/lib/component/context/SortSpectraContext.d.ts +1 -1
  105. package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
  106. package/lib/component/context/SortSpectraContext.js.map +1 -1
  107. package/lib/component/context/TopicMoleculeContext.js +2 -2
  108. package/lib/component/context/TopicMoleculeContext.js.map +1 -1
  109. package/lib/component/elements/ContainerQueryWrapper.d.ts.map +1 -1
  110. package/lib/component/elements/Footer.d.ts.map +1 -1
  111. package/lib/component/elements/MoleculeSelection.js +1 -1
  112. package/lib/component/elements/MoleculeSelection.js.map +1 -1
  113. package/lib/component/elements/ReactTable/BaseReactTable.d.ts.map +1 -1
  114. package/lib/component/elements/TabsProvider.d.ts +14 -0
  115. package/lib/component/elements/TabsProvider.d.ts.map +1 -0
  116. package/lib/component/elements/TabsProvider.js +22 -0
  117. package/lib/component/elements/TabsProvider.js.map +1 -0
  118. package/lib/component/elements/export/ExportContent.d.ts +1 -1
  119. package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
  120. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  121. package/lib/component/elements/export/units.d.ts +1 -1
  122. package/lib/component/elements/export/units.d.ts.map +1 -1
  123. package/lib/component/elements/export/units.js +1 -1
  124. package/lib/component/elements/export/units.js.map +1 -1
  125. package/lib/component/elements/export/useExportConfigurer.d.ts +1 -1
  126. package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
  127. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +2 -2
  128. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +1 -1
  129. package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +1 -1
  130. package/lib/component/elements/export/utilities/getExportOptions.d.ts +1 -1
  131. package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
  132. package/lib/component/elements/export/utilities/getSizeInPixel.d.ts +1 -1
  133. package/lib/component/elements/export/utilities/getSizeInPixel.d.ts.map +1 -1
  134. package/lib/component/elements/print/PrintContent.d.ts +1 -1
  135. package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
  136. package/lib/component/elements/print/pageSize.d.ts +1 -1
  137. package/lib/component/elements/print/pageSize.d.ts.map +1 -1
  138. package/lib/component/header/Header.js +1 -1
  139. package/lib/component/header/Header.js.map +1 -1
  140. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  141. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +2 -3
  142. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
  143. package/lib/component/highlight/index.d.ts +1 -1
  144. package/lib/component/highlight/index.d.ts.map +1 -1
  145. package/lib/component/hooks/useActiveSpectra.d.ts +1 -1
  146. package/lib/component/hooks/useActiveSpectra.d.ts.map +1 -1
  147. package/lib/component/hooks/useActiveSpectrum.d.ts +1 -1
  148. package/lib/component/hooks/useActiveSpectrum.d.ts.map +1 -1
  149. package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts +1 -1
  150. package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts.map +1 -1
  151. package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts +1 -1
  152. package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts.map +1 -1
  153. package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts +1 -1
  154. package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts.map +1 -1
  155. package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts +1 -1
  156. package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts.map +1 -1
  157. package/lib/component/hooks/useCanvasContext.d.ts +2 -0
  158. package/lib/component/hooks/useCanvasContext.d.ts.map +1 -0
  159. package/lib/component/hooks/useCanvasContext.js +13 -0
  160. package/lib/component/hooks/useCanvasContext.js.map +1 -0
  161. package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
  162. package/lib/component/hooks/useExport.d.ts.map +1 -1
  163. package/lib/component/hooks/useExport.js +6 -4
  164. package/lib/component/hooks/useExport.js.map +1 -1
  165. package/lib/component/hooks/usePanelPreferences.d.ts +1 -1
  166. package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
  167. package/lib/component/hooks/usePanelPreferences.js.map +1 -1
  168. package/lib/component/hooks/usePeaksLabelSettings.d.ts +1 -1
  169. package/lib/component/hooks/usePeaksLabelSettings.d.ts.map +1 -1
  170. package/lib/component/hooks/useResizerStatus.d.ts +1 -1
  171. package/lib/component/hooks/useResizerStatus.d.ts.map +1 -1
  172. package/lib/component/hooks/useSaveSettings.d.ts +1 -1
  173. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  174. package/lib/component/hooks/useSpectraPerNucleus.d.ts +1 -1
  175. package/lib/component/hooks/useSpectraPerNucleus.d.ts.map +1 -1
  176. package/lib/component/hooks/useSpectrum.d.ts +1 -2
  177. package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
  178. package/lib/component/hooks/useSpectrum.js +2 -17
  179. package/lib/component/hooks/useSpectrum.js.map +1 -1
  180. package/lib/component/hooks/useSpectrumWithDataSource.d.ts +3 -0
  181. package/lib/component/hooks/useSpectrumWithDataSource.d.ts.map +1 -0
  182. package/lib/component/hooks/useSpectrumWithDataSource.js +22 -0
  183. package/lib/component/hooks/useSpectrumWithDataSource.js.map +1 -0
  184. package/lib/component/hooks/useTempSpectrum.d.ts +1 -2
  185. package/lib/component/hooks/useTempSpectrum.d.ts.map +1 -1
  186. package/lib/component/hooks/useTempSpectrum.js +2 -11
  187. package/lib/component/hooks/useTempSpectrum.js.map +1 -1
  188. package/lib/component/hooks/useToolsFunctions.js.map +1 -1
  189. package/lib/component/hooks/useWorkspaceAction.d.ts +1 -1
  190. package/lib/component/hooks/useWorkspaceAction.d.ts.map +1 -1
  191. package/lib/component/hooks/useWorkspaceAction.js.map +1 -1
  192. package/lib/component/hooks/useWorkspaceExportSettings.d.ts +1 -1
  193. package/lib/component/hooks/useWorkspaceExportSettings.d.ts.map +1 -1
  194. package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
  195. package/lib/component/loader/useLoadFiles.js +4 -2
  196. package/lib/component/loader/useLoadFiles.js.map +1 -1
  197. package/lib/component/main/InnerNMRium.d.ts +1 -1
  198. package/lib/component/main/InnerNMRium.d.ts.map +1 -1
  199. package/lib/component/main/InnerNMRium.js +15 -7
  200. package/lib/component/main/InnerNMRium.js.map +1 -1
  201. package/lib/component/main/NMRium.d.ts +2 -1
  202. package/lib/component/main/NMRium.d.ts.map +1 -1
  203. package/lib/component/main/NMRium.js.map +1 -1
  204. package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
  205. package/lib/component/main/NMRiumStateProvider.js +7 -4
  206. package/lib/component/main/NMRiumStateProvider.js.map +1 -1
  207. package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
  208. package/lib/component/main/NMRiumViewerWrapper.js +3 -2
  209. package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
  210. package/lib/component/main/index.d.ts +0 -1
  211. package/lib/component/main/index.d.ts.map +1 -1
  212. package/lib/component/main/index.js +0 -1
  213. package/lib/component/main/index.js.map +1 -1
  214. package/lib/component/main/types.d.ts +1 -1
  215. package/lib/component/main/types.d.ts.map +1 -1
  216. package/lib/component/modal/ExportAsJcampModal.d.ts +1 -1
  217. package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
  218. package/lib/component/modal/LoadJCAMPModal.js +3 -2
  219. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  220. package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
  221. package/lib/component/modal/MoleculeStructureEditorModal.js +7 -5
  222. package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
  223. package/lib/component/modal/MultipletAnalysisModal.d.ts +1 -1
  224. package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
  225. package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
  226. package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts +1 -1
  227. package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts.map +1 -1
  228. package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
  229. package/lib/component/modal/editRange/EditRangeModal.js +16 -20
  230. package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
  231. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
  232. package/lib/component/modal/editRange/forms/components/DeltaInput.js +3 -2
  233. package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
  234. package/lib/component/modal/editRange/forms/components/InfoBlock.d.ts.map +1 -1
  235. package/lib/component/modal/editRange/forms/components/InfoBlock.js +2 -2
  236. package/lib/component/modal/editRange/forms/components/InfoBlock.js.map +1 -1
  237. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
  238. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +4 -2
  239. package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
  240. package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
  241. package/lib/component/modal/editRange/forms/components/SignalsContent.js +7 -10
  242. package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
  243. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
  244. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +2 -1
  245. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  246. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
  247. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +3 -1
  248. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
  249. package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
  250. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +1 -1
  251. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +1 -1
  252. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +2 -2
  253. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
  254. package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +1 -1
  255. package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +3 -1
  256. package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
  257. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
  258. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
  259. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +1 -1
  260. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +2 -2
  261. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
  262. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
  263. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
  264. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +1 -1
  265. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +3 -2
  266. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
  267. package/lib/component/modal/setting/settingsValidation.js +1 -1
  268. package/lib/component/modal/setting/settingsValidation.js.map +1 -1
  269. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +2 -2
  270. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
  271. package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
  272. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
  273. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +12 -17
  274. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js.map +1 -1
  275. package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
  276. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +4 -12
  277. package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
  278. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +4 -3
  279. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  280. package/lib/component/panels/MoleculesPanel/Utilities.d.ts +20 -7
  281. package/lib/component/panels/MoleculesPanel/Utilities.d.ts.map +1 -1
  282. package/lib/component/panels/MoleculesPanel/Utilities.js +35 -27
  283. package/lib/component/panels/MoleculesPanel/Utilities.js.map +1 -1
  284. package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts +1 -10
  285. package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts.map +1 -1
  286. package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +127 -137
  287. package/lib/component/panels/MoleculesPanel/useAtomAssignment.js.map +1 -1
  288. package/lib/component/panels/Panels.d.ts +4 -1
  289. package/lib/component/panels/Panels.d.ts.map +1 -1
  290. package/lib/component/panels/Panels.js +35 -9
  291. package/lib/component/panels/Panels.js.map +1 -1
  292. package/lib/component/panels/PanelsBar.d.ts.map +1 -1
  293. package/lib/component/panels/PanelsBar.js +0 -1
  294. package/lib/component/panels/PanelsBar.js.map +1 -1
  295. package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
  296. package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
  297. package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
  298. package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
  299. package/lib/component/panels/RangesPanel/RangesTable.d.ts +1 -1
  300. package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
  301. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +1 -1
  302. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  303. package/lib/component/panels/RangesPanel/RangesTableRow.js +2 -2
  304. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  305. package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js +1 -1
  306. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
  307. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
  308. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +1 -1
  309. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  310. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  311. package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts +1 -1
  312. package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts.map +1 -1
  313. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts +1 -1
  314. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
  315. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
  316. package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts +1 -1
  317. package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts.map +1 -1
  318. package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts +1 -1
  319. package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
  320. package/lib/component/panels/SpectraPanel/base/SpectrumName.js.map +1 -1
  321. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts +1 -1
  322. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
  323. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  324. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  325. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -1
  326. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
  327. package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
  328. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts.map +1 -1
  329. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
  330. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js.map +1 -1
  331. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
  332. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +6 -2
  333. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
  334. package/lib/component/panels/accordionItems.d.ts +1 -1
  335. package/lib/component/panels/accordionItems.d.ts.map +1 -1
  336. package/lib/component/panels/accordionItems.js.map +1 -1
  337. package/lib/component/panels/databasePanel/DatabasePanel.d.ts +1 -1
  338. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  339. package/lib/component/panels/databasePanel/DatabasePanel.js +33 -15
  340. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  341. package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
  342. package/lib/component/panels/databasePanel/DatabasePreferences.js +2 -1
  343. package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
  344. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +1 -1
  345. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
  346. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts +2 -3
  347. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts.map +1 -1
  348. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +6 -4
  349. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
  350. package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
  351. package/lib/component/panels/databasePanel/DatabaseTable.js +3 -2
  352. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  353. package/lib/component/panels/extra/BasicPanelStyle.d.ts.map +1 -1
  354. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  355. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +2 -3
  356. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
  357. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  358. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +4 -1
  359. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
  360. package/lib/component/panels/filtersPanel/Filters/InnerFilterHeader.d.ts.map +1 -1
  361. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts.map +1 -1
  362. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +20 -1
  363. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  364. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +3 -2
  365. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
  366. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js +10 -4
  367. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
  368. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +14 -2
  369. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
  370. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +0 -1
  371. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
  372. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
  373. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +8 -2
  374. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
  375. package/lib/component/panels/hooks/useGetPanelOptions.d.ts +1 -1
  376. package/lib/component/panels/hooks/useGetPanelOptions.d.ts.map +1 -1
  377. package/lib/component/panels/hooks/useTogglePanel.d.ts +1 -1
  378. package/lib/component/panels/hooks/useTogglePanel.d.ts.map +1 -1
  379. package/lib/component/panels/hooks/useTogglePanel.js +4 -2
  380. package/lib/component/panels/hooks/useTogglePanel.js.map +1 -1
  381. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
  382. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
  383. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
  384. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +1 -1
  385. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
  386. package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js +1 -1
  387. package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js.map +1 -1
  388. package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
  389. package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +5 -3
  390. package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
  391. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
  392. package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
  393. package/lib/component/panels/predictionPanel/PredictionPanel.js +6 -3
  394. package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
  395. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.d.ts.map +1 -1
  396. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +19 -17
  397. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js.map +1 -1
  398. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.d.ts.map +1 -1
  399. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +10 -19
  400. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js.map +1 -1
  401. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts.map +1 -1
  402. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +6 -1
  403. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js.map +1 -1
  404. package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts +21 -0
  405. package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts.map +1 -0
  406. package/lib/component/panels/spectrumSimulation/simulationValidation.js +23 -0
  407. package/lib/component/panels/spectrumSimulation/simulationValidation.js.map +1 -0
  408. package/lib/component/reducer/Reducer.d.ts +1 -1
  409. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  410. package/lib/component/reducer/Reducer.js +4 -4
  411. package/lib/component/reducer/Reducer.js.map +1 -1
  412. package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
  413. package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
  414. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  415. package/lib/component/reducer/actions/DatabaseActions.d.ts +2 -1
  416. package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
  417. package/lib/component/reducer/actions/DatabaseActions.js +7 -1
  418. package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
  419. package/lib/component/reducer/actions/DomainActions.d.ts +1 -1
  420. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  421. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  422. package/lib/component/reducer/actions/FiltersActions.d.ts +27 -5
  423. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  424. package/lib/component/reducer/actions/FiltersActions.js +134 -68
  425. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  426. package/lib/component/reducer/actions/InsetActions.d.ts +1 -1
  427. package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
  428. package/lib/component/reducer/actions/InsetActions.js +10 -4
  429. package/lib/component/reducer/actions/InsetActions.js.map +1 -1
  430. package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
  431. package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
  432. package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
  433. package/lib/component/reducer/actions/LoadActions.d.ts +1 -1
  434. package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
  435. package/lib/component/reducer/actions/LoadActions.js.map +1 -1
  436. package/lib/component/reducer/actions/MoleculeActions.d.ts +3 -1
  437. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  438. package/lib/component/reducer/actions/MoleculeActions.js +5 -5
  439. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  440. package/lib/component/reducer/actions/PeaksActions.d.ts +1 -1
  441. package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
  442. package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
  443. package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
  444. package/lib/component/reducer/actions/RangesActions.d.ts +10 -9
  445. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  446. package/lib/component/reducer/actions/RangesActions.js +40 -34
  447. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  448. package/lib/component/reducer/actions/SpectraActions.d.ts +1 -1
  449. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  450. package/lib/component/reducer/actions/SpectraActions.js +1 -2
  451. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  452. package/lib/component/reducer/actions/ToolsActions.d.ts +1 -0
  453. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  454. package/lib/component/reducer/actions/ToolsActions.js +33 -19
  455. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  456. package/lib/component/reducer/actions/ZonesActions.d.ts +8 -8
  457. package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
  458. package/lib/component/reducer/actions/ZonesActions.js +21 -19
  459. package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
  460. package/lib/component/reducer/helper/Zoom1DManager.d.ts +5 -3
  461. package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
  462. package/lib/component/reducer/helper/Zoom1DManager.js +9 -9
  463. package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
  464. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
  465. package/lib/component/reducer/helper/ZoomHistoryManager.js +24 -23
  466. package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
  467. package/lib/component/reducer/helper/getActiveSpectra.d.ts +1 -1
  468. package/lib/component/reducer/helper/getActiveSpectra.d.ts.map +1 -1
  469. package/lib/component/reducer/helper/getActiveSpectrum.d.ts +1 -1
  470. package/lib/component/reducer/helper/getActiveSpectrum.d.ts.map +1 -1
  471. package/lib/component/reducer/helper/setIntegralsViewProperty.d.ts +1 -1
  472. package/lib/component/reducer/helper/setIntegralsViewProperty.d.ts.map +1 -1
  473. package/lib/component/reducer/helper/setRangesViewProperty.d.ts +1 -1
  474. package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
  475. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -1
  476. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
  477. package/lib/component/reducer/preferences/actions/matrixGeneration.js +2 -1
  478. package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
  479. package/lib/component/reducer/preferences/actions/togglePanel.d.ts.map +1 -1
  480. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +1 -1
  481. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
  482. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +4 -0
  483. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  484. package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
  485. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  486. package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
  487. package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
  488. package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts +1 -1
  489. package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts.map +1 -1
  490. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +1 -1
  491. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts.map +1 -1
  492. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js.map +1 -1
  493. package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +1 -1
  494. package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts.map +1 -1
  495. package/lib/component/reducer/preferences/utilities/initWorkspace.js.map +1 -1
  496. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +1 -1
  497. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
  498. package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
  499. package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
  500. package/lib/component/toolbar/ToolBar.js +17 -10
  501. package/lib/component/toolbar/ToolBar.js.map +1 -1
  502. package/lib/component/toolbar/ToolTypes.d.ts +1 -1
  503. package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
  504. package/lib/component/useWatchForm.d.ts +8 -0
  505. package/lib/component/useWatchForm.d.ts.map +1 -0
  506. package/lib/component/useWatchForm.js +24 -0
  507. package/lib/component/useWatchForm.js.map +1 -0
  508. package/lib/component/utility/export.d.ts +1 -1
  509. package/lib/component/utility/export.d.ts.map +1 -1
  510. package/lib/component/utility/export.js.map +1 -1
  511. package/lib/component/utility/getClosePeak.d.ts +1 -1
  512. package/lib/component/utility/getClosePeak.d.ts.map +1 -1
  513. package/lib/component/utility/getSpectraByNucleus.d.ts +1 -1
  514. package/lib/component/utility/getSpectraByNucleus.d.ts.map +1 -1
  515. package/lib/component/utility/getSpectraObjectPaths.d.ts +1 -1
  516. package/lib/component/utility/getSpectraObjectPaths.d.ts.map +1 -1
  517. package/lib/component/utility/stackOverlappingLabels.d.ts +17 -0
  518. package/lib/component/utility/stackOverlappingLabels.d.ts.map +1 -0
  519. package/lib/component/utility/stackOverlappingLabels.js +59 -0
  520. package/lib/component/utility/stackOverlappingLabels.js.map +1 -0
  521. package/lib/component/workspaces/assignment.d.ts +1 -1
  522. package/lib/component/workspaces/assignment.d.ts.map +1 -1
  523. package/lib/component/workspaces/basic.d.ts +1 -1
  524. package/lib/component/workspaces/basic.d.ts.map +1 -1
  525. package/lib/component/workspaces/embedded.d.ts +1 -1
  526. package/lib/component/workspaces/embedded.d.ts.map +1 -1
  527. package/lib/component/workspaces/exercise.d.ts +1 -1
  528. package/lib/component/workspaces/exercise.d.ts.map +1 -1
  529. package/lib/component/workspaces/exercise.js +1 -0
  530. package/lib/component/workspaces/exercise.js.map +1 -1
  531. package/lib/component/workspaces/index.d.ts +7 -7
  532. package/lib/component/workspaces/prediction.d.ts +1 -1
  533. package/lib/component/workspaces/prediction.d.ts.map +1 -1
  534. package/lib/component/workspaces/prediction.js +1 -0
  535. package/lib/component/workspaces/prediction.js.map +1 -1
  536. package/lib/component/workspaces/process1D.d.ts +1 -1
  537. package/lib/component/workspaces/process1D.d.ts.map +1 -1
  538. package/lib/component/workspaces/simulation.d.ts +1 -1
  539. package/lib/component/workspaces/simulation.d.ts.map +1 -1
  540. package/lib/component/workspaces/simulation.js +1 -0
  541. package/lib/component/workspaces/simulation.js.map +1 -1
  542. package/lib/component/workspaces/workspaceDefaultProperties.d.ts +1 -1
  543. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  544. package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
  545. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  546. package/lib/data/PredictionManager.d.ts +1 -1
  547. package/lib/data/PredictionManager.d.ts.map +1 -1
  548. package/lib/data/PredictionManager.js +11 -2
  549. package/lib/data/PredictionManager.js.map +1 -1
  550. package/lib/data/SpectraManager.d.ts +5 -3
  551. package/lib/data/SpectraManager.d.ts.map +1 -1
  552. package/lib/data/SpectraManager.js +11 -8
  553. package/lib/data/SpectraManager.js.map +1 -1
  554. package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
  555. package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
  556. package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +1 -1
  557. package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
  558. package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +1 -1
  559. package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts.map +1 -1
  560. package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +1 -1
  561. package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
  562. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
  563. package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +1 -1
  564. package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts.map +1 -1
  565. package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +1 -1
  566. package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts.map +1 -1
  567. package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js.map +1 -1
  568. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +1 -1
  569. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +1 -1
  570. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +1 -1
  571. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
  572. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
  573. package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +1 -1
  574. package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts.map +1 -1
  575. package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js.map +1 -1
  576. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +1 -1
  577. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
  578. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
  579. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +1 -1
  580. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts.map +1 -1
  581. package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +1 -1
  582. package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts.map +1 -1
  583. package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +1 -1
  584. package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts.map +1 -1
  585. package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +2 -39
  586. package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
  587. package/lib/data/data1d/Spectrum1D/ranges/createRange.js.map +1 -1
  588. package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts +1 -1
  589. package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts.map +1 -1
  590. package/lib/data/data1d/Spectrum1D/ranges/detectRange.js.map +1 -1
  591. package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +1 -1
  592. package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts.map +1 -1
  593. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +1 -31
  594. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
  595. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +2 -39
  596. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts.map +1 -1
  597. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js.map +1 -1
  598. package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts +2 -39
  599. package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts.map +1 -1
  600. package/lib/data/data1d/Spectrum1D/ranges/resizeRange.js.map +1 -1
  601. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts +1 -1
  602. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
  603. package/lib/data/data1d/database.js +1 -1
  604. package/lib/data/data1d/database.js.map +1 -1
  605. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -1
  606. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  607. package/lib/data/data1d/multipleSpectraAnalysis.js +1 -1
  608. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  609. package/lib/data/data2d/Spectrum2D/contours.d.ts +6 -2
  610. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  611. package/lib/data/data2d/Spectrum2D/contours.js +12 -11
  612. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  613. package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +1 -1
  614. package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
  615. package/lib/data/data2d/Spectrum2D/get2DColor.js +6 -2
  616. package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
  617. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
  618. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts.map +1 -1
  619. package/lib/data/data2d/Spectrum2D/getSlice.d.ts +1 -1
  620. package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
  621. package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
  622. package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +1 -1
  623. package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
  624. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
  625. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +4 -1
  626. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
  627. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +6 -0
  628. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
  629. package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +1 -1
  630. package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts.map +1 -1
  631. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
  632. package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -1
  633. package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts.map +1 -1
  634. package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +1 -1
  635. package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
  636. package/lib/data/data2d/Spectrum2D/zones/initiateZones.js.map +1 -1
  637. package/lib/data/molecules/Molecule.js +2 -2
  638. package/lib/data/molecules/Molecule.js.map +1 -1
  639. package/lib/data/molecules/MoleculeManager.d.ts +2 -2
  640. package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
  641. package/lib/data/molecules/MoleculeManager.js +7 -6
  642. package/lib/data/molecules/MoleculeManager.js.map +1 -1
  643. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -1
  644. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
  645. package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
  646. package/lib/data/utilities/FindUtilities.d.ts +1 -1
  647. package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
  648. package/lib/data/utilities/convertSpectraListToObject.d.ts +1 -1
  649. package/lib/data/utilities/convertSpectraListToObject.d.ts.map +1 -1
  650. package/lib/data/utilities/getCustomColor.d.ts +1 -1
  651. package/lib/data/utilities/getCustomColor.d.ts.map +1 -1
  652. package/lib/data/utilities/getCustomColor.js.map +1 -1
  653. package/lib/versionInfo.d.ts.map +1 -1
  654. package/lib/versionInfo.js +1 -1
  655. package/lib/versionInfo.js.map +1 -1
  656. package/package.json +33 -35
  657. package/src/component/1d/ApodizationLine.tsx +57 -32
  658. package/src/component/1d/BrushTracker1D.tsx +43 -7
  659. package/src/component/1d/ExclusionZonesAnnotations.tsx +1 -1
  660. package/src/component/1d/FloatPublicationString.tsx +11 -12
  661. package/src/component/1d/FloatingRanges.tsx +3 -3
  662. package/src/component/1d/FooterBanner.tsx +1 -1
  663. package/src/component/1d/LinesSeries.tsx +1 -1
  664. package/src/component/1d/SpectraLegends.tsx +3 -3
  665. package/src/component/1d/Viewer1D.tsx +1 -1
  666. package/src/component/1d/database/DatabaseSpectrum.tsx +4 -3
  667. package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +1 -1
  668. package/src/component/1d/inset/DraggableInset.tsx +5 -5
  669. package/src/component/1d/inset/SpectraInsets.tsx +1 -1
  670. package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
  671. package/src/component/1d/jCouplingGraph/JGraph.tsx +1 -1
  672. package/src/component/1d/matrix/useMatrix.ts +1 -1
  673. package/src/component/1d/multiAnalysis/MultiAnalysisRanges.tsx +2 -2
  674. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +1 -1
  675. package/src/component/1d/multiplicityTree/MultiplicityTrees.tsx +1 -1
  676. package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
  677. package/src/component/1d/peaks/Peaks.tsx +1 -1
  678. package/src/component/1d/peaks/PeaksShapes.tsx +1 -1
  679. package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
  680. package/src/component/1d/ranges/AssignmentLabel.tsx +7 -4
  681. package/src/component/1d/ranges/Range.tsx +29 -11
  682. package/src/component/1d/ranges/Ranges.tsx +51 -13
  683. package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
  684. package/src/component/1d/tool/PeakPointer.tsx +1 -1
  685. package/src/component/1d/tool/XLabelPointer.tsx +1 -1
  686. package/src/component/1d/utilities/scale.ts +1 -1
  687. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +2 -20
  688. package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
  689. package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +1 -1
  690. package/src/component/1d-2d/tools/BrushXY.tsx +7 -2
  691. package/src/component/2d/1d-tracer/HorizontalSliceChart.tsx +1 -1
  692. package/src/component/2d/1d-tracer/Left1DChart.tsx +1 -1
  693. package/src/component/2d/1d-tracer/Top1DChart.tsx +1 -1
  694. package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +1 -1
  695. package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +1 -1
  696. package/src/component/2d/BrushTracker2D.tsx +27 -4
  697. package/src/component/2d/SVGContent2D.tsx +3 -4
  698. package/src/component/2d/SlicingView.tsx +1 -1
  699. package/src/component/2d/XAxis.tsx +1 -1
  700. package/src/component/2d/fid/FidCanvas.tsx +1 -1
  701. package/src/component/2d/fid/FidContainer.tsx +1 -1
  702. package/src/component/2d/ft/Contours.tsx +1 -1
  703. package/src/component/2d/ft/FTContainer.tsx +1 -1
  704. package/src/component/2d/useTracesSpectra.ts +35 -20
  705. package/src/component/2d/utilities/extractSpectrumSignals.ts +60 -0
  706. package/src/component/2d/zones/SignalsGuideLines.tsx +284 -0
  707. package/src/component/2d/zones/Zone.tsx +43 -63
  708. package/src/component/2d/zones/Zones.tsx +1 -1
  709. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +89 -2
  710. package/src/component/EventsTrackers/BrushTracker.tsx +211 -64
  711. package/src/component/assignment/utilities/filterAssignedIDs.ts +8 -0
  712. package/src/component/assignment/utilities/getAssignments.ts +1 -1
  713. package/src/component/context/CoreContext.tsx +14 -0
  714. package/src/component/context/SortSpectraContext.tsx +1 -1
  715. package/src/component/context/TopicMoleculeContext.tsx +2 -2
  716. package/src/component/elements/MoleculeSelection.tsx +1 -1
  717. package/src/component/elements/TabsProvider.tsx +42 -0
  718. package/src/component/elements/export/ExportContent.tsx +1 -1
  719. package/src/component/elements/export/ExportManager.tsx +1 -1
  720. package/src/component/elements/export/ExportOptionsModal.tsx +2 -2
  721. package/src/component/elements/export/units.ts +2 -2
  722. package/src/component/elements/export/useExportConfigurer.tsx +1 -1
  723. package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +6 -1
  724. package/src/component/elements/export/utilities/getExportOptions.ts +1 -1
  725. package/src/component/elements/export/utilities/getSizeInPixel.ts +1 -1
  726. package/src/component/elements/print/PrintContent.tsx +1 -1
  727. package/src/component/elements/print/pageSize.ts +1 -1
  728. package/src/component/header/Header.tsx +2 -2
  729. package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +20 -21
  730. package/src/component/highlight/index.tsx +1 -1
  731. package/src/component/hooks/useActiveSpectrumIntegralsViewState.ts +1 -1
  732. package/src/component/hooks/useActiveSpectrumPeaksViewState.ts +1 -1
  733. package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
  734. package/src/component/hooks/useActiveSpectrumZonesViewState.ts +1 -1
  735. package/src/component/hooks/useCanvasContext.ts +15 -0
  736. package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +1 -1
  737. package/src/component/hooks/useExport.tsx +6 -4
  738. package/src/component/hooks/useFilter.ts +1 -1
  739. package/src/component/hooks/usePanelPreferences.ts +2 -2
  740. package/src/component/hooks/usePeaksLabelSettings.ts +1 -1
  741. package/src/component/hooks/useResizerStatus.ts +1 -1
  742. package/src/component/hooks/useSaveSettings.tsx +1 -1
  743. package/src/component/hooks/useSpectraPerNucleus.ts +1 -1
  744. package/src/component/hooks/useSpectrum.ts +2 -27
  745. package/src/component/hooks/useSpectrumWithDataSource.ts +36 -0
  746. package/src/component/hooks/useTempSpectrum.ts +2 -15
  747. package/src/component/hooks/useToolsFunctions.ts +1 -1
  748. package/src/component/hooks/useWorkspaceAction.ts +1 -1
  749. package/src/component/loader/useLoadFiles.ts +4 -2
  750. package/src/component/main/InnerNMRium.tsx +69 -56
  751. package/src/component/main/InnerNMRiumContents.tsx +1 -1
  752. package/src/component/main/NMRium.tsx +3 -1
  753. package/src/component/main/NMRiumStateProvider.tsx +8 -4
  754. package/src/component/main/NMRiumViewerWrapper.tsx +5 -1
  755. package/src/component/main/index.ts +0 -2
  756. package/src/component/main/types.ts +3 -3
  757. package/src/component/modal/ExportAsJcampModal.tsx +1 -1
  758. package/src/component/modal/LoadJCAMPModal.tsx +3 -2
  759. package/src/component/modal/MoleculeStructureEditorModal.tsx +13 -9
  760. package/src/component/modal/MultipletAnalysisModal.tsx +1 -1
  761. package/src/component/modal/changeSum/ChangeSumModalContents.tsx +1 -1
  762. package/src/component/modal/editRange/EditRangeModal.tsx +52 -58
  763. package/src/component/modal/editRange/forms/components/DeltaInput.tsx +3 -2
  764. package/src/component/modal/editRange/forms/components/InfoBlock.tsx +4 -2
  765. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +4 -2
  766. package/src/component/modal/editRange/forms/components/SignalsContent.tsx +6 -15
  767. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +3 -1
  768. package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +5 -2
  769. package/src/component/modal/setting/GeneralSettings.tsx +1 -1
  770. package/src/component/modal/setting/WorkspaceItem.tsx +1 -1
  771. package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
  772. package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +3 -3
  773. package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +5 -11
  774. package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +2 -2
  775. package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +6 -3
  776. package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +3 -3
  777. package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
  778. package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +5 -4
  779. package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
  780. package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +1 -1
  781. package/src/component/modal/setting/settingsValidation.ts +2 -2
  782. package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +3 -3
  783. package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +1 -1
  784. package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.tsx +15 -23
  785. package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -26
  786. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +5 -5
  787. package/src/component/panels/MoleculesPanel/Utilities.ts +63 -29
  788. package/src/component/panels/MoleculesPanel/useAtomAssignment.tsx +193 -194
  789. package/src/component/panels/Panels.tsx +72 -34
  790. package/src/component/panels/PanelsBar.tsx +1 -2
  791. package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -1
  792. package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -1
  793. package/src/component/panels/RangesPanel/RangesPanel.tsx +4 -1
  794. package/src/component/panels/RangesPanel/RangesTable.tsx +1 -1
  795. package/src/component/panels/RangesPanel/RangesTableRow.tsx +4 -4
  796. package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.tsx +1 -1
  797. package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +5 -1
  798. package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +1 -1
  799. package/src/component/panels/SpectraPanel/SpectraTable.tsx +3 -3
  800. package/src/component/panels/SpectraPanel/SpectraTabs.tsx +1 -1
  801. package/src/component/panels/SpectraPanel/base/ColorIndicator.tsx +1 -1
  802. package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +1 -1
  803. package/src/component/panels/SpectraPanel/base/ShowHideSpectrumButton.tsx +1 -1
  804. package/src/component/panels/SpectraPanel/base/SpectraColumnsManager.tsx +1 -1
  805. package/src/component/panels/SpectraPanel/base/SpectrumName.tsx +1 -1
  806. package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
  807. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +1 -1
  808. package/src/component/panels/SummaryPanel/utilities/Utilities.ts +5 -1
  809. package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.tsx +2 -0
  810. package/src/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
  811. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +6 -0
  812. package/src/component/panels/ZonesPanel/ZonesPanel.tsx +1 -1
  813. package/src/component/panels/ZonesPanel/ZonesTable.tsx +1 -1
  814. package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +1 -1
  815. package/src/component/panels/accordionItems.tsx +1 -1
  816. package/src/component/panels/databasePanel/DatabasePanel.tsx +60 -22
  817. package/src/component/panels/databasePanel/DatabasePreferences.tsx +19 -0
  818. package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +2 -2
  819. package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +15 -10
  820. package/src/component/panels/databasePanel/DatabaseTable.tsx +4 -2
  821. package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +20 -21
  822. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +4 -1
  823. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +32 -1
  824. package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +13 -5
  825. package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +0 -1
  826. package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +1 -1
  827. package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +1 -1
  828. package/src/component/panels/hooks/useGetPanelOptions.ts +1 -1
  829. package/src/component/panels/hooks/useTogglePanel.ts +7 -4
  830. package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +1 -1
  831. package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -2
  832. package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +1 -1
  833. package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +1 -1
  834. package/src/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.tsx +1 -1
  835. package/src/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.tsx +1 -1
  836. package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +9 -7
  837. package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +1 -1
  838. package/src/component/panels/predictionPanel/PredictionPanel.tsx +12 -9
  839. package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +55 -41
  840. package/src/component/panels/spectrumSimulation/SpectrumSimulation.tsx +10 -26
  841. package/src/component/panels/spectrumSimulation/SpectrumSimulationPreferences.tsx +8 -2
  842. package/src/component/panels/spectrumSimulation/simulationValidation.ts +34 -0
  843. package/src/component/reducer/Reducer.ts +5 -5
  844. package/src/component/reducer/actions/AssignmentsActions.ts +1 -1
  845. package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
  846. package/src/component/reducer/actions/DatabaseActions.ts +11 -2
  847. package/src/component/reducer/actions/DomainActions.ts +5 -5
  848. package/src/component/reducer/actions/FiltersActions.ts +207 -85
  849. package/src/component/reducer/actions/InsetActions.ts +13 -7
  850. package/src/component/reducer/actions/IntegralsActions.ts +1 -1
  851. package/src/component/reducer/actions/LoadActions.ts +6 -6
  852. package/src/component/reducer/actions/MoleculeActions.ts +6 -4
  853. package/src/component/reducer/actions/PeaksActions.ts +4 -4
  854. package/src/component/reducer/actions/PreferencesActions.ts +1 -1
  855. package/src/component/reducer/actions/RangesActions.ts +56 -49
  856. package/src/component/reducer/actions/SpectraActions.ts +7 -7
  857. package/src/component/reducer/actions/ToolsActions.ts +41 -20
  858. package/src/component/reducer/actions/ZonesActions.ts +34 -25
  859. package/src/component/reducer/helper/Zoom1DManager.ts +11 -15
  860. package/src/component/reducer/helper/ZoomHistoryManager.ts +29 -23
  861. package/src/component/reducer/helper/setIntegralsViewProperty.ts +1 -1
  862. package/src/component/reducer/helper/setRangesViewProperty.ts +1 -1
  863. package/src/component/reducer/preferences/actions/matrixGeneration.ts +3 -3
  864. package/src/component/reducer/preferences/actions/togglePanel.ts +1 -1
  865. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +5 -1
  866. package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
  867. package/src/component/reducer/preferences/utilities/getActiveWorkspace.ts +1 -1
  868. package/src/component/reducer/preferences/utilities/getPreferencesByWorkspace.ts +4 -1
  869. package/src/component/reducer/preferences/utilities/initWorkspace.ts +1 -1
  870. package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +1 -1
  871. package/src/component/toolbar/ToolBar.tsx +19 -10
  872. package/src/component/toolbar/ToolTypes.ts +1 -1
  873. package/src/component/useWatchForm.tsx +37 -0
  874. package/src/component/utility/export.ts +4 -1
  875. package/src/component/utility/getClosePeak.ts +1 -1
  876. package/src/component/utility/getSpectraByNucleus.ts +1 -1
  877. package/src/component/utility/getSpectraObjectPaths.ts +1 -1
  878. package/src/component/utility/stackOverlappingLabels.ts +92 -0
  879. package/src/component/workspaces/assignment.ts +1 -1
  880. package/src/component/workspaces/basic.ts +1 -1
  881. package/src/component/workspaces/embedded.ts +1 -1
  882. package/src/component/workspaces/exercise.ts +2 -1
  883. package/src/component/workspaces/prediction.ts +2 -1
  884. package/src/component/workspaces/process1D.ts +1 -1
  885. package/src/component/workspaces/simulation.ts +2 -1
  886. package/src/component/workspaces/workspaceDefaultProperties.ts +2 -1
  887. package/src/data/PredictionManager.ts +15 -3
  888. package/src/data/SpectraManager.ts +20 -14
  889. package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
  890. package/src/data/data1d/Spectrum1D/get1DColor.ts +1 -1
  891. package/src/data/data1d/Spectrum1D/get1DDataXY.ts +1 -1
  892. package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +4 -1
  893. package/src/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.ts +1 -1
  894. package/src/data/data1d/Spectrum1D/integrals/initiateIntegrals.ts +1 -1
  895. package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +1 -1
  896. package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -1
  897. package/src/data/data1d/Spectrum1D/peaks/initiatePeaks.ts +1 -1
  898. package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +1 -1
  899. package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
  900. package/src/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.ts +1 -1
  901. package/src/data/data1d/Spectrum1D/ranges/changeRangeSignal.ts +1 -1
  902. package/src/data/data1d/Spectrum1D/ranges/createRange.ts +1 -1
  903. package/src/data/data1d/Spectrum1D/ranges/detectRange.ts +1 -1
  904. package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +1 -1
  905. package/src/data/data1d/Spectrum1D/ranges/initiateRanges.ts +1 -1
  906. package/src/data/data1d/Spectrum1D/ranges/resizeRange.ts +1 -1
  907. package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +1 -1
  908. package/src/data/data1d/database.ts +1 -1
  909. package/src/data/data1d/multipleSpectraAnalysis.ts +6 -6
  910. package/src/data/data2d/Spectrum2D/contours.ts +20 -15
  911. package/src/data/data2d/Spectrum2D/get2DColor.ts +10 -3
  912. package/src/data/data2d/Spectrum2D/getSlice.ts +1 -1
  913. package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +4 -1
  914. package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +9 -1
  915. package/src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts +1 -1
  916. package/src/data/data2d/Spectrum2D/zones/getDetectionZones.ts +1 -1
  917. package/src/data/data2d/Spectrum2D/zones/initiateZones.ts +1 -1
  918. package/src/data/molecules/Molecule.ts +2 -2
  919. package/src/data/molecules/MoleculeManager.ts +7 -5
  920. package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -1
  921. package/src/data/utilities/FindUtilities.ts +1 -1
  922. package/src/data/utilities/convertSpectraListToObject.ts +1 -1
  923. package/src/data/utilities/getCustomColor.ts +2 -2
  924. package/src/versionInfo.ts +1 -1
  925. package/lib/component/2d/zones/IndicationLines.d.ts +0 -7
  926. package/lib/component/2d/zones/IndicationLines.d.ts.map +0 -1
  927. package/lib/component/2d/zones/IndicationLines.js +0 -50
  928. package/lib/component/2d/zones/IndicationLines.js.map +0 -1
  929. package/lib/component/assignment/utilities/filterForIDsWithAssignment.d.ts +0 -3
  930. package/lib/component/assignment/utilities/filterForIDsWithAssignment.d.ts.map +0 -1
  931. package/lib/component/assignment/utilities/filterForIDsWithAssignment.js +0 -4
  932. package/lib/component/assignment/utilities/filterForIDsWithAssignment.js.map +0 -1
  933. package/src/component/2d/zones/IndicationLines.tsx +0 -94
  934. package/src/component/assignment/utilities/filterForIDsWithAssignment.ts +0 -10
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.62.1-pre.1742933761",
4
+ "version": "0.63.0",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": "./lib/component/main/index.js",
@@ -48,7 +48,7 @@
48
48
  "url": "git+https://github.com/cheminfo/nmrium.git"
49
49
  },
50
50
  "volta": {
51
- "node": "22.14.0"
51
+ "node": "22.15.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": ">=18.0.0",
@@ -58,12 +58,14 @@
58
58
  "nmr-correlation": "2.3.3"
59
59
  },
60
60
  "dependencies": {
61
- "@blueprintjs/core": "^5.17.6",
62
- "@blueprintjs/icons": "^5.20.0",
63
- "@blueprintjs/select": "^5.3.18",
61
+ "@blueprintjs/core": "^5.19.0",
62
+ "@blueprintjs/icons": "^5.22.0",
63
+ "@blueprintjs/select": "^5.3.20",
64
64
  "@emotion/react": "^11.14.0",
65
65
  "@emotion/styled": "^11.14.0",
66
- "@hookform/resolvers": "^4.1.3",
66
+ "@hookform/resolvers": "^5.0.1",
67
+ "@zakodium/nmrium-core": "^0.1.1",
68
+ "@zakodium/nmrium-core-plugins": "^0.1.2",
67
69
  "cheminfo-font": "^1.13.1",
68
70
  "cheminfo-types": "^1.8.1",
69
71
  "clipboard-polyfill": "^4.1.1",
@@ -82,68 +84,64 @@
82
84
  "ml-conrec": "^5.0.3",
83
85
  "ml-gsd": "^12.1.8",
84
86
  "ml-signal-processing": "^1.2.0",
85
- "ml-spectra-processing": "^14.10.0",
87
+ "ml-spectra-processing": "^14.12.0",
86
88
  "ml-tree-similarity": "^2.2.0",
87
89
  "nmr-correlation": "2.3.3",
88
- "nmr-load-save": "^3.3.0",
89
- "nmr-processing": "^17.1.3",
90
+ "nmr-processing": "^18.0.2",
90
91
  "numeral": "^2.0.6",
91
- "openchemlib": "^8.19.0",
92
- "openchemlib-utils": "^6.7.0",
92
+ "openchemlib": "^9.1.1",
93
+ "openchemlib-utils": "^8.1.1",
93
94
  "papaparse": "^5.5.2",
94
95
  "react-d3-utils": "^3.0.0",
95
96
  "react-dropzone": "^14.3.8",
96
- "react-error-boundary": "^5.0.0",
97
- "react-hook-form": "^7.54.2",
97
+ "react-error-boundary": "^6.0.0",
98
+ "react-hook-form": "^7.56.3",
98
99
  "react-icons": "^5.5.0",
99
100
  "react-inspector": "^6.0.2",
100
101
  "react-mf": "^3.1.0",
101
- "react-ocl": "^7.0.2",
102
- "react-ocl-nmr": "^3.1.0",
102
+ "react-ocl": "^8.0.0",
103
+ "react-ocl-nmr": "^4.0.0",
103
104
  "react-plot": "^3.0.0",
104
105
  "react-rnd": "^10.5.2",
105
- "react-science": "^17.0.0",
106
+ "react-science": "^18.0.2",
106
107
  "react-table": "^7.8.0",
107
108
  "smart-array-filter": "^4.1.1",
108
109
  "use-resize-observer": "^9.1.0",
109
110
  "yup": "^1.6.1"
110
111
  },
111
112
  "devDependencies": {
112
- "@babel/plugin-transform-modules-commonjs": "^7.26.3",
113
- "@babel/preset-react": "^7.26.3",
114
- "@babel/preset-typescript": "^7.26.0",
115
- "@playwright/test": "^1.51.1",
113
+ "@playwright/test": "^1.52.0",
116
114
  "@simbathesailor/use-what-changed": "^2.0.0",
117
115
  "@types/d3": "^7.4.3",
118
116
  "@types/dlv": "^1.1.5",
119
117
  "@types/lodash": "^4.17.16",
120
- "@types/node": "^22.13.12",
121
- "@types/papaparse": "^5.3.15",
118
+ "@types/node": "^22.15.17",
119
+ "@types/papaparse": "^5.3.16",
122
120
  "@types/react": "^18.3.13",
123
121
  "@types/react-dom": "^18.3.1",
124
122
  "@types/react-table": "^7.7.20",
125
- "@vitejs/plugin-react-swc": "^3.8.1",
126
- "@vitest/coverage-v8": "^3.0.9",
123
+ "@vitejs/plugin-react-swc": "^3.9.0",
124
+ "@vitest/coverage-v8": "^3.1.3",
127
125
  "cross-env": "^7.0.3",
128
- "cspell": "^8.17.5",
129
- "eslint": "^9.23.0",
130
- "eslint-config-cheminfo-react": "^16.0.0",
131
- "eslint-config-cheminfo-typescript": "^18.0.0",
132
- "knip": "^5.46.0",
126
+ "cspell": "^9.0.1",
127
+ "eslint": "^9.26.0",
128
+ "eslint-config-cheminfo-react": "^16.0.1",
129
+ "eslint-config-cheminfo-typescript": "^18.0.1",
130
+ "knip": "^5.55.1",
133
131
  "modern-normalize": "^3.0.1",
134
132
  "postcss-styled-syntax": "^0.7.1",
135
133
  "prettier": "^3.5.3",
136
134
  "rc-menu": "^9.16.1",
137
135
  "react": "^18.3.1",
138
136
  "react-dom": "^18.3.1",
139
- "react-router-dom": "^7.4.0",
137
+ "react-router-dom": "^7.6.0",
140
138
  "rimraf": "^6.0.1",
141
139
  "rollup-plugin-analyzer": "^4.0.0",
142
140
  "serve": "^14.2.4",
143
- "stylelint": "^16.16.0",
144
- "stylelint-config-standard": "^37.0.0",
145
- "typescript": "^5.8.2",
146
- "vite": "^6.2.3",
147
- "vitest": "^3.0.9"
141
+ "stylelint": "^16.19.1",
142
+ "stylelint-config-standard": "^38.0.0",
143
+ "typescript": "^5.8.3",
144
+ "vite": "^6.3.5",
145
+ "vitest": "^3.1.3"
148
146
  }
149
147
  }
@@ -1,5 +1,6 @@
1
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
1
2
  import merge from 'lodash/merge.js';
2
- import type { Spectrum1D } from 'nmr-load-save';
3
+ import { xyReduce } from 'ml-spectra-processing';
3
4
  import {
4
5
  Filters1D,
5
6
  createApodizationWindowData,
@@ -12,15 +13,13 @@ import { useScaleChecked } from '../context/ScaleContext.js';
12
13
  import { useActiveSpectrum } from '../hooks/useActiveSpectrum.js';
13
14
  import { useIndicatorLineColor } from '../hooks/useIndicatorLineColor.js';
14
15
  import useSpectrum from '../hooks/useSpectrum.js';
16
+ import useTempSpectrum from '../hooks/useTempSpectrum.js';
15
17
  import { useVerticalAlign } from '../hooks/useVerticalAlign.js';
16
- import useXYReduce, { XYReducerDomainAxis } from '../hooks/useXYReduce.js';
17
18
  import type { ApodizationOptions } from '../panels/filtersPanel/Filters/hooks/useApodization.js';
18
19
  import { PathBuilder } from '../utility/PathBuilder.js';
19
20
 
20
21
  import { useIsInset } from './inset/InsetProvider.js';
21
- import { getYScale } from './utilities/scale.js';
22
-
23
- const emptyData = { data: {}, info: {} };
22
+ import { getXScale, getYScale } from './utilities/scale.js';
24
23
 
25
24
  function useWindowYScale() {
26
25
  const { spectraBottomMargin } = useScaleChecked();
@@ -35,22 +34,43 @@ function useWindowYScale() {
35
34
  spectraBottomMargin,
36
35
  });
37
36
  }
37
+ function useWindowXScale() {
38
+ const { width, margin } = useChartData();
39
+ const spectrum = useTempSpectrum() as Spectrum1D;
40
+
41
+ if (!spectrum) return;
42
+
43
+ const {
44
+ data: { x },
45
+ } = spectrum;
46
+ return getXScale({
47
+ width,
48
+ margin,
49
+ xDomain: [x[0], x.at(-1) as number],
50
+ xDomains: {},
51
+ mode: 'LTR',
52
+ });
53
+ }
38
54
 
39
55
  export function ApodizationLine() {
40
56
  const {
41
57
  toolOptions: { selectedTool },
58
+ width,
42
59
  } = useChartData();
43
60
  const isInset = useIsInset();
44
61
 
45
62
  const activeSpectrum = useActiveSpectrum();
46
- const { scaleX } = useScaleChecked();
47
- const spectrum = useSpectrum({ emptyData }) as Spectrum1D;
48
- const xyReduce = useXYReduce(XYReducerDomainAxis.XAxis);
63
+ const tempSpectrum = useTempSpectrum() as Spectrum1D;
64
+ const processedSpectrum = useSpectrum() as Spectrum1D;
65
+
49
66
  const scaleY = useWindowYScale();
67
+ const windowScaleX = useWindowXScale();
68
+ const { scaleX: baseScaleX } = useScaleChecked();
50
69
  const { sharedFilterOptions: externalApodizationOptions } =
51
70
  useFilterSyncOptions<ApodizationOptions>();
52
71
  const indicatorColor = useIndicatorLineColor();
53
72
  if (
73
+ !processedSpectrum ||
54
74
  !activeSpectrum?.id ||
55
75
  selectedTool !== Filters1D.apodization.name ||
56
76
  isInset
@@ -58,35 +78,40 @@ export function ApodizationLine() {
58
78
  return null;
59
79
  }
60
80
 
61
- const paths = () => {
62
- const pathBuilder = new PathBuilder();
63
- const { re, x } = spectrum.data;
81
+ let scaleX = baseScaleX();
64
82
 
65
- const apodizationOptions = merge(
66
- default1DApodization,
67
- externalApodizationOptions?.options,
68
- );
69
- const length = re.length;
70
- const dw = (x[length - 1] - x[0]) / (length - 1);
83
+ if (processedSpectrum.info.isFt && windowScaleX) {
84
+ scaleX = windowScaleX;
85
+ }
71
86
 
72
- const y = createApodizationWindowData({
73
- windowOptions: { dw, length },
74
- shapes: apodizationOptions,
75
- });
87
+ const pathBuilder = new PathBuilder();
88
+ const { re, x } = tempSpectrum.data;
76
89
 
77
- if (x && y) {
78
- const pathPoints = xyReduce({ x, y });
90
+ const apodizationOptions = merge(
91
+ default1DApodization,
92
+ externalApodizationOptions?.options,
93
+ );
94
+ const length = re.length;
95
+ const from = x.at(-1) as number;
96
+ const to = x[0];
97
+ const dw = (from - to) / (length - 1);
79
98
 
80
- pathBuilder.moveTo(scaleX()(pathPoints.x[0]), scaleY(pathPoints.y[0]));
81
- for (let i = 1; i < pathPoints.x.length; i++) {
82
- pathBuilder.lineTo(scaleX()(pathPoints.x[i]), scaleY(pathPoints.y[i]));
83
- }
99
+ const y = createApodizationWindowData({
100
+ windowOptions: { dw, length },
101
+ shapes: apodizationOptions,
102
+ });
84
103
 
85
- return pathBuilder.toString();
86
- } else {
87
- return '';
104
+ if (x && y) {
105
+ const pathPoints = xyReduce(
106
+ { x, y },
107
+ { from, to, nbPoints: width * 4, optimize: true },
108
+ );
109
+
110
+ pathBuilder.moveTo(scaleX(pathPoints.x[0]), scaleY(pathPoints.y[0]));
111
+ for (let i = 1; i < pathPoints.x.length; i++) {
112
+ pathBuilder.lineTo(scaleX(pathPoints.x[i]), scaleY(pathPoints.y[i]));
88
113
  }
89
- };
114
+ }
90
115
 
91
116
  return (
92
117
  <path
@@ -94,7 +119,7 @@ export function ApodizationLine() {
94
119
  stroke={indicatorColor}
95
120
  fill="none"
96
121
  strokeWidth="2"
97
- d={paths()}
122
+ d={pathBuilder.toString()}
98
123
  />
99
124
  );
100
125
  }
@@ -7,12 +7,16 @@ import {
7
7
  } from '../../data/data1d/Spectrum1D/index.js';
8
8
  import { cutRange } from '../../data/data1d/Spectrum1D/ranges/createRange.js';
9
9
  import type {
10
+ BaseDetectBrushingOptions,
10
11
  BrushTrackerData,
11
12
  OnBrush,
12
13
  OnClick,
13
14
  OnZoom,
14
15
  } from '../EventsTrackers/BrushTracker.js';
15
- import { BrushTracker } from '../EventsTrackers/BrushTracker.js';
16
+ import {
17
+ BrushTracker,
18
+ detectBrushing,
19
+ } from '../EventsTrackers/BrushTracker.js';
16
20
  import { useChartData } from '../context/ChartContext.js';
17
21
  import { useDispatch } from '../context/DispatchContext.js';
18
22
  import { useMapKeyModifiers } from '../context/KeyModifierContext.js';
@@ -31,6 +35,11 @@ import Events from '../utility/Events.js';
31
35
 
32
36
  import { useInsetOptions } from './inset/InsetProvider.js';
33
37
 
38
+ const brushDetectionOptions: BaseDetectBrushingOptions = {
39
+ thresholdFormat: 'fixed',
40
+ thresholdAxis: 'y',
41
+ thresholdSize: 50,
42
+ };
34
43
  function usePixelToPPMConverter() {
35
44
  const { scaleX, scaleY } = useScaleChecked();
36
45
 
@@ -62,11 +71,20 @@ export function BrushTracker1D({ children }) {
62
71
  view: {
63
72
  spectra: { activeTab },
64
73
  },
74
+ width,
75
+ height,
65
76
  } = state;
77
+
66
78
  const brushStartRef = useRef<number | null>(null);
67
79
  const spectrum = useSpectrum();
68
80
  const dispatch = useDispatch();
69
- const { dispatch: dispatchPreferences } = usePreferences();
81
+ const {
82
+ dispatch: dispatchPreferences,
83
+ current: {
84
+ general: { invertScroll },
85
+ },
86
+ } = usePreferences();
87
+
70
88
  const { showBoxPlot, showStocsy } = usePanelPreferences(
71
89
  'matrixGeneration',
72
90
  activeTab,
@@ -259,7 +277,17 @@ export function BrushTracker1D({ children }) {
259
277
 
260
278
  if (executeDefaultAction && selectedTool != null) {
261
279
  if (enableDefaultBrush) {
262
- dispatch({ type: 'BRUSH_END', payload: brushDataInPPM });
280
+ dispatch({
281
+ type: 'BRUSH_END',
282
+ payload: {
283
+ ...brushDataInPPM,
284
+ axis: detectBrushing(brushData, {
285
+ width,
286
+ height,
287
+ ...brushDetectionOptions,
288
+ }).type,
289
+ },
290
+ });
263
291
  }
264
292
 
265
293
  propagateEvent();
@@ -267,6 +295,7 @@ export function BrushTracker1D({ children }) {
267
295
  }
268
296
  },
269
297
  [
298
+ convertToPPM,
270
299
  getModifiersKey,
271
300
  selectedTool,
272
301
  primaryKeyIdentifier,
@@ -276,7 +305,8 @@ export function BrushTracker1D({ children }) {
276
305
  dispatchPreferences,
277
306
  activeTab,
278
307
  openAnalysisModal,
279
- convertToPPM,
308
+ width,
309
+ height,
280
310
  ],
281
311
  );
282
312
  const handleInsetBrushEnd = useCallback<OnBrush>(
@@ -305,7 +335,7 @@ export function BrushTracker1D({ children }) {
305
335
  const handleOnDoubleClick = useCallback(() => {
306
336
  dispatch({
307
337
  type: 'FULL_ZOOM_OUT',
308
- payload: { zoomType: ZOOM_TYPES.STEP_HORIZONTAL },
338
+ payload: { zoomType: ZOOM_TYPES.BIDIRECTIONAL },
309
339
  });
310
340
  }, [dispatch]);
311
341
 
@@ -316,7 +346,7 @@ export function BrushTracker1D({ children }) {
316
346
 
317
347
  dispatch({
318
348
  type: 'FULL_INSET_ZOOM_OUT',
319
- payload: { zoomType: ZOOM_TYPES.STEP_HORIZONTAL, insetKey: inset.id },
349
+ payload: { zoomType: ZOOM_TYPES.BIDIRECTIONAL, insetKey: inset.id },
320
350
  });
321
351
  }, [dispatch, inset]);
322
352
 
@@ -334,13 +364,17 @@ export function BrushTracker1D({ children }) {
334
364
  payload: { nucleus: activeTab, zoomOptions: options },
335
365
  });
336
366
  } else {
337
- dispatch({ type: 'SET_ZOOM', payload: { options } });
367
+ dispatch({
368
+ type: 'SET_ZOOM',
369
+ payload: { options: { ...options, invertScroll } },
370
+ });
338
371
  }
339
372
  },
340
373
  [
341
374
  activeTab,
342
375
  dispatch,
343
376
  dispatchPreferences,
377
+ invertScroll,
344
378
  selectedTool,
345
379
  showBoxPlot,
346
380
  showStocsy,
@@ -447,6 +481,7 @@ export function BrushTracker1D({ children }) {
447
481
  onBrushEnd={handleInsetBrushEnd}
448
482
  onDoubleClick={handleInsetOnDoubleClick}
449
483
  onZoom={handleInsetZoom}
484
+ brushDetectionOptions={brushDetectionOptions}
450
485
  style={{
451
486
  width: '100%',
452
487
  height: '100%',
@@ -468,6 +503,7 @@ export function BrushTracker1D({ children }) {
468
503
  onDoubleClick={handleOnDoubleClick}
469
504
  onClick={mouseClick}
470
505
  onZoom={handleZoom}
506
+ brushDetectionOptions={brushDetectionOptions}
471
507
  style={{
472
508
  width: '100%',
473
509
  height: '100%',
@@ -1,4 +1,4 @@
1
- import type { Spectrum1D } from 'nmr-load-save';
1
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
2
2
  import { Filters1D } from 'nmr-processing';
3
3
  import { memo } from 'react';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import styled from '@emotion/styled';
2
- import type { BoundingBox } from 'nmr-load-save';
2
+ import type { BoundingBox } from '@zakodium/nmrium-core';
3
3
  import { rangesToACS } from 'nmr-processing';
4
4
  import { useEffect, useState } from 'react';
5
5
  import { BsArrowsMove } from 'react-icons/bs';
@@ -16,6 +16,7 @@ import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
16
16
  import { useSVGUnitConverter } from '../hooks/useSVGUnitConverter.js';
17
17
  import useSpectraByActiveNucleus from '../hooks/useSpectraPerNucleus.js';
18
18
  import { useCheckExportStatus } from '../hooks/useViewportSize.js';
19
+ import { useCanvasContext } from '../hooks/useCanvasContext.js';
19
20
 
20
21
  const ReactRnd = styled(Rnd)`
21
22
  border: 1px solid transparent;
@@ -30,16 +31,13 @@ const ReactRnd = styled(Rnd)`
30
31
  }
31
32
  `;
32
33
 
33
- function calculateWorldWidth(word, fontSize, fontFamily = 'Arial') {
34
- const canvas = document.createElement('canvas');
35
- const context = canvas.getContext('2d');
34
+ function calculateWorldWidth(context, word) {
36
35
  if (!context) return 0;
37
-
38
- context.font = `${fontSize}px ${fontFamily}`;
39
36
  return Math.round(context.measureText(word).width);
40
37
  }
41
38
 
42
- function wrapSVGText({ text, width, fontSize }) {
39
+ function useWrapSVGText({ text, width, fontSize }) {
40
+ const context = useCanvasContext(fontSize);
43
41
  const formattedText = text
44
42
  .replaceAll(/<sup>(?<n>.*?)<\/sup>/g, '++$1++ ')
45
43
  .replaceAll(/<i>(?<j>.*?)<\/i>/g, '**$1**');
@@ -50,11 +48,11 @@ function wrapSVGText({ text, width, fontSize }) {
50
48
  let line: string[] = [];
51
49
  let lineWidth = 0;
52
50
 
53
- const spaceWidth = calculateWorldWidth(' ', fontSize);
51
+ const spaceWidth = calculateWorldWidth(context, ' ');
54
52
  const words = formattedText.split(' ');
55
53
 
56
54
  for (const word of words) {
57
- const wordWidth = calculateWorldWidth(word, fontSize);
55
+ const wordWidth = calculateWorldWidth(context, word);
58
56
  if (lineWidth + wordWidth > width) {
59
57
  lines.push(line);
60
58
  line = [word];
@@ -79,7 +77,8 @@ interface PublicationTextProps {
79
77
  function PublicationText(props: PublicationTextProps) {
80
78
  const { fontSize = 12, padding = 10, width, text } = props;
81
79
  const boxWidth = width - padding * 2;
82
- const { lineHeight, lines } = wrapSVGText({
80
+
81
+ const { lineHeight, lines } = useWrapSVGText({
83
82
  width: boxWidth,
84
83
  fontSize,
85
84
  text,
@@ -143,7 +142,7 @@ function DraggablePublicationString(props: DraggablePublicationStringProps) {
143
142
  function handleResize(
144
143
  internalBounding: Pick<BoundingBox, 'height' | 'width'>,
145
144
  ) {
146
- const { width, height } = convertToPixel(externalBounding);
145
+ const { width = 0, height = 0 } = convertToPixel(externalBounding);
147
146
  internalBounding.width += width;
148
147
  internalBounding.height += height;
149
148
  setBounding((prevBounding) => ({
@@ -195,7 +194,7 @@ function DraggablePublicationString(props: DraggablePublicationStringProps) {
195
194
  output.height = height;
196
195
  }
197
196
 
198
- return output as BoundingBox;
197
+ return output;
199
198
  }
200
199
  function convertToPercent(bounding: Partial<BoundingBox>) {
201
200
  const { x, y, height, width } = bounding;
@@ -1,5 +1,5 @@
1
1
  import styled from '@emotion/styled';
2
- import type { BoundingBox } from 'nmr-load-save';
2
+ import type { BoundingBox } from '@zakodium/nmrium-core';
3
3
  import { checkMultiplicity } from 'nmr-processing';
4
4
  import type { Ranges } from 'nmr-processing';
5
5
  import { memo, useEffect, useState } from 'react';
@@ -182,7 +182,7 @@ function DraggableRanges(props: DraggablePublicationStringProps) {
182
182
  function handleResize(
183
183
  internalBounding: Pick<BoundingBox, 'height' | 'width'>,
184
184
  ) {
185
- const { width, height } = convertToPixel(externalBounding);
185
+ const { width = 0, height = 0 } = convertToPixel(externalBounding);
186
186
  internalBounding.width += width;
187
187
  internalBounding.height += height;
188
188
  setBounding((prevBounding) => ({
@@ -234,7 +234,7 @@ function DraggableRanges(props: DraggablePublicationStringProps) {
234
234
  output.height = height;
235
235
  }
236
236
 
237
- return output as BoundingBox;
237
+ return output;
238
238
  }
239
239
  function convertToPercent(bounding: Partial<BoundingBox>) {
240
240
  const { x, y, height, width } = bounding;
@@ -1,6 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
+ import type { ActiveSpectrum, Spectrum1D } from '@zakodium/nmrium-core';
2
3
  import { xFindClosestIndex } from 'ml-spectra-processing';
3
- import type { ActiveSpectrum, Spectrum1D } from 'nmr-load-save';
4
4
  import { memo } from 'react';
5
5
  import { BsCursor } from 'react-icons/bs';
6
6
  import { IoPulseSharp } from 'react-icons/io5';
@@ -1,5 +1,5 @@
1
1
  import styled from '@emotion/styled';
2
- import type { Spectrum1D } from 'nmr-load-save';
2
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
3
3
 
4
4
  import { get1DDataXY } from '../../data/data1d/Spectrum1D/get1DDataXY.js';
5
5
  import { isSpectrum1D } from '../../data/data1d/Spectrum1D/isSpectrum1D.js';
@@ -1,12 +1,12 @@
1
- import dlv from 'dlv';
2
- import { xFindClosestIndex } from 'ml-spectra-processing';
3
1
  import type {
4
2
  JpathLegendField,
5
3
  LegendField,
6
4
  PredefinedLegendField,
7
5
  Spectrum,
8
6
  Spectrum1D,
9
- } from 'nmr-load-save';
7
+ } from '@zakodium/nmrium-core';
8
+ import dlv from 'dlv';
9
+ import { xFindClosestIndex } from 'ml-spectra-processing';
10
10
  import type { CSSProperties } from 'react';
11
11
 
12
12
  import { get1DDataXY } from '../../data/data1d/Spectrum1D/index.js';
@@ -47,7 +47,7 @@ function InnerViewer1D(props: InnerViewer1DProps) {
47
47
  }}
48
48
  >
49
49
  <CrossLinePointer />
50
- <BrushXY axis="X" />
50
+ <BrushXY axis="XY" />
51
51
  <XLabelPointer />
52
52
  <PeakPointer />
53
53
  <FooterBanner />
@@ -1,10 +1,10 @@
1
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
1
2
  import { extent } from 'd3';
2
3
  import throttle from 'lodash/throttle.js';
3
- import type { Spectrum1D } from 'nmr-load-save';
4
- import { readFromWebSource } from 'nmr-load-save';
5
4
  import { useCallback, useContext, useEffect, useRef, useState } from 'react';
6
5
 
7
6
  import { useChartData } from '../../context/ChartContext.js';
7
+ import { useCore } from '../../context/CoreContext.js';
8
8
  import { useScaleChecked } from '../../context/ScaleContext.js';
9
9
  import { useToaster } from '../../context/ToasterContext.js';
10
10
  import {
@@ -44,12 +44,13 @@ function DatabaseSpectrum() {
44
44
  [height, margin, marginBottom, spectraBottomMargin],
45
45
  );
46
46
 
47
+ const core = useCore();
47
48
  const loadSpectrum = useRef(
48
49
  throttle(async (baseURL: string | undefined, jcampRelativeURL: string) => {
49
50
  try {
50
51
  setLoading(true);
51
52
  const url = new URL(jcampRelativeURL, baseURL);
52
- const { data } = await readFromWebSource({
53
+ const { data } = await core.readFromWebSource({
53
54
  entries: [{ relativePath: url.pathname, baseURL: url.origin }],
54
55
  });
55
56
  setLoading(false);
@@ -1,5 +1,5 @@
1
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
1
2
  import { extent } from 'd3';
2
- import type { Spectrum1D } from 'nmr-load-save';
3
3
  import { rangesToXY } from 'nmr-processing';
4
4
 
5
5
  import { useChartData } from '../../context/ChartContext.js';
@@ -1,14 +1,14 @@
1
1
  import styled from '@emotion/styled';
2
+ import type {
3
+ IntegralsViewState,
4
+ PeaksViewState,
5
+ RangesViewState,
6
+ } from '@zakodium/nmrium-core';
2
7
  import {
3
8
  SvgNmrIntegrate,
4
9
  SvgNmrPeaks,
5
10
  SvgNmrPeaksTopLabels,
6
11
  } from 'cheminfo-font';
7
- import type {
8
- IntegralsViewState,
9
- PeaksViewState,
10
- RangesViewState,
11
- } from 'nmr-load-save';
12
12
  import { useEffect, useState } from 'react';
13
13
  import { BsArrowsMove } from 'react-icons/bs';
14
14
  import { FaSitemap, FaTimes } from 'react-icons/fa';
@@ -2,7 +2,7 @@ import type {
2
2
  IntegralsViewState,
3
3
  PeaksViewState,
4
4
  RangesViewState,
5
- } from 'nmr-load-save';
5
+ } from '@zakodium/nmrium-core';
6
6
 
7
7
  import { useChartData } from '../../context/ChartContext.js';
8
8
  import type { HistoryItem } from '../../reducer/helper/ZoomHistoryManager.js';
@@ -1,5 +1,5 @@
1
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
1
2
  import { xyIntegral, xyMaxY } from 'ml-spectra-processing';
2
- import type { Spectrum1D } from 'nmr-load-save';
3
3
  import type { Integral as IntegralType } from 'nmr-processing';
4
4
 
5
5
  import { useChartData } from '../../context/ChartContext.js';
@@ -1,5 +1,5 @@
1
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
1
2
  import { scaleLinear } from 'd3';
2
- import type { Spectrum1D } from 'nmr-load-save';
3
3
  import type { Signal1D } from 'nmr-processing';
4
4
  import { memo, useMemo } from 'react';
5
5
 
@@ -1,5 +1,5 @@
1
+ import type { Spectrum } from '@zakodium/nmrium-core';
1
2
  import type { NumberArray } from 'cheminfo-types';
2
- import type { Spectrum } from 'nmr-load-save';
3
3
  import { useMemo } from 'react';
4
4
 
5
5
  import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
@@ -1,5 +1,5 @@
1
- import type { SpectraAnalysisColumns } from 'nmr-load-save';
2
- import { ANALYSIS_COLUMN_TYPES } from 'nmr-load-save';
1
+ import type { SpectraAnalysisColumns } from '@zakodium/nmrium-core';
2
+ import { ANALYSIS_COLUMN_TYPES } from '@zakodium/nmrium-core';
3
3
  import { memo } from 'react';
4
4
 
5
5
  import { useChartData } from '../../context/ChartContext.js';