nmrium 0.19.1 → 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.
Files changed (197) hide show
  1. package/lib/component/1d/Chart1D.js +3 -3
  2. package/lib/component/1d/ExclusionZoneAnnotation.d.ts +11 -0
  3. package/lib/component/1d/ExclusionZoneAnnotation.js +18 -0
  4. package/lib/component/1d/ExclusionZonesAnnotations.d.ts +3 -0
  5. package/lib/component/1d/ExclusionZonesAnnotations.js +28 -0
  6. package/lib/component/1d/Line.js +11 -23
  7. package/lib/component/1d/Viewer1D.js +36 -5
  8. package/lib/component/1d/ranges/Ranges.js +3 -3
  9. package/lib/component/1d/{BaseLineZones.d.ts → tool/BaseLineZones.d.ts} +0 -0
  10. package/lib/component/1d/{BaseLineZones.js → tool/BaseLineZones.js} +5 -5
  11. package/lib/component/1d/utilities/useIntegralPath.js +9 -10
  12. package/lib/component/2d/Contours.js +12 -11
  13. package/lib/component/2d/Left1DChart.js +7 -9
  14. package/lib/component/2d/Top1DChart.js +7 -7
  15. package/lib/component/2d/tools/slicing/HorizontalSliceChart.js +7 -7
  16. package/lib/component/2d/tools/slicing/VerticalSliceChart.js +7 -9
  17. package/lib/component/EventsTrackers/BrushTracker.js +2 -2
  18. package/lib/component/EventsTrackers/KeysListenerTracker.js +106 -80
  19. package/lib/component/NMRium.d.ts +8 -3
  20. package/lib/component/NMRium.js +36 -33
  21. package/lib/component/elements/NumberInput.d.ts +1 -2
  22. package/lib/component/elements/Tab/Tab.js +1 -0
  23. package/lib/component/header/Header.js +10 -3
  24. package/lib/component/hooks/useActiveSpectrumStyleOptions.d.ts +6 -0
  25. package/lib/component/hooks/useActiveSpectrumStyleOptions.js +15 -0
  26. package/lib/component/hooks/useCheckExperimentalFeature.js +2 -1
  27. package/lib/component/hooks/useCheckToolsVisibility.d.ts +1 -0
  28. package/lib/component/hooks/useCheckToolsVisibility.js +6 -0
  29. package/lib/component/hooks/useToolsFunctions.js +2 -1
  30. package/lib/component/hooks/useXYReduce.d.ts +2 -1
  31. package/lib/component/loader/DropZone.js +88 -88
  32. package/lib/component/modal/ModalStyle.js +5 -2
  33. package/lib/component/modal/MoleculeStructureEditorModal.js +3 -2
  34. package/lib/component/modal/MultipleSpectraFiltersModal/index.js +10 -1
  35. package/lib/component/modal/changeSum/ChangeSumModal.js +4 -2
  36. package/lib/component/modal/setting/DisplayTabContent.js +1 -1
  37. package/lib/component/modal/setting/GeneralSettings.js +1 -5
  38. package/lib/component/panels/IntegralsPanel/IntegralPanel.js +0 -3
  39. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +4 -17
  40. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts +2 -0
  41. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +35 -0
  42. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +49 -67
  43. package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +3 -8
  44. package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +2 -23
  45. package/lib/component/panels/Panels.js +10 -0
  46. package/lib/component/panels/PeaksPanel/PeaksPanel.js +0 -3
  47. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +5 -14
  48. package/lib/component/panels/RangesPanel/RangesPanel.js +0 -3
  49. package/lib/component/panels/RangesPanel/RangesPreferences.js +5 -18
  50. package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +13 -3
  51. package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +1 -1
  52. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +5 -5
  53. package/lib/component/panels/SummaryPanel/SummaryPanel.js +1 -1
  54. package/lib/component/panels/SummaryPanel/Utilities.d.ts +7 -7
  55. package/lib/component/panels/ZonesPanel/ZonesPanel.js +0 -3
  56. package/lib/component/panels/ZonesPanel/ZonesPreferences.js +5 -18
  57. package/lib/component/panels/ZonesPanel/ZonesTable.js +9 -2
  58. package/lib/component/panels/databasePanel/DatabasePanel.js +0 -3
  59. package/lib/component/panels/databasePanel/DatabasePreferences.js +4 -17
  60. package/lib/component/reducer/Reducer.d.ts +11 -27
  61. package/lib/component/reducer/Reducer.js +4 -5
  62. package/lib/component/reducer/actions/CorrelationsActions.d.ts +7 -7
  63. package/lib/component/reducer/actions/CorrelationsActions.js +1 -1
  64. package/lib/component/reducer/actions/FiltersActions.d.ts +3 -1
  65. package/lib/component/reducer/actions/FiltersActions.js +60 -18
  66. package/lib/component/reducer/actions/LoadActions.js +2 -3
  67. package/lib/component/reducer/actions/MoleculeActions.js +2 -2
  68. package/lib/component/reducer/actions/PreferencesActions.js +4 -7
  69. package/lib/component/reducer/actions/RangesActions.js +1 -1
  70. package/lib/component/reducer/actions/ToolsActions.d.ts +1 -3
  71. package/lib/component/reducer/actions/ToolsActions.js +13 -59
  72. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -0
  73. package/lib/component/reducer/helper/ZoomHistoryManager.js +2 -1
  74. package/lib/component/reducer/helper/getRange.d.ts +6 -1
  75. package/lib/component/reducer/helper/getRange.js +1 -1
  76. package/lib/component/reducer/preferencesReducer.d.ts +2 -0
  77. package/lib/component/reducer/preferencesReducer.js +76 -36
  78. package/lib/component/toolbar/FunctionToolBar.js +9 -15
  79. package/lib/component/toolbar/ToolTypes.js +3 -3
  80. package/lib/component/utility/PathBuilder.d.ts +7 -0
  81. package/lib/component/utility/PathBuilder.js +17 -0
  82. package/lib/component/utility/getSpectraByNucleus.d.ts +3 -0
  83. package/lib/component/utility/getSpectraByNucleus.js +4 -0
  84. package/lib/component/workspaces/Workspace.d.ts +6 -0
  85. package/lib/component/workspaces/Workspace.js +1 -0
  86. package/lib/component/workspaces/basic.d.ts +2 -0
  87. package/lib/component/workspaces/basic.js +45 -0
  88. package/lib/component/workspaces/exercise1D.d.ts +2 -0
  89. package/lib/component/workspaces/exercise1D.js +45 -0
  90. package/lib/component/workspaces/index.d.ts +6 -0
  91. package/lib/component/workspaces/index.js +4 -0
  92. package/lib/component/workspaces/process1D.d.ts +2 -0
  93. package/lib/component/workspaces/process1D.js +43 -0
  94. package/lib/data/Filters.d.ts +2 -1
  95. package/lib/data/Filters.js +2 -1
  96. package/lib/data/data1d/Spectrum1D/ranges/addRange.js +5 -2
  97. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +6 -1
  98. package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +0 -1
  99. package/lib/data/data1d/Spectrum1D/ranges/detectSignal.d.ts +3 -2
  100. package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +23 -15
  101. package/lib/data/data1d/filter1d/exclusionZones.d.ts +16 -0
  102. package/lib/data/data1d/filter1d/exclusionZones.js +28 -0
  103. package/lib/data/migration/MigrationManager.js +3 -0
  104. package/lib/data/types/data1d/ExclusionZone.d.ts +5 -0
  105. package/lib/data/types/data1d/ExclusionZone.js +1 -0
  106. package/lib/versionInfo.js +1 -1
  107. package/lib-cjs/component/1d/Chart1D.js +3 -3
  108. package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +23 -0
  109. package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +52 -0
  110. package/lib-cjs/component/1d/Line.js +11 -23
  111. package/lib-cjs/component/1d/Viewer1D.js +36 -5
  112. package/lib-cjs/component/1d/ranges/Ranges.js +1 -1
  113. package/lib-cjs/component/1d/{BaseLineZones.js → tool/BaseLineZones.js} +5 -5
  114. package/lib-cjs/component/1d/utilities/useIntegralPath.js +9 -10
  115. package/lib-cjs/component/2d/Contours.js +12 -11
  116. package/lib-cjs/component/2d/Left1DChart.js +7 -9
  117. package/lib-cjs/component/2d/Top1DChart.js +7 -7
  118. package/lib-cjs/component/2d/tools/slicing/HorizontalSliceChart.js +7 -7
  119. package/lib-cjs/component/2d/tools/slicing/VerticalSliceChart.js +7 -9
  120. package/lib-cjs/component/EventsTrackers/BrushTracker.js +2 -2
  121. package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +106 -80
  122. package/lib-cjs/component/NMRium.js +37 -34
  123. package/lib-cjs/component/elements/Tab/Tab.js +1 -0
  124. package/lib-cjs/component/header/Header.js +10 -3
  125. package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +21 -0
  126. package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +5 -1
  127. package/lib-cjs/component/hooks/useCheckToolsVisibility.js +13 -0
  128. package/lib-cjs/component/hooks/useToolsFunctions.js +2 -1
  129. package/lib-cjs/component/loader/DropZone.js +88 -88
  130. package/lib-cjs/component/modal/ModalStyle.js +5 -2
  131. package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +3 -2
  132. package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +10 -1
  133. package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +4 -2
  134. package/lib-cjs/component/modal/setting/DisplayTabContent.js +1 -1
  135. package/lib-cjs/component/modal/setting/GeneralSettings.js +1 -5
  136. package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +0 -3
  137. package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +3 -16
  138. package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +40 -0
  139. package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +48 -66
  140. package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +3 -8
  141. package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -22
  142. package/lib-cjs/component/panels/Panels.js +10 -0
  143. package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +0 -3
  144. package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +4 -13
  145. package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +0 -3
  146. package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +4 -17
  147. package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +13 -3
  148. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +1 -1
  149. package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +0 -3
  150. package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +4 -17
  151. package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +8 -1
  152. package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +0 -3
  153. package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +3 -16
  154. package/lib-cjs/component/reducer/Reducer.js +4 -5
  155. package/lib-cjs/component/reducer/actions/FiltersActions.js +62 -18
  156. package/lib-cjs/component/reducer/actions/LoadActions.js +2 -3
  157. package/lib-cjs/component/reducer/actions/MoleculeActions.js +2 -2
  158. package/lib-cjs/component/reducer/actions/PreferencesActions.js +4 -7
  159. package/lib-cjs/component/reducer/actions/RangesActions.js +1 -1
  160. package/lib-cjs/component/reducer/actions/ToolsActions.js +13 -61
  161. package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +2 -1
  162. package/lib-cjs/component/reducer/helper/getRange.js +1 -1
  163. package/lib-cjs/component/reducer/preferencesReducer.js +75 -35
  164. package/lib-cjs/component/toolbar/FunctionToolBar.js +9 -15
  165. package/lib-cjs/component/toolbar/ToolTypes.js +3 -3
  166. package/lib-cjs/component/utility/PathBuilder.js +21 -0
  167. package/lib-cjs/component/utility/getSpectraByNucleus.js +11 -0
  168. package/lib-cjs/component/workspaces/Workspace.js +2 -0
  169. package/lib-cjs/component/workspaces/basic.js +48 -0
  170. package/lib-cjs/component/workspaces/exercise1D.js +48 -0
  171. package/lib-cjs/component/workspaces/index.js +6 -0
  172. package/lib-cjs/component/workspaces/process1D.js +46 -0
  173. package/lib-cjs/data/Filters.js +3 -1
  174. package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +5 -2
  175. package/lib-cjs/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +6 -1
  176. package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +0 -1
  177. package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +24 -15
  178. package/lib-cjs/data/data1d/filter1d/exclusionZones.js +34 -0
  179. package/lib-cjs/data/migration/MigrationManager.js +3 -0
  180. package/lib-cjs/data/types/data1d/ExclusionZone.js +2 -0
  181. package/lib-cjs/versionInfo.js +1 -1
  182. package/package.json +28 -29
  183. package/lib/component/1d/ExclusionZone.d.ts +0 -8
  184. package/lib/component/1d/ExclusionZone.js +0 -30
  185. package/lib/component/1d/ExclusionZones.d.ts +0 -2
  186. package/lib/component/1d/ExclusionZones.js +0 -10
  187. package/lib/component/nmriumMode/basic.d.ts +0 -38
  188. package/lib/component/nmriumMode/basic.js +0 -37
  189. package/lib/component/nmriumMode/exercise1D.d.ts +0 -38
  190. package/lib/component/nmriumMode/exercise1D.js +0 -37
  191. package/lib/component/nmriumMode/process1D.d.ts +0 -38
  192. package/lib/component/nmriumMode/process1D.js +0 -37
  193. package/lib-cjs/component/1d/ExclusionZone.js +0 -32
  194. package/lib-cjs/component/1d/ExclusionZones.js +0 -16
  195. package/lib-cjs/component/nmriumMode/basic.js +0 -39
  196. package/lib-cjs/component/nmriumMode/exercise1D.js +0 -39
  197. package/lib-cjs/component/nmriumMode/process1D.js +0 -39
