@zakodium/nmrium-core-plugins 0.1.0 → 0.1.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/nmrium-core-plugins.d.ts +26 -15
- package/package.json +2 -2
|
@@ -10,6 +10,17 @@ import type { ParsingOptions } from '@zakodium/nmrium-core';
|
|
|
10
10
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
11
11
|
import type { StateMolecule } from '@zakodium/nmrium-core';
|
|
12
12
|
|
|
13
|
+
export declare function autoPostProcessing(): NMRiumPlugin;
|
|
14
|
+
|
|
15
|
+
export declare class AutoPostProcessingPlugin implements NMRiumPlugin {
|
|
16
|
+
id: string;
|
|
17
|
+
version: number;
|
|
18
|
+
migrations: NMRiumPluginMigration[];
|
|
19
|
+
onReadProcess: NMRiumPluginOnReadProcess;
|
|
20
|
+
constructor();
|
|
21
|
+
private onPostProcessing;
|
|
22
|
+
}
|
|
23
|
+
|
|
13
24
|
export declare function brukerLoader(): NMRiumPlugin;
|
|
14
25
|
|
|
15
26
|
export declare class BrukerLoaderPlugin implements NMRiumPlugin {
|
|
@@ -41,40 +52,40 @@ declare function init(): NMRiumCore;
|
|
|
41
52
|
export default init;
|
|
42
53
|
export { init }
|
|
43
54
|
|
|
44
|
-
declare interface
|
|
55
|
+
declare interface JCAMPDXConverterOptions {
|
|
45
56
|
keepRecordsRegExp?: RegExp;
|
|
46
57
|
profiling?: boolean;
|
|
47
58
|
}
|
|
48
59
|
|
|
49
|
-
export declare function
|
|
60
|
+
export declare function jcampDXLoader(): NMRiumPlugin;
|
|
50
61
|
|
|
51
|
-
export declare class
|
|
62
|
+
export declare class JCAMPDXLoaderPlugin implements NMRiumPlugin {
|
|
52
63
|
id: string;
|
|
53
64
|
version: number;
|
|
54
65
|
migrations: NMRiumPluginMigration[];
|
|
55
66
|
onReadProcess: NMRiumPluginOnReadProcess;
|
|
56
67
|
constructor();
|
|
57
68
|
private onReadProcessFile;
|
|
58
|
-
private
|
|
69
|
+
private getJCAMPDXSelector;
|
|
59
70
|
}
|
|
60
71
|
|
|
61
|
-
declare interface
|
|
72
|
+
declare interface JCAMPDXParsingOptions {
|
|
62
73
|
name?: string;
|
|
63
|
-
converter?:
|
|
64
|
-
selector?:
|
|
74
|
+
converter?: JCAMPDXConverterOptions;
|
|
75
|
+
selector?: JCAMPDXSelectorOptions;
|
|
65
76
|
keepSource?: boolean;
|
|
66
77
|
logger?: Logger;
|
|
67
78
|
}
|
|
68
79
|
|
|
69
|
-
declare interface
|
|
80
|
+
declare interface JCAMPDXSelectorOptions {
|
|
70
81
|
index?: number;
|
|
71
82
|
tree?: FilterTreeByDataTypeDataClass[];
|
|
72
83
|
dataSelection?: DataSelectionOption;
|
|
73
84
|
}
|
|
74
85
|
|
|
75
|
-
export declare function
|
|
86
|
+
export declare function jeolLoader(): NMRiumPlugin;
|
|
76
87
|
|
|
77
|
-
export declare class
|
|
88
|
+
export declare class JEOLLoaderPlugin implements NMRiumPlugin {
|
|
78
89
|
id: string;
|
|
79
90
|
version: number;
|
|
80
91
|
migrations: NMRiumPluginMigration[];
|
|
@@ -94,9 +105,9 @@ export declare class MolfileLoaderPlugin implements NMRiumPlugin {
|
|
|
94
105
|
private onReadProcessFile;
|
|
95
106
|
}
|
|
96
107
|
|
|
97
|
-
export declare function
|
|
108
|
+
export declare function nmreDATALoader(core: NMRiumCore): NMRiumPlugin;
|
|
98
109
|
|
|
99
|
-
export declare class
|
|
110
|
+
export declare class NMReDATALoaderPlugin implements NMRiumPlugin {
|
|
100
111
|
private core;
|
|
101
112
|
id: string;
|
|
102
113
|
version: number;
|
|
@@ -110,7 +121,7 @@ declare interface ParseSDFOptions {
|
|
|
110
121
|
mixedEOL?: boolean;
|
|
111
122
|
}
|
|
112
123
|
|
|
113
|
-
export declare function
|
|
124
|
+
export declare function processJCAMPDX(text: string, options?: JCAMPDXParsingOptions): NmriumData;
|
|
114
125
|
|
|
115
126
|
export declare function readSDF(text: string, options?: ParseSDFOptions): StateMolecule[];
|
|
116
127
|
|
|
@@ -138,7 +149,7 @@ export declare class SDFLoaderPlugin implements NMRiumPlugin {
|
|
|
138
149
|
|
|
139
150
|
export declare function smilesLoader(): NMRiumPlugin;
|
|
140
151
|
|
|
141
|
-
export declare class
|
|
152
|
+
export declare class SMILESLoaderPlugin implements NMRiumPlugin {
|
|
142
153
|
id: string;
|
|
143
154
|
version: number;
|
|
144
155
|
migrations: NMRiumPluginMigration[];
|
|
@@ -147,7 +158,7 @@ export declare class SmilesLoaderPlugin implements NMRiumPlugin {
|
|
|
147
158
|
private onReadProcessFile;
|
|
148
159
|
}
|
|
149
160
|
|
|
150
|
-
export declare function
|
|
161
|
+
export declare function spectrum1DToJCAMPDX(spectrum: Spectrum1D, options?: {
|
|
151
162
|
onlyReal?: boolean;
|
|
152
163
|
}): string;
|
|
153
164
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakodium/nmrium-core-plugins",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Recommended plugins for NMRium, loaders of common formats like bruker or jcamp, and some post-processing plugins",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "CC-BY-NC-SA-4.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bundle-esm": "npm run bundle-common -- --format=esm --outfile=./dist/nmrium-core-plugins.mjs",
|
|
29
29
|
"bundle-types": "npm run tsc && npm run api-extractor",
|
|
30
30
|
"check-types": "tsc --noEmit",
|
|
31
|
-
"clean": "rimraf types",
|
|
31
|
+
"clean": "rimraf types dist coverage",
|
|
32
32
|
"eslint": "eslint src --cache",
|
|
33
33
|
"eslint-fix": "npm run eslint -- --fix",
|
|
34
34
|
"dev:eslint-fix": "eslint --cache --fix $(git diff --name-only --relative) --quiet",
|