nmrium 0.51.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/LinesSeries.js +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts +7 -0
- package/lib/component/1d/ranges/AssignmentLabel.js +10 -0
- package/lib/component/1d/ranges/Range.js +2 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +3 -3
- package/lib/component/context/DispatchContext.d.ts +1 -1
- package/lib/component/elements/EditableColumn.js +3 -3
- package/lib/component/elements/Label.js +1 -1
- package/lib/component/header/ApodizationOptionsPanel.js +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +1 -1
- package/lib/component/header/BaseLineCorrectionPanel.js +2 -2
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/PhaseCorrectionPanel.js +1 -1
- package/lib/component/header/PhaseCorrectionTwoDimensionsPanel.js +2 -2
- package/lib/component/header/RangesPickingOptionPanel.js +1 -1
- package/lib/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib/component/header/Zones2DOptionPanel.js +6 -2
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js +1 -0
- package/lib/component/hooks/useActiveSpectrumZonesViewState.js +1 -0
- package/lib/component/hooks/useToolsFunctions.d.ts +1 -1
- package/lib/component/hooks/useToolsFunctions.js +10 -4
- package/lib/component/main/NMRiumStateProvider.js +1 -1
- package/lib/component/modal/AboutPredictionModal.js +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.js +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts +5 -3
- package/lib/component/modal/ImportPublicationStringModal.js +7 -4
- package/lib/component/modal/LoadJCAMPModal.js +1 -1
- package/lib/component/modal/LogsHistoryModal.js +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +1 -1
- package/lib/component/modal/SaveAsModal.js +2 -2
- package/lib/component/modal/editZone/EditPathLengthFormik.js +2 -2
- package/lib/component/modal/editZone/EditZoneModal.js +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +2 -2
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +1 -1
- package/lib/component/panels/Panels.js +5 -5
- package/lib/component/panels/RangesPanel/RangesHeader.js +21 -7
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +9 -3
- package/lib/component/panels/RangesPanel/RangesTable.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +2 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.d.ts +7 -0
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js +16 -0
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts +5 -0
- package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraPanelHeader.js +8 -8
- package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraTable.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.d.ts +1 -0
- package/lib/component/panels/{SpectrumsPanel/SpectrumsTabs.js → SpectraPanel/SpectraTabs.js} +6 -6
- package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectrumListPanel.js +2 -2
- package/lib/component/panels/databasePanel/DatabasePreferences.js +1 -1
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +2 -2
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +2 -2
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +8 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.js +2 -2
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +1 -1
- package/lib/component/reducer/IgnoreActions.js +1 -1
- package/lib/component/reducer/Reducer.d.ts +1 -0
- package/lib/component/reducer/Reducer.js +19 -16
- package/lib/component/reducer/actions/DomainActions.js +3 -3
- package/lib/component/reducer/actions/FiltersActions.js +337 -317
- package/lib/component/reducer/actions/LoadActions.js +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +2 -2
- package/lib/component/reducer/actions/RangesActions.d.ts +7 -2
- package/lib/component/reducer/actions/RangesActions.js +16 -2
- package/lib/component/reducer/actions/ToolsActions.d.ts +3 -3
- package/lib/component/reducer/actions/ToolsActions.js +21 -28
- package/lib/component/reducer/actions/ZonesActions.d.ts +2 -0
- package/lib/component/reducer/actions/ZonesActions.js +5 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +6 -4
- package/lib/component/toolbar/ToolBar.js +16 -16
- package/lib/component/toolbar/toolbarMenu.js +4 -4
- package/lib/component/utility/export.js +1 -1
- package/lib/constants.js +5 -5
- package/lib/data/data2d/Spectrum2D/getSlice.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -0
- package/lib/versionInfo.js +1 -1
- package/package.json +16 -15
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +0 -5
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.d.ts +0 -1
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraPreferences.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraPreferences.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectraTable.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/SpectrumListPanel.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ColorIndicator.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ColorIndicator.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/RenderAsHTML.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/RenderAsHTML.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ShowHideSpectrumButton.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ShowHideSpectrumButton.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/SpectraColumnsManager.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/SpectraColumnsManager.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/SpectrumName.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/SpectrumName.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/PlotChart.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/PlotChart.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum1DHistogram.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum1DHistogram.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum1DSetting.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum1DSetting.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum2DHistogram.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum2DHistogram.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum2DSetting.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/Spectrum2DSetting.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/SpectrumSetting.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/SpectrumSetting.js +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/processSnapPlot.d.ts +0 -0
- /package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/setting/processSnapPlot.js +0 -0
- /package/lib/component/reducer/actions/{SpectrumsActions.d.ts → SpectraActions.d.ts} +0 -0
- /package/lib/component/reducer/actions/{SpectrumsActions.js → SpectraActions.js} +0 -0
|
@@ -9,7 +9,7 @@ import { linkMetaWithSpectra } from '../../../data/parseMeta/linkMetaWithSpectra
|
|
|
9
9
|
import { DefaultTolerance } from '../../panels/SummaryPanel/CorrelationTable/Constants';
|
|
10
10
|
import { getDefaultViewState, getInitialState } from '../Reducer';
|
|
11
11
|
import { changeSpectrumVerticalAlignment } from './PreferencesActions';
|
|
12
|
-
import { setSpectraMetaInfo } from './
|
|
12
|
+
import { setSpectraMetaInfo } from './SpectraActions';
|
|
13
13
|
import { setActiveTab } from './ToolsActions';
|
|
14
14
|
function convertHybridizationStringValuesInCorrelations(correlations) {
|
|
15
15
|
return {
|
|
@@ -50,8 +50,8 @@ function handleSetKeyPreferences(draft, action) {
|
|
|
50
50
|
const activeSpectrum = getActiveSpectrum(draft);
|
|
51
51
|
if (activeTab) {
|
|
52
52
|
const groupByNucleus = groupByInfoKey('nucleus');
|
|
53
|
-
const
|
|
54
|
-
const spectra =
|
|
53
|
+
const spectraGroupsList = groupByNucleus(data);
|
|
54
|
+
const spectra = spectraGroupsList[activeTab];
|
|
55
55
|
keysPreferences[keyCode] = {
|
|
56
56
|
activeSpectrum,
|
|
57
57
|
displayerMode,
|
|
@@ -70,7 +70,11 @@ type ToggleRangesViewAction = ActionType<'TOGGLE_RANGES_VIEW_PROPERTY', {
|
|
|
70
70
|
type DeleteRangePeakAction = ActionType<'DELETE_RANGE_PEAK', {
|
|
71
71
|
id: string;
|
|
72
72
|
}>;
|
|
73
|
-
|
|
73
|
+
type ChangeRangeAssignmentLabelAction = ActionType<'CHANGE_RANGE_ASSIGNMENT_LABEL', {
|
|
74
|
+
rangeID: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}>;
|
|
77
|
+
export type RangesActions = AutoRangesDetectionAction | DeleteRangeAction | ChangeRangeSignalKindAction | SaveEditedRangeAction | DeleteSignalAction | UnlinkRangeAction | SetDiaIDRangeAction | ResizeRangeAction | ChangeRangeSumAction | AddRangeAction | ChangeRangeRelativeValueAction | ChangeRangeSignalValueAction | UpdateRangAction | CutRangAction | ToggleRangesViewAction | DeleteRangePeakAction | ChangeRangeAssignmentLabelAction | ActionType<'AUTO_RANGES_SPECTRA_PICKING' | 'CHANGE_RANGES_SUM_FLAG' | 'TOGGLE_RANGES_PEAKS_DISPLAYING_MODE'>;
|
|
74
78
|
declare function handleAutoRangesDetection(draft: Draft<State>, action: AutoRangesDetectionAction): void;
|
|
75
79
|
declare function handleAutoSpectraRangesDetection(draft: Draft<State>): void;
|
|
76
80
|
declare function handleDeleteRange(draft: Draft<State>, action: DeleteRangeAction): void;
|
|
@@ -92,4 +96,5 @@ declare function handleToggleRangesViewProperty(draft: Draft<State>, action: Tog
|
|
|
92
96
|
declare function handleCutRange(draft: Draft<State>, action: CutRangAction): void;
|
|
93
97
|
declare function handleChangePeaksDisplayingMode(draft: Draft<State>): void;
|
|
94
98
|
declare function handleDeleteRangePeak(draft: Draft<State>, action: DeleteRangePeakAction): void;
|
|
95
|
-
|
|
99
|
+
declare function handleChangeRangeAssignmentLabel(draft: Draft<State>, action: ChangeRangeAssignmentLabelAction): void;
|
|
100
|
+
export { handleCutRange, handleAutoRangesDetection, handleDeleteRange, deleteSignal1D, handleDeleteSignal, handleChangeRangeSum, handleAddRange, handleResizeRange, handleChangeRangeRelativeValue, handleChangeRangeSignalValue, handleChangeRangeSignalKind, handleSaveEditedRange, handleUnlinkRange, unlinkRange, handleSetDiaIDRange, handleChangeRangesSumFlag, handleUpdateRange, handleAutoSpectraRangesDetection, handleToggleRangesViewProperty, handleChangePeaksDisplayingMode, handleDeleteRangePeak, handleChangeRangeAssignmentLabel, };
|
|
@@ -4,7 +4,7 @@ import cloneDeep from 'lodash/cloneDeep';
|
|
|
4
4
|
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
5
5
|
import { Filters, FiltersManager } from 'nmr-processing';
|
|
6
6
|
import { DATUM_KIND, SIGNAL_INLCUDED_KINDS, } from '../../../data/constants/signalsKinds';
|
|
7
|
-
import { addRange, changeRangeSignal, detectRanges, updateRangesRelativeValues, changeRange, changeRangeRelativeValue, } from '../../../data/data1d/Spectrum1D';
|
|
7
|
+
import { addRange, changeRangeSignal, detectRanges, updateRangesRelativeValues, changeRange, changeRangeRelativeValue, isSpectrum1D, } from '../../../data/data1d/Spectrum1D';
|
|
8
8
|
import { initSumOptions, setSumOptions, } from '../../../data/data1d/Spectrum1D/SumManager';
|
|
9
9
|
import { unlink, unlinkInAssignmentData, } from '../../../data/utilities/RangeUtilities';
|
|
10
10
|
import { getActiveSpectrum } from '../helper/getActiveSpectrum';
|
|
@@ -366,4 +366,18 @@ function handleDeleteRangePeak(draft, action) {
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
|
|
369
|
+
function handleChangeRangeAssignmentLabel(draft, action) {
|
|
370
|
+
const { rangeID, value } = action.payload;
|
|
371
|
+
const activeSpectrum = getActiveSpectrum(draft);
|
|
372
|
+
if (activeSpectrum?.id) {
|
|
373
|
+
const { index } = activeSpectrum;
|
|
374
|
+
const spectrum = draft.data[index];
|
|
375
|
+
if (isSpectrum1D(spectrum)) {
|
|
376
|
+
const range = spectrum.ranges.values.find((range) => range.id === rangeID);
|
|
377
|
+
if (range) {
|
|
378
|
+
range.assignment = value;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
export { handleCutRange, handleAutoRangesDetection, handleDeleteRange, deleteSignal1D, handleDeleteSignal, handleChangeRangeSum, handleAddRange, handleResizeRange, handleChangeRangeRelativeValue, handleChangeRangeSignalValue, handleChangeRangeSignalKind, handleSaveEditedRange, handleUnlinkRange, unlinkRange, handleSetDiaIDRange, handleChangeRangesSumFlag, handleUpdateRange, handleAutoSpectraRangesDetection, handleToggleRangesViewProperty, handleChangePeaksDisplayingMode, handleDeleteRangePeak, handleChangeRangeAssignmentLabel, };
|
|
@@ -47,7 +47,7 @@ type SetActiveTabAction = ActionType<'SET_ACTIVE_TAB', {
|
|
|
47
47
|
type LevelChangeAction = ActionType<'SET_2D_LEVEL', {
|
|
48
48
|
options: ZoomOptions;
|
|
49
49
|
}>;
|
|
50
|
-
export type ToolsActions = ActionType<'TOGGLE_REAL_IMAGINARY_VISIBILITY' | 'RESET_SELECTED_TOOL' | '
|
|
50
|
+
export type ToolsActions = ActionType<'TOGGLE_REAL_IMAGINARY_VISIBILITY' | 'RESET_SELECTED_TOOL' | 'SET_SPECTRA_VERTICAL_ALIGN' | 'CHANGE_SPECTRUM_DISPLAY_VIEW_MODE' | 'SET_SPECTRA_SAME_TOP' | 'RESET_SPECTRA_SCALE'> | SetSelectedToolAction | AddBaseLineZoneAction | DeleteBaseLineZoneAction | ResizeBaseLineZoneAction | BrushEndAction | ZoomAction | ZoomOutAction | SetActiveTabAction | LevelChangeAction;
|
|
51
51
|
declare function handleResetSelectedTool(draft: Draft<State>): void;
|
|
52
52
|
declare function resetSelectedTool(draft: Draft<State>): void;
|
|
53
53
|
interface ActivateToolOptions {
|
|
@@ -56,7 +56,7 @@ interface ActivateToolOptions {
|
|
|
56
56
|
}
|
|
57
57
|
declare function activateTool(draft: Draft<State>, options: ActivateToolOptions): void;
|
|
58
58
|
declare function setSelectedTool(draft: Draft<State>, action: SetSelectedToolAction): void;
|
|
59
|
-
declare function
|
|
59
|
+
declare function setSpectraVerticalAlign(draft: Draft<State>): void;
|
|
60
60
|
declare function handleChangeSpectrumDisplayMode(draft: Draft<State>): void;
|
|
61
61
|
declare function handleAddBaseLineZone(draft: Draft<State>, action: AddBaseLineZoneAction): void;
|
|
62
62
|
declare function handleResizeBaseLineZone(draft: Draft<State>, action: ResizeBaseLineZoneAction): void;
|
|
@@ -72,4 +72,4 @@ declare function handelSetActiveTab(draft: Draft<State>, action: SetActiveTabAct
|
|
|
72
72
|
declare function levelChangeHandler(draft: Draft<State>, action: LevelChangeAction): void;
|
|
73
73
|
declare function setSpectraSameTopHandler(draft: Draft<State>): void;
|
|
74
74
|
declare function resetSpectraScale(draft: Draft<State>): void;
|
|
75
|
-
export { handleResetSelectedTool, resetSelectedTool, setSelectedTool, activateTool,
|
|
75
|
+
export { handleResetSelectedTool, resetSelectedTool, setSelectedTool, activateTool, setSpectraVerticalAlign, handleChangeSpectrumDisplayMode, handleAddBaseLineZone, handleDeleteBaseLineZone, handleResizeBaseLineZone, handleToggleRealImaginaryVisibility, handleBrushEnd, handleZoom, zoomOut, handelSetActiveTab, levelChangeHandler, setActiveTab, setTab, setSpectraSameTopHandler, resetSpectraScale, setMargin, };
|
|
@@ -95,7 +95,7 @@ function getSpectrumID(draft, index) {
|
|
|
95
95
|
}
|
|
96
96
|
return null;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function setSpectraVerticalAlign(draft) {
|
|
99
99
|
const currentVerticalAlign = getVerticalAlign(draft);
|
|
100
100
|
const verticalAlign = ['stack', 'bottom'].includes(currentVerticalAlign)
|
|
101
101
|
? 'center'
|
|
@@ -215,9 +215,9 @@ function handleZoom(draft, action) {
|
|
|
215
215
|
const { options, trackID } = action.payload;
|
|
216
216
|
const { displayerMode, yDomains, toolOptions: { selectedTool }, } = draft;
|
|
217
217
|
const scaleRatio = toScaleRatio(options);
|
|
218
|
+
const { altKey, shiftKey } = options;
|
|
218
219
|
switch (displayerMode) {
|
|
219
220
|
case '2D': {
|
|
220
|
-
const { shiftKey } = options;
|
|
221
221
|
if (trackID === 'CENTER_2D') {
|
|
222
222
|
// change the vertical scale for traces in 2D phase correction
|
|
223
223
|
if (selectedTool === 'phaseCorrectionTwoDimensions') {
|
|
@@ -226,7 +226,7 @@ function handleZoom(draft, action) {
|
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
228
|
//zoom in/out in 2d
|
|
229
|
-
if (
|
|
229
|
+
if (shiftKey) {
|
|
230
230
|
zoomWithScroll(draft, {
|
|
231
231
|
zoomOptions: options,
|
|
232
232
|
dimension: '2D',
|
|
@@ -249,21 +249,13 @@ function handleZoom(draft, action) {
|
|
|
249
249
|
}
|
|
250
250
|
case '1D': {
|
|
251
251
|
const activeSpectra = getActiveSpectra(draft);
|
|
252
|
-
const { shiftKey } = options;
|
|
253
252
|
// Horizontal zoom in/out 1d spectra by mouse wheel
|
|
254
|
-
if (
|
|
253
|
+
if (shiftKey) {
|
|
255
254
|
zoomWithScroll(draft, { zoomOptions: options, dimension: '1D' });
|
|
256
255
|
return;
|
|
257
256
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
for (const key of Object.keys(yDomains)) {
|
|
261
|
-
const domain = yDomains[key];
|
|
262
|
-
yDomains[key] = wheelZoom(options, domain);
|
|
263
|
-
}
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
if (activeSpectra.length === 1 && shiftKey) {
|
|
257
|
+
// rescale the integral in ranges and integrals
|
|
258
|
+
if (altKey && activeSpectra?.length === 1) {
|
|
267
259
|
switch (selectedTool) {
|
|
268
260
|
case 'rangePicking': {
|
|
269
261
|
setRangesViewProperty(draft, 'integralsScaleRatio', (scale) => scale * scaleRatio);
|
|
@@ -276,14 +268,15 @@ function handleZoom(draft, action) {
|
|
|
276
268
|
default:
|
|
277
269
|
break;
|
|
278
270
|
}
|
|
271
|
+
return;
|
|
279
272
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
273
|
+
// reselect the spectra vertically
|
|
274
|
+
const keys = !activeSpectra
|
|
275
|
+
? Object.keys(yDomains)
|
|
276
|
+
: activeSpectra.map(({ id }) => id);
|
|
277
|
+
for (const key of keys) {
|
|
278
|
+
const domain = yDomains[key];
|
|
279
|
+
yDomains[key] = wheelZoom(options, domain);
|
|
287
280
|
}
|
|
288
281
|
break;
|
|
289
282
|
}
|
|
@@ -401,16 +394,16 @@ function setTabActiveSpectrum(draft, dataGroupByTab) {
|
|
|
401
394
|
const tabSpectra = dataGroupByTab[tabKey];
|
|
402
395
|
const tabSpectraLength = tabSpectra.length;
|
|
403
396
|
if (tabSpectraLength >= 2) {
|
|
404
|
-
const
|
|
405
|
-
if (
|
|
397
|
+
const FTSpectra = tabSpectra.filter((d) => !d.info.isFid);
|
|
398
|
+
if (FTSpectra.length > 0) {
|
|
406
399
|
const selected = nucleusLength === 2 ||
|
|
407
|
-
(nucleusLength === 1 && tabSpectraLength !==
|
|
408
|
-
const index = draft.data.findIndex((datum) => datum.id ===
|
|
400
|
+
(nucleusLength === 1 && tabSpectraLength !== FTSpectra.length);
|
|
401
|
+
const index = draft.data.findIndex((datum) => datum.id === FTSpectra[0].id);
|
|
409
402
|
tabActiveSpectrum[tabKey] = [
|
|
410
|
-
{ id:
|
|
403
|
+
{ id: FTSpectra[0].id, index, selected },
|
|
411
404
|
];
|
|
412
405
|
}
|
|
413
|
-
else if (tabSpectraLength -
|
|
406
|
+
else if (tabSpectraLength - FTSpectra > 0) {
|
|
414
407
|
const id = tabSpectra[0].id;
|
|
415
408
|
const index = draft.data.findIndex((datum) => datum.id === id);
|
|
416
409
|
tabActiveSpectrum[tabKey] = [{ id, index, selected: true }];
|
|
@@ -505,4 +498,4 @@ function resetSpectraScale(draft) {
|
|
|
505
498
|
draft.yDomain = draft.originDomain.yDomain;
|
|
506
499
|
setZoom(draft, { scale: 0.8 });
|
|
507
500
|
}
|
|
508
|
-
export { handleResetSelectedTool, resetSelectedTool, setSelectedTool, activateTool,
|
|
501
|
+
export { handleResetSelectedTool, resetSelectedTool, setSelectedTool, activateTool, setSpectraVerticalAlign, handleChangeSpectrumDisplayMode, handleAddBaseLineZone, handleDeleteBaseLineZone, handleResizeBaseLineZone, handleToggleRealImaginaryVisibility, handleBrushEnd, handleZoom, zoomOut, handelSetActiveTab, levelChangeHandler, setActiveTab, setTab, setSpectraSameTopHandler, resetSpectraScale, setMargin, };
|
|
@@ -16,10 +16,12 @@ interface DeleteSignal2DProps {
|
|
|
16
16
|
}
|
|
17
17
|
type ChangeZonesFactorAction = ActionType<'CHANGE_ZONES_NOISE_FACTOR', {
|
|
18
18
|
zonesNoiseFactor: number;
|
|
19
|
+
zonesMinMaxRatio: number;
|
|
19
20
|
}>;
|
|
20
21
|
type Add2dZoneAction = ActionType<'ADD_2D_ZONE', ZoneBoundary>;
|
|
21
22
|
type AutoZonesDetectionAction = ActionType<'AUTO_ZONES_DETECTION', {
|
|
22
23
|
zonesNoiseFactor: number;
|
|
24
|
+
zonesMinMaxRatio: number;
|
|
23
25
|
}>;
|
|
24
26
|
type ChangeZoneSignalDeltaAction = ActionType<'CHANGE_ZONE_SIGNAL_VALUE', {
|
|
25
27
|
zoneId: string;
|
|
@@ -14,6 +14,7 @@ import { setDomain } from './DomainActions';
|
|
|
14
14
|
//action
|
|
15
15
|
function handleChangeZonesFactor(draft, action) {
|
|
16
16
|
draft.toolOptions.data.zonesNoiseFactor = action.payload.zonesNoiseFactor;
|
|
17
|
+
draft.toolOptions.data.zonesMinMaxRatio = action.payload.zonesMinMaxRatio;
|
|
17
18
|
}
|
|
18
19
|
//action
|
|
19
20
|
function handleAdd2dZone(draft, action) {
|
|
@@ -25,6 +26,7 @@ function handleAdd2dZone(draft, action) {
|
|
|
25
26
|
const zones = detectZonesManual(original(datum), {
|
|
26
27
|
selectedZone: drawnZone,
|
|
27
28
|
thresholdFactor: draft.toolOptions.data.zonesNoiseFactor,
|
|
29
|
+
maxPercentCutOff: draft.toolOptions.data.zonesMinMaxRatio,
|
|
28
30
|
convolutionByFFT: false,
|
|
29
31
|
});
|
|
30
32
|
datum.zones.values = datum.zones.values.concat(zones);
|
|
@@ -36,12 +38,13 @@ function handleAutoZonesDetection(draft, action) {
|
|
|
36
38
|
const activeSpectrum = getActiveSpectrum(draft);
|
|
37
39
|
if (activeSpectrum?.id) {
|
|
38
40
|
const { index } = activeSpectrum;
|
|
39
|
-
const { zonesNoiseFactor: thresholdFactor } = action.payload;
|
|
41
|
+
const { zonesNoiseFactor: thresholdFactor, zonesMinMaxRatio: maxPercentCutOff, } = action.payload;
|
|
40
42
|
const [fromX, toX] = draft.xDomain;
|
|
41
43
|
const [fromY, toY] = draft.yDomain;
|
|
42
44
|
const detectionOptions = {
|
|
43
45
|
selectedZone: { fromX, toX, fromY, toY },
|
|
44
46
|
thresholdFactor,
|
|
47
|
+
maxPercentCutOff,
|
|
45
48
|
};
|
|
46
49
|
const datum = draft.data[index];
|
|
47
50
|
const zones = detectZones(original(datum), detectionOptions);
|
|
@@ -58,6 +61,7 @@ function handleAutoSpectraZonesDetection(draft) {
|
|
|
58
61
|
const detectionOptions = {
|
|
59
62
|
selectedZone: { fromX: minX, toX: maxX, fromY: minY, toY: maxY },
|
|
60
63
|
thresholdFactor: 1,
|
|
64
|
+
maxPercentCutOff: 0.03,
|
|
61
65
|
};
|
|
62
66
|
const zones = detectZones(original(datum), detectionOptions);
|
|
63
67
|
datum.zones.values = datum.zones.values.concat(zones);
|
|
@@ -64,21 +64,22 @@ const getZoneDefaultValues = (nucleus) => {
|
|
|
64
64
|
return { nuclei: {} };
|
|
65
65
|
}
|
|
66
66
|
if (is2DNucleus(nucleus)) {
|
|
67
|
-
const
|
|
67
|
+
const preferences2D = {
|
|
68
68
|
showSerialNumber: true,
|
|
69
69
|
showKind: true,
|
|
70
70
|
showDeleteAction: true,
|
|
71
71
|
showZoomAction: true,
|
|
72
72
|
showEditAction: true,
|
|
73
73
|
showAssignment: true,
|
|
74
|
+
showAssignmentLabel: false,
|
|
74
75
|
};
|
|
75
|
-
return { ...common, ...getPreferences(
|
|
76
|
+
return { ...common, ...getPreferences(preferences2D, nucleus) };
|
|
76
77
|
}
|
|
77
78
|
else {
|
|
78
|
-
const
|
|
79
|
+
const preferences1D = {
|
|
79
80
|
deltaPPM: { show: true, format: '0.00' },
|
|
80
81
|
};
|
|
81
|
-
return { ...common, ...getPreferences(
|
|
82
|
+
return { ...common, ...getPreferences(preferences1D, nucleus) };
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
85
|
const getRangeDefaultValues = (nucleus) => {
|
|
@@ -98,6 +99,7 @@ const getRangeDefaultValues = (nucleus) => {
|
|
|
98
99
|
showDeleteAction: true,
|
|
99
100
|
showZoomAction: true,
|
|
100
101
|
showEditAction: true,
|
|
102
|
+
showAssignmentLabel: false,
|
|
101
103
|
};
|
|
102
104
|
return getPreferences(preferences, nucleus);
|
|
103
105
|
};
|
|
@@ -15,7 +15,7 @@ import { useDialogToggle } from '../hooks/useDialogToggle';
|
|
|
15
15
|
import useExport from '../hooks/useExport';
|
|
16
16
|
import useToolsFunctions from '../hooks/useToolsFunctions';
|
|
17
17
|
import { useVerticalAlign } from '../hooks/useVerticalAlign';
|
|
18
|
-
import ImportPublicationStringModal from '../modal/ImportPublicationStringModal';
|
|
18
|
+
import { ImportPublicationStringModal } from '../modal/ImportPublicationStringModal';
|
|
19
19
|
import { LoadJCAMPModal } from '../modal/LoadJCAMPModal';
|
|
20
20
|
import SaveAsModal from '../modal/SaveAsModal';
|
|
21
21
|
import { MetaImportationModal } from '../modal/metaImportation/MetaImportationModal';
|
|
@@ -28,7 +28,7 @@ export default function ToolBar() {
|
|
|
28
28
|
const { toolOptions: { selectedTool }, } = useChartData();
|
|
29
29
|
const isButtonVisible = useCheckToolsVisibility();
|
|
30
30
|
const dispatch = useDispatch();
|
|
31
|
-
const { isRealSpectrumShown, changeSpectrumViewHandler, changeDisplayViewModeHandler,
|
|
31
|
+
const { isRealSpectrumShown, changeSpectrumViewHandler, changeDisplayViewModeHandler, alignSpectraVerticallyHandler, handleChangeOption, handleFullZoomOut, } = useToolsFunctions();
|
|
32
32
|
const handleChange = useCallback((selectedOption) => {
|
|
33
33
|
handleChangeOption(selectedOption);
|
|
34
34
|
}, [handleChangeOption]);
|
|
@@ -110,23 +110,23 @@ export default function ToolBar() {
|
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
id: 'zoomOut',
|
|
113
|
-
title: 'Horizontal zoom out (
|
|
113
|
+
title: 'Horizontal zoom out (Press f), Horizontal and Vertical zoom out, double click (Press ff)',
|
|
114
114
|
onClick: handleFullZoomOut,
|
|
115
115
|
icon: _jsx(FaExpand, {}),
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
id: 'peakPicking',
|
|
119
|
-
title: `${options.peakPicking.label} (
|
|
119
|
+
title: `${options.peakPicking.label} (Press p)`,
|
|
120
120
|
icon: _jsx(SvgNmrPeakPicking, {}),
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
id: 'integral',
|
|
124
|
-
title: `${options.integral.label} (
|
|
124
|
+
title: `${options.integral.label} (Press i)`,
|
|
125
125
|
icon: _jsx(SvgNmrIntegrate, {}),
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
id: 'zonePicking',
|
|
129
|
-
title: `${options.zonePicking.label} (
|
|
129
|
+
title: `${options.zonePicking.label} (Press r)`,
|
|
130
130
|
icon: _jsx(FaDiceFour, {}),
|
|
131
131
|
},
|
|
132
132
|
{
|
|
@@ -136,7 +136,7 @@ export default function ToolBar() {
|
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
id: 'rangePicking',
|
|
139
|
-
title: `${options.rangePicking.label} (
|
|
139
|
+
title: `${options.rangePicking.label} (Press r)`,
|
|
140
140
|
icon: _jsx(SvgNmrRangePicking, {}),
|
|
141
141
|
},
|
|
142
142
|
{
|
|
@@ -153,34 +153,34 @@ export default function ToolBar() {
|
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
id: 'zeroFilling',
|
|
156
|
-
title: `${options.zeroFilling.label} (
|
|
156
|
+
title: `${options.zeroFilling.label} (Press z)`,
|
|
157
157
|
icon: _jsx(SvgNmrZeroFilling, {}),
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
id: 'phaseCorrection',
|
|
161
|
-
title: `${options.phaseCorrection.label} (
|
|
161
|
+
title: `${options.phaseCorrection.label} (Press a)`,
|
|
162
162
|
icon: _jsx(SvgNmrPhaseCorrection, {}),
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
id: 'phaseCorrectionTwoDimensions',
|
|
166
|
-
title: `${options.phaseCorrectionTwoDimensions.label} (
|
|
166
|
+
title: `${options.phaseCorrectionTwoDimensions.label} (Press a)`,
|
|
167
167
|
icon: _jsx(SvgNmrPhaseCorrection, {}),
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
id: 'baselineCorrection',
|
|
171
|
-
title: `${options.baselineCorrection.label} (
|
|
171
|
+
title: `${options.baselineCorrection.label} (Press b)`,
|
|
172
172
|
icon: _jsx(SvgNmrBaselineCorrection, {}),
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
175
|
id: 'exclusionZones',
|
|
176
|
-
title: `${options.exclusionZones.label} (
|
|
176
|
+
title: `${options.exclusionZones.label} (Press e)`,
|
|
177
177
|
icon: _jsx(SvgNmrMultipleAnalysis, {}),
|
|
178
178
|
checkOptions: { checkSpectrumType: false },
|
|
179
179
|
condition: ftCounter > 0,
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
id: 'fft',
|
|
183
|
-
title: `${options.fft.label} (
|
|
183
|
+
title: `${options.fft.label} (Press t)`,
|
|
184
184
|
onClick: handleOnFFTFilter,
|
|
185
185
|
icon: _jsx(SvgNmrFourierTransform, {}),
|
|
186
186
|
},
|
|
@@ -212,7 +212,7 @@ export default function ToolBar() {
|
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
id: 'spectraStackAlignments',
|
|
215
|
-
title: `${options.spectraStackAlignments.label} (
|
|
215
|
+
title: `${options.spectraStackAlignments.label} (Press s)`,
|
|
216
216
|
icon: verticalAlign === 'stack' ? (_jsx(SvgNmrOverlay3Aligned, {})) : (_jsx(SvgNmrOverlay3, {})),
|
|
217
217
|
condition: ftCounter > 1,
|
|
218
218
|
onClick: changeDisplayViewModeHandler,
|
|
@@ -225,10 +225,10 @@ export default function ToolBar() {
|
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
id: 'spectraCenterAlignments',
|
|
228
|
-
title: `Baseline ${verticalAlign === 'bottom' ? 'center' : 'bottom'} (
|
|
228
|
+
title: `Baseline ${verticalAlign === 'bottom' ? 'center' : 'bottom'} (Press c)`,
|
|
229
229
|
icon: verticalAlign === 'bottom' ? (_jsx(SvgNmrAlignCenter, {})) : (_jsx(SvgNmrAlignBottom, {})),
|
|
230
230
|
condition: ftCounter > 0 || fidCounter > 0,
|
|
231
|
-
onClick:
|
|
231
|
+
onClick: alignSpectraVerticallyHandler,
|
|
232
232
|
},
|
|
233
233
|
];
|
|
234
234
|
return (_jsxs(_Fragment, { children: [_jsx(LoadJCAMPModal, { isOpen: dialog.loadJCAMP, onCloseDialog: closeDialog }), _jsx(ImportPublicationStringModal, { isOpen: dialog.importPublicationString, onClose: closeDialog }), _jsx(MetaImportationModal, { isOpen: dialog.metaImportation, onCloseDialog: closeDialog }), _jsx(SaveAsModal, { isOpen: dialog.saveAs, onCloseDialog: closeDialog }), _jsx(Toolbar, { vertical: true, children: toolItems.map((item) => {
|
|
@@ -3,7 +3,7 @@ import { FaCopy, FaDownload, FaFile, FaFileDownload, FaFileImage, } from 'react-
|
|
|
3
3
|
const IMPORT_MENU = [
|
|
4
4
|
{
|
|
5
5
|
icon: _jsx(FaFile, {}),
|
|
6
|
-
text: 'Import from file system (Press Ctrl
|
|
6
|
+
text: 'Import from file system (Press Ctrl+o)',
|
|
7
7
|
data: {
|
|
8
8
|
id: 'importFile',
|
|
9
9
|
},
|
|
@@ -47,14 +47,14 @@ const EXPORT_MENU = [
|
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
icon: _jsx(FaFileDownload, {}),
|
|
50
|
-
text: 'Save data (
|
|
50
|
+
text: 'Save data (Press Ctrl+s)',
|
|
51
51
|
data: {
|
|
52
52
|
id: 'json',
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
icon: _jsx(FaFileDownload, {}),
|
|
57
|
-
text: 'Save data as
|
|
57
|
+
text: 'Save data as (Press Ctrl+Shift+s)',
|
|
58
58
|
data: {
|
|
59
59
|
id: 'advance_save',
|
|
60
60
|
},
|
|
@@ -68,7 +68,7 @@ const EXPORT_MENU = [
|
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
icon: _jsx(FaCopy, {}),
|
|
71
|
-
text: 'Copy image to
|
|
71
|
+
text: 'Copy image to clipboard (Press Ctrl+c)',
|
|
72
72
|
data: {
|
|
73
73
|
id: 'copy',
|
|
74
74
|
},
|
|
@@ -167,7 +167,7 @@ async function copyPNGToClipboard(rootRef, elementID, css) {
|
|
|
167
167
|
catch (error) {
|
|
168
168
|
if (error instanceof ReferenceError) {
|
|
169
169
|
// eslint-disable-next-line no-alert
|
|
170
|
-
alert('Your browser does not support this feature, please use Google Chrome or Firefox');
|
|
170
|
+
window.alert('Your browser does not support this feature, please use Google Chrome or Firefox');
|
|
171
171
|
}
|
|
172
172
|
// TODO: handle error.
|
|
173
173
|
reportError(error);
|
package/lib/constants.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export const docsBaseUrl = 'https://docs.nmrium.org';
|
|
2
2
|
export const helpList = {
|
|
3
3
|
zoom: {
|
|
4
|
-
text: 'Zoom
|
|
4
|
+
text: 'Zoom tool',
|
|
5
5
|
url: `${docsBaseUrl}/help/zoom-and-scale`,
|
|
6
6
|
},
|
|
7
7
|
peakPicking: {
|
|
8
|
-
text: '
|
|
8
|
+
text: 'Peak picking tool',
|
|
9
9
|
url: `${docsBaseUrl}/help/peaks`,
|
|
10
10
|
},
|
|
11
11
|
integralPicking: {
|
|
12
|
-
text: '
|
|
12
|
+
text: 'Integral tool',
|
|
13
13
|
url: `${docsBaseUrl}/help/integrations`,
|
|
14
14
|
},
|
|
15
15
|
fullScreen: {
|
|
16
|
-
text: 'Full
|
|
16
|
+
text: 'Full screen mode',
|
|
17
17
|
url: `${docsBaseUrl}/help/general`,
|
|
18
18
|
},
|
|
19
19
|
loadSpectrum: {
|
|
20
|
-
text: '
|
|
20
|
+
text: 'Load spectra',
|
|
21
21
|
url: `${docsBaseUrl}/help/loading-a-spectrum`,
|
|
22
22
|
},
|
|
23
23
|
};
|
|
@@ -63,7 +63,7 @@ export function getSlice(spectrum, position, options = {}) {
|
|
|
63
63
|
function initiateData(from, to, size) {
|
|
64
64
|
return {
|
|
65
65
|
x: xSequentialFillFromTo({ from, to, size }),
|
|
66
|
-
re: new Float64Array(
|
|
66
|
+
re: new Float64Array(size),
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
function getRealData(data, info) {
|
package/lib/versionInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default { version: 'v0.
|
|
1
|
+
export default { version: 'v0.53.0' };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nmrium",
|
|
3
3
|
"description": "React component to display and process nuclear magnetic resonance (NMR) spectra.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "lib/component/main/index.js",
|
|
7
7
|
"types": "lib/component/main/index.d.ts",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"react-dom": ">=18.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@blueprintjs/core": "^5.10.
|
|
61
|
-
"@blueprintjs/icons": "^5.
|
|
62
|
-
"@blueprintjs/select": "^5.1.
|
|
60
|
+
"@blueprintjs/core": "^5.10.1",
|
|
61
|
+
"@blueprintjs/icons": "^5.9.0",
|
|
62
|
+
"@blueprintjs/select": "^5.1.3",
|
|
63
63
|
"@emotion/react": "^11.11.4",
|
|
64
64
|
"@emotion/styled": "^11.11.0",
|
|
65
65
|
"@lukeed/uuid": "^2.0.1",
|
|
@@ -84,12 +84,13 @@
|
|
|
84
84
|
"ml-conrec": "^5.0.2",
|
|
85
85
|
"ml-gsd": "^12.1.6",
|
|
86
86
|
"ml-matrix": "^6.11.0",
|
|
87
|
+
"ml-signal-processing": "^1.0.4",
|
|
87
88
|
"ml-spectra-processing": "^14.2.2",
|
|
88
89
|
"ml-stat": "^1.3.3",
|
|
89
90
|
"ml-tree-similarity": "^2.2.0",
|
|
90
91
|
"multiplet-analysis": "^2.1.2",
|
|
91
92
|
"nmr-correlation": "^2.3.3",
|
|
92
|
-
"nmr-load-save": "^0.
|
|
93
|
+
"nmr-load-save": "^0.29.1",
|
|
93
94
|
"nmr-processing": "^12.0.1",
|
|
94
95
|
"nmredata": "^0.9.9",
|
|
95
96
|
"numeral": "^2.0.6",
|
|
@@ -116,24 +117,24 @@
|
|
|
116
117
|
"yup": "^1.4.0"
|
|
117
118
|
},
|
|
118
119
|
"devDependencies": {
|
|
119
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
120
|
-
"@babel/preset-react": "^7.
|
|
121
|
-
"@babel/preset-typescript": "^7.
|
|
120
|
+
"@babel/plugin-transform-modules-commonjs": "^7.24.1",
|
|
121
|
+
"@babel/preset-react": "^7.24.1",
|
|
122
|
+
"@babel/preset-typescript": "^7.24.1",
|
|
122
123
|
"@playwright/test": "^1.42.1",
|
|
123
124
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
124
125
|
"@types/d3": "^7.4.3",
|
|
125
126
|
"@types/lodash": "^4.17.0",
|
|
126
|
-
"@types/node": "^20.11.
|
|
127
|
+
"@types/node": "^20.11.30",
|
|
127
128
|
"@types/papaparse": "^5.3.14",
|
|
128
|
-
"@types/react": "^18.2.
|
|
129
|
+
"@types/react": "^18.2.67",
|
|
129
130
|
"@types/react-dom": "^18.2.22",
|
|
130
|
-
"@types/react-table": "^7.7.
|
|
131
|
+
"@types/react-table": "^7.7.20",
|
|
131
132
|
"@vitejs/plugin-react-swc": "^3.6.0",
|
|
132
133
|
"@vitest/coverage-v8": "^1.4.0",
|
|
133
134
|
"cross-env": "^7.0.3",
|
|
134
135
|
"cspell": "^8.6.0",
|
|
135
136
|
"eslint": "^8.57.0",
|
|
136
|
-
"eslint-config-cheminfo-react": "^
|
|
137
|
+
"eslint-config-cheminfo-react": "^11.0.1",
|
|
137
138
|
"eslint-config-cheminfo-typescript": "^12.2.0",
|
|
138
139
|
"modern-normalize": "^2.0.0",
|
|
139
140
|
"postcss-styled-syntax": "^0.6.4",
|
|
@@ -147,8 +148,8 @@
|
|
|
147
148
|
"serve": "^14.2.1",
|
|
148
149
|
"stylelint": "^16.2.1",
|
|
149
150
|
"stylelint-config-standard": "^36.0.0",
|
|
150
|
-
"typescript": "^5.4.
|
|
151
|
-
"vite": "^5.
|
|
151
|
+
"typescript": "^5.4.3",
|
|
152
|
+
"vite": "^5.2.2",
|
|
152
153
|
"vitest": "^1.4.0"
|
|
153
154
|
}
|
|
154
|
-
}
|
|
155
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function SpectrumsTabs(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ShowHideSpectrumButton.d.ts
RENAMED
|
File without changes
|
/package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/ShowHideSpectrumButton.js
RENAMED
|
File without changes
|
/package/lib/component/panels/{SpectrumsPanel → SpectraPanel}/base/SpectraColumnsManager.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|