nmr-processing 14.0.3 → 14.0.4
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/nmr-processing.cjs +2 -2
- package/nmr-processing.d.ts +32 -8
- package/nmr-processing.mjs +3 -3
- package/package.json +1 -1
package/nmr-processing.d.ts
CHANGED
|
@@ -76,6 +76,10 @@ export declare function apodizationXReIm(data: Required<NmrData1D>, options: Apo
|
|
|
76
76
|
*/
|
|
77
77
|
export declare function apodize(data: DoubleArray, options: ApplyWindowOptions): Float64Array;
|
|
78
78
|
|
|
79
|
+
declare function applyFilter(datum: Entry1D, filter: Filter1DOptions, logger?: Logger): void;
|
|
80
|
+
|
|
81
|
+
declare function applyFilter_2(datum: Entry2D, filter: Filter2DOptions, logger?: Logger): void;
|
|
82
|
+
|
|
79
83
|
declare interface ApplyFilterOptions {
|
|
80
84
|
/**
|
|
81
85
|
* reapply all the filters using the original data, even if there is a previous filter applied.
|
|
@@ -85,6 +89,7 @@ declare interface ApplyFilterOptions {
|
|
|
85
89
|
* filter position at the moment to add a new filter
|
|
86
90
|
*/
|
|
87
91
|
filterIndex?: number;
|
|
92
|
+
logger?: Logger;
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
declare interface ApplyFilterOptions_2 {
|
|
@@ -96,6 +101,7 @@ declare interface ApplyFilterOptions_2 {
|
|
|
96
101
|
* filter position at the moment to add a new filter
|
|
97
102
|
*/
|
|
98
103
|
filterIndex?: number;
|
|
104
|
+
logger?: Logger;
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
/***
|
|
@@ -382,9 +388,9 @@ export declare const DatumKind: {
|
|
|
382
388
|
|
|
383
389
|
export declare const default1DApodization: Shapes;
|
|
384
390
|
|
|
385
|
-
declare function deleteFilter(datum: Entry1D, id?: string): void;
|
|
391
|
+
declare function deleteFilter(datum: Entry1D, id?: string, logger?: Logger): void;
|
|
386
392
|
|
|
387
|
-
declare function deleteFilter_2(datum: Entry2D, id?: string): void;
|
|
393
|
+
declare function deleteFilter_2(datum: Entry2D, id?: string, logger?: Logger): void;
|
|
388
394
|
|
|
389
395
|
declare type DigitalFilter = FilterFactory<Entry1D, DigitalFilterOptions> & Pick<DigitalFilterOption, 'name'>;
|
|
390
396
|
|
|
@@ -417,9 +423,19 @@ export declare interface DirectDimensionOptions {
|
|
|
417
423
|
|
|
418
424
|
declare type EmptyValue = void | undefined | null;
|
|
419
425
|
|
|
420
|
-
declare function enableFilter(datum: Entry1D,
|
|
426
|
+
declare function enableFilter(datum: Entry1D, options: {
|
|
427
|
+
id: string;
|
|
428
|
+
enabled?: boolean;
|
|
429
|
+
logger?: Logger;
|
|
430
|
+
}): void;
|
|
431
|
+
|
|
432
|
+
declare function enableFilter_2(datum: Entry2D, options: EnableFilterOptions): void;
|
|
421
433
|
|
|
422
|
-
declare
|
|
434
|
+
declare interface EnableFilterOptions {
|
|
435
|
+
id: string;
|
|
436
|
+
enabled?: boolean;
|
|
437
|
+
logger?: Logger;
|
|
438
|
+
}
|
|
423
439
|
|
|
424
440
|
declare interface Entry1D {
|
|
425
441
|
id?: string;
|
|
@@ -572,7 +588,8 @@ declare namespace Filters1DManager {
|
|
|
572
588
|
applyFilters,
|
|
573
589
|
reapplyFilters,
|
|
574
590
|
enableFilter,
|
|
575
|
-
deleteFilter
|
|
591
|
+
deleteFilter,
|
|
592
|
+
applyFilter
|
|
576
593
|
}
|
|
577
594
|
}
|
|
578
595
|
export { Filters1DManager }
|
|
@@ -588,7 +605,8 @@ declare namespace Filters2DManager {
|
|
|
588
605
|
applyFilters_2 as applyFilters,
|
|
589
606
|
reapplyFilters_2 as reapplyFilters,
|
|
590
607
|
enableFilter_2 as enableFilter,
|
|
591
|
-
deleteFilter_2 as deleteFilter
|
|
608
|
+
deleteFilter_2 as deleteFilter,
|
|
609
|
+
applyFilter_2 as applyFilter
|
|
592
610
|
}
|
|
593
611
|
}
|
|
594
612
|
export { Filters2DManager }
|
|
@@ -1982,9 +2000,15 @@ declare namespace RangeUtilities {
|
|
|
1982
2000
|
}
|
|
1983
2001
|
export { RangeUtilities }
|
|
1984
2002
|
|
|
1985
|
-
declare function reapplyFilters(datum: Entry1D,
|
|
2003
|
+
declare function reapplyFilters(datum: Entry1D, options: {
|
|
2004
|
+
filters?: Filter1DOptions[];
|
|
2005
|
+
logger?: Logger;
|
|
2006
|
+
}): void;
|
|
1986
2007
|
|
|
1987
|
-
declare function reapplyFilters_2(datum: Entry2D,
|
|
2008
|
+
declare function reapplyFilters_2(datum: Entry2D, options: {
|
|
2009
|
+
filters?: Filter2DOptions[];
|
|
2010
|
+
logger?: Logger;
|
|
2011
|
+
}): void;
|
|
1988
2012
|
|
|
1989
2013
|
declare function resetDiaIDs(range: Range_2): void;
|
|
1990
2014
|
|