Skip to content

Commit 20b9f0f

Browse files
committed
add /dist changes
1 parent 7af7594 commit 20b9f0f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/components/d3_multi/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ class ViewerMulti extends _react.default.Component {
152152
xUnit,
153153
yUnit
154154
} = selectedAxes;
155-
xxLabel = xUnit === '' ? xLabel : xUnit;
156-
yyLabel = yUnit === '' ? yLabel : yUnit;
155+
xxLabel = xUnit === '' ? `X (${xLabel})` : `X (${xUnit})`;
156+
yyLabel = yUnit === '' ? `Y (${yLabel})` : `Y (${yUnit})`;
157157
}
158158
const filterSeed = seed;
159159
const filterPeak = peak;

dist/helpers/chem.js

+4
Original file line numberDiff line numberDiff line change
@@ -504,13 +504,17 @@ const buildPeakFeature = function (jcamp, layout, peakUp, s, thresRef) {
504504
info
505505
} = jcamp;
506506
const subTyp = xType ? ` - ${xType}` : '';
507+
const xUnit = jcamp.info.XUNITS ? jcamp.info.XUNITS : '';
508+
const yUnit = jcamp.info.YUNITS ? jcamp.info.YUNITS : '';
507509
return Object.assign({
508510
typ: s.dataType + subTyp,
509511
peakUp,
510512
thresRef,
511513
scanCount: +info.$CSSCANCOUNT,
512514
scanAutoTarget: +info.$CSSCANAUTOTARGET,
513515
scanEditTarget: +info.$CSSCANEDITTARGET,
516+
xUnit,
517+
yUnit,
514518
shift: extractShift(s, jcamp),
515519
operation: {
516520
layout,

0 commit comments

Comments
 (0)