@zakodium/nmr-types 0.5.0 → 0.5.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.
- package/dist/nmr-types.d.ts +42 -1
- package/package.json +4 -4
package/dist/nmr-types.d.ts
CHANGED
|
@@ -206,7 +206,7 @@ declare interface Field<T> extends BaseField {
|
|
|
206
206
|
|
|
207
207
|
export declare type Filter1DEntry = Filter1DOptions & BaseFilterEntry;
|
|
208
208
|
|
|
209
|
-
export declare type Filter1DOptions = BaselineCorrectionFilterOptions | FFT1DOptions | ZeroFillingFilterOptions | SignalProcessingFilter | ShiftXFilterOptions | PhaseCorrection1DFilterOptions | ForwardLP1DOptions | ExclusionZonesOptions | EquallySpacedOptions | DigitalFilterOption | Apodization1DFilterOptions | BackwardLinearPredictionFilterOptions;
|
|
209
|
+
export declare type Filter1DOptions = BaselineCorrectionFilterOptions | FFT1DOptions | ZeroFillingFilterOptions | SignalProcessingFilter | ShiftXFilterOptions | PhaseCorrection1DFilterOptions | ForwardLP1DOptions | ExclusionZonesOptions | EquallySpacedOptions | DigitalFilterOption | Apodization1DFilterOptions | BackwardLinearPredictionFilterOptions | TrimFilterOptions;
|
|
210
210
|
|
|
211
211
|
export declare type Filter2DEntry = Filter2DOptions & BaseFilterEntry;
|
|
212
212
|
|
|
@@ -675,6 +675,47 @@ export declare interface TrafOptions {
|
|
|
675
675
|
lineBroadening: number;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
|
+
export declare interface TrimFilterOptions extends BaseFilter {
|
|
679
|
+
name: 'trim';
|
|
680
|
+
value: TrimOptions;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Options for trimming a 1D spectrum. All properties are optional and mutually exclusive, the function keep the largest value.
|
|
685
|
+
*/
|
|
686
|
+
export declare interface TrimOptions {
|
|
687
|
+
/**
|
|
688
|
+
* Percentage (0-100) of points to trim from the left side. If undefined, no percentage-based trimming is applied to the left.
|
|
689
|
+
* @default undefined
|
|
690
|
+
*/
|
|
691
|
+
leftPercentage?: number;
|
|
692
|
+
/**
|
|
693
|
+
* Percentage (0-100) of points to trim from the right side. If undefined, no percentage-based trimming is applied to the right.
|
|
694
|
+
* @default undefined
|
|
695
|
+
*/
|
|
696
|
+
rightPercentage?: number;
|
|
697
|
+
/**
|
|
698
|
+
* Value of the leftmost point to keep. If set, all points to the left of this value are trimmed.
|
|
699
|
+
* @default undefined
|
|
700
|
+
*/
|
|
701
|
+
leftValue?: number;
|
|
702
|
+
/**
|
|
703
|
+
* Value of the rightmost point to keep. If set, all points to the right of this value are trimmed.
|
|
704
|
+
* @default undefined
|
|
705
|
+
*/
|
|
706
|
+
rightValue?: number;
|
|
707
|
+
/**
|
|
708
|
+
* Number of points to remove from the left side. If set, trims this many points from the left.
|
|
709
|
+
* @default 0
|
|
710
|
+
*/
|
|
711
|
+
leftNbPoints?: number;
|
|
712
|
+
/**
|
|
713
|
+
* Number of points to remove from the right side. If set, trims this many points from the right.
|
|
714
|
+
* @default 0
|
|
715
|
+
*/
|
|
716
|
+
rightNbPoints?: number;
|
|
717
|
+
}
|
|
718
|
+
|
|
678
719
|
export declare interface WhittakerOptions {
|
|
679
720
|
algorithm: 'whittaker';
|
|
680
721
|
lambda?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakodium/nmr-types",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Types related to NMR data processing.",
|
|
5
5
|
"author": "Zakodium Sàrl",
|
|
6
6
|
"license": "CC-BY-NC-SA-4.0",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"esbuild": "^0.27.0",
|
|
29
29
|
"rimraf": "^6.1.2",
|
|
30
30
|
"typescript": "~5.9.3",
|
|
31
|
-
"vitest": "^4.0.
|
|
31
|
+
"vitest": "^4.0.17"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"ml-peak-shape-generator": "^4.2.0",
|
|
35
35
|
"ml-signal-processing": "^2.1.0",
|
|
36
|
-
"ml-spectra-processing": "^14.18.
|
|
36
|
+
"ml-spectra-processing": "^14.18.2"
|
|
37
37
|
},
|
|
38
38
|
"volta": {
|
|
39
39
|
"extends": "../../../package.json"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "18981bfb25a6cc4bc142629c7382d1375289d041"
|
|
42
42
|
}
|