Skip to content

Commit

Permalink
feat: update peaks reporting (XRD)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-idiris authored and Lan Le committed Nov 8, 2023
1 parent 3c54b03 commit 2dd9223
Show file tree
Hide file tree
Showing 94 changed files with 12,175 additions and 11,661 deletions.
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/01_viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ Viewer.propTypes = {
disableCmdAnaViewerSt: _propTypes.default.bool.isRequired,
setUiViewerTypeAct: _propTypes.default.func.isRequired
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Viewer);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Viewer);
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/02_zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,4 @@ Zoom.propTypes = {
isfocusZoomSt: _propTypes.default.bool.isRequired,
setUiSweepTypeAct: _propTypes.default.func.isRequired
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Zoom);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Zoom);
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/03_peak.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,4 @@ Peak.propTypes = {
cyclicVotaSt: _propTypes.default.object.isRequired,
curveSt: _propTypes.default.object.isRequired
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Peak);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Peak);
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/04_integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,4 @@ Integration.propTypes = {
curveSt: _propTypes.default.object.isRequired,
integrationSt: _propTypes.default.object.isRequired
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Integration));
exports.default = _default;
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Integration));
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/05_multiplicity.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,4 @@ Multiplicity.propTypes = {
clearMpyAllAct: _propTypes.default.func.isRequired,
curveSt: _propTypes.default.object.isRequired
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Multiplicity));
exports.default = _default;
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Multiplicity));
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/06_undo_redo.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,4 @@ UndoRedo.propTypes = {
onUndoAct: _propTypes.default.func.isRequired,
onRedoAct: _propTypes.default.func.isRequired
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(UndoRedo);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(UndoRedo);
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/07_pecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,4 @@ Pecker.propTypes = {
cyclicVotaSt: _propTypes.default.object.isRequired,
jcampIdx: _propTypes.default.any
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Pecker);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Pecker);
6 changes: 2 additions & 4 deletions dist/components/cmd_bar/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
exports.focusStyle = exports.commonStyle = exports.MuButton = void 0;
var _styles = require("@material-ui/core/styles");
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
const MuButton = (0, _styles.withStyles)({
const MuButton = exports.MuButton = (0, _styles.withStyles)({
root: {
border: '1px solid #ccc',
borderRadius: 4,
Expand All @@ -20,8 +20,7 @@ const MuButton = (0, _styles.withStyles)({
width: 30
}
})(_Button.default);
exports.MuButton = MuButton;
const commonStyle = {
const commonStyle = exports.commonStyle = {
card: {
margin: '0 0 5px 52px',
border: '1px solid white',
Expand Down Expand Up @@ -96,7 +95,6 @@ const commonStyle = {
transform: 'scale(0.75)'
}
};
exports.commonStyle = commonStyle;
const focusStyle = (criteria, cls) => criteria ? [cls.btnHt] : [];

// eslint-disable-line
Expand Down
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ CmdBar.propTypes = {
jcampIdx: _propTypes.default.any,
hideThreshold: _propTypes.default.bool
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(CmdBar);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(CmdBar);
5 changes: 2 additions & 3 deletions dist/components/cmd_bar/r01_layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const layoutSelect = (classes, layoutSt, updateLayoutAct) => {
value: _list_layout.LIST_LAYOUT.AIF
}, /*#__PURE__*/_react.default.createElement("span", {
className: (0, _classnames.default)(classes.txtOpt, 'option-sv-bar-layout')
}, "SOPTION-DESORPTION")), /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
}, "SORPTION-DESORPTION")), /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
value: _list_layout.LIST_LAYOUT.EMISSIONS
}, /*#__PURE__*/_react.default.createElement("span", {
className: (0, _classnames.default)(classes.txtOpt, 'option-sv-bar-layout')
Expand Down Expand Up @@ -213,5 +213,4 @@ Layout.propTypes = {
curveSt: _propTypes.default.object.isRequired,
shiftSt: _propTypes.default.object.isRequired
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Layout));
exports.default = _default;
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Layout));
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/r02_scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,4 @@ Scan.propTypes = {
resetScanTargetAct: _propTypes.default.func.isRequired,
toggleScanIsAutoAct: _propTypes.default.func.isRequired
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Scan);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Scan);
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/r03_threshold.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,4 @@ Threshold.propTypes = {
resetThresholdValueAct: _propTypes.default.func.isRequired,
toggleThresholdIsEditAct: _propTypes.default.func.isRequired
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Threshold));
exports.default = _default;
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Threshold));
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/r04_submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,4 @@ Submit.propTypes = {
updateOperationAct: _propTypes.default.func.isRequired,
updateDecimalAct: _propTypes.default.func.isRequired
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Submit);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(Submit);
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/r05_submit_btn.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,4 @@ BtnSubmit.propTypes = {
cyclicvoltaSt: _propTypes.default.object.isRequired,
curveSt: _propTypes.default.object
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(BtnSubmit);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(BtnSubmit);
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/r06_predict_btn.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,4 @@ BtnPredict.propTypes = {
setUiViewerTypeAct: _propTypes.default.func.isRequired,
curveSt: _propTypes.default.object
};
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(BtnPredict);
exports.default = _default;
var _default = exports.default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps), (0, _styles.withStyles)(styles))(BtnPredict);
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/r07_wavelength_btn.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,4 @@ Wavelength.propTypes = {
waveLengthSt: _propTypes.default.object.isRequired,
updateWaveLengthAct: _propTypes.default.func.isRequired
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Wavelength));
exports.default = _default;
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(Wavelength));
3 changes: 1 addition & 2 deletions dist/components/cmd_bar/tri_btn.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,4 @@ TriBtn.propTypes = {
cb: _propTypes.default.func.isRequired,
children: _propTypes.default.node.isRequired
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(TriBtn));
exports.default = _default;
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(TriBtn));
3 changes: 1 addition & 2 deletions dist/components/common/chem.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/components/common/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
});
exports.drawMain = exports.drawLabel = exports.drawDisplay = exports.drawDestroy = exports.drawArrowOnCurve = void 0;
var d3 = _interopRequireWildcard(require("d3"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
const drawMain = (klass, w, h) => {
d3.select(klass).append('svg').attr('class', 'd3Svg').attr('preserveAspectRatio', 'xMinYMin meet').attr('viewBox', `0 0 ${w} ${h}`);
};
Expand Down
3 changes: 1 addition & 2 deletions dist/components/d3_line/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,4 @@ ViewerLine.propTypes = {
isHidden: _propTypes.default.bool.isRequired,
wavelength: _propTypes.default.object.isRequired
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerLine);
exports.default = _default;
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerLine);
7 changes: 3 additions & 4 deletions dist/components/d3_line/line_focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ var _format = _interopRequireDefault(require("../../helpers/format"));
var _cfg = _interopRequireDefault(require("../../helpers/cfg"));
var _list_layout = require("../../constants/list_layout");
var _calc = require("../../helpers/calc");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
/* eslint-disable prefer-object-spread, no-mixed-operators */

class LineFocus {
Expand Down Expand Up @@ -685,5 +685,4 @@ class LineFocus {
this.resetShouldUpdate(editPeakSt, integationSt, mtplySt);
}
}
var _default = LineFocus;
exports.default = _default;
var _default = exports.default = LineFocus;
3 changes: 1 addition & 2 deletions dist/components/d3_multi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,4 @@ ViewerMulti.propTypes = {
addCylicVoltaMinPeakAct: _propTypes.default.func.isRequired,
cLabel: _propTypes.default.string
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerMulti);
exports.default = _default;
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerMulti);
7 changes: 3 additions & 4 deletions dist/components/d3_multi/multi_focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ var _focus = require("../../helpers/focus");
var _integration = require("../../helpers/integration");
var _multiplicity_calc = require("../../helpers/multiplicity_calc");
var _calc = require("../../helpers/calc");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
/* eslint-disable no-unused-vars, prefer-object-spread, no-mixed-operators,
no-unneeded-ternary, arrow-body-style */

Expand Down Expand Up @@ -835,5 +835,4 @@ class MultiFocus {
this.resetShouldUpdate(editPeakSt);
}
}
var _default = MultiFocus;
exports.default = _default;
var _default = exports.default = MultiFocus;
3 changes: 1 addition & 2 deletions dist/components/d3_rect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,4 @@ ViewerRect.propTypes = {
scrollUiWheelAct: _propTypes.default.func.isRequired,
isHidden: _propTypes.default.bool.isRequired
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerRect);
exports.default = _default;
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerRect);
Loading

0 comments on commit 2dd9223

Please sign in to comment.