nmrium 0.20.2 → 0.21.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/EventsTrackers/KeysListenerTracker.js +98 -81
- package/lib/component/NMRium.d.ts +7 -2
- package/lib/component/NMRium.js +9 -9
- package/lib/component/header/Header.js +10 -3
- package/lib/component/hooks/useCheckExperimentalFeature.js +2 -1
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +1 -0
- package/lib/component/hooks/useCheckToolsVisibility.js +6 -0
- package/lib/component/hooks/useToolsFunctions.js +2 -1
- package/lib/component/loader/DropZone.js +87 -87
- package/lib/component/modal/changeSum/ChangeSumModal.js +4 -2
- package/lib/component/modal/setting/DisplayTabContent.js +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +1 -5
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +0 -3
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +4 -17
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +0 -3
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +5 -14
- package/lib/component/panels/RangesPanel/RangesPanel.js +0 -3
- package/lib/component/panels/RangesPanel/RangesPreferences.js +5 -18
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +13 -3
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +0 -3
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +5 -18
- package/lib/component/panels/databasePanel/DatabasePanel.js +0 -3
- package/lib/component/panels/databasePanel/DatabasePreferences.js +4 -17
- package/lib/component/reducer/actions/ToolsActions.js +12 -29
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -0
- package/lib/component/reducer/helper/ZoomHistoryManager.js +2 -1
- package/lib/component/reducer/preferencesReducer.d.ts +2 -0
- package/lib/component/reducer/preferencesReducer.js +76 -36
- package/lib/component/toolbar/FunctionToolBar.js +7 -10
- package/lib/component/toolbar/ToolTypes.js +3 -3
- package/lib/component/workspaces/Workspace.d.ts +6 -0
- package/lib/component/workspaces/Workspace.js +1 -0
- package/lib/component/workspaces/basic.d.ts +2 -0
- package/lib/component/workspaces/basic.js +45 -0
- package/lib/component/workspaces/exercise1D.d.ts +2 -0
- package/lib/component/workspaces/exercise1D.js +45 -0
- package/lib/component/workspaces/index.d.ts +6 -0
- package/lib/component/workspaces/index.js +4 -0
- package/lib/component/workspaces/process1D.d.ts +2 -0
- package/lib/component/workspaces/process1D.js +43 -0
- package/lib/data/migration/MigrationManager.js +3 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +98 -81
- package/lib-cjs/component/NMRium.js +10 -10
- package/lib-cjs/component/header/Header.js +10 -3
- package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +5 -1
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +13 -0
- package/lib-cjs/component/hooks/useToolsFunctions.js +2 -1
- package/lib-cjs/component/loader/DropZone.js +87 -87
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +4 -2
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +1 -1
- package/lib-cjs/component/modal/setting/GeneralSettings.js +1 -5
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +0 -3
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +3 -16
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +1 -1
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +0 -3
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +4 -13
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +0 -3
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +4 -17
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +13 -3
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +0 -3
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +4 -17
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +0 -3
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +3 -16
- package/lib-cjs/component/reducer/actions/ToolsActions.js +12 -29
- package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +2 -1
- package/lib-cjs/component/reducer/preferencesReducer.js +75 -35
- package/lib-cjs/component/toolbar/FunctionToolBar.js +7 -10
- package/lib-cjs/component/toolbar/ToolTypes.js +3 -3
- package/lib-cjs/component/workspaces/Workspace.js +2 -0
- package/lib-cjs/component/workspaces/basic.js +48 -0
- package/lib-cjs/component/workspaces/exercise1D.js +48 -0
- package/lib-cjs/component/workspaces/index.js +6 -0
- package/lib-cjs/component/workspaces/process1D.js +46 -0
- package/lib-cjs/data/migration/MigrationManager.js +3 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +1 -1
- package/lib/component/nmriumMode/basic.d.ts +0 -38
- package/lib/component/nmriumMode/basic.js +0 -37
- package/lib/component/nmriumMode/exercise1D.d.ts +0 -38
- package/lib/component/nmriumMode/exercise1D.js +0 -37
- package/lib/component/nmriumMode/process1D.d.ts +0 -38
- package/lib/component/nmriumMode/process1D.js +0 -37
- package/lib-cjs/component/nmriumMode/basic.js +0 -39
- package/lib-cjs/component/nmriumMode/exercise1D.js +0 -39
- package/lib-cjs/component/nmriumMode/process1D.js +0 -39
|
@@ -25,15 +25,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
26
|
const analysis_ui_components_1 = require("analysis-ui-components");
|
|
27
27
|
const cheminfo_font_1 = require("cheminfo-font");
|
|
28
|
-
const get_1 = __importDefault(require("lodash/get"));
|
|
29
28
|
const react_1 = require("react");
|
|
30
29
|
const fa_1 = require("react-icons/fa");
|
|
31
30
|
const Filters = __importStar(require("../../data/Filters"));
|
|
32
31
|
const ChartContext_1 = require("../context/ChartContext");
|
|
33
32
|
const DispatchContext_1 = require("../context/DispatchContext");
|
|
34
|
-
const PreferencesContext_1 = require("../context/PreferencesContext");
|
|
35
33
|
const ToggleButton_1 = __importDefault(require("../elements/toggle/ToggleButton"));
|
|
36
34
|
const ToggleButtonGroup_1 = __importDefault(require("../elements/toggle/ToggleButtonGroup"));
|
|
35
|
+
const useCheckToolsVisibility_1 = require("../hooks/useCheckToolsVisibility");
|
|
37
36
|
const useDatumWithSpectraStatistics_1 = __importDefault(require("../hooks/useDatumWithSpectraStatistics"));
|
|
38
37
|
const useToolsFunctions_1 = __importDefault(require("../hooks/useToolsFunctions"));
|
|
39
38
|
const Constants_1 = require("../reducer/core/Constants");
|
|
@@ -41,7 +40,7 @@ const Types_1 = require("../reducer/types/Types");
|
|
|
41
40
|
const ToolTypes_1 = require("./ToolTypes");
|
|
42
41
|
function FunctionToolBarInner({ defaultValue, activeSpectrum, info, datum, displayerMode, ftCounter, mode, }) {
|
|
43
42
|
const [option, setOption] = (0, react_1.useState)('');
|
|
44
|
-
const
|
|
43
|
+
const isButtonVisible = (0, useCheckToolsVisibility_1.useCheckToolsVisibility)();
|
|
45
44
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
46
45
|
const { handleChangeOption, handleFullZoomOut } = (0, useToolsFunctions_1.default)();
|
|
47
46
|
const handleChange = (0, react_1.useCallback)((selectedOption) => {
|
|
@@ -58,25 +57,23 @@ function FunctionToolBarInner({ defaultValue, activeSpectrum, info, datum, displ
|
|
|
58
57
|
});
|
|
59
58
|
dispatch({ type: Types_1.SET_SELECTED_FILTER, selectedFilter: null });
|
|
60
59
|
}, [dispatch]);
|
|
61
|
-
const isButtonVisible = (0, react_1.useCallback)((toolKey) => {
|
|
62
|
-
return !(0, get_1.default)(preferences, `display.toolBarButtons.${toolKey}`);
|
|
63
|
-
}, [preferences]);
|
|
64
60
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(ToggleButtonGroup_1.default, { value: option, onChange: handleChange, children: [isButtonVisible('hideZoomTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.zoom.id, id: "zoomIn", title: `${ToolTypes_1.options.zoom.label} ( Press z )`, children: (0, jsx_runtime_1.jsx)("div", { style: { fontSize: 14 }, children: (0, jsx_runtime_1.jsx)(fa_1.FaSearchPlus, {}, void 0) }, void 0) }, ToolTypes_1.options.zoom.id)), isButtonVisible('hideZoomOutTool') && ((0, jsx_runtime_1.jsx)(analysis_ui_components_1.Toolbar.Item, { id: "zoom-out", onClick: handleFullZoomOut, title: "Horizontal zoom out ( Press f ), Horizontal and Vertical zoom out, double click ( Press ff )", children: (0, jsx_runtime_1.jsx)("div", { style: { fontSize: 14 }, children: (0, jsx_runtime_1.jsx)(fa_1.FaExpand, {}, void 0) }, void 0) }, void 0)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
65
61
|
isButtonVisible('hidePeakTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.peakPicking.id, title: `${ToolTypes_1.options.peakPicking.label} ( Press p )`, isVisible: activeSpectrum && !info?.isFid ? true : false, id: "peakPicking", children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrPeakPicking, {}, void 0) }, ToolTypes_1.options.peakPicking.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
66
62
|
isButtonVisible('hideIntegralTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.integral.id, isVisible: activeSpectrum && !info?.isFid ? true : false, id: "integralPicking", title: `${ToolTypes_1.options.integral.label} ( Press i )`, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrIntegrate, {}, void 0) }, ToolTypes_1.options.integral.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_2D &&
|
|
67
|
-
isButtonVisible('
|
|
68
|
-
isButtonVisible('
|
|
63
|
+
isButtonVisible('hideZonePickingTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.zone2D.id, id: "zone2d", isVisible: activeSpectrum && !info?.isFid ? true : false, title: `${ToolTypes_1.options.zone2D.label} ( Press r )`, children: (0, jsx_runtime_1.jsx)(fa_1.FaDiceFour, {}, void 0) }, ToolTypes_1.options.zone2D.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_2D &&
|
|
64
|
+
isButtonVisible('hideSlicingTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.slicingTool.id, isVisible: activeSpectrum && !info?.isFid ? true : false, id: "slic", title: `${ToolTypes_1.options.slicingTool.label}`, children: (0, jsx_runtime_1.jsx)("p", { children: "Slic" }, void 0) }, ToolTypes_1.options.slicingTool.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
65
|
+
isButtonVisible('hideAutoRangesTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.rangesPicking.id, isVisible: activeSpectrum && !info?.isFid ? true : false, title: `${ToolTypes_1.options.rangesPicking.label} ( Press r )`, id: "ranges-pick", children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrRangePicking, {}, void 0) }, ToolTypes_1.options.rangesPicking.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
69
66
|
isButtonVisible('hideMultipleSpectraAnalysisTool') &&
|
|
70
67
|
ftCounter > 1 &&
|
|
71
68
|
mode === 'RTL' && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.multipleSpectraAnalysis.id, id: "multipleSpectraAnalysis", title: ToolTypes_1.options.multipleSpectraAnalysis.label, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrMultipleAnalysis, {}, void 0) }, ToolTypes_1.options.multipleSpectraAnalysis.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
72
69
|
isButtonVisible('hideZeroFillingTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.zeroFilling.id, isVisible: Filters.zeroFilling.isApplicable({ info }), id: "zeroFilling", title: ToolTypes_1.options.zeroFilling.label, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrZeroFilling, {}, void 0) }, ToolTypes_1.options.zeroFilling.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
73
|
-
isButtonVisible('hidePhaseCorrectionTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.phaseCorrection.id, id: "phaseCorrection", title: ToolTypes_1.options.phaseCorrection.label
|
|
70
|
+
isButtonVisible('hidePhaseCorrectionTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.phaseCorrection.id, id: "phaseCorrection", title: `${ToolTypes_1.options.phaseCorrection.label} ( Press a )`, isVisible: activeSpectrum &&
|
|
74
71
|
info &&
|
|
75
72
|
Filters.phaseCorrection.isApplicable({ info }) &&
|
|
76
73
|
datum.im
|
|
77
74
|
? true
|
|
78
75
|
: false, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrPhaseCorrection, {}, void 0) }, ToolTypes_1.options.phaseCorrection.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
79
|
-
isButtonVisible('hideBaseLineCorrectionTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.baseLineCorrection.id, id: "baseLineCorrection", title: ToolTypes_1.options.baseLineCorrection.label
|
|
76
|
+
isButtonVisible('hideBaseLineCorrectionTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.baseLineCorrection.id, id: "baseLineCorrection", title: `${ToolTypes_1.options.baseLineCorrection.label} ( Press b )`, isVisible: activeSpectrum &&
|
|
80
77
|
info &&
|
|
81
78
|
Filters.baselineCorrection.isApplicable({ info })
|
|
82
79
|
? true
|
|
@@ -66,7 +66,7 @@ exports.options = {
|
|
|
66
66
|
},
|
|
67
67
|
rangesPicking: {
|
|
68
68
|
id: 'rangesPicking',
|
|
69
|
-
label: 'Ranges Picking
|
|
69
|
+
label: 'Ranges Picking',
|
|
70
70
|
hasOptionPanel: true,
|
|
71
71
|
isFilter: false,
|
|
72
72
|
},
|
|
@@ -78,13 +78,13 @@ exports.options = {
|
|
|
78
78
|
},
|
|
79
79
|
phaseCorrection: {
|
|
80
80
|
id: Filters.phaseCorrection.id,
|
|
81
|
-
label:
|
|
81
|
+
label: Filters.phaseCorrection.name,
|
|
82
82
|
hasOptionPanel: true,
|
|
83
83
|
isFilter: true,
|
|
84
84
|
},
|
|
85
85
|
baseLineCorrection: {
|
|
86
86
|
id: 'baseLineCorrection',
|
|
87
|
-
label: 'baseline correction
|
|
87
|
+
label: 'baseline correction',
|
|
88
88
|
hasOptionPanel: true,
|
|
89
89
|
isFilter: true,
|
|
90
90
|
},
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.basic = void 0;
|
|
4
|
+
exports.basic = {
|
|
5
|
+
version: 1,
|
|
6
|
+
label: 'Default Mode',
|
|
7
|
+
display: {
|
|
8
|
+
general: {
|
|
9
|
+
disableMultipletAnalysis: false,
|
|
10
|
+
hideSetSumFromMolecule: false,
|
|
11
|
+
hideGeneralSettings: false,
|
|
12
|
+
hideExperimentalFeatures: false,
|
|
13
|
+
},
|
|
14
|
+
panels: {
|
|
15
|
+
hideSpectraPanel: false,
|
|
16
|
+
hideInformationPanel: false,
|
|
17
|
+
hidePeaksPanel: false,
|
|
18
|
+
hideIntegralsPanel: false,
|
|
19
|
+
hideRangesPanel: false,
|
|
20
|
+
hideStructuresPanel: false,
|
|
21
|
+
hideFiltersPanel: false,
|
|
22
|
+
hideZonesPanel: false,
|
|
23
|
+
hideSummaryPanel: false,
|
|
24
|
+
hideMultipleSpectraAnalysisPanel: false,
|
|
25
|
+
hideDatabasePanel: false,
|
|
26
|
+
},
|
|
27
|
+
toolBarButtons: {
|
|
28
|
+
hideZoomTool: false,
|
|
29
|
+
hideZoomOutTool: false,
|
|
30
|
+
hideImport: false,
|
|
31
|
+
hideExportAs: false,
|
|
32
|
+
hideSpectraStackAlignments: false,
|
|
33
|
+
hideSpectraCenterAlignments: false,
|
|
34
|
+
hideRealImaginary: false,
|
|
35
|
+
hidePeakTool: false,
|
|
36
|
+
hideIntegralTool: false,
|
|
37
|
+
hideZonePickingTool: false,
|
|
38
|
+
hideSlicingTool: false,
|
|
39
|
+
hideAutoRangesTool: false,
|
|
40
|
+
hideZeroFillingTool: false,
|
|
41
|
+
hidePhaseCorrectionTool: false,
|
|
42
|
+
hideBaseLineCorrectionTool: false,
|
|
43
|
+
hideFFTTool: false,
|
|
44
|
+
hideMultipleSpectraAnalysisTool: false,
|
|
45
|
+
hideExclusionZonesTool: false,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exercise1D = void 0;
|
|
4
|
+
exports.exercise1D = {
|
|
5
|
+
version: 1,
|
|
6
|
+
label: 'Exercise 1D Mode',
|
|
7
|
+
display: {
|
|
8
|
+
general: {
|
|
9
|
+
disableMultipletAnalysis: true,
|
|
10
|
+
hideSetSumFromMolecule: true,
|
|
11
|
+
hideGeneralSettings: true,
|
|
12
|
+
hideExperimentalFeatures: true,
|
|
13
|
+
},
|
|
14
|
+
panels: {
|
|
15
|
+
hideSpectraPanel: false,
|
|
16
|
+
hideInformationPanel: true,
|
|
17
|
+
hidePeaksPanel: true,
|
|
18
|
+
hideIntegralsPanel: false,
|
|
19
|
+
hideRangesPanel: true,
|
|
20
|
+
hideStructuresPanel: true,
|
|
21
|
+
hideFiltersPanel: true,
|
|
22
|
+
hideZonesPanel: true,
|
|
23
|
+
hideSummaryPanel: true,
|
|
24
|
+
hideMultipleSpectraAnalysisPanel: true,
|
|
25
|
+
hideDatabasePanel: true,
|
|
26
|
+
},
|
|
27
|
+
toolBarButtons: {
|
|
28
|
+
hideZoomTool: false,
|
|
29
|
+
hideZoomOutTool: false,
|
|
30
|
+
hideImport: true,
|
|
31
|
+
hideExportAs: true,
|
|
32
|
+
hideSpectraStackAlignments: false,
|
|
33
|
+
hideSpectraCenterAlignments: false,
|
|
34
|
+
hideRealImaginary: true,
|
|
35
|
+
hidePeakTool: false,
|
|
36
|
+
hideIntegralTool: false,
|
|
37
|
+
hideZonePickingTool: true,
|
|
38
|
+
hideSlicingTool: true,
|
|
39
|
+
hideAutoRangesTool: true,
|
|
40
|
+
hideZeroFillingTool: true,
|
|
41
|
+
hidePhaseCorrectionTool: true,
|
|
42
|
+
hideBaseLineCorrectionTool: true,
|
|
43
|
+
hideFFTTool: true,
|
|
44
|
+
hideMultipleSpectraAnalysisTool: true,
|
|
45
|
+
hideExclusionZonesTool: true,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const basic_1 = require("./basic");
|
|
4
|
+
const exercise1D_1 = require("./exercise1D");
|
|
5
|
+
const process1D_1 = require("./process1D");
|
|
6
|
+
exports.default = { exercise1D: exercise1D_1.exercise1D, basic: basic_1.basic, process1D: process1D_1.process1D };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.process1D = void 0;
|
|
4
|
+
exports.process1D = {
|
|
5
|
+
version: 1,
|
|
6
|
+
label: 'Process 1D Mode',
|
|
7
|
+
display: {
|
|
8
|
+
general: {
|
|
9
|
+
disableMultipletAnalysis: true,
|
|
10
|
+
hideSetSumFromMolecule: false,
|
|
11
|
+
hideGeneralSettings: false,
|
|
12
|
+
hideExperimentalFeatures: false,
|
|
13
|
+
},
|
|
14
|
+
panels: {
|
|
15
|
+
hideSpectraPanel: false,
|
|
16
|
+
hideInformationPanel: false,
|
|
17
|
+
hidePeaksPanel: false,
|
|
18
|
+
hideIntegralsPanel: false,
|
|
19
|
+
hideRangesPanel: true,
|
|
20
|
+
hideStructuresPanel: false,
|
|
21
|
+
hideFiltersPanel: false,
|
|
22
|
+
hideZonesPanel: true,
|
|
23
|
+
hideSummaryPanel: true,
|
|
24
|
+
hideMultipleSpectraAnalysisPanel: true,
|
|
25
|
+
hideDatabasePanel: false,
|
|
26
|
+
},
|
|
27
|
+
toolBarButtons: {
|
|
28
|
+
hideZoomTool: false,
|
|
29
|
+
hideZoomOutTool: false,
|
|
30
|
+
hideImport: true,
|
|
31
|
+
hideExportAs: true,
|
|
32
|
+
hideSpectraStackAlignments: false,
|
|
33
|
+
hideSpectraCenterAlignments: false,
|
|
34
|
+
hideRealImaginary: false,
|
|
35
|
+
hidePeakTool: false,
|
|
36
|
+
hideIntegralTool: false,
|
|
37
|
+
hideAutoRangesTool: true,
|
|
38
|
+
hideZeroFillingTool: false,
|
|
39
|
+
hidePhaseCorrectionTool: false,
|
|
40
|
+
hideBaseLineCorrectionTool: false,
|
|
41
|
+
hideFFTTool: false,
|
|
42
|
+
hideMultipleSpectraAnalysisTool: true,
|
|
43
|
+
hideExclusionZonesTool: true,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -16,6 +16,9 @@ function migrate(data) {
|
|
|
16
16
|
migrateToVersion2_1.default,
|
|
17
17
|
];
|
|
18
18
|
let index = data?.version || 0;
|
|
19
|
+
if (index > exports.CURRENT_EXPORT_VERSION) {
|
|
20
|
+
throw new Error('This file can not be imported using the current NMRium version, Please move to the new one !!! ');
|
|
21
|
+
}
|
|
19
22
|
return migrationPipe(migrationsFuncs.slice(index))(data);
|
|
20
23
|
}
|
|
21
24
|
exports.migrate = migrate;
|
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.21.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib-cjs/component/NMRium.js",
|
|
7
7
|
"module": "lib/component/NMRium.js",
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
general: {
|
|
3
|
-
disableMultipletAnalysis: boolean;
|
|
4
|
-
hideSetSumFromMolecule: boolean;
|
|
5
|
-
};
|
|
6
|
-
panels: {
|
|
7
|
-
hideSpectraPanel: boolean;
|
|
8
|
-
hideInformationPanel: boolean;
|
|
9
|
-
hidePeaksPanel: boolean;
|
|
10
|
-
hideIntegralsPanel: boolean;
|
|
11
|
-
hideRangesPanel: boolean;
|
|
12
|
-
hideStructuresPanel: boolean;
|
|
13
|
-
hideFiltersPanel: boolean;
|
|
14
|
-
hideZonesPanel: boolean;
|
|
15
|
-
hideSummaryPanel: boolean;
|
|
16
|
-
hideMultipleSpectraAnalysisPanel: boolean;
|
|
17
|
-
hideDatabasePanel: boolean;
|
|
18
|
-
};
|
|
19
|
-
toolBarButtons: {
|
|
20
|
-
hideZoomTool: boolean;
|
|
21
|
-
hideZoomOutTool: boolean;
|
|
22
|
-
hideImport: boolean;
|
|
23
|
-
hideExportAs: boolean;
|
|
24
|
-
hideSpectraStackAlignments: boolean;
|
|
25
|
-
hideSpectraCenterAlignments: boolean;
|
|
26
|
-
hideRealImaginary: boolean;
|
|
27
|
-
hidePeakTool: boolean;
|
|
28
|
-
hideIntegralTool: boolean;
|
|
29
|
-
hideAutoRangesTool: boolean;
|
|
30
|
-
hideZeroFillingTool: boolean;
|
|
31
|
-
hidePhaseCorrectionTool: boolean;
|
|
32
|
-
hideBaseLineCorrectionTool: boolean;
|
|
33
|
-
hideFFTTool: boolean;
|
|
34
|
-
hideMultipleSpectraAnalysisTool: boolean;
|
|
35
|
-
};
|
|
36
|
-
hideExperimentalFeatures: boolean;
|
|
37
|
-
};
|
|
38
|
-
export default _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
general: {
|
|
3
|
-
disableMultipletAnalysis: false,
|
|
4
|
-
hideSetSumFromMolecule: false,
|
|
5
|
-
},
|
|
6
|
-
panels: {
|
|
7
|
-
hideSpectraPanel: false,
|
|
8
|
-
hideInformationPanel: false,
|
|
9
|
-
hidePeaksPanel: false,
|
|
10
|
-
hideIntegralsPanel: false,
|
|
11
|
-
hideRangesPanel: false,
|
|
12
|
-
hideStructuresPanel: false,
|
|
13
|
-
hideFiltersPanel: false,
|
|
14
|
-
hideZonesPanel: false,
|
|
15
|
-
hideSummaryPanel: true,
|
|
16
|
-
hideMultipleSpectraAnalysisPanel: true,
|
|
17
|
-
hideDatabasePanel: false,
|
|
18
|
-
},
|
|
19
|
-
toolBarButtons: {
|
|
20
|
-
hideZoomTool: false,
|
|
21
|
-
hideZoomOutTool: false,
|
|
22
|
-
hideImport: false,
|
|
23
|
-
hideExportAs: false,
|
|
24
|
-
hideSpectraStackAlignments: false,
|
|
25
|
-
hideSpectraCenterAlignments: false,
|
|
26
|
-
hideRealImaginary: false,
|
|
27
|
-
hidePeakTool: false,
|
|
28
|
-
hideIntegralTool: false,
|
|
29
|
-
hideAutoRangesTool: false,
|
|
30
|
-
hideZeroFillingTool: false,
|
|
31
|
-
hidePhaseCorrectionTool: false,
|
|
32
|
-
hideBaseLineCorrectionTool: false,
|
|
33
|
-
hideFFTTool: false,
|
|
34
|
-
hideMultipleSpectraAnalysisTool: false,
|
|
35
|
-
},
|
|
36
|
-
hideExperimentalFeatures: true,
|
|
37
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
general: {
|
|
3
|
-
disableMultipletAnalysis: boolean;
|
|
4
|
-
hideSetSumFromMolecule: boolean;
|
|
5
|
-
};
|
|
6
|
-
panels: {
|
|
7
|
-
hideSpectraPanel: boolean;
|
|
8
|
-
hideInformationPanel: boolean;
|
|
9
|
-
hidePeaksPanel: boolean;
|
|
10
|
-
hideIntegralsPanel: boolean;
|
|
11
|
-
hideRangesPanel: boolean;
|
|
12
|
-
hideStructuresPanel: boolean;
|
|
13
|
-
hideFiltersPanel: boolean;
|
|
14
|
-
hideZonesPanel: boolean;
|
|
15
|
-
hideSummaryPanel: boolean;
|
|
16
|
-
hideMultipleSpectraAnalysisPanel: boolean;
|
|
17
|
-
hideDatabasePanel: boolean;
|
|
18
|
-
};
|
|
19
|
-
toolBarButtons: {
|
|
20
|
-
hideZoomTool: boolean;
|
|
21
|
-
hideZoomOutTool: boolean;
|
|
22
|
-
hideImport: boolean;
|
|
23
|
-
hideExportAs: boolean;
|
|
24
|
-
hideSpectraStackAlignments: boolean;
|
|
25
|
-
hideSpectraCenterAlignments: boolean;
|
|
26
|
-
hideRealImaginary: boolean;
|
|
27
|
-
hidePeakTool: boolean;
|
|
28
|
-
hideIntegralTool: boolean;
|
|
29
|
-
hideAutoRangesTool: boolean;
|
|
30
|
-
hideZeroFillingTool: boolean;
|
|
31
|
-
hidePhaseCorrectionTool: boolean;
|
|
32
|
-
hideBaseLineCorrectionTool: boolean;
|
|
33
|
-
hideFFTTool: boolean;
|
|
34
|
-
hideMultipleSpectraAnalysisTool: boolean;
|
|
35
|
-
hideExclusionZonesTool: boolean;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export default _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
general: {
|
|
3
|
-
disableMultipletAnalysis: true,
|
|
4
|
-
hideSetSumFromMolecule: false,
|
|
5
|
-
},
|
|
6
|
-
panels: {
|
|
7
|
-
hideSpectraPanel: false,
|
|
8
|
-
hideInformationPanel: false,
|
|
9
|
-
hidePeaksPanel: false,
|
|
10
|
-
hideIntegralsPanel: false,
|
|
11
|
-
hideRangesPanel: true,
|
|
12
|
-
hideStructuresPanel: false,
|
|
13
|
-
hideFiltersPanel: true,
|
|
14
|
-
hideZonesPanel: true,
|
|
15
|
-
hideSummaryPanel: true,
|
|
16
|
-
hideMultipleSpectraAnalysisPanel: true,
|
|
17
|
-
hideDatabasePanel: false,
|
|
18
|
-
},
|
|
19
|
-
toolBarButtons: {
|
|
20
|
-
hideZoomTool: false,
|
|
21
|
-
hideZoomOutTool: false,
|
|
22
|
-
hideImport: true,
|
|
23
|
-
hideExportAs: true,
|
|
24
|
-
hideSpectraStackAlignments: false,
|
|
25
|
-
hideSpectraCenterAlignments: false,
|
|
26
|
-
hideRealImaginary: true,
|
|
27
|
-
hidePeakTool: false,
|
|
28
|
-
hideIntegralTool: false,
|
|
29
|
-
hideAutoRangesTool: true,
|
|
30
|
-
hideZeroFillingTool: true,
|
|
31
|
-
hidePhaseCorrectionTool: true,
|
|
32
|
-
hideBaseLineCorrectionTool: true,
|
|
33
|
-
hideFFTTool: true,
|
|
34
|
-
hideMultipleSpectraAnalysisTool: true,
|
|
35
|
-
hideExclusionZonesTool: true,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
general: {
|
|
3
|
-
disableMultipletAnalysis: boolean;
|
|
4
|
-
hideSetSumFromMolecule: boolean;
|
|
5
|
-
};
|
|
6
|
-
panels: {
|
|
7
|
-
hideSpectraPanel: boolean;
|
|
8
|
-
hideInformationPanel: boolean;
|
|
9
|
-
hidePeaksPanel: boolean;
|
|
10
|
-
hideIntegralsPanel: boolean;
|
|
11
|
-
hideRangesPanel: boolean;
|
|
12
|
-
hideStructuresPanel: boolean;
|
|
13
|
-
hideFiltersPanel: boolean;
|
|
14
|
-
hideZonesPanel: boolean;
|
|
15
|
-
hideSummaryPanel: boolean;
|
|
16
|
-
hideMultipleSpectraAnalysisPanel: boolean;
|
|
17
|
-
hideDatabasePanel: boolean;
|
|
18
|
-
};
|
|
19
|
-
toolBarButtons: {
|
|
20
|
-
hideZoomTool: boolean;
|
|
21
|
-
hideZoomOutTool: boolean;
|
|
22
|
-
hideImport: boolean;
|
|
23
|
-
hideExportAs: boolean;
|
|
24
|
-
hideSpectraStackAlignments: boolean;
|
|
25
|
-
hideSpectraCenterAlignments: boolean;
|
|
26
|
-
hideRealImaginary: boolean;
|
|
27
|
-
hidePeakTool: boolean;
|
|
28
|
-
hideIntegralTool: boolean;
|
|
29
|
-
hideAutoRangesTool: boolean;
|
|
30
|
-
hideZeroFillingTool: boolean;
|
|
31
|
-
hidePhaseCorrectionTool: boolean;
|
|
32
|
-
hideBaseLineCorrectionTool: boolean;
|
|
33
|
-
hideFFTTool: boolean;
|
|
34
|
-
hideMultipleSpectraAnalysisTool: boolean;
|
|
35
|
-
hideExclusionZonesTool: boolean;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export default _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
general: {
|
|
3
|
-
disableMultipletAnalysis: true,
|
|
4
|
-
hideSetSumFromMolecule: false,
|
|
5
|
-
},
|
|
6
|
-
panels: {
|
|
7
|
-
hideSpectraPanel: false,
|
|
8
|
-
hideInformationPanel: false,
|
|
9
|
-
hidePeaksPanel: false,
|
|
10
|
-
hideIntegralsPanel: false,
|
|
11
|
-
hideRangesPanel: true,
|
|
12
|
-
hideStructuresPanel: false,
|
|
13
|
-
hideFiltersPanel: false,
|
|
14
|
-
hideZonesPanel: true,
|
|
15
|
-
hideSummaryPanel: true,
|
|
16
|
-
hideMultipleSpectraAnalysisPanel: true,
|
|
17
|
-
hideDatabasePanel: false,
|
|
18
|
-
},
|
|
19
|
-
toolBarButtons: {
|
|
20
|
-
hideZoomTool: false,
|
|
21
|
-
hideZoomOutTool: false,
|
|
22
|
-
hideImport: true,
|
|
23
|
-
hideExportAs: true,
|
|
24
|
-
hideSpectraStackAlignments: false,
|
|
25
|
-
hideSpectraCenterAlignments: false,
|
|
26
|
-
hideRealImaginary: false,
|
|
27
|
-
hidePeakTool: false,
|
|
28
|
-
hideIntegralTool: false,
|
|
29
|
-
hideAutoRangesTool: true,
|
|
30
|
-
hideZeroFillingTool: false,
|
|
31
|
-
hidePhaseCorrectionTool: false,
|
|
32
|
-
hideBaseLineCorrectionTool: false,
|
|
33
|
-
hideFFTTool: false,
|
|
34
|
-
hideMultipleSpectraAnalysisTool: true,
|
|
35
|
-
hideExclusionZonesTool: true,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = {
|
|
4
|
-
general: {
|
|
5
|
-
disableMultipletAnalysis: false,
|
|
6
|
-
hideSetSumFromMolecule: false,
|
|
7
|
-
},
|
|
8
|
-
panels: {
|
|
9
|
-
hideSpectraPanel: false,
|
|
10
|
-
hideInformationPanel: false,
|
|
11
|
-
hidePeaksPanel: false,
|
|
12
|
-
hideIntegralsPanel: false,
|
|
13
|
-
hideRangesPanel: false,
|
|
14
|
-
hideStructuresPanel: false,
|
|
15
|
-
hideFiltersPanel: false,
|
|
16
|
-
hideZonesPanel: false,
|
|
17
|
-
hideSummaryPanel: true,
|
|
18
|
-
hideMultipleSpectraAnalysisPanel: true,
|
|
19
|
-
hideDatabasePanel: false,
|
|
20
|
-
},
|
|
21
|
-
toolBarButtons: {
|
|
22
|
-
hideZoomTool: false,
|
|
23
|
-
hideZoomOutTool: false,
|
|
24
|
-
hideImport: false,
|
|
25
|
-
hideExportAs: false,
|
|
26
|
-
hideSpectraStackAlignments: false,
|
|
27
|
-
hideSpectraCenterAlignments: false,
|
|
28
|
-
hideRealImaginary: false,
|
|
29
|
-
hidePeakTool: false,
|
|
30
|
-
hideIntegralTool: false,
|
|
31
|
-
hideAutoRangesTool: false,
|
|
32
|
-
hideZeroFillingTool: false,
|
|
33
|
-
hidePhaseCorrectionTool: false,
|
|
34
|
-
hideBaseLineCorrectionTool: false,
|
|
35
|
-
hideFFTTool: false,
|
|
36
|
-
hideMultipleSpectraAnalysisTool: false,
|
|
37
|
-
},
|
|
38
|
-
hideExperimentalFeatures: true,
|
|
39
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = {
|
|
4
|
-
general: {
|
|
5
|
-
disableMultipletAnalysis: true,
|
|
6
|
-
hideSetSumFromMolecule: false,
|
|
7
|
-
},
|
|
8
|
-
panels: {
|
|
9
|
-
hideSpectraPanel: false,
|
|
10
|
-
hideInformationPanel: false,
|
|
11
|
-
hidePeaksPanel: false,
|
|
12
|
-
hideIntegralsPanel: false,
|
|
13
|
-
hideRangesPanel: true,
|
|
14
|
-
hideStructuresPanel: false,
|
|
15
|
-
hideFiltersPanel: true,
|
|
16
|
-
hideZonesPanel: true,
|
|
17
|
-
hideSummaryPanel: true,
|
|
18
|
-
hideMultipleSpectraAnalysisPanel: true,
|
|
19
|
-
hideDatabasePanel: false,
|
|
20
|
-
},
|
|
21
|
-
toolBarButtons: {
|
|
22
|
-
hideZoomTool: false,
|
|
23
|
-
hideZoomOutTool: false,
|
|
24
|
-
hideImport: true,
|
|
25
|
-
hideExportAs: true,
|
|
26
|
-
hideSpectraStackAlignments: false,
|
|
27
|
-
hideSpectraCenterAlignments: false,
|
|
28
|
-
hideRealImaginary: true,
|
|
29
|
-
hidePeakTool: false,
|
|
30
|
-
hideIntegralTool: false,
|
|
31
|
-
hideAutoRangesTool: true,
|
|
32
|
-
hideZeroFillingTool: true,
|
|
33
|
-
hidePhaseCorrectionTool: true,
|
|
34
|
-
hideBaseLineCorrectionTool: true,
|
|
35
|
-
hideFFTTool: true,
|
|
36
|
-
hideMultipleSpectraAnalysisTool: true,
|
|
37
|
-
hideExclusionZonesTool: true,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = {
|
|
4
|
-
general: {
|
|
5
|
-
disableMultipletAnalysis: true,
|
|
6
|
-
hideSetSumFromMolecule: false,
|
|
7
|
-
},
|
|
8
|
-
panels: {
|
|
9
|
-
hideSpectraPanel: false,
|
|
10
|
-
hideInformationPanel: false,
|
|
11
|
-
hidePeaksPanel: false,
|
|
12
|
-
hideIntegralsPanel: false,
|
|
13
|
-
hideRangesPanel: true,
|
|
14
|
-
hideStructuresPanel: false,
|
|
15
|
-
hideFiltersPanel: false,
|
|
16
|
-
hideZonesPanel: true,
|
|
17
|
-
hideSummaryPanel: true,
|
|
18
|
-
hideMultipleSpectraAnalysisPanel: true,
|
|
19
|
-
hideDatabasePanel: false,
|
|
20
|
-
},
|
|
21
|
-
toolBarButtons: {
|
|
22
|
-
hideZoomTool: false,
|
|
23
|
-
hideZoomOutTool: false,
|
|
24
|
-
hideImport: true,
|
|
25
|
-
hideExportAs: true,
|
|
26
|
-
hideSpectraStackAlignments: false,
|
|
27
|
-
hideSpectraCenterAlignments: false,
|
|
28
|
-
hideRealImaginary: false,
|
|
29
|
-
hidePeakTool: false,
|
|
30
|
-
hideIntegralTool: false,
|
|
31
|
-
hideAutoRangesTool: true,
|
|
32
|
-
hideZeroFillingTool: false,
|
|
33
|
-
hidePhaseCorrectionTool: false,
|
|
34
|
-
hideBaseLineCorrectionTool: false,
|
|
35
|
-
hideFFTTool: false,
|
|
36
|
-
hideMultipleSpectraAnalysisTool: true,
|
|
37
|
-
hideExclusionZonesTool: true,
|
|
38
|
-
},
|
|
39
|
-
};
|