nmrium 0.32.0 → 0.33.0-pre.1667632695
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/Chart1D.js +1 -1
- package/lib/component/1d/LinesSeries.js +1 -1
- package/lib/component/1d/SpectraTracker.js +1 -1
- package/lib/component/1d/Viewer1D.js +1 -1
- package/lib/component/1d/XAxis.js +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib/component/1d/{Integral.d.ts → integral/Integral.d.ts} +0 -0
- package/lib/component/1d/{Integral.js → integral/Integral.js} +2 -2
- package/lib/component/1d/integral/IntegralIndicator.d.ts +9 -0
- package/lib/component/1d/integral/IntegralIndicator.js +27 -0
- package/lib/component/1d/{IntegralResizable.d.ts → integral/IntegralResizable.d.ts} +0 -0
- package/lib/component/1d/integral/IntegralResizable.js +69 -0
- package/lib/component/1d/{IntegralsSeries.d.ts → integral/IntegralsSeries.d.ts} +0 -0
- package/lib/component/1d/{IntegralsSeries.js → integral/IntegralsSeries.js} +4 -4
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +4 -4
- package/lib/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib/component/1d/peaks/PeakAnnotation.js +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib/component/1d/ranges/Range.js +27 -50
- package/lib/component/1d/tool/PeakPointer.js +1 -1
- package/lib/component/1d/utilities/scale.js +2 -2
- package/lib/component/2d/Contours.js +61 -42
- package/lib/component/2d/FooterBanner.js +2 -2
- package/lib/component/2d/Viewer2D.js +11 -14
- package/lib/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib/component/2d/tools/slicing/VerticalSliceChart.js +1 -1
- package/lib/component/2d/zones/IndicationLines.js +5 -8
- package/lib/component/EventsTrackers/KeysListenerTracker.js +14 -15
- package/lib/component/NMRium.d.ts +1 -1
- package/lib/component/NMRium.js +6 -6
- package/lib/component/assignment/actions/initAssignment.js +17 -17
- package/lib/component/assignment/index.js +2 -2
- package/lib/component/context/PreferencesContext.js +3 -6
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/CheckBoxCell.js +1 -1
- package/lib/component/elements/ContextMenu.js +2 -2
- package/lib/component/elements/EditableColumn.js +3 -5
- package/lib/component/elements/GroupPane.d.ts +12 -0
- package/lib/component/elements/GroupPane.js +14 -0
- package/lib/component/elements/Input.js +7 -4
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/Label.js +1 -2
- package/lib/component/elements/MolecularFormulaInput.js +2 -0
- package/lib/component/elements/NumberInput.js +2 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +2 -1
- package/lib/component/elements/ReactTable/ReactTable.js +72 -38
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +3 -2
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +3 -3
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib/component/elements/accordion/Accordion.js +2 -2
- package/lib/component/elements/draggble/useDraggable.js +1 -3
- package/lib/component/elements/dropDownButton/DropDownList.js +1 -2
- package/lib/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.d.ts +0 -1
- package/lib/component/elements/formik/FormikColorPicker.js +5 -8
- package/lib/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib/component/elements/formik/FormikForm.js +2 -2
- package/lib/component/elements/formik/FormikInput.d.ts +0 -1
- package/lib/component/elements/formik/FormikInput.js +12 -20
- package/lib/component/elements/formik/FormikOnChange.d.ts +1 -1
- package/lib/component/elements/formik/FormikOnChange.js +13 -10
- package/lib/component/elements/formik/FormikSelect.js +1 -1
- package/lib/component/elements/formik/FormikSlider.d.ts +2 -4
- package/lib/component/elements/formik/FormikSlider.js +8 -11
- package/lib/component/elements/formik/FormikTextarea.js +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib/component/elements/popup/Alert/Provider.js +7 -7
- package/lib/component/elements/popup/Alert/index.d.ts +3 -4
- package/lib/component/elements/popup/Alert/index.js +3 -4
- package/lib/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib/component/elements/popup/Modal/Provider.js +16 -31
- package/lib/component/elements/popup/Modal/index.d.ts +4 -5
- package/lib/component/elements/popup/Modal/index.js +4 -5
- package/lib/component/header/Header.js +1 -1
- package/lib/component/hooks/useCombinedRefs.js +2 -2
- package/lib/component/hooks/useExport.d.ts +1 -1
- package/lib/component/hooks/useExport.js +9 -6
- package/lib/component/hooks/useFormatNumberByNucleus.js +1 -1
- package/lib/component/hooks/usePanelPreferences.js +9 -7
- package/lib/component/loader/DropZone.js +4 -4
- package/lib/component/modal/AlignSpectraModal.js +1 -1
- package/lib/component/modal/ExportAsMatrixModal.js +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +2 -2
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +3 -3
- package/lib/component/modal/PredictSpectraModal.js +5 -5
- package/lib/component/modal/editRange/EditRangeModal.js +4 -4
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +2 -2
- package/lib/component/modal/setting/DatabasesTabContent.js +25 -20
- package/lib/component/modal/setting/DisplayTabContent.js +21 -27
- package/lib/component/modal/setting/FormattingTabContent.js +10 -10
- package/lib/component/modal/setting/GeneralSettings.js +11 -14
- package/lib/component/modal/setting/GeneralTabContent.js +3 -1
- package/lib/component/modal/setting/ToolsTabContent.js +18 -19
- package/lib/component/modal/setting/WorkspaceItem.d.ts +2 -1
- package/lib/component/modal/setting/WorkspaceItem.js +36 -48
- package/lib/component/modal/setting/settingsValidation.d.ts +58 -57
- package/lib/component/modal/setting/settingsValidation.js +14 -12
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +8 -7
- package/lib/component/panels/InformationPanel.js +52 -56
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +16 -17
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +18 -17
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -2
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +2 -2
- package/lib/component/panels/RangesPanel/RangesHeader.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -3
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -6
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +3 -3
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +5 -5
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +2 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +2 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +13 -17
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -12
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +1 -5
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib/component/panels/ZonesPanel/ZonesTable.js +8 -8
- package/lib/component/panels/databasePanel/DatabasePanel.js +5 -4
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +2 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +20 -5
- package/lib/component/panels/extra/preferences/ColumnsHelper.js +5 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
- package/lib/component/panels/filtersPanel/FiltersTable.js +1 -1
- package/lib/component/reducer/IgnoreActions.js +3 -3
- package/lib/component/reducer/Reducer.d.ts +40 -14
- package/lib/component/reducer/Reducer.js +12 -11
- package/lib/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib/component/reducer/actions/DomainActions.d.ts +2 -2
- package/lib/component/reducer/actions/DomainActions.js +49 -67
- package/lib/component/reducer/actions/FiltersActions.js +3 -3
- package/lib/component/reducer/actions/HistoryActions.js +5 -5
- package/lib/component/reducer/actions/LoadActions.js +12 -0
- package/lib/component/reducer/actions/PreferencesActions.js +18 -37
- package/lib/component/reducer/actions/RangesActions.js +14 -12
- package/lib/component/reducer/actions/SpectrumsActions.js +10 -4
- package/lib/component/reducer/actions/ToolsActions.js +20 -35
- package/lib/component/reducer/actions/ZonesActions.js +2 -2
- package/lib/component/reducer/core/Constants.js +1 -1
- package/lib/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +11 -10
- package/lib/component/reducer/helper/getSpectrum.js +3 -5
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +1 -1
- package/lib/component/reducer/helper/getStrongestPeak.js +2 -3
- package/lib/component/reducer/preferences/actions/removeWorkspace.js +3 -10
- package/lib/component/reducer/preferences/actions/setPreferences.js +5 -6
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.d.ts +1 -4
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib/component/tool/BrushX.js +3 -3
- package/lib/component/tool/BrushXY.js +5 -5
- package/lib/component/tool/CrossLinePointer.js +3 -3
- package/lib/component/toolbar/BasicToolBar.js +1 -1
- package/lib/component/utility/Evaluate.js +2 -2
- package/lib/component/utility/FileUtility.d.ts +2 -9
- package/lib/component/utility/FileUtility.js +11 -28
- package/lib/component/utility/GroupByInfoKey.d.ts +1 -1
- package/lib/component/utility/GroupByInfoKey.js +11 -13
- package/lib/component/utility/PathBuilder.js +1 -1
- package/lib/component/utility/PreferencesHelper.js +2 -3
- package/lib/component/utility/{Export.d.ts → export.d.ts} +0 -0
- package/lib/component/utility/{Export.js → export.js} +53 -78
- package/lib/component/utility/formatNumber.d.ts +6 -1
- package/lib/component/utility/formatNumber.js +5 -4
- package/lib/data/Filters.d.ts +16 -17
- package/lib/data/Filters.js +16 -17
- package/lib/data/FiltersManager.js +4 -3
- package/lib/data/PredictionManager.js +8 -10
- package/lib/data/SpectraManager.d.ts +1 -2
- package/lib/data/SpectraManager.js +25 -60
- package/lib/data/data1d/MultipleAnalysis.js +74 -70
- package/lib/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +24 -25
- package/lib/data/data1d/Spectrum1D/index.js +24 -25
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +6 -5
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +8 -10
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +3 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +35 -1
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +35 -1
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +6 -7
- package/lib/data/data1d/database.js +45 -28
- package/lib/data/data1d/filter1d/apodization.js +2 -1
- package/lib/data/data1d/filter1d/fft.js +24 -7
- package/lib/data/data1d/filter1d/phaseCorrection.js +2 -2
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +1 -1
- package/lib/data/data1d/filter1d/zeroFilling.js +1 -1
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Processing2D.js +7 -18
- package/lib/data/data2d/Spectrum2D/contours.d.ts +40 -0
- package/lib/data/data2d/Spectrum2D/contours.js +132 -0
- package/lib/data/data2d/Spectrum2D/index.d.ts +10 -11
- package/lib/data/data2d/Spectrum2D/index.js +10 -11
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +3 -4
- package/lib/data/data2d/Spectrum2D/shift/getShift.js +4 -5
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +11 -8
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +1 -2
- package/lib/data/molecules/MoleculeManager.js +1 -1
- package/lib/data/types/common/Source.d.ts +1 -0
- package/lib/data/types/data1d/index.d.ts +12 -13
- package/lib/data/types/data2d/Data2D.d.ts +2 -0
- package/lib/data/types/data2d/Datum2D.d.ts +0 -1
- package/lib/data/types/data2d/index.d.ts +8 -9
- package/lib/data/utilities/RangeUtilities.js +13 -9
- package/lib/data/utilities/ZoneUtilities.js +17 -13
- package/lib/data/utilities/checkModifierKeyActivated.js +1 -2
- package/lib/data/utilities/generateChar.js +8 -6
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getAtomsFromMF.js +2 -2
- package/lib/data/utilities/getColor.js +3 -3
- package/lib/data/utilities/getSum.js +6 -3
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/Chart1D.js +1 -1
- package/lib-cjs/component/1d/LinesSeries.js +1 -1
- package/lib-cjs/component/1d/SpectraTracker.js +1 -1
- package/lib-cjs/component/1d/Viewer1D.js +1 -1
- package/lib-cjs/component/1d/XAxis.js +1 -1
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib-cjs/component/1d/{Integral.js → integral/Integral.js} +2 -2
- package/lib-cjs/component/1d/integral/IntegralIndicator.js +31 -0
- package/lib-cjs/component/1d/integral/IntegralResizable.js +74 -0
- package/lib-cjs/component/1d/{IntegralsSeries.js → integral/IntegralsSeries.js} +4 -4
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +4 -4
- package/lib-cjs/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib-cjs/component/1d/peaks/PeakAnnotation.js +1 -1
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib-cjs/component/1d/ranges/Range.js +27 -50
- package/lib-cjs/component/1d/tool/PeakPointer.js +1 -1
- package/lib-cjs/component/1d/utilities/scale.js +2 -2
- package/lib-cjs/component/2d/Contours.js +60 -41
- package/lib-cjs/component/2d/FooterBanner.js +2 -2
- package/lib-cjs/component/2d/Viewer2D.js +11 -14
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib-cjs/component/2d/tools/slicing/VerticalSliceChart.js +1 -1
- package/lib-cjs/component/2d/zones/IndicationLines.js +5 -8
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +14 -15
- package/lib-cjs/component/NMRium.js +7 -7
- package/lib-cjs/component/assignment/actions/initAssignment.js +17 -17
- package/lib-cjs/component/assignment/index.js +2 -2
- package/lib-cjs/component/context/PreferencesContext.js +3 -6
- package/lib-cjs/component/elements/Button.js +1 -1
- package/lib-cjs/component/elements/CheckBoxCell.js +1 -1
- package/lib-cjs/component/elements/ContextMenu.js +2 -2
- package/lib-cjs/component/elements/EditableColumn.js +3 -5
- package/lib-cjs/component/elements/GroupPane.js +18 -0
- package/lib-cjs/component/elements/Input.js +7 -4
- package/lib-cjs/component/elements/IsotopesViewer.js +1 -1
- package/lib-cjs/component/elements/Label.js +1 -2
- package/lib-cjs/component/elements/MolecularFormulaInput.js +2 -0
- package/lib-cjs/component/elements/NumberInput.js +2 -2
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +1 -1
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +71 -37
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib-cjs/component/elements/ReactTable/utility/addCustomColumn.js +3 -3
- package/lib-cjs/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib-cjs/component/elements/accordion/Accordion.js +2 -2
- package/lib-cjs/component/elements/draggble/useDraggable.js +1 -3
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +1 -2
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +4 -7
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib-cjs/component/elements/formik/FormikForm.js +2 -2
- package/lib-cjs/component/elements/formik/FormikInput.js +12 -20
- package/lib-cjs/component/elements/formik/FormikOnChange.js +13 -10
- package/lib-cjs/component/elements/formik/FormikSelect.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSlider.js +7 -10
- package/lib-cjs/component/elements/formik/FormikTextarea.js +1 -1
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib-cjs/component/elements/popup/Alert/Provider.js +8 -8
- package/lib-cjs/component/elements/popup/Alert/index.js +5 -5
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +16 -31
- package/lib-cjs/component/elements/popup/Modal/index.js +7 -7
- package/lib-cjs/component/header/Header.js +1 -1
- package/lib-cjs/component/hooks/useCombinedRefs.js +2 -2
- package/lib-cjs/component/hooks/useExport.js +14 -11
- package/lib-cjs/component/hooks/useFormatNumberByNucleus.js +1 -1
- package/lib-cjs/component/hooks/usePanelPreferences.js +9 -7
- package/lib-cjs/component/loader/DropZone.js +4 -4
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -1
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +2 -2
- package/lib-cjs/component/modal/LoadJCAMPModal.js +2 -2
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +1 -1
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +3 -3
- package/lib-cjs/component/modal/PredictSpectraModal.js +5 -5
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +4 -4
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +2 -2
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +25 -20
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +21 -27
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +10 -10
- package/lib-cjs/component/modal/setting/GeneralSettings.js +11 -14
- package/lib-cjs/component/modal/setting/GeneralTabContent.js +3 -1
- package/lib-cjs/component/modal/setting/ToolsTabContent.js +18 -19
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +37 -49
- package/lib-cjs/component/modal/setting/settingsValidation.js +14 -12
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +8 -7
- package/lib-cjs/component/panels/InformationPanel.js +51 -55
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +4 -4
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +16 -17
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +18 -17
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -2
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +1 -1
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +1 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -6
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +6 -6
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +2 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +2 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +13 -17
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -12
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +1 -5
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +8 -8
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +5 -4
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +20 -5
- package/lib-cjs/component/panels/extra/preferences/ColumnsHelper.js +5 -2
- package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +1 -1
- package/lib-cjs/component/reducer/IgnoreActions.js +3 -3
- package/lib-cjs/component/reducer/Reducer.js +11 -10
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib-cjs/component/reducer/actions/DomainActions.js +49 -67
- package/lib-cjs/component/reducer/actions/FiltersActions.js +3 -3
- package/lib-cjs/component/reducer/actions/HistoryActions.js +5 -5
- package/lib-cjs/component/reducer/actions/LoadActions.js +12 -0
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +18 -37
- package/lib-cjs/component/reducer/actions/RangesActions.js +14 -12
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +9 -3
- package/lib-cjs/component/reducer/actions/ToolsActions.js +20 -35
- package/lib-cjs/component/reducer/actions/ZonesActions.js +2 -2
- package/lib-cjs/component/reducer/core/Constants.js +1 -1
- package/lib-cjs/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +11 -10
- package/lib-cjs/component/reducer/helper/getSpectrum.js +3 -5
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +2 -3
- package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +3 -10
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +5 -9
- package/lib-cjs/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib-cjs/component/tool/BrushX.js +3 -3
- package/lib-cjs/component/tool/BrushXY.js +5 -5
- package/lib-cjs/component/tool/CrossLinePointer.js +3 -3
- package/lib-cjs/component/toolbar/BasicToolBar.js +1 -1
- package/lib-cjs/component/utility/Evaluate.js +2 -2
- package/lib-cjs/component/utility/FileUtility.js +11 -29
- package/lib-cjs/component/utility/GroupByInfoKey.js +11 -13
- package/lib-cjs/component/utility/PathBuilder.js +1 -1
- package/lib-cjs/component/utility/PreferencesHelper.js +2 -3
- package/lib-cjs/component/utility/{Export.js → export.js} +77 -79
- package/lib-cjs/component/utility/formatNumber.js +5 -4
- package/lib-cjs/data/Filters.js +17 -33
- package/lib-cjs/data/FiltersManager.js +4 -3
- package/lib-cjs/data/PredictionManager.js +8 -10
- package/lib-cjs/data/SpectraManager.js +26 -62
- package/lib-cjs/data/data1d/MultipleAnalysis.js +74 -70
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/index.js +25 -25
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +6 -5
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +8 -10
- package/lib-cjs/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +3 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +6 -7
- package/lib-cjs/data/data1d/database.js +45 -28
- package/lib-cjs/data/data1d/filter1d/apodization.js +2 -1
- package/lib-cjs/data/data1d/filter1d/fft.js +23 -6
- package/lib-cjs/data/data1d/filter1d/phaseCorrection.js +2 -2
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +1 -1
- package/lib-cjs/data/data1d/filter1d/zeroFilling.js +1 -1
- package/lib-cjs/data/data2d/Processing2D.js +7 -18
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +138 -0
- package/lib-cjs/data/data2d/Spectrum2D/index.js +11 -11
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +3 -4
- package/lib-cjs/data/data2d/Spectrum2D/shift/getShift.js +4 -5
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +11 -8
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +1 -1
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +1 -2
- package/lib-cjs/data/molecules/MoleculeManager.js +1 -1
- package/lib-cjs/data/utilities/RangeUtilities.js +13 -9
- package/lib-cjs/data/utilities/ZoneUtilities.js +17 -13
- package/lib-cjs/data/utilities/checkModifierKeyActivated.js +1 -2
- package/lib-cjs/data/utilities/generateChar.js +8 -6
- package/lib-cjs/data/utilities/getAtom.js +1 -1
- package/lib-cjs/data/utilities/getAtomsFromMF.js +2 -2
- package/lib-cjs/data/utilities/getColor.js +3 -3
- package/lib-cjs/data/utilities/getSum.js +6 -3
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +30 -26
- package/lib/component/1d/IntegralResizable.js +0 -72
- package/lib/component/elements/popup/helpers.d.ts +0 -1
- package/lib/component/elements/popup/helpers.js +0 -9
- package/lib/component/panels/RangesPanel/TableColumns/format.d.ts +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/format.js +0 -8
- package/lib/data/data1d/Data1DManager.d.ts +0 -3
- package/lib/data/data1d/Data1DManager.js +0 -98
- package/lib/data/data2d/Data2DManager.d.ts +0 -3
- package/lib/data/data2d/Data2DManager.js +0 -34
- package/lib/data/types/data2d/Contour.d.ts +0 -4
- package/lib/data/types/data2d/Contour.js +0 -1
- package/lib/data/types/data2d/Contours.d.ts +0 -2
- package/lib/data/types/data2d/Contours.js +0 -1
- package/lib-cjs/component/1d/IntegralResizable.js +0 -77
- package/lib-cjs/component/elements/popup/helpers.js +0 -13
- package/lib-cjs/component/panels/RangesPanel/TableColumns/format.js +0 -14
- package/lib-cjs/data/data1d/Data1DManager.js +0 -104
- package/lib-cjs/data/data2d/Data2DManager.js +0 -40
- package/lib-cjs/data/types/data2d/Contour.js +0 -2
- package/lib-cjs/data/types/data2d/Contours.js +0 -2
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.33.0-pre.1667632695",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib-cjs/component/NMRium.js",
|
|
7
7
|
"module": "lib/component/NMRium.js",
|
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "vite build --outDir build",
|
|
15
|
+
"postbuild": "rm build/data/cytisine/2d/HMBC_Cytisin_RI+FT.dx && rm build/data/cytisine/2d/HSQC_Cytisin_RI+FT.dx",
|
|
16
|
+
"build-cloudflare": "npm run set-version-sha && npm run build-with-profiling && npm run copy-samples-toc",
|
|
15
17
|
"build-no-minify": "cross-env NO_MINIFY=true npm run build",
|
|
16
|
-
"build-with-profiling": "cross-env WITH_PROFILING=true npm run build",
|
|
18
|
+
"build-with-profiling": "cross-env WITH_PROFILING=true NO_MINIFY=true npm run build",
|
|
17
19
|
"check-types": "tsc --project tsconfig.esm.json",
|
|
18
20
|
"compile": "tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
|
|
21
|
+
"copy-samples-toc": "cp src/demo/samples.json build/",
|
|
19
22
|
"clean-lib": "rimraf lib lib-cjs",
|
|
20
23
|
"dev": "vite --host localhost --port 3000 --strictPort --open",
|
|
21
24
|
"eslint": "eslint . --cache",
|
|
@@ -24,9 +27,10 @@
|
|
|
24
27
|
"prepack": "npm run clean-lib && npm run compile",
|
|
25
28
|
"prettier": "prettier --check src",
|
|
26
29
|
"prettier-write": "prettier --write src",
|
|
30
|
+
"set-version-sha": "SHA=$(git rev-parse HEAD) && echo \"export default { version: 'git-$SHA' };\" > src/versionInfo.ts",
|
|
27
31
|
"start": "npm run dev",
|
|
28
32
|
"test": "npm run test-only && npm run build-no-minify && npm run test-e2e && npm run eslint && npm run prettier && npm run check-types",
|
|
29
|
-
"test-only": "
|
|
33
|
+
"test-only": "vitest run --coverage",
|
|
30
34
|
"test-e2e": "playwright test --project chromium",
|
|
31
35
|
"test-e2e-server": "serve -l tcp://localhost:3000 build"
|
|
32
36
|
},
|
|
@@ -38,7 +42,7 @@
|
|
|
38
42
|
"url": "git+https://github.com/cheminfo/nmrium.git"
|
|
39
43
|
},
|
|
40
44
|
"volta": {
|
|
41
|
-
"node": "16.
|
|
45
|
+
"node": "16.18.0"
|
|
42
46
|
},
|
|
43
47
|
"overrides": {
|
|
44
48
|
"react": "$react",
|
|
@@ -49,17 +53,18 @@
|
|
|
49
53
|
"react-dom": ">=18.0.0"
|
|
50
54
|
},
|
|
51
55
|
"dependencies": {
|
|
52
|
-
"@emotion/react": "^11.10.
|
|
56
|
+
"@emotion/react": "^11.10.5",
|
|
53
57
|
"@lukeed/uuid": "^2.0.0",
|
|
54
|
-
"analysis-ui-components": "^0.
|
|
58
|
+
"analysis-ui-components": "^0.18.0",
|
|
55
59
|
"cheminfo-font": "^1.9.0",
|
|
56
60
|
"cheminfo-types": "^1.4.0",
|
|
61
|
+
"clipboard-polyfill": "^4.0.0-rc1",
|
|
57
62
|
"d3": "^7.6.1",
|
|
58
63
|
"eventemitter3": "^4.0.7",
|
|
59
64
|
"file-saver": "^2.0.5",
|
|
60
|
-
"filelist-utils": "^
|
|
65
|
+
"filelist-utils": "^1.1.1",
|
|
61
66
|
"formik": "^2.2.9",
|
|
62
|
-
"immer": "^9.0.
|
|
67
|
+
"immer": "^9.0.16",
|
|
63
68
|
"jszip": "^3.10.1",
|
|
64
69
|
"lodash": "^4.17.21",
|
|
65
70
|
"mf-parser": "^1.4.7",
|
|
@@ -69,29 +74,28 @@
|
|
|
69
74
|
"ml-array-median": "^1.1.6",
|
|
70
75
|
"ml-array-xy-equally-spaced": "^1.2.1",
|
|
71
76
|
"ml-baseline-correction-regression": "^1.0.0",
|
|
72
|
-
"ml-conrec": "^
|
|
77
|
+
"ml-conrec": "^4.0.0",
|
|
73
78
|
"ml-gsd": "^12.1.2",
|
|
74
79
|
"ml-spectra-processing": "^11.13.0",
|
|
75
80
|
"ml-stat": "^1.3.3",
|
|
76
81
|
"multiplet-analysis": "^2.0.0",
|
|
77
82
|
"nmr-correlation": "^2.3.3",
|
|
78
|
-
"nmr-load-save": "^0.
|
|
79
|
-
"nmr-parser": "^3.0.1",
|
|
83
|
+
"nmr-load-save": "^0.4.8",
|
|
80
84
|
"nmr-processing": "^9.2.0",
|
|
81
|
-
"nmredata": "^0.9.
|
|
85
|
+
"nmredata": "^0.9.1",
|
|
82
86
|
"numeral": "^2.0.6",
|
|
83
87
|
"openchemlib": "^8.0.1",
|
|
84
88
|
"openchemlib-utils": "^2.0.0",
|
|
85
89
|
"re-resizable": "^6.9.9",
|
|
86
|
-
"react-d3-utils": "^0.
|
|
90
|
+
"react-d3-utils": "^0.6.0",
|
|
87
91
|
"react-dropzone": "^14.2.3",
|
|
88
92
|
"react-error-boundary": "^3.1.4",
|
|
89
|
-
"react-icons": "^4.
|
|
93
|
+
"react-icons": "^4.6.0",
|
|
90
94
|
"react-inspector": "^6.0.1",
|
|
91
95
|
"react-mf": "^2.0.1",
|
|
92
96
|
"react-ocl": "^5.0.0",
|
|
93
97
|
"react-ocl-nmr": "^2.0.0",
|
|
94
|
-
"react-plot": "^0.20.
|
|
98
|
+
"react-plot": "^0.20.3",
|
|
95
99
|
"react-rnd": "^10.3.7",
|
|
96
100
|
"react-slider": "^2.0.4",
|
|
97
101
|
"react-table": "^7.8.0",
|
|
@@ -101,24 +105,23 @@
|
|
|
101
105
|
"yup": "^0.32.11"
|
|
102
106
|
},
|
|
103
107
|
"devDependencies": {
|
|
104
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
108
|
+
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
|
|
105
109
|
"@babel/preset-react": "^7.18.6",
|
|
106
110
|
"@babel/preset-typescript": "^7.18.6",
|
|
107
111
|
"@playwright/test": "^1.27.1",
|
|
108
112
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
109
113
|
"@types/d3": "^7.4.0",
|
|
110
|
-
"@types/
|
|
111
|
-
"@types/
|
|
112
|
-
"@types/react": "^18.0.
|
|
113
|
-
"@
|
|
114
|
-
"@
|
|
114
|
+
"@types/node": "^18.11.8",
|
|
115
|
+
"@types/react": "^18.0.24",
|
|
116
|
+
"@types/react-dom": "^18.0.8",
|
|
117
|
+
"@vitejs/plugin-react": "^2.2.0",
|
|
118
|
+
"@vitest/coverage-c8": "^0.24.4",
|
|
115
119
|
"@zakodium/eslint-config": "^6.0.0",
|
|
116
120
|
"cross-env": "^7.0.3",
|
|
117
|
-
"eslint": "^8.
|
|
118
|
-
"jest": "^29.1.2",
|
|
121
|
+
"eslint": "^8.26.0",
|
|
119
122
|
"modern-normalize": "^1.1.0",
|
|
120
123
|
"prettier": "^2.7.1",
|
|
121
|
-
"rc-menu": "^9.
|
|
124
|
+
"rc-menu": "^9.7.1",
|
|
122
125
|
"react": "^18.2.0",
|
|
123
126
|
"react-dom": "^18.2.0",
|
|
124
127
|
"react-router-dom": "^6.4.2",
|
|
@@ -126,6 +129,7 @@
|
|
|
126
129
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
127
130
|
"serve": "^14.0.1",
|
|
128
131
|
"typescript": "~4.8.4",
|
|
129
|
-
"vite": "^3.
|
|
132
|
+
"vite": "^3.2.2",
|
|
133
|
+
"vitest": "^0.24.4"
|
|
130
134
|
}
|
|
131
|
-
}
|
|
135
|
+
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
-
/** @jsxImportSource @emotion/react */
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { useCallback } from 'react';
|
|
5
|
-
import { useChartData } from '../context/ChartContext';
|
|
6
|
-
import { useDispatch } from '../context/DispatchContext';
|
|
7
|
-
import { useGlobal } from '../context/GlobalContext';
|
|
8
|
-
import { useScaleChecked } from '../context/ScaleContext';
|
|
9
|
-
import Resizer from '../elements/resizer/Resizer';
|
|
10
|
-
import { HighlightEventSource, useHighlight } from '../highlight/index';
|
|
11
|
-
import { RESIZE_INTEGRAL } from '../reducer/types/Types';
|
|
12
|
-
import { options } from '../toolbar/ToolTypes';
|
|
13
|
-
import { formatNumber } from '../utility/formatNumber';
|
|
14
|
-
const stylesOnHover = css `
|
|
15
|
-
pointer-events: bounding-box;
|
|
16
|
-
@-moz-document url-prefix() {
|
|
17
|
-
pointer-events: fill;
|
|
18
|
-
}
|
|
19
|
-
.highlight {
|
|
20
|
-
fill: transparent;
|
|
21
|
-
}
|
|
22
|
-
.target {
|
|
23
|
-
visibility: hidden;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
const stylesHighlighted = css `
|
|
27
|
-
pointer-events: bounding-box;
|
|
28
|
-
|
|
29
|
-
@-moz-document url-prefix() {
|
|
30
|
-
pointer-events: fill;
|
|
31
|
-
}
|
|
32
|
-
fill: #ff6f0057;
|
|
33
|
-
|
|
34
|
-
.target {
|
|
35
|
-
visibility: visible;
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
function IntegralResizable({ integralData, integralFormat, }) {
|
|
39
|
-
const { height, margin, toolOptions: { selectedTool }, } = useChartData();
|
|
40
|
-
const { viewerRef } = useGlobal();
|
|
41
|
-
const { scaleX } = useScaleChecked();
|
|
42
|
-
const dispatch = useDispatch();
|
|
43
|
-
const { id, integral } = integralData;
|
|
44
|
-
const highlight = useHighlight([id], {
|
|
45
|
-
type: HighlightEventSource.INTEGRAL,
|
|
46
|
-
extra: { id },
|
|
47
|
-
});
|
|
48
|
-
const handleOnStopResizing = useCallback((position) => {
|
|
49
|
-
dispatch({
|
|
50
|
-
type: RESIZE_INTEGRAL,
|
|
51
|
-
payload: {
|
|
52
|
-
data: {
|
|
53
|
-
...integralData,
|
|
54
|
-
from: scaleX().invert(position.x2),
|
|
55
|
-
to: scaleX().invert(position.x1),
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
}, [dispatch, integralData, scaleX]);
|
|
60
|
-
const handleOnEnterNotation = useCallback(() => {
|
|
61
|
-
highlight.show();
|
|
62
|
-
}, [highlight]);
|
|
63
|
-
const handleOnMouseLeaveNotation = useCallback(() => {
|
|
64
|
-
highlight.hide();
|
|
65
|
-
}, [highlight]);
|
|
66
|
-
const from = integralData.from ? scaleX()(integralData.from) : 0;
|
|
67
|
-
const to = integralData.to ? scaleX()(integralData.to) : 0;
|
|
68
|
-
return (_jsx("g", { onMouseEnter: handleOnEnterNotation, onMouseLeave: handleOnMouseLeaveNotation, children: _jsx(Resizer, { tag: "svg", initialPosition: { x1: to, x2: from }, onEnd: handleOnStopResizing, parentElement: viewerRef, disabled: selectedTool !== options.integral.id, children: ({ x1, x2 }, isActive) => (_jsxs("g", { css: highlight.isActive || isActive ? stylesHighlighted : stylesOnHover, children: [_jsx("rect", { x: "0", y: "0", width: x2 - x1, height: height - margin.bottom, className: "highlight", "data-no-export": "true" }), _jsx("text", { x: 0, y: height - margin.bottom + 30, fill: "black", style: { fontSize: '12px', fontWeight: 'bold' }, children: integral !== undefined
|
|
69
|
-
? formatNumber(integral, integralFormat)
|
|
70
|
-
: '' })] })) }, `${id}_${to}_${from}`) }));
|
|
71
|
-
}
|
|
72
|
-
export default IntegralResizable;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function groupBy(array: Array<any>, fn: (item: any) => string): Array<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useFormat(preferences: any): (value: any, keysPath: any, prefix?: string, suffix?: string) => any;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import lodashGet from 'lodash/get';
|
|
2
|
-
import { formatNumber } from '../../../utility/formatNumber';
|
|
3
|
-
export default function useFormat(preferences) {
|
|
4
|
-
return (value, keysPath, prefix = '', suffix = '') => {
|
|
5
|
-
const format = lodashGet(preferences, keysPath, '0.000');
|
|
6
|
-
return formatNumber(value, format, prefix, suffix);
|
|
7
|
-
};
|
|
8
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function fromBruker(result: any, options?: {}, usedColors?: {}): import("../types/data1d").Datum1D;
|
|
2
|
-
export declare function fromCSD(result: any, options?: {}, usedColors?: {}): import("../types/data1d").Datum1D;
|
|
3
|
-
export declare function fromParsedJcamp(parsedJcamp: any, options: any, usedColors: any, jcampSpectrumIndex: number): import("../types/data1d").Datum1D;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { initiateDatum1D } from './Spectrum1D';
|
|
2
|
-
export function fromBruker(result, options = {}, usedColors = {}) {
|
|
3
|
-
const { dependentVariables, info, meta, source } = result;
|
|
4
|
-
let { data } = dependentVariables[0].components[0];
|
|
5
|
-
const { x, re, im } = data;
|
|
6
|
-
if (x[0] > x[1]) {
|
|
7
|
-
x.reverse();
|
|
8
|
-
re.reverse();
|
|
9
|
-
if (im)
|
|
10
|
-
im.reverse();
|
|
11
|
-
}
|
|
12
|
-
if (data.im)
|
|
13
|
-
info.isComplex = true;
|
|
14
|
-
if (Array.isArray(info.nucleus))
|
|
15
|
-
info.nucleus = info.nucleus[0];
|
|
16
|
-
const datum1D = initiateDatum1D({
|
|
17
|
-
...options,
|
|
18
|
-
source,
|
|
19
|
-
info,
|
|
20
|
-
meta,
|
|
21
|
-
data,
|
|
22
|
-
}, usedColors);
|
|
23
|
-
return datum1D;
|
|
24
|
-
}
|
|
25
|
-
export function fromCSD(result, options = {}, usedColors = {}) {
|
|
26
|
-
let dimension = result.dimensions[0];
|
|
27
|
-
let dependentVariables = result.dependentVariables;
|
|
28
|
-
let quantityName = dimension.quantityName;
|
|
29
|
-
let n = dimension.count;
|
|
30
|
-
let incr = dimension.increment.magnitude;
|
|
31
|
-
let origin = dimension.originOffset.magnitude;
|
|
32
|
-
let offset = dimension.coordinatesOffset.magnitude;
|
|
33
|
-
let buffer = dependentVariables[0].components[0];
|
|
34
|
-
const re = new Float64Array(n);
|
|
35
|
-
const im = new Float64Array(n);
|
|
36
|
-
for (let i = buffer.length - 1, index = 0; i > 0; i -= 2) {
|
|
37
|
-
re[index] = buffer[i - 1];
|
|
38
|
-
im[index++] = buffer[i];
|
|
39
|
-
}
|
|
40
|
-
let data = {};
|
|
41
|
-
let i, x0;
|
|
42
|
-
switch (quantityName) {
|
|
43
|
-
case 'frequency':
|
|
44
|
-
x0 = 0 + (offset / origin) * 1000000;
|
|
45
|
-
i = (incr / origin) * 1000000;
|
|
46
|
-
data.re = re;
|
|
47
|
-
data.im = im;
|
|
48
|
-
break;
|
|
49
|
-
case 'time':
|
|
50
|
-
x0 = origin;
|
|
51
|
-
i = incr;
|
|
52
|
-
data.re = re.reverse();
|
|
53
|
-
data.im = im.reverse().map((z) => -z);
|
|
54
|
-
break;
|
|
55
|
-
default:
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
let scale = [];
|
|
59
|
-
for (let x = 0; x < n; x++) {
|
|
60
|
-
scale.push(x0 + x * i);
|
|
61
|
-
}
|
|
62
|
-
data.x = scale;
|
|
63
|
-
const datum1D = initiateDatum1D({
|
|
64
|
-
...options,
|
|
65
|
-
data,
|
|
66
|
-
}, usedColors);
|
|
67
|
-
return datum1D;
|
|
68
|
-
}
|
|
69
|
-
export function fromParsedJcamp(parsedJcamp, options, usedColors, jcampSpectrumIndex) {
|
|
70
|
-
const { dependentVariables, info, meta } = parsedJcamp;
|
|
71
|
-
let data = getData(dependentVariables[0].components);
|
|
72
|
-
if (Array.isArray(info.nucleus))
|
|
73
|
-
info.nucleus = info.nucleus[0];
|
|
74
|
-
const datum1D = initiateDatum1D({
|
|
75
|
-
...options,
|
|
76
|
-
source: { ...options.source, jcampSpectrumIndex },
|
|
77
|
-
display: {
|
|
78
|
-
...options.display,
|
|
79
|
-
name: options?.display?.name ? options.display.name : info?.title,
|
|
80
|
-
},
|
|
81
|
-
info,
|
|
82
|
-
meta,
|
|
83
|
-
data,
|
|
84
|
-
}, usedColors);
|
|
85
|
-
return datum1D;
|
|
86
|
-
}
|
|
87
|
-
function getData(spectra) {
|
|
88
|
-
let x = spectra[0]?.data?.x ? spectra[0].data.x : [];
|
|
89
|
-
let re = spectra[0]?.data?.y ? spectra[0].data.y : [];
|
|
90
|
-
let im = spectra[1]?.data?.y ? spectra[1].data.y : null;
|
|
91
|
-
if (x[0] > x[1]) {
|
|
92
|
-
x.reverse();
|
|
93
|
-
re.reverse();
|
|
94
|
-
if (im)
|
|
95
|
-
im.reverse();
|
|
96
|
-
}
|
|
97
|
-
return { x, re, im };
|
|
98
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function fromParsedJcamp(parsedJcamp: any, options: any, usedColors: any, jcampSpectrumIndex: number): import("../types/data2d").Datum2D;
|
|
2
|
-
export declare function fromBruker(result: any, options?: {}, usedColors?: {}): import("../types/data2d").Datum2D;
|
|
3
|
-
export declare function fromCSD(result: any, options?: {}, usedColors?: {}): import("../types/data2d").Datum2D;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { initiateDatum2D } from './Spectrum2D';
|
|
2
|
-
export function fromParsedJcamp(parsedJcamp, options, usedColors, jcampSpectrumIndex) {
|
|
3
|
-
const { dependentVariables, info, meta } = parsedJcamp;
|
|
4
|
-
let data = dependentVariables[0].components;
|
|
5
|
-
const ob = initiateDatum2D({
|
|
6
|
-
...options,
|
|
7
|
-
source: { ...options?.source, jcampSpectrumIndex },
|
|
8
|
-
display: {
|
|
9
|
-
...options.display,
|
|
10
|
-
name: options?.display?.name ? options.display.name : info?.title,
|
|
11
|
-
},
|
|
12
|
-
info,
|
|
13
|
-
meta,
|
|
14
|
-
data,
|
|
15
|
-
}, usedColors);
|
|
16
|
-
return ob;
|
|
17
|
-
}
|
|
18
|
-
export function fromBruker(result, options = {}, usedColors = {}) {
|
|
19
|
-
const { dependentVariables, meta, source } = result;
|
|
20
|
-
let data = dependentVariables[0].components;
|
|
21
|
-
const datum2D = initiateDatum2D({
|
|
22
|
-
...options,
|
|
23
|
-
source,
|
|
24
|
-
meta,
|
|
25
|
-
data,
|
|
26
|
-
}, usedColors);
|
|
27
|
-
return datum2D;
|
|
28
|
-
}
|
|
29
|
-
// TODO: implement this.
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
|
-
export function fromCSD(result, options = {}, usedColors = {}) {
|
|
32
|
-
const datum2D = initiateDatum2D({}, usedColors);
|
|
33
|
-
return datum2D;
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,77 +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("@emotion/react/jsx-runtime");
|
|
7
|
-
/** @jsxImportSource @emotion/react */
|
|
8
|
-
const react_1 = require("@emotion/react");
|
|
9
|
-
const react_2 = require("react");
|
|
10
|
-
const ChartContext_1 = require("../context/ChartContext");
|
|
11
|
-
const DispatchContext_1 = require("../context/DispatchContext");
|
|
12
|
-
const GlobalContext_1 = require("../context/GlobalContext");
|
|
13
|
-
const ScaleContext_1 = require("../context/ScaleContext");
|
|
14
|
-
const Resizer_1 = __importDefault(require("../elements/resizer/Resizer"));
|
|
15
|
-
const index_1 = require("../highlight/index");
|
|
16
|
-
const Types_1 = require("../reducer/types/Types");
|
|
17
|
-
const ToolTypes_1 = require("../toolbar/ToolTypes");
|
|
18
|
-
const formatNumber_1 = require("../utility/formatNumber");
|
|
19
|
-
const stylesOnHover = (0, react_1.css) `
|
|
20
|
-
pointer-events: bounding-box;
|
|
21
|
-
@-moz-document url-prefix() {
|
|
22
|
-
pointer-events: fill;
|
|
23
|
-
}
|
|
24
|
-
.highlight {
|
|
25
|
-
fill: transparent;
|
|
26
|
-
}
|
|
27
|
-
.target {
|
|
28
|
-
visibility: hidden;
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
31
|
-
const stylesHighlighted = (0, react_1.css) `
|
|
32
|
-
pointer-events: bounding-box;
|
|
33
|
-
|
|
34
|
-
@-moz-document url-prefix() {
|
|
35
|
-
pointer-events: fill;
|
|
36
|
-
}
|
|
37
|
-
fill: #ff6f0057;
|
|
38
|
-
|
|
39
|
-
.target {
|
|
40
|
-
visibility: visible;
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
function IntegralResizable({ integralData, integralFormat, }) {
|
|
44
|
-
const { height, margin, toolOptions: { selectedTool }, } = (0, ChartContext_1.useChartData)();
|
|
45
|
-
const { viewerRef } = (0, GlobalContext_1.useGlobal)();
|
|
46
|
-
const { scaleX } = (0, ScaleContext_1.useScaleChecked)();
|
|
47
|
-
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
48
|
-
const { id, integral } = integralData;
|
|
49
|
-
const highlight = (0, index_1.useHighlight)([id], {
|
|
50
|
-
type: index_1.HighlightEventSource.INTEGRAL,
|
|
51
|
-
extra: { id },
|
|
52
|
-
});
|
|
53
|
-
const handleOnStopResizing = (0, react_2.useCallback)((position) => {
|
|
54
|
-
dispatch({
|
|
55
|
-
type: Types_1.RESIZE_INTEGRAL,
|
|
56
|
-
payload: {
|
|
57
|
-
data: {
|
|
58
|
-
...integralData,
|
|
59
|
-
from: scaleX().invert(position.x2),
|
|
60
|
-
to: scaleX().invert(position.x1),
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
}, [dispatch, integralData, scaleX]);
|
|
65
|
-
const handleOnEnterNotation = (0, react_2.useCallback)(() => {
|
|
66
|
-
highlight.show();
|
|
67
|
-
}, [highlight]);
|
|
68
|
-
const handleOnMouseLeaveNotation = (0, react_2.useCallback)(() => {
|
|
69
|
-
highlight.hide();
|
|
70
|
-
}, [highlight]);
|
|
71
|
-
const from = integralData.from ? scaleX()(integralData.from) : 0;
|
|
72
|
-
const to = integralData.to ? scaleX()(integralData.to) : 0;
|
|
73
|
-
return ((0, jsx_runtime_1.jsx)("g", { onMouseEnter: handleOnEnterNotation, onMouseLeave: handleOnMouseLeaveNotation, children: (0, jsx_runtime_1.jsx)(Resizer_1.default, { tag: "svg", initialPosition: { x1: to, x2: from }, onEnd: handleOnStopResizing, parentElement: viewerRef, disabled: selectedTool !== ToolTypes_1.options.integral.id, children: ({ x1, x2 }, isActive) => ((0, jsx_runtime_1.jsxs)("g", { css: highlight.isActive || isActive ? stylesHighlighted : stylesOnHover, children: [(0, jsx_runtime_1.jsx)("rect", { x: "0", y: "0", width: x2 - x1, height: height - margin.bottom, className: "highlight", "data-no-export": "true" }), (0, jsx_runtime_1.jsx)("text", { x: 0, y: height - margin.bottom + 30, fill: "black", style: { fontSize: '12px', fontWeight: 'bold' }, children: integral !== undefined
|
|
74
|
-
? (0, formatNumber_1.formatNumber)(integral, integralFormat)
|
|
75
|
-
: '' })] })) }, `${id}_${to}_${from}`) }));
|
|
76
|
-
}
|
|
77
|
-
exports.default = IntegralResizable;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.groupBy = void 0;
|
|
4
|
-
function groupBy(array, fn) {
|
|
5
|
-
return array.reduce((result, item) => {
|
|
6
|
-
const key = fn(item);
|
|
7
|
-
if (!result[key])
|
|
8
|
-
result[key] = [];
|
|
9
|
-
result[key].push(item);
|
|
10
|
-
return result;
|
|
11
|
-
}, {});
|
|
12
|
-
}
|
|
13
|
-
exports.groupBy = groupBy;
|
|
@@ -1,14 +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 get_1 = __importDefault(require("lodash/get"));
|
|
7
|
-
const formatNumber_1 = require("../../../utility/formatNumber");
|
|
8
|
-
function useFormat(preferences) {
|
|
9
|
-
return (value, keysPath, prefix = '', suffix = '') => {
|
|
10
|
-
const format = (0, get_1.default)(preferences, keysPath, '0.000');
|
|
11
|
-
return (0, formatNumber_1.formatNumber)(value, format, prefix, suffix);
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
exports.default = useFormat;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fromParsedJcamp = exports.fromCSD = exports.fromBruker = void 0;
|
|
4
|
-
const Spectrum1D_1 = require("./Spectrum1D");
|
|
5
|
-
function fromBruker(result, options = {}, usedColors = {}) {
|
|
6
|
-
const { dependentVariables, info, meta, source } = result;
|
|
7
|
-
let { data } = dependentVariables[0].components[0];
|
|
8
|
-
const { x, re, im } = data;
|
|
9
|
-
if (x[0] > x[1]) {
|
|
10
|
-
x.reverse();
|
|
11
|
-
re.reverse();
|
|
12
|
-
if (im)
|
|
13
|
-
im.reverse();
|
|
14
|
-
}
|
|
15
|
-
if (data.im)
|
|
16
|
-
info.isComplex = true;
|
|
17
|
-
if (Array.isArray(info.nucleus))
|
|
18
|
-
info.nucleus = info.nucleus[0];
|
|
19
|
-
const datum1D = (0, Spectrum1D_1.initiateDatum1D)({
|
|
20
|
-
...options,
|
|
21
|
-
source,
|
|
22
|
-
info,
|
|
23
|
-
meta,
|
|
24
|
-
data,
|
|
25
|
-
}, usedColors);
|
|
26
|
-
return datum1D;
|
|
27
|
-
}
|
|
28
|
-
exports.fromBruker = fromBruker;
|
|
29
|
-
function fromCSD(result, options = {}, usedColors = {}) {
|
|
30
|
-
let dimension = result.dimensions[0];
|
|
31
|
-
let dependentVariables = result.dependentVariables;
|
|
32
|
-
let quantityName = dimension.quantityName;
|
|
33
|
-
let n = dimension.count;
|
|
34
|
-
let incr = dimension.increment.magnitude;
|
|
35
|
-
let origin = dimension.originOffset.magnitude;
|
|
36
|
-
let offset = dimension.coordinatesOffset.magnitude;
|
|
37
|
-
let buffer = dependentVariables[0].components[0];
|
|
38
|
-
const re = new Float64Array(n);
|
|
39
|
-
const im = new Float64Array(n);
|
|
40
|
-
for (let i = buffer.length - 1, index = 0; i > 0; i -= 2) {
|
|
41
|
-
re[index] = buffer[i - 1];
|
|
42
|
-
im[index++] = buffer[i];
|
|
43
|
-
}
|
|
44
|
-
let data = {};
|
|
45
|
-
let i, x0;
|
|
46
|
-
switch (quantityName) {
|
|
47
|
-
case 'frequency':
|
|
48
|
-
x0 = 0 + (offset / origin) * 1000000;
|
|
49
|
-
i = (incr / origin) * 1000000;
|
|
50
|
-
data.re = re;
|
|
51
|
-
data.im = im;
|
|
52
|
-
break;
|
|
53
|
-
case 'time':
|
|
54
|
-
x0 = origin;
|
|
55
|
-
i = incr;
|
|
56
|
-
data.re = re.reverse();
|
|
57
|
-
data.im = im.reverse().map((z) => -z);
|
|
58
|
-
break;
|
|
59
|
-
default:
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
let scale = [];
|
|
63
|
-
for (let x = 0; x < n; x++) {
|
|
64
|
-
scale.push(x0 + x * i);
|
|
65
|
-
}
|
|
66
|
-
data.x = scale;
|
|
67
|
-
const datum1D = (0, Spectrum1D_1.initiateDatum1D)({
|
|
68
|
-
...options,
|
|
69
|
-
data,
|
|
70
|
-
}, usedColors);
|
|
71
|
-
return datum1D;
|
|
72
|
-
}
|
|
73
|
-
exports.fromCSD = fromCSD;
|
|
74
|
-
function fromParsedJcamp(parsedJcamp, options, usedColors, jcampSpectrumIndex) {
|
|
75
|
-
const { dependentVariables, info, meta } = parsedJcamp;
|
|
76
|
-
let data = getData(dependentVariables[0].components);
|
|
77
|
-
if (Array.isArray(info.nucleus))
|
|
78
|
-
info.nucleus = info.nucleus[0];
|
|
79
|
-
const datum1D = (0, Spectrum1D_1.initiateDatum1D)({
|
|
80
|
-
...options,
|
|
81
|
-
source: { ...options.source, jcampSpectrumIndex },
|
|
82
|
-
display: {
|
|
83
|
-
...options.display,
|
|
84
|
-
name: options?.display?.name ? options.display.name : info?.title,
|
|
85
|
-
},
|
|
86
|
-
info,
|
|
87
|
-
meta,
|
|
88
|
-
data,
|
|
89
|
-
}, usedColors);
|
|
90
|
-
return datum1D;
|
|
91
|
-
}
|
|
92
|
-
exports.fromParsedJcamp = fromParsedJcamp;
|
|
93
|
-
function getData(spectra) {
|
|
94
|
-
let x = spectra[0]?.data?.x ? spectra[0].data.x : [];
|
|
95
|
-
let re = spectra[0]?.data?.y ? spectra[0].data.y : [];
|
|
96
|
-
let im = spectra[1]?.data?.y ? spectra[1].data.y : null;
|
|
97
|
-
if (x[0] > x[1]) {
|
|
98
|
-
x.reverse();
|
|
99
|
-
re.reverse();
|
|
100
|
-
if (im)
|
|
101
|
-
im.reverse();
|
|
102
|
-
}
|
|
103
|
-
return { x, re, im };
|
|
104
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fromCSD = exports.fromBruker = exports.fromParsedJcamp = void 0;
|
|
4
|
-
const Spectrum2D_1 = require("./Spectrum2D");
|
|
5
|
-
function fromParsedJcamp(parsedJcamp, options, usedColors, jcampSpectrumIndex) {
|
|
6
|
-
const { dependentVariables, info, meta } = parsedJcamp;
|
|
7
|
-
let data = dependentVariables[0].components;
|
|
8
|
-
const ob = (0, Spectrum2D_1.initiateDatum2D)({
|
|
9
|
-
...options,
|
|
10
|
-
source: { ...options?.source, jcampSpectrumIndex },
|
|
11
|
-
display: {
|
|
12
|
-
...options.display,
|
|
13
|
-
name: options?.display?.name ? options.display.name : info?.title,
|
|
14
|
-
},
|
|
15
|
-
info,
|
|
16
|
-
meta,
|
|
17
|
-
data,
|
|
18
|
-
}, usedColors);
|
|
19
|
-
return ob;
|
|
20
|
-
}
|
|
21
|
-
exports.fromParsedJcamp = fromParsedJcamp;
|
|
22
|
-
function fromBruker(result, options = {}, usedColors = {}) {
|
|
23
|
-
const { dependentVariables, meta, source } = result;
|
|
24
|
-
let data = dependentVariables[0].components;
|
|
25
|
-
const datum2D = (0, Spectrum2D_1.initiateDatum2D)({
|
|
26
|
-
...options,
|
|
27
|
-
source,
|
|
28
|
-
meta,
|
|
29
|
-
data,
|
|
30
|
-
}, usedColors);
|
|
31
|
-
return datum2D;
|
|
32
|
-
}
|
|
33
|
-
exports.fromBruker = fromBruker;
|
|
34
|
-
// TODO: implement this.
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
36
|
-
function fromCSD(result, options = {}, usedColors = {}) {
|
|
37
|
-
const datum2D = (0, Spectrum2D_1.initiateDatum2D)({}, usedColors);
|
|
38
|
-
return datum2D;
|
|
39
|
-
}
|
|
40
|
-
exports.fromCSD = fromCSD;
|