@complat/react-spectra-editor 1.0.0-rc20.patch-1 → 1.0.0-rc21.patch-1

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.
@@ -174,7 +174,7 @@ function abstractPattern(signal, Jc) {
174
174
  let newNmrJs = [];
175
175
  if (Jc && Jc.length > 0) {
176
176
  Jc.sort(function (a, b) {
177
- return b - a;
177
+ return Math.abs(b) - Math.abs(a);
178
178
  });
179
179
  for (i = 0; i < Jc.length - 1; i++) {
180
180
  if (Math.abs(Jc[i] - Jc[i + 1]) < tol) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@complat/react-spectra-editor",
3
- "version": "1.0.0-rc20.patch-1",
3
+ "version": "1.0.0-rc21.patch-1",
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",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@babel/preset-env": "^7.21.5",
12
12
  "@babel/preset-react": "^7.18.6",
13
- "@complat/react-svg-file-zoom-pan": "1.1.2",
13
+ "@complat/react-svg-file-zoom-pan": "1.1.3",
14
14
  "@material-ui/core": "^4.10.0",
15
15
  "@material-ui/icons": "^4.10.0",
16
16
  "@mdi/js": "^4.7.95",