nmrium 0.40.1 → 0.41.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/FooterBanner.js +5 -4
- package/lib/component/1d/Viewer1D.js +121 -104
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
- package/lib/component/1d/multiplicityTree/TreeColors.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/TreeColors.js +1 -6
- package/lib/component/1d/multiplicityTree/TreeNodes.d.ts +1 -1
- package/lib/component/1d/tool/BaseLineZones.d.ts +1 -1
- package/lib/component/1d/tool/BaseLineZones.js +7 -4
- package/lib/component/1d/tool/PeakPointer.js +1 -1
- package/lib/component/1d/utilities/scale.js +1 -3
- package/lib/component/1d-2d/components/FloatMoleculeStructures/index.d.ts +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +10 -7
- package/lib/component/1d-2d/tools/CrossLinePointer.js +1 -1
- package/lib/component/2d/FooterBanner.js +3 -2
- package/lib/component/2d/Viewer2D.js +51 -29
- package/lib/component/2d/XAxis.js +1 -1
- package/lib/component/2d/YAxis.js +1 -1
- package/lib/component/2d/utilities/SliceScale.d.ts +2 -2
- package/lib/component/2d/utilities/scale.d.ts +5 -5
- package/lib/component/2d/zones/Signal.js +1 -2
- package/lib/component/EventsTrackers/BrushTracker.d.ts +4 -1
- package/lib/component/EventsTrackers/BrushTracker.js +21 -6
- package/lib/component/NMRium.d.ts +2 -2
- package/lib/component/NMRium.js +39 -26
- package/lib/component/assignment/AssignmentsReducer.d.ts +1 -1
- package/lib/component/assignment/actions/setActiveAssignment.js +1 -1
- package/lib/component/elements/InputRange.js +1 -1
- package/lib/component/elements/MenuButton.d.ts +1 -1
- package/lib/component/elements/MoleculeSelection.d.ts +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +1 -1
- package/lib/component/elements/Tab/DeleteButton.d.ts +1 -1
- package/lib/component/elements/ToolbarMenu.d.ts +1 -1
- package/lib/component/elements/accordion/Accordion.d.ts +1 -1
- package/lib/component/elements/draggable/SVGDraggable.d.ts +1 -1
- package/lib/component/elements/draggable/useDraggable.d.ts +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts +1 -1
- package/lib/component/elements/dropDownButton/DropDownList.js +3 -1
- package/lib/component/elements/formik/SelectBox.d.ts +1 -1
- package/lib/component/elements/popup/Alert/AlertBlock.d.ts +3 -2
- package/lib/component/elements/popup/Alert/AlertBlock.js +21 -15
- package/lib/component/elements/popup/Alert/Context.d.ts +26 -2
- package/lib/component/elements/popup/Alert/Context.js +6 -2
- package/lib/component/elements/popup/Alert/Provider.d.ts +4 -3
- package/lib/component/elements/popup/Alert/Provider.js +3 -3
- package/lib/component/elements/popup/Modal/ConfirmDialog.d.ts +1 -1
- package/lib/component/elements/popup/Modal/Provider.js +3 -1
- package/lib/component/elements/popup/options.d.ts +22 -19
- package/lib/component/elements/resizer/Resizer.d.ts +2 -2
- package/lib/component/elements/toggle/ToggleButton.d.ts +2 -2
- package/lib/component/elements/toggle/ToggleButton.js +1 -1
- package/lib/component/header/ZeroFillingOptionsPanel.js +3 -8
- package/lib/component/highlight/index.d.ts +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.js +2 -2
- package/lib/component/hooks/useExport.js +2 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts +1 -1
- package/lib/component/hooks/usePanelPreferences.js +2 -2
- package/lib/component/hooks/useXScale.d.ts +1 -1
- package/lib/component/hooks/useXYReduce.d.ts +2 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.d.ts +2 -0
- package/lib/component/modal/AboutSpectrumSimulationModal.js +49 -0
- package/lib/component/modal/AlignSpectraModal.js +11 -1
- package/lib/component/modal/MultipletAnalysisModal.js +2 -1
- package/lib/component/modal/PredictSpectraModal.d.ts +1 -2
- package/lib/component/modal/PredictSpectraModal.js +25 -28
- package/lib/component/modal/changeSum/ChangeSumModal.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.js +1 -1
- package/lib/component/modal/editZone/SignalsForm.js +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +4 -0
- package/lib/component/modal/setting/settings-tabs/FormattingTabContent.js +1 -1
- package/lib/component/modal/setting/settingsValidation.js +2 -2
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +4 -7
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +2 -4
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +3 -5
- package/lib/component/panels/Panels.js +13 -0
- package/lib/component/panels/PeaksPanel/PeaksTable.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraTable.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +3 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +2 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
- package/lib/component/panels/extra/utilities/UseToggleStatus.js +1 -1
- package/lib/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +2 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +3 -2
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +2 -2
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.d.ts +1 -0
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +88 -0
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts +11 -0
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +37 -0
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.d.ts +4 -0
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.js +25 -0
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.d.ts +5 -0
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +60 -0
- package/lib/component/reducer/Reducer.d.ts +13 -12
- package/lib/component/reducer/Reducer.js +251 -239
- package/lib/component/reducer/actions/AssignmentsActions.d.ts +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.js +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +2 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +7 -2
- package/lib/component/reducer/actions/DomainActions.js +30 -1
- package/lib/component/reducer/actions/FiltersActions.js +4 -4
- package/lib/component/reducer/actions/LoadActions.js +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -0
- package/lib/component/reducer/actions/MoleculeActions.js +51 -2
- package/lib/component/reducer/actions/SpectrumsActions.d.ts +8 -2
- package/lib/component/reducer/actions/SpectrumsActions.js +43 -4
- package/lib/component/reducer/actions/ToolsActions.js +2 -2
- package/lib/component/reducer/actions/ZonesActions.js +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +4 -6
- package/lib/component/reducer/preferences/actions/setActiveWorkspace.js +1 -1
- package/lib/component/reducer/preferences/actions/setPreferences.js +3 -4
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +5 -1
- package/lib/component/reducer/preferences/utilities/flatObject.js +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +4 -4
- package/lib/component/utility/export.js +9 -9
- package/lib/component/utility/getSpectraObjectPaths.js +1 -1
- package/lib/component/utility/getUniqueNuclei.js +1 -1
- package/lib/component/utility/jpathToArray.js +1 -1
- package/lib/component/workspaces/index.d.ts +1 -0
- package/lib/component/workspaces/index.js +2 -0
- package/lib/component/workspaces/simulation.d.ts +2 -0
- package/lib/component/workspaces/simulation.js +68 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/data/PredictionManager.d.ts +8 -7
- package/lib/data/PredictionManager.js +95 -22
- package/lib/data/SpectraManager.js +1 -1
- package/lib/data/constants/DefaultPathLengths.d.ts +1 -3
- package/lib/data/constants/SignalsKinds.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +3 -3
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js +5 -4
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -13
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +10 -9
- package/lib/data/data1d/database.d.ts +5 -5
- package/lib/data/data1d/database.js +3 -3
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +1 -1
- package/lib/data/data1d/spectrumSimulation.d.ts +14 -0
- package/lib/data/data1d/spectrumSimulation.js +53 -0
- package/lib/data/data2d/Spectrum2D/contours.d.ts +8 -4
- package/lib/data/data2d/Spectrum2D/contours.js +7 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js +6 -6
- package/lib/data/data2d/Spectrum2D/getShift.js +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.js +4 -4
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +5 -5
- package/lib/data/getDefaultMatrixFilters.d.ts +2 -2
- package/lib/data/matrixGeneration.js +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +1 -1
- package/lib/data/molecules/MoleculeManager.js +7 -7
- package/lib/data/parseMeta/linkMetaWithSpectra.js +2 -1
- package/lib/data/types/data1d/MatrixOptions.d.ts +2 -2
- package/lib/data/utilities/FindUtilities.js +4 -4
- package/lib/data/utilities/RangeUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/calculateSanPlot.js +3 -3
- package/lib/data/utilities/generateNumbersPowerOfX.js +1 -1
- package/lib/utils/clipboard/clipboard.d.ts +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/FooterBanner.js +5 -4
- package/lib-cjs/component/1d/Viewer1D.js +120 -103
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/TreeColors.js +1 -6
- package/lib-cjs/component/1d/tool/BaseLineZones.js +6 -3
- package/lib-cjs/component/1d/tool/PeakPointer.js +1 -1
- package/lib-cjs/component/1d/utilities/scale.js +1 -3
- package/lib-cjs/component/1d-2d/tools/BrushXY.js +10 -7
- package/lib-cjs/component/1d-2d/tools/CrossLinePointer.js +1 -1
- package/lib-cjs/component/2d/FooterBanner.js +3 -2
- package/lib-cjs/component/2d/Viewer2D.js +50 -28
- package/lib-cjs/component/2d/XAxis.js +1 -1
- package/lib-cjs/component/2d/YAxis.js +1 -1
- package/lib-cjs/component/2d/zones/Signal.js +1 -2
- package/lib-cjs/component/EventsTrackers/BrushTracker.js +21 -6
- package/lib-cjs/component/NMRium.js +37 -24
- package/lib-cjs/component/assignment/actions/setActiveAssignment.js +1 -1
- package/lib-cjs/component/elements/InputRange.js +1 -1
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +3 -1
- package/lib-cjs/component/elements/popup/Alert/AlertBlock.js +21 -15
- package/lib-cjs/component/elements/popup/Alert/Context.js +6 -2
- package/lib-cjs/component/elements/popup/Alert/Provider.js +2 -2
- package/lib-cjs/component/elements/popup/Modal/Provider.js +3 -1
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +3 -8
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +2 -2
- package/lib-cjs/component/hooks/useExport.js +2 -1
- package/lib-cjs/component/hooks/usePanelPreferences.js +1 -1
- package/lib-cjs/component/modal/AboutSpectrumSimulationModal.js +54 -0
- package/lib-cjs/component/modal/AlignSpectraModal.js +11 -1
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +2 -1
- package/lib-cjs/component/modal/PredictSpectraModal.js +24 -27
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +1 -1
- package/lib-cjs/component/modal/editZone/SignalsForm.js +1 -1
- package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +1 -1
- package/lib-cjs/component/modal/setting/settings-tabs/DisplayTabContent.js +4 -0
- package/lib-cjs/component/modal/setting/settings-tabs/FormattingTabContent.js +1 -1
- package/lib-cjs/component/modal/setting/settingsValidation.js +2 -2
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +4 -7
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +2 -4
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +3 -5
- package/lib-cjs/component/panels/Panels.js +13 -0
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +3 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +1 -1
- package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
- package/lib-cjs/component/panels/extra/utilities/UseToggleStatus.js +1 -1
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib-cjs/component/panels/predictionPanel/PredictionOptionsPanel.js +2 -1
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +3 -2
- package/lib-cjs/component/panels/predictionPanel/PredictionSimpleOptions.js +1 -1
- package/lib-cjs/component/panels/spectrumSimulation/SpectrumSimulation.js +94 -0
- package/lib-cjs/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +42 -0
- package/lib-cjs/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.js +31 -0
- package/lib-cjs/component/panels/spectrumSimulation/SpinSystemTable.js +67 -0
- package/lib-cjs/component/reducer/Reducer.js +251 -239
- package/lib-cjs/component/reducer/actions/AssignmentsActions.js +1 -1
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +2 -1
- package/lib-cjs/component/reducer/actions/DomainActions.js +31 -1
- package/lib-cjs/component/reducer/actions/FiltersActions.js +4 -4
- package/lib-cjs/component/reducer/actions/LoadActions.js +1 -1
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +54 -2
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +43 -3
- package/lib-cjs/component/reducer/actions/ToolsActions.js +2 -2
- package/lib-cjs/component/reducer/actions/ZonesActions.js +1 -1
- package/lib-cjs/component/reducer/preferences/actions/setActiveWorkspace.js +1 -1
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +3 -4
- package/lib-cjs/component/reducer/preferences/preferencesReducer.js +5 -1
- package/lib-cjs/component/reducer/preferences/utilities/flatObject.js +1 -1
- package/lib-cjs/component/utility/export.js +9 -9
- package/lib-cjs/component/utility/getSpectraObjectPaths.js +1 -1
- package/lib-cjs/component/utility/getUniqueNuclei.js +1 -1
- package/lib-cjs/component/utility/jpathToArray.js +1 -1
- package/lib-cjs/component/workspaces/index.js +2 -0
- package/lib-cjs/component/workspaces/simulation.js +71 -0
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib-cjs/data/PredictionManager.js +96 -22
- package/lib-cjs/data/SpectraManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/getReferenceShift.js +5 -4
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -13
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +10 -9
- package/lib-cjs/data/data1d/database.js +3 -3
- package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +1 -1
- package/lib-cjs/data/data1d/spectrumSimulation.js +58 -0
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +7 -1
- package/lib-cjs/data/data2d/Spectrum2D/getMissingProjection.js +6 -6
- package/lib-cjs/data/data2d/Spectrum2D/getShift.js +1 -1
- package/lib-cjs/data/data2d/Spectrum2D/getSlice.js +4 -4
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +5 -5
- package/lib-cjs/data/matrixGeneration.js +1 -1
- package/lib-cjs/data/molecules/MoleculeManager.js +7 -7
- package/lib-cjs/data/parseMeta/linkMetaWithSpectra.js +2 -1
- package/lib-cjs/data/utilities/FindUtilities.js +4 -4
- package/lib-cjs/data/utilities/calculateSanPlot.js +3 -3
- package/lib-cjs/data/utilities/generateNumbersPowerOfX.js +1 -1
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +21 -20
|
@@ -20,9 +20,10 @@ const References_1 = require("../../constants/References");
|
|
|
20
20
|
* @param {string} [options.reference]
|
|
21
21
|
*/
|
|
22
22
|
function getReferenceShift(datum1D, options) {
|
|
23
|
-
|
|
23
|
+
const { reference } = options;
|
|
24
|
+
let { from, to, nbPeaks, targetX } = options;
|
|
24
25
|
if (reference) {
|
|
25
|
-
|
|
26
|
+
const data = (0, References_1.getRange)({ reference, nucleus: datum1D.nucleus });
|
|
26
27
|
from = data.from;
|
|
27
28
|
to = data.to;
|
|
28
29
|
nbPeaks = data.nbPeaks;
|
|
@@ -43,7 +44,7 @@ function xyCalibrate(data, range = {}, options = {}) {
|
|
|
43
44
|
polynomial: 3,
|
|
44
45
|
},
|
|
45
46
|
}, } = options;
|
|
46
|
-
|
|
47
|
+
const { from, to } = range;
|
|
47
48
|
if (from === undefined || to === undefined)
|
|
48
49
|
return 0;
|
|
49
50
|
const fromIndex = (0, ml_spectra_processing_1.xFindClosestIndex)(data.x, from);
|
|
@@ -52,7 +53,7 @@ function xyCalibrate(data, range = {}, options = {}) {
|
|
|
52
53
|
x: data.x.slice(fromIndex, toIndex),
|
|
53
54
|
y: data.y.slice(fromIndex, toIndex),
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
+
const peaks = (0, ml_gsd_1.gsd)(sliceddata, gsdOptions)
|
|
56
57
|
.sort((a, b) => b.y - a.y)
|
|
57
58
|
.slice(0, nbPeaks);
|
|
58
59
|
if (peaks.length === 0)
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.changeIntegralsRelative = void 0;
|
|
4
|
-
function changeIntegralsRelative(spectrum,
|
|
5
|
-
const
|
|
4
|
+
function changeIntegralsRelative(spectrum, data) {
|
|
5
|
+
const { id, value } = data;
|
|
6
|
+
const index = spectrum.integrals.values.findIndex((integral) => integral.id === id);
|
|
6
7
|
if (index !== -1) {
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
8
|
+
const { absolute } = spectrum.integrals.values[index];
|
|
9
|
+
const ratio = absolute / value;
|
|
10
|
+
let sum = 0;
|
|
11
|
+
const integrals = [];
|
|
12
|
+
for (const integralRecord of spectrum.integrals.values) {
|
|
13
|
+
const integral = integralRecord.absolute / ratio;
|
|
14
|
+
sum += integral;
|
|
15
|
+
integrals.push({ ...integralRecord, integral });
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
spectrum.integrals.values = values;
|
|
17
|
+
spectrum.integrals.values = integrals;
|
|
19
18
|
spectrum.integrals.options = {
|
|
20
19
|
...spectrum.integrals.options,
|
|
21
20
|
mf: undefined,
|
|
@@ -9,10 +9,16 @@ exports.changeRangeRelativeValue = void 0;
|
|
|
9
9
|
function changeRangeRelativeValue(spectrum, data) {
|
|
10
10
|
const { id, value } = data;
|
|
11
11
|
const index = spectrum.ranges.values.findIndex((range) => range.id === id);
|
|
12
|
-
if (index !== -1
|
|
13
|
-
const { absolute
|
|
12
|
+
if (index !== -1) {
|
|
13
|
+
const { absolute } = spectrum.ranges.values[index];
|
|
14
14
|
const ratio = absolute / value;
|
|
15
|
-
const
|
|
15
|
+
const ranges = [];
|
|
16
|
+
let sum = 0;
|
|
17
|
+
for (const range of spectrum.ranges.values) {
|
|
18
|
+
const integration = range.absolute / ratio;
|
|
19
|
+
sum += integration;
|
|
20
|
+
ranges.push({ ...range, integration });
|
|
21
|
+
}
|
|
16
22
|
spectrum.ranges.options = {
|
|
17
23
|
...spectrum.ranges.options,
|
|
18
24
|
mf: undefined,
|
|
@@ -20,12 +26,7 @@ function changeRangeRelativeValue(spectrum, data) {
|
|
|
20
26
|
sumAuto: false,
|
|
21
27
|
sum,
|
|
22
28
|
};
|
|
23
|
-
spectrum.ranges.values =
|
|
24
|
-
return {
|
|
25
|
-
...range,
|
|
26
|
-
integration: range.absolute / ratio,
|
|
27
|
-
};
|
|
28
|
-
});
|
|
29
|
+
spectrum.ranges.values = ranges;
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
exports.changeRangeRelativeValue = changeRangeRelativeValue;
|
|
@@ -50,8 +50,8 @@ function prepareGetSolvents(data) {
|
|
|
50
50
|
// });
|
|
51
51
|
// }
|
|
52
52
|
function prepareMoleculesDB(array) {
|
|
53
|
-
|
|
54
|
-
for (
|
|
53
|
+
const moleculesDB = new openchemlib_utils_1.MoleculesDB(full_1.default);
|
|
54
|
+
for (const entry of array) {
|
|
55
55
|
if (entry.ocl) {
|
|
56
56
|
try {
|
|
57
57
|
const molecule = full_1.default.Molecule.fromIDCode(entry.ocl.idCode, entry.ocl.coordinates);
|
|
@@ -91,7 +91,7 @@ function prepareData(data) {
|
|
|
91
91
|
const result = [];
|
|
92
92
|
let index = 0;
|
|
93
93
|
for (const item of data) {
|
|
94
|
-
|
|
94
|
+
const ids = [];
|
|
95
95
|
const { ranges, ...restItemKeys } = item;
|
|
96
96
|
if (!ranges) {
|
|
97
97
|
ids.push((0, uuid_1.v4)());
|
|
@@ -87,7 +87,7 @@ function analyzeSpectra(spectraAnalysis, options) {
|
|
|
87
87
|
}
|
|
88
88
|
exports.analyzeSpectra = analyzeSpectra;
|
|
89
89
|
function generateAnalyzeSpectra(multipleSpectraAnalysis, spectra, nucleus) {
|
|
90
|
-
|
|
90
|
+
const data = {};
|
|
91
91
|
const { sum, columns, code } = multipleSpectraAnalysis.analysisOptions;
|
|
92
92
|
for (const columnKey in columns) {
|
|
93
93
|
const { from, to } = columns[columnKey];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.simulateSpectrum = exports.getSpinSystems = exports.defaultSimulationOptions = void 0;
|
|
4
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
5
|
+
exports.defaultSimulationOptions = {
|
|
6
|
+
data: [],
|
|
7
|
+
options: {
|
|
8
|
+
frequency: 200,
|
|
9
|
+
from: -1,
|
|
10
|
+
to: 12,
|
|
11
|
+
nbPoints: 2 ** 16,
|
|
12
|
+
lineWidth: 1,
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
function getSpinSystems() {
|
|
16
|
+
const spinSystem = [];
|
|
17
|
+
let temp = 'A';
|
|
18
|
+
for (let i = 66; i <= 72; i++) {
|
|
19
|
+
temp += String.fromCodePoint(i);
|
|
20
|
+
spinSystem.push(temp);
|
|
21
|
+
}
|
|
22
|
+
return spinSystem;
|
|
23
|
+
}
|
|
24
|
+
exports.getSpinSystems = getSpinSystems;
|
|
25
|
+
function simulateSpectrum(spinSystem, options) {
|
|
26
|
+
const spinsLength = spinSystem.length;
|
|
27
|
+
const chemicalShifts = new Array(spinsLength);
|
|
28
|
+
const multiplicity = new Array(spinsLength);
|
|
29
|
+
const { data: spinsData, options: simulateOptions } = options;
|
|
30
|
+
for (let i = 0; i < spinsLength; i++) {
|
|
31
|
+
chemicalShifts[i] = spinsData[i][0];
|
|
32
|
+
multiplicity[i] = 2;
|
|
33
|
+
}
|
|
34
|
+
const chemicalShiftsLength = chemicalShifts.length;
|
|
35
|
+
const couplingConstants = new Array(chemicalShiftsLength);
|
|
36
|
+
for (let i = 0; i < chemicalShiftsLength; i++) {
|
|
37
|
+
couplingConstants[i] = new Array(chemicalShiftsLength);
|
|
38
|
+
for (let j = 0; j < chemicalShiftsLength; j++) {
|
|
39
|
+
couplingConstants[i][j] = 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
for (let i = 0; i < spinsData.length; i++) {
|
|
43
|
+
for (let j = 1; j < chemicalShiftsLength; j++) {
|
|
44
|
+
const couplingVal = spinsData[i][j];
|
|
45
|
+
const jIndex = j - 1;
|
|
46
|
+
if (couplingVal !== null) {
|
|
47
|
+
couplingConstants[i][jIndex] = couplingVal;
|
|
48
|
+
couplingConstants[jIndex][i] = couplingVal;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return (0, nmr_processing_1.simulate1D)({
|
|
53
|
+
chemicalShifts,
|
|
54
|
+
couplingConstants,
|
|
55
|
+
levels: multiplicity,
|
|
56
|
+
}, simulateOptions);
|
|
57
|
+
}
|
|
58
|
+
exports.simulateSpectrum = simulateSpectrum;
|
|
@@ -39,7 +39,7 @@ function contoursManager(spectrumID, state, options) {
|
|
|
39
39
|
}
|
|
40
40
|
exports.contoursManager = contoursManager;
|
|
41
41
|
function prepareWheel(value, options) {
|
|
42
|
-
|
|
42
|
+
const { shiftKey, currentLevel, contourOptions } = options;
|
|
43
43
|
const sign = Math.sign(value);
|
|
44
44
|
const positiveBoundary = contourOptions.positive.contourLevels;
|
|
45
45
|
const negativeBoundary = contourOptions.negative.contourLevels;
|
|
@@ -130,6 +130,12 @@ function getContours(zoomLevel, options) {
|
|
|
130
130
|
if (negative) {
|
|
131
131
|
_range = _range.map((value) => -value);
|
|
132
132
|
}
|
|
133
|
+
if (_range.every((r) => r === 0)) {
|
|
134
|
+
return {
|
|
135
|
+
contours: _range.map((r) => ({ zValue: r, lines: [] })),
|
|
136
|
+
timeout: false,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
133
139
|
return conrec.drawContour({
|
|
134
140
|
contourDrawer: 'basic',
|
|
135
141
|
levels: _range,
|
|
@@ -11,16 +11,16 @@ function getMissingProjection(datum, nucleus, datumInfo, usedColors) {
|
|
|
11
11
|
// temporary because nucleus was undefined;
|
|
12
12
|
if (index === -1)
|
|
13
13
|
index = 0;
|
|
14
|
-
|
|
14
|
+
const info = {
|
|
15
15
|
nucleus: datumInfo.nucleus[index],
|
|
16
16
|
isFid: false,
|
|
17
17
|
isComplex: false,
|
|
18
18
|
dimension: 1,
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const from = index === 0 ? datum.minX : datum.minY;
|
|
21
|
+
const to = index === 0 ? datum.maxX : datum.maxY;
|
|
22
|
+
const nbPoints = index === 0 ? datum.z[0].length : datum.z.length;
|
|
23
|
+
const projection = new Float64Array(nbPoints);
|
|
24
24
|
if (index === 1) {
|
|
25
25
|
for (let i = 0; i < datum.z.length; i++) {
|
|
26
26
|
for (let j = 0; j < datum.z[0].length; j++) {
|
|
@@ -35,7 +35,7 @@ function getMissingProjection(datum, nucleus, datumInfo, usedColors) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
const data = {
|
|
39
39
|
x: (0, ml_spectra_processing_1.zoneToX)({ from, to }, nbPoints),
|
|
40
40
|
re: projection,
|
|
41
41
|
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getShift = void 0;
|
|
4
4
|
const nmr_processing_1 = require("nmr-processing");
|
|
5
5
|
function getShift(spectrum) {
|
|
6
|
-
|
|
6
|
+
const shift = { x: 0, y: 0 };
|
|
7
7
|
if (spectrum?.filters) {
|
|
8
8
|
for (const filter of spectrum.filters) {
|
|
9
9
|
if (filter.name === nmr_processing_1.Filters.shift2DX.id) {
|
|
@@ -16,26 +16,26 @@ function getSlice(spectrum, position) {
|
|
|
16
16
|
return;
|
|
17
17
|
if (yIndex < 0 || yIndex >= data.z.length)
|
|
18
18
|
return;
|
|
19
|
-
|
|
19
|
+
const infoX = {
|
|
20
20
|
nucleus: info.nucleus[0],
|
|
21
21
|
isFid: false,
|
|
22
22
|
isComplex: false,
|
|
23
23
|
dimension: 1,
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
const dataX = {
|
|
26
26
|
x: (0, ml_spectra_processing_1.zoneToX)({ from: data.minX, to: data.maxX }, data.z[0].length),
|
|
27
27
|
re: new Float64Array(data.z[0].length),
|
|
28
28
|
};
|
|
29
29
|
for (let i = 0; i < data.z[0].length; i++) {
|
|
30
30
|
dataX.re[i] += data.z[yIndex][i];
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
const infoY = {
|
|
33
33
|
nucleus: info.nucleus[1],
|
|
34
34
|
isFid: false,
|
|
35
35
|
isComplex: false,
|
|
36
36
|
dimension: 1,
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
const dataY = {
|
|
39
39
|
x: (0, ml_spectra_processing_1.zoneToX)({ from: data.minY, to: data.maxY }, data.z.length),
|
|
40
40
|
re: new Float64Array(data.z.length),
|
|
41
41
|
};
|
|
@@ -32,7 +32,7 @@ exports.getDetectionZones = getDetectionZones;
|
|
|
32
32
|
function autoZonesDetection(data, options) {
|
|
33
33
|
const { clean, tolerances, thresholdFactor, maxPercentCutOff, convolutionByFFT, info: { nucleus: nuclei, originFrequency }, } = options;
|
|
34
34
|
const { enhanceSymmetry = nuclei[0] === nuclei[1] } = options;
|
|
35
|
-
|
|
35
|
+
const zones = (0, nmr_processing_1.xyzAutoZonesPicking)(data, {
|
|
36
36
|
nuclei,
|
|
37
37
|
tolerances,
|
|
38
38
|
observedFrequencies: originFrequency,
|
|
@@ -58,7 +58,7 @@ function getSubMatrix(datum, selectedZone) {
|
|
|
58
58
|
[xIndexFrom, xIndexTo] = [xIndexTo, xIndexFrom];
|
|
59
59
|
if (yIndexFrom > yIndexTo)
|
|
60
60
|
[yIndexFrom, yIndexTo] = [yIndexTo, yIndexFrom];
|
|
61
|
-
|
|
61
|
+
const dataMatrix = {
|
|
62
62
|
z: [],
|
|
63
63
|
maxX: data.minX + xIndexTo * xStep,
|
|
64
64
|
minX: data.minX + xIndexFrom * xStep,
|
|
@@ -67,14 +67,14 @@ function getSubMatrix(datum, selectedZone) {
|
|
|
67
67
|
};
|
|
68
68
|
let maxZ = Number.MIN_SAFE_INTEGER;
|
|
69
69
|
let minZ = Number.MAX_SAFE_INTEGER;
|
|
70
|
-
|
|
70
|
+
const nbXPoints = xIndexTo - xIndexFrom + 1;
|
|
71
71
|
for (let j = yIndexFrom; j < yIndexTo; j++) {
|
|
72
|
-
|
|
72
|
+
const row = new Float32Array(nbXPoints);
|
|
73
73
|
let xIndex = xIndexFrom;
|
|
74
74
|
for (let i = 0; i < nbXPoints; i++) {
|
|
75
75
|
row[i] = data.z[j][xIndex++];
|
|
76
76
|
}
|
|
77
|
-
for (
|
|
77
|
+
for (const rowValue of row) {
|
|
78
78
|
if (maxZ < rowValue)
|
|
79
79
|
maxZ = rowValue;
|
|
80
80
|
if (minZ > rowValue)
|
|
@@ -20,7 +20,7 @@ function isLeave(fieldOptions) {
|
|
|
20
20
|
function flattenFields(filterName, data, properties, keysPath, parentObject, level) {
|
|
21
21
|
for (const fieldKey in data) {
|
|
22
22
|
let _keysPath = [];
|
|
23
|
-
|
|
23
|
+
const _keysPathObject = parentObject || null;
|
|
24
24
|
let _level = level || 0;
|
|
25
25
|
if (keysPath) {
|
|
26
26
|
_keysPath = _keysPath.concat(keysPath);
|
|
@@ -9,7 +9,7 @@ function fromJSON(mols, reservedMolecules = []) {
|
|
|
9
9
|
for (const mol of mols) {
|
|
10
10
|
const molecule = full_1.Molecule.fromMolfile(mol.molfile);
|
|
11
11
|
const fragments = molecule.getFragments();
|
|
12
|
-
for (
|
|
12
|
+
for (const fragment of fragments) {
|
|
13
13
|
molecules.push((0, Molecule_1.initMolecule)({
|
|
14
14
|
molfile: fragment.toMolfileV3(),
|
|
15
15
|
label: mol.label || `P${getLabelNumber(reservedNumbers)}`,
|
|
@@ -25,8 +25,8 @@ function addMolfile(molecules, molfile) {
|
|
|
25
25
|
// try to parse molfile
|
|
26
26
|
// this will throw if the molecule can not be parsed !
|
|
27
27
|
const molecule = full_1.Molecule.fromMolfile(molfile);
|
|
28
|
-
|
|
29
|
-
for (
|
|
28
|
+
const fragments = molecule.getFragments();
|
|
29
|
+
for (const fragment of fragments) {
|
|
30
30
|
molecules.push((0, Molecule_1.initMolecule)({
|
|
31
31
|
molfile: fragment.toMolfileV3(),
|
|
32
32
|
label: `P${getLabelNumber(reservedNumbers)}`,
|
|
@@ -40,11 +40,11 @@ function setMolfile(molecules, currentMolecule) {
|
|
|
40
40
|
const reservedNumbers = extractLabelsNumbers(molecules);
|
|
41
41
|
// try to parse molfile
|
|
42
42
|
// this will throw if the molecule can not be parsed !
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
const molecule = full_1.Molecule.fromMolfile(molfile);
|
|
44
|
+
const fragments = molecule.getFragments();
|
|
45
45
|
if (fragments.length > 1) {
|
|
46
46
|
molecules = molecules.filter((m) => m.id !== id);
|
|
47
|
-
for (
|
|
47
|
+
for (const fragment of fragments) {
|
|
48
48
|
molecules.push((0, Molecule_1.initMolecule)({
|
|
49
49
|
molfile: fragment.toMolfileV3(),
|
|
50
50
|
label: `P${getLabelNumber(reservedNumbers)}`,
|
|
@@ -58,7 +58,7 @@ function setMolfile(molecules, currentMolecule) {
|
|
|
58
58
|
id,
|
|
59
59
|
label,
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
const molIndex = molecules.findIndex((m) => m.id === id);
|
|
62
62
|
molecules.splice(molIndex, 1, _mol);
|
|
63
63
|
}
|
|
64
64
|
// we will split if we have many fragments
|
|
@@ -7,7 +7,8 @@ exports.SourcePathError = exports.TargetPathError = exports.AutomaticPathsMatche
|
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
8
|
const prepareKey_1 = require("./prepareKey");
|
|
9
9
|
function linkMetaWithSpectra(options) {
|
|
10
|
-
|
|
10
|
+
const { autolink = false, parseMetaFileResult, spectra } = options;
|
|
11
|
+
let { source, target } = options;
|
|
11
12
|
const targetValues = {};
|
|
12
13
|
const { data, meta: { fields = [] }, } = parseMetaFileResult;
|
|
13
14
|
if (!autolink) {
|
|
@@ -10,7 +10,7 @@ function findSpectrum(spectraData, spectrumID, checkIsVisible) {
|
|
|
10
10
|
}
|
|
11
11
|
exports.findSpectrum = findSpectrum;
|
|
12
12
|
function findSignal1D(spectrum, signalID) {
|
|
13
|
-
for (
|
|
13
|
+
for (const range of spectrum.ranges.values) {
|
|
14
14
|
const signalIndex = range.signals.findIndex((_signal) => _signal.id === signalID);
|
|
15
15
|
if (signalIndex >= 0) {
|
|
16
16
|
return range.signals[signalIndex];
|
|
@@ -19,7 +19,7 @@ function findSignal1D(spectrum, signalID) {
|
|
|
19
19
|
}
|
|
20
20
|
exports.findSignal1D = findSignal1D;
|
|
21
21
|
function findSignal2D(spectrum, signalID) {
|
|
22
|
-
for (
|
|
22
|
+
for (const zone of spectrum.zones.values) {
|
|
23
23
|
const signalIndex = zone.signals.findIndex((_signal) => _signal.id === signalID);
|
|
24
24
|
if (signalIndex >= 0) {
|
|
25
25
|
return zone.signals[signalIndex];
|
|
@@ -28,7 +28,7 @@ function findSignal2D(spectrum, signalID) {
|
|
|
28
28
|
}
|
|
29
29
|
exports.findSignal2D = findSignal2D;
|
|
30
30
|
function findRange(spectrum, signalID) {
|
|
31
|
-
for (
|
|
31
|
+
for (const range of spectrum.ranges.values) {
|
|
32
32
|
const signalIndex = range.signals.findIndex((_signal) => _signal.id === signalID);
|
|
33
33
|
if (signalIndex >= 0) {
|
|
34
34
|
return range;
|
|
@@ -37,7 +37,7 @@ function findRange(spectrum, signalID) {
|
|
|
37
37
|
}
|
|
38
38
|
exports.findRange = findRange;
|
|
39
39
|
function findZone(spectrum, signalID) {
|
|
40
|
-
for (
|
|
40
|
+
for (const zone of spectrum.zones.values) {
|
|
41
41
|
const signalIndex = zone.signals.findIndex((_signal) => _signal.id === signalID);
|
|
42
42
|
if (signalIndex >= 0) {
|
|
43
43
|
return zone;
|
|
@@ -20,9 +20,9 @@ function prepare1DData(data) {
|
|
|
20
20
|
return array;
|
|
21
21
|
}
|
|
22
22
|
function prepare2DData(data) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const cols = data.z[0].length;
|
|
24
|
+
const rows = data.z.length;
|
|
25
|
+
const jump = Math.floor((cols * rows) / 204800) || 1;
|
|
26
26
|
const array = new Float64Array(((cols * rows) / jump) >> 0);
|
|
27
27
|
let index = 0;
|
|
28
28
|
for (let r = 0; r < rows; r += 1) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
function generateNumbersPowerOfX(start, end, options) {
|
|
4
4
|
const { power = 2, format = formatNumber } = options || {};
|
|
5
|
-
|
|
5
|
+
const values = [];
|
|
6
6
|
for (let i = start; i <= end; i++) {
|
|
7
7
|
const result = power ** i;
|
|
8
8
|
values.push({
|
package/lib-cjs/versionInfo.js
CHANGED
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.41.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib-cjs/component/NMRium.js",
|
|
7
7
|
"module": "lib/component/NMRium.js",
|
|
@@ -81,16 +81,17 @@
|
|
|
81
81
|
"ml-baseline-correction-regression": "^1.0.2",
|
|
82
82
|
"ml-conrec": "^5.0.2",
|
|
83
83
|
"ml-gsd": "^12.1.3",
|
|
84
|
+
"ml-matrix": "^6.10.4",
|
|
84
85
|
"ml-spectra-processing": "^12.5.0",
|
|
85
86
|
"ml-stat": "^1.3.3",
|
|
86
|
-
"multiplet-analysis": "^2.1.
|
|
87
|
+
"multiplet-analysis": "^2.1.2",
|
|
87
88
|
"nmr-correlation": "^2.3.3",
|
|
88
|
-
"nmr-load-save": "^0.
|
|
89
|
-
"nmr-processing": "^9.7.
|
|
89
|
+
"nmr-load-save": "^0.14.1",
|
|
90
|
+
"nmr-processing": "^9.7.8",
|
|
90
91
|
"nmredata": "^0.9.2",
|
|
91
92
|
"numeral": "^2.0.6",
|
|
92
93
|
"openchemlib": "^8.3.0",
|
|
93
|
-
"openchemlib-utils": "^2.
|
|
94
|
+
"openchemlib-utils": "^2.7.1",
|
|
94
95
|
"papaparse": "^5.4.1",
|
|
95
96
|
"re-resizable": "^6.9.9",
|
|
96
97
|
"react-d3-utils": "^1.0.0",
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
"react-ocl-nmr": "^2.0.0",
|
|
104
105
|
"react-plot": "^1.4.2",
|
|
105
106
|
"react-rnd": "^10.4.1",
|
|
106
|
-
"react-science": "^0.24.
|
|
107
|
+
"react-science": "^0.24.3",
|
|
107
108
|
"react-slider": "^2.0.6",
|
|
108
109
|
"react-table": "^7.8.0",
|
|
109
110
|
"react-transition-group": "^4.4.5",
|
|
@@ -115,35 +116,35 @@
|
|
|
115
116
|
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
|
|
116
117
|
"@babel/preset-react": "^7.22.5",
|
|
117
118
|
"@babel/preset-typescript": "^7.22.5",
|
|
118
|
-
"@playwright/test": "^1.
|
|
119
|
+
"@playwright/test": "^1.36.1",
|
|
119
120
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
120
121
|
"@types/d3": "^7.4.0",
|
|
121
|
-
"@types/node": "^20.4.
|
|
122
|
+
"@types/node": "^20.4.2",
|
|
122
123
|
"@types/papaparse": "^5.3.7",
|
|
123
|
-
"@types/react": "^18.2.
|
|
124
|
-
"@types/react-dom": "^18.2.
|
|
124
|
+
"@types/react": "^18.2.15",
|
|
125
|
+
"@types/react-dom": "^18.2.7",
|
|
125
126
|
"@types/react-table": "^7.7.14",
|
|
126
127
|
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
127
|
-
"@vitest/coverage-v8": "^0.
|
|
128
|
+
"@vitest/coverage-v8": "^0.33.0",
|
|
128
129
|
"cross-env": "^7.0.3",
|
|
129
|
-
"cspell": "^6.31.
|
|
130
|
-
"eslint": "^8.
|
|
131
|
-
"eslint-config-cheminfo-react": "^
|
|
132
|
-
"eslint-config-cheminfo-typescript": "^
|
|
130
|
+
"cspell": "^6.31.2",
|
|
131
|
+
"eslint": "^8.45.0",
|
|
132
|
+
"eslint-config-cheminfo-react": "^10.0.0",
|
|
133
|
+
"eslint-config-cheminfo-typescript": "^12.0.3",
|
|
133
134
|
"modern-normalize": "^2.0.0",
|
|
134
135
|
"postcss-styled-syntax": "^0.4.0",
|
|
135
|
-
"prettier": "^
|
|
136
|
+
"prettier": "^3.0.0",
|
|
136
137
|
"rc-menu": "^9.11.0",
|
|
137
138
|
"react": "^18.2.0",
|
|
138
139
|
"react-dom": "^18.2.0",
|
|
139
|
-
"react-router-dom": "^6.14.
|
|
140
|
+
"react-router-dom": "^6.14.2",
|
|
140
141
|
"rimraf": "^5.0.1",
|
|
141
142
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
142
143
|
"serve": "^14.2.0",
|
|
143
|
-
"stylelint": "^15.10.
|
|
144
|
+
"stylelint": "^15.10.2",
|
|
144
145
|
"stylelint-config-standard": "^34.0.0",
|
|
145
146
|
"typescript": "~5.1.6",
|
|
146
|
-
"vite": "^4.
|
|
147
|
-
"vitest": "^0.
|
|
147
|
+
"vite": "^4.4.4",
|
|
148
|
+
"vitest": "^0.33.0"
|
|
148
149
|
}
|
|
149
150
|
}
|