@@ -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,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
4
- /** @jsxImportSource @emotion/react */
5
- const react_1 = require("@emotion/react");
6
- const react_2 = require("react");
7
- const ScaleContext_1 = require("../context/ScaleContext");
8
- const highlight_1 = require("../highlight");
9
- const styles = (0, react_1.css) `
10
- pointer-events: bounding-box;
11
- user-select: 'none';
12
- -webkit-user-select: none; /* Chrome all / Safari all */
13
- -moz-user-select: none; /* Firefox all */
14
-
15
- .zone-area {
16
- height: 100%;
17
- fill: #dddddd;
18
- cursor: pointer;
19
- }
20
- .zone-area.active {
21
- fill: #ff6f0057;
22
- }
23
- `;
24
- function ExclusionZone({ zone }) {
25
- const { scaleX } = (0, ScaleContext_1.useScaleChecked)();
26
- const highlight = (0, highlight_1.useHighlight)([zone.id], {
27
- type: highlight_1.HighlightedSource.EXCLUSION_ZONE,
28
- extra: { id: zone.id },
29
- });
30
- return ((0, jsx_runtime_1.jsx)("g", { transform: `translate(${scaleX()(zone.to)},0)`, css: styles, ...highlight.onHover, children: (0, jsx_runtime_1.jsx)("rect", { x: "0", width: `${scaleX()(zone.from) - scaleX()(zone.to)}`, className: `zone-area ${highlight.isActive ? 'active' : ''}` }, void 0) }, zone.id));
31
- }
32
- exports.default = (0, react_2.memo)(ExclusionZone);
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const ChartContext_1 = require("../context/ChartContext");
8
- const ExclusionZone_1 = __importDefault(require("./ExclusionZone"));
9
- function ExclusionZones() {
10
- const { toolOptions: { data: { exclusionZones }, }, activeTab, } = (0, ChartContext_1.useChartData)();
11
- const exclusionZonesForNucleus = exclusionZones[activeTab];
12
- if (!exclusionZonesForNucleus)
13
- return null;
14
- return ((0, jsx_runtime_1.jsx)("g", { className: "exclusionZones", children: exclusionZonesForNucleus.map((zone) => ((0, jsx_runtime_1.jsx)(ExclusionZone_1.default, { zone: zone }, zone.id))) }, void 0));
15
- }
16
- exports.default = ExclusionZones;
@@ -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
- };