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

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.
@@ -113,7 +113,8 @@ class LineFocus {
113
113
  const sameMySt = prevMySt === nextMySt;
114
114
  const sameTePt = prevTePt === this.tTrEndPts.length;
115
115
  const sameDtPk = prevDtPk === this.dataPks.length;
116
- const sameSfPk = prevSfPk === this.tSfPeaks.length;
116
+ // const sameSfPk = prevSfPk === this.tSfPeaks.length;
117
+ const sameSfPk = JSON.stringify(prevSfPk) === JSON.stringify(this.tSfPeaks);
117
118
  const sameData = prevData === this.data.length;
118
119
  const sameRef = prevEpSt.prevOffset === nextEpSt.prevOffset;
119
120
  this.shouldUpdate = Object.assign({}, this.shouldUpdate, {
@@ -140,7 +141,8 @@ class LineFocus {
140
141
  const prevYt = yt(1.1);
141
142
  const prevTePt = this.tTrEndPts.length;
142
143
  const prevDtPk = this.dataPks.length;
143
- const prevSfPk = this.tSfPeaks.length;
144
+ // const prevSfPk = this.tSfPeaks.length;
145
+ const prevSfPk = this.tSfPeaks;
144
146
  const prevData = this.data.length;
145
147
  const prevLySt = this.layout;
146
148
  this.shouldUpdate = Object.assign({}, this.shouldUpdate, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@complat/react-spectra-editor",
3
- "version": "1.0.0-rc13.alpha.2",
3
+ "version": "1.0.0-rc13.alpha.3",
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",