@complat/react-spectra-editor 1.0.0-rc13.alpha.0 → 1.0.0-rc13.alpha.2

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.
@@ -217,9 +217,10 @@ class LineFocus {
217
217
  drawLine() {
218
218
  const {
219
219
  sameXY,
220
- sameRef
220
+ sameRef,
221
+ sameSfPk
221
222
  } = this.shouldUpdate;
222
- if (sameXY && sameRef) return;
223
+ if (sameXY && sameRef && sameSfPk) return;
223
224
  const {
224
225
  xt,
225
226
  yt
@@ -246,9 +247,10 @@ class LineFocus {
246
247
  }
247
248
  drawGrid() {
248
249
  const {
249
- sameXY
250
+ sameXY,
251
+ sameSfPk
250
252
  } = this.shouldUpdate;
251
- if (sameXY) return;
253
+ if (sameXY && sameSfPk) return;
252
254
  this.grid.x.call(this.axisCall.x.tickSize(-this.h, 0, 0)).selectAll('line').attr('stroke', '#ddd').attr('stroke-opacity', 0.6).attr('fill', 'none');
253
255
  this.grid.y.call(this.axisCall.y.tickSize(-this.w, 0, 0)).selectAll('line').attr('stroke', '#ddd').attr('stroke-opacity', 0.6).attr('fill', 'none');
254
256
  }
@@ -30,7 +30,7 @@ function* addVirtualFactor(action) {
30
30
  neg: []
31
31
  };
32
32
  }
33
- let currentOriginShift = originShift[curveIdx];
33
+ let currentOriginShift = originShift.shifts[curveIdx];
34
34
  if (currentOriginShift === false || currentOriginShift === undefined) {
35
35
  const shiftNone = _list_shift.LIST_SHIFT_1H[0];
36
36
  currentOriginShift = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@complat/react-spectra-editor",
3
- "version": "1.0.0-rc13.alpha.0",
3
+ "version": "1.0.0-rc13.alpha.2",
4
4
  "description": "An editor to View and Edit Chemical Spectra data (NMR, IR and MS, CV, UIVIS, XRD).",
5
5
  "repository": {
6
6
  "type": "git",