@complat/react-spectra-editor 0.10.13 → 0.10.14-alpha.0

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.
@@ -585,8 +585,12 @@ var Convert2Thres = function Convert2Thres(feature, thresSt) {
585
585
 
586
586
  var Convert2DValue = function Convert2DValue(doubleTheta) {
587
587
  var lambda = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15406;
588
+ var isRadian = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
588
589
 
589
590
  var theta = doubleTheta / 2;
591
+ if (isRadian) {
592
+ theta = theta / 180 * Math.PI;
593
+ }
590
594
  var sinTheta = Math.sin(theta);
591
595
  var dValue = lambda / (2 * sinTheta);
592
596
  return dValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@complat/react-spectra-editor",
3
- "version": "0.10.13",
3
+ "version": "0.10.14-alpha.0",
4
4
  "description": "An editor to View and Edit Chemical Spectra data (NMR, IR and MS).",
5
5
  "repository": {
6
6
  "type": "git",