spectrum-generator
Advanced tools
Comparing version 5.0.2 to 5.1.0
export * from './SpectrumGenerator'; | ||
export * from './Spectrum2DGenerator'; | ||
export { XYNumber } from 'ml-peak-shape-generator'; |
@@ -29,3 +29,3 @@ "use strict"; | ||
const { options: shapeOptions = {} } = shape; | ||
let shapeGenerator = ml_peak_shape_generator_1.getShape2D(kind, shapeOptions); | ||
let shapeGenerator = (0, ml_peak_shape_generator_1.getShape2D)(kind, shapeOptions); | ||
this.shape = shapeGenerator; | ||
@@ -114,3 +114,3 @@ this.data = { | ||
const { options: shapeParameters = {} } = shapeOptions; | ||
this.shape = ml_peak_shape_generator_1.getShape2D(kind, shapeParameters); | ||
this.shape = (0, ml_peak_shape_generator_1.getShape2D)(kind, shapeParameters); | ||
} | ||
@@ -144,3 +144,3 @@ width = ensureXYNumber(width); | ||
const { copy = true } = options; | ||
let minMaxZ = getMinMax_1.getMinMax(this.data.z); | ||
let minMaxZ = (0, getMinMax_1.getMinMax)(this.data.z); | ||
return { | ||
@@ -147,0 +147,0 @@ minX: this.from.x, |
@@ -25,3 +25,3 @@ "use strict"; | ||
const { options: shapeOptions = {} } = shape; | ||
let shapeGenerator = ml_peak_shape_generator_1.getShape1D(kind, shapeOptions); | ||
let shapeGenerator = (0, ml_peak_shape_generator_1.getShape1D)(kind, shapeOptions); | ||
this.shape = shapeGenerator; | ||
@@ -104,3 +104,3 @@ assertNumber(this.from, 'from'); | ||
const { options: shapeParameters = {} } = shapeOptions; | ||
this.shape = ml_peak_shape_generator_1.getShape1D(kind, shapeParameters); | ||
this.shape = (0, ml_peak_shape_generator_1.getShape1D)(kind, shapeParameters); | ||
} | ||
@@ -137,3 +137,3 @@ if (!widthLeft) | ||
addBaseline(baselineFct) { | ||
addBaseline_1.default(this.data, baselineFct); | ||
(0, addBaseline_1.default)(this.data, baselineFct); | ||
return this; | ||
@@ -146,3 +146,3 @@ } | ||
addNoise(percent, options) { | ||
addNoise_1.default(this.data, percent, options); | ||
(0, addNoise_1.default)(this.data, percent, options); | ||
return this; | ||
@@ -149,0 +149,0 @@ } |
@@ -13,4 +13,4 @@ "use strict"; | ||
for (let row of data) { | ||
let rowMin = ml_array_min_1.default(row); | ||
let rowMax = ml_array_max_1.default(row); | ||
let rowMin = (0, ml_array_min_1.default)(row); | ||
let rowMax = (0, ml_array_max_1.default)(row); | ||
if (min > rowMin) | ||
@@ -17,0 +17,0 @@ min = rowMin; |
{ | ||
"name": "spectrum-generator", | ||
"version": "5.0.2", | ||
"version": "5.1.0", | ||
"description": "generate a spectrum from discrete peaks", | ||
@@ -50,3 +50,3 @@ "main": "./lib/index.js", | ||
"@types/d3-random": "^3.0.1", | ||
"@types/jest": "^26.0.24", | ||
"@types/jest": "^27.0.1", | ||
"eslint": "^7.32.0", | ||
@@ -53,0 +53,0 @@ "eslint-config-cheminfo-typescript": "^8.0.9", |
export * from './SpectrumGenerator'; | ||
export * from './Spectrum2DGenerator'; | ||
export { XYNumber } from 'ml-peak-shape-generator'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110188
2089