@complat/react-spectra-editor 1.3.4 → 1.3.5
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/dist/app.js
CHANGED
|
@@ -56,7 +56,7 @@ const SpectraEditor = _ref => {
|
|
|
56
56
|
molSvg,
|
|
57
57
|
editorOnly,
|
|
58
58
|
descriptions,
|
|
59
|
-
|
|
59
|
+
exactMass,
|
|
60
60
|
canChangeDescription,
|
|
61
61
|
onDescriptionChanged,
|
|
62
62
|
multiEntities,
|
|
@@ -83,7 +83,7 @@ const SpectraEditor = _ref => {
|
|
|
83
83
|
molSvg: molSvg,
|
|
84
84
|
multiMolSvgs: multiMolSvgs,
|
|
85
85
|
editorOnly: editorOnly,
|
|
86
|
-
|
|
86
|
+
exactMass: exactMass,
|
|
87
87
|
canChangeDescription: canChangeDescription,
|
|
88
88
|
onDescriptionChanged: onDescriptionChanged
|
|
89
89
|
})));
|
|
@@ -106,7 +106,7 @@ SpectraEditor.propTypes = {
|
|
|
106
106
|
canChangeDescription: _propTypes.default.bool,
|
|
107
107
|
onDescriptionChanged: _propTypes.default.func,
|
|
108
108
|
userManualLink: _propTypes.default.object,
|
|
109
|
-
|
|
109
|
+
exactMass: _propTypes.default.string
|
|
110
110
|
};
|
|
111
111
|
SpectraEditor.defaultProps = {
|
|
112
112
|
others: {
|
|
@@ -122,7 +122,7 @@ SpectraEditor.defaultProps = {
|
|
|
122
122
|
operations: [],
|
|
123
123
|
descriptions: [],
|
|
124
124
|
molSvg: '',
|
|
125
|
-
|
|
125
|
+
exactMass: '',
|
|
126
126
|
multiMolSvgs: [],
|
|
127
127
|
editorOnly: false,
|
|
128
128
|
canChangeDescription: false,
|
|
@@ -63,7 +63,7 @@ class MultiJcampsViewer extends _react.default.Component {
|
|
|
63
63
|
entities,
|
|
64
64
|
userManualLink,
|
|
65
65
|
molSvg,
|
|
66
|
-
|
|
66
|
+
exactMass,
|
|
67
67
|
layoutSt,
|
|
68
68
|
integrationSt
|
|
69
69
|
} = this.props;
|
|
@@ -112,7 +112,7 @@ class MultiJcampsViewer extends _react.default.Component {
|
|
|
112
112
|
userManualLink: userManualLink,
|
|
113
113
|
feature: feature,
|
|
114
114
|
molSvg: molSvg,
|
|
115
|
-
|
|
115
|
+
exactMass: exactMass,
|
|
116
116
|
subLayoutsInfo: seperatedSubLayouts,
|
|
117
117
|
integration: currentIntegration,
|
|
118
118
|
descriptions: "",
|
|
@@ -152,7 +152,7 @@ MultiJcampsViewer.propTypes = {
|
|
|
152
152
|
userManualLink: _propTypes.default.object,
|
|
153
153
|
entities: _propTypes.default.array,
|
|
154
154
|
layoutSt: _propTypes.default.string.isRequired,
|
|
155
|
-
|
|
155
|
+
exactMass: _propTypes.default.string,
|
|
156
156
|
integrationSt: _propTypes.default.object.isRequired
|
|
157
157
|
};
|
|
158
158
|
MultiJcampsViewer.defaultProps = {
|
|
@@ -85,7 +85,7 @@ class PanelViewer extends _react.default.Component {
|
|
|
85
85
|
curveSt,
|
|
86
86
|
userManualLink,
|
|
87
87
|
subLayoutsInfo,
|
|
88
|
-
|
|
88
|
+
exactMass
|
|
89
89
|
} = this.props;
|
|
90
90
|
const onExapndInfo = () => this.onExapnd('info');
|
|
91
91
|
const onExapndPeak = () => this.onExapnd('peak');
|
|
@@ -115,7 +115,7 @@ class PanelViewer extends _react.default.Component {
|
|
|
115
115
|
editorOnly: editorOnly,
|
|
116
116
|
expand: expand === 'info',
|
|
117
117
|
molSvg: molSvg,
|
|
118
|
-
|
|
118
|
+
exactMass: exactMass,
|
|
119
119
|
onExapnd: onExapndInfo,
|
|
120
120
|
descriptions: descriptions,
|
|
121
121
|
canChangeDescription: canChangeDescription,
|
|
@@ -159,7 +159,7 @@ PanelViewer.propTypes = {
|
|
|
159
159
|
userManualLink: _propTypes.default.object,
|
|
160
160
|
curveSt: _propTypes.default.object.isRequired,
|
|
161
161
|
subLayoutsInfo: _propTypes.default.object,
|
|
162
|
-
|
|
162
|
+
exactMass: _propTypes.default.string
|
|
163
163
|
};
|
|
164
164
|
var _default = exports.default = (0, _reactRedux.connect)(
|
|
165
165
|
// eslint-disable-line
|
|
@@ -231,7 +231,7 @@ const InfoPanel = _ref3 => {
|
|
|
231
231
|
simulationSt,
|
|
232
232
|
shiftSt,
|
|
233
233
|
curveSt,
|
|
234
|
-
|
|
234
|
+
exactMass,
|
|
235
235
|
onExapnd,
|
|
236
236
|
canChangeDescription,
|
|
237
237
|
onDescriptionChanged,
|
|
@@ -313,13 +313,13 @@ const InfoPanel = _ref3 => {
|
|
|
313
313
|
className: (0, _classnames.default)(classes.tTxt, classes.tHead, 'txt-sv-panel-txt')
|
|
314
314
|
}, "Solv : "), /*#__PURE__*/_react.default.createElement("span", {
|
|
315
315
|
className: (0, _classnames.default)(classes.tTxt, 'txt-sv-panel-txt')
|
|
316
|
-
}, showSolvName)) : null, _format.default.isMsLayout(layoutSt) &&
|
|
316
|
+
}, showSolvName)) : null, _format.default.isMsLayout(layoutSt) && exactMass ? /*#__PURE__*/_react.default.createElement("div", {
|
|
317
317
|
className: (0, _classnames.default)(classes.rowRoot, classes.rowOdd)
|
|
318
318
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
319
319
|
className: (0, _classnames.default)(classes.tTxt, classes.tHead, 'txt-sv-panel-txt')
|
|
320
|
-
}, "
|
|
320
|
+
}, "Exact mass: "), /*#__PURE__*/_react.default.createElement("span", {
|
|
321
321
|
className: (0, _classnames.default)(classes.tTxt, 'txt-sv-panel-txt')
|
|
322
|
-
}, `${parseFloat(
|
|
322
|
+
}, `${parseFloat(exactMass).toFixed(6)} g/mol`)) : null, /*#__PURE__*/_react.default.createElement(SECData, {
|
|
323
323
|
classes: classes,
|
|
324
324
|
layout: layoutSt,
|
|
325
325
|
detector: selectedDetector,
|
|
@@ -383,7 +383,7 @@ InfoPanel.propTypes = {
|
|
|
383
383
|
onExapnd: _propTypes.default.func.isRequired,
|
|
384
384
|
canChangeDescription: _propTypes.default.bool.isRequired,
|
|
385
385
|
onDescriptionChanged: _propTypes.default.func,
|
|
386
|
-
|
|
386
|
+
exactMass: _propTypes.default.string,
|
|
387
387
|
detectorSt: _propTypes.default.object.isRequired,
|
|
388
388
|
metaSt: _propTypes.default.object.isRequired,
|
|
389
389
|
updateDSCMetaDataAct: _propTypes.default.func.isRequired
|
package/dist/index.js
CHANGED
|
@@ -780,7 +780,7 @@ class DemoWriteIr extends _react.default.Component {
|
|
|
780
780
|
canChangeDescription: true,
|
|
781
781
|
onDescriptionChanged: this.onDescriptionChanged,
|
|
782
782
|
molSvg: molSvg,
|
|
783
|
-
|
|
783
|
+
exactMass: '123.0',
|
|
784
784
|
userManualLink: {
|
|
785
785
|
cv: "https://www.chemotion.net/chemotionsaurus/docs/eln/chemspectra/cvanalysis"
|
|
786
786
|
},
|
package/dist/layer_init.js
CHANGED
|
@@ -136,7 +136,7 @@ class LayerInit extends _react.default.Component {
|
|
|
136
136
|
descriptions,
|
|
137
137
|
molSvg,
|
|
138
138
|
editorOnly,
|
|
139
|
-
|
|
139
|
+
exactMass,
|
|
140
140
|
canChangeDescription,
|
|
141
141
|
onDescriptionChanged,
|
|
142
142
|
multiEntities,
|
|
@@ -155,7 +155,7 @@ class LayerInit extends _react.default.Component {
|
|
|
155
155
|
entityFileNames: entityFileNames,
|
|
156
156
|
userManualLink: userManualLink,
|
|
157
157
|
molSvg: molSvg,
|
|
158
|
-
|
|
158
|
+
exactMass: exactMass,
|
|
159
159
|
operations: operations
|
|
160
160
|
});
|
|
161
161
|
} else if (_format.default.isCyclicVoltaLayout(layout)) {
|
|
@@ -165,7 +165,7 @@ class LayerInit extends _react.default.Component {
|
|
|
165
165
|
entityFileNames: entityFileNames,
|
|
166
166
|
userManualLink: userManualLink,
|
|
167
167
|
molSvg: molSvg,
|
|
168
|
-
|
|
168
|
+
exactMass: exactMass,
|
|
169
169
|
operations: operations
|
|
170
170
|
});
|
|
171
171
|
}
|
|
@@ -179,7 +179,7 @@ class LayerInit extends _react.default.Component {
|
|
|
179
179
|
descriptions: descriptions,
|
|
180
180
|
molSvg: molSvg,
|
|
181
181
|
editorOnly: editorOnly,
|
|
182
|
-
|
|
182
|
+
exactMass: exactMass,
|
|
183
183
|
canChangeDescription: canChangeDescription,
|
|
184
184
|
onDescriptionChanged: onDescriptionChanged
|
|
185
185
|
});
|
|
@@ -212,7 +212,7 @@ LayerInit.propTypes = {
|
|
|
212
212
|
yLabel: _propTypes.default.string.isRequired,
|
|
213
213
|
molSvg: _propTypes.default.string.isRequired,
|
|
214
214
|
editorOnly: _propTypes.default.bool.isRequired,
|
|
215
|
-
|
|
215
|
+
exactMass: _propTypes.default.string.isRequired,
|
|
216
216
|
forecast: _propTypes.default.object.isRequired,
|
|
217
217
|
operations: _propTypes.default.array.isRequired,
|
|
218
218
|
descriptions: _propTypes.default.array.isRequired,
|
package/dist/layer_prism.js
CHANGED
|
@@ -32,7 +32,7 @@ const LayerPrism = _ref => {
|
|
|
32
32
|
descriptions,
|
|
33
33
|
molSvg,
|
|
34
34
|
editorOnly,
|
|
35
|
-
|
|
35
|
+
exactMass,
|
|
36
36
|
thresSt,
|
|
37
37
|
scanSt,
|
|
38
38
|
uiSt,
|
|
@@ -103,7 +103,7 @@ const LayerPrism = _ref => {
|
|
|
103
103
|
integration: integration,
|
|
104
104
|
editorOnly: editorOnly,
|
|
105
105
|
molSvg: molSvg,
|
|
106
|
-
|
|
106
|
+
exactMass: exactMass,
|
|
107
107
|
descriptions: descriptions,
|
|
108
108
|
canChangeDescription: canChangeDescription,
|
|
109
109
|
onDescriptionChanged: onDescriptionChanged
|
|
@@ -124,7 +124,7 @@ LayerPrism.propTypes = {
|
|
|
124
124
|
yLabel: _propTypes.default.string.isRequired,
|
|
125
125
|
molSvg: _propTypes.default.string.isRequired,
|
|
126
126
|
editorOnly: _propTypes.default.bool.isRequired,
|
|
127
|
-
|
|
127
|
+
exactMass: _propTypes.default.string,
|
|
128
128
|
forecast: _propTypes.default.object.isRequired,
|
|
129
129
|
operations: _propTypes.default.array.isRequired,
|
|
130
130
|
descriptions: _propTypes.default.array.isRequired,
|