@zakodium/nmrium-core-plugins-ui 0.1.26 → 0.1.28
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/lib/plugins/spectrum_1d_processings_ui/operators/apodization.d.ts.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization.hook.d.ts +400 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization.hook.d.ts.map +1 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization.hook.js +34 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization.hook.js.map +1 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization.js +2 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization.js.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.d.ts +2 -2
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.d.ts.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.js +4 -26
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.js.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_tool.d.ts.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_tool.js +2 -3
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_tool.js.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_topbar.d.ts +3 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_topbar.d.ts.map +1 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_topbar.js +33 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/apodization_topbar.js.map +1 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.d.ts +2 -2
- package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.d.ts.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.js +4 -5
- package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.js.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_tool.d.ts.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_tool.js +2 -3
- package/lib/plugins/spectrum_1d_processings_ui/operators/phase_correction_tool.js.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/shift_x_expanded.d.ts +2 -2
- package/lib/plugins/spectrum_1d_processings_ui/operators/shift_x_expanded.d.ts.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/shift_x_expanded.js +3 -4
- package/lib/plugins/spectrum_1d_processings_ui/operators/shift_x_expanded.js.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling.d.ts.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling.js +2 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling.js.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling_expand.d.ts +2 -2
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling_expand.d.ts.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling_expand.js +3 -4
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling_expand.js.map +1 -1
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling_tool.d.ts +3 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling_tool.d.ts.map +1 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling_tool.js +50 -0
- package/lib/plugins/spectrum_1d_processings_ui/operators/zero_filling_tool.js.map +1 -0
- package/package.json +5 -4
- package/src/plugins/spectrum_1d_processings_ui/operators/apodization.hook.ts +43 -0
- package/src/plugins/spectrum_1d_processings_ui/operators/apodization.ts +2 -0
- package/src/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.tsx +7 -32
- package/src/plugins/spectrum_1d_processings_ui/operators/apodization_tool.tsx +2 -3
- package/src/plugins/spectrum_1d_processings_ui/operators/apodization_topbar.tsx +64 -0
- package/src/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.tsx +6 -15
- package/src/plugins/spectrum_1d_processings_ui/operators/phase_correction_tool.tsx +2 -3
- package/src/plugins/spectrum_1d_processings_ui/operators/shift_x_expanded.tsx +5 -6
- package/src/plugins/spectrum_1d_processings_ui/operators/zero_filling.tsx +2 -0
- package/src/plugins/spectrum_1d_processings_ui/operators/zero_filling_expand.tsx +5 -6
- package/src/plugins/spectrum_1d_processings_ui/operators/zero_filling_tool.tsx +92 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apodization.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apodization.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,qGASxB,CAAC"}
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import type { ProcessingOperatorUISettingsFormProps } from '@zakodium/nmrium-core';
|
|
2
|
+
export declare function useApodizationForm(props: ProcessingOperatorUISettingsFormProps<'@zakodium/nmrium-core-plugins#apodization1D'>): import("@tanstack/react-form").AppFieldExtendedReactFormApi<{
|
|
3
|
+
exponential?: {
|
|
4
|
+
apply: boolean;
|
|
5
|
+
options: {
|
|
6
|
+
lineBroadening: number;
|
|
7
|
+
};
|
|
8
|
+
} | undefined;
|
|
9
|
+
sineBell?: {
|
|
10
|
+
apply: boolean;
|
|
11
|
+
options: {
|
|
12
|
+
offset: number;
|
|
13
|
+
};
|
|
14
|
+
} | undefined;
|
|
15
|
+
sineSquare?: {
|
|
16
|
+
apply: boolean;
|
|
17
|
+
options: {
|
|
18
|
+
offset: number;
|
|
19
|
+
};
|
|
20
|
+
} | undefined;
|
|
21
|
+
traf?: {
|
|
22
|
+
apply: boolean;
|
|
23
|
+
options: {
|
|
24
|
+
lineBroadening: number;
|
|
25
|
+
};
|
|
26
|
+
} | undefined;
|
|
27
|
+
gaussian?: {
|
|
28
|
+
apply: boolean;
|
|
29
|
+
options: {
|
|
30
|
+
lineBroadening: number;
|
|
31
|
+
lineBroadeningCenter: number;
|
|
32
|
+
};
|
|
33
|
+
} | undefined;
|
|
34
|
+
}, import("@tanstack/react-form").FormValidateOrFn<{
|
|
35
|
+
exponential?: {
|
|
36
|
+
apply: boolean;
|
|
37
|
+
options: {
|
|
38
|
+
lineBroadening: number;
|
|
39
|
+
};
|
|
40
|
+
} | undefined;
|
|
41
|
+
sineBell?: {
|
|
42
|
+
apply: boolean;
|
|
43
|
+
options: {
|
|
44
|
+
offset: number;
|
|
45
|
+
};
|
|
46
|
+
} | undefined;
|
|
47
|
+
sineSquare?: {
|
|
48
|
+
apply: boolean;
|
|
49
|
+
options: {
|
|
50
|
+
offset: number;
|
|
51
|
+
};
|
|
52
|
+
} | undefined;
|
|
53
|
+
traf?: {
|
|
54
|
+
apply: boolean;
|
|
55
|
+
options: {
|
|
56
|
+
lineBroadening: number;
|
|
57
|
+
};
|
|
58
|
+
} | undefined;
|
|
59
|
+
gaussian?: {
|
|
60
|
+
apply: boolean;
|
|
61
|
+
options: {
|
|
62
|
+
lineBroadening: number;
|
|
63
|
+
lineBroadeningCenter: number;
|
|
64
|
+
};
|
|
65
|
+
} | undefined;
|
|
66
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
67
|
+
exponential?: {
|
|
68
|
+
apply: boolean;
|
|
69
|
+
options: {
|
|
70
|
+
lineBroadening: number;
|
|
71
|
+
};
|
|
72
|
+
} | undefined;
|
|
73
|
+
sineBell?: {
|
|
74
|
+
apply: boolean;
|
|
75
|
+
options: {
|
|
76
|
+
offset: number;
|
|
77
|
+
};
|
|
78
|
+
} | undefined;
|
|
79
|
+
sineSquare?: {
|
|
80
|
+
apply: boolean;
|
|
81
|
+
options: {
|
|
82
|
+
offset: number;
|
|
83
|
+
};
|
|
84
|
+
} | undefined;
|
|
85
|
+
traf?: {
|
|
86
|
+
apply: boolean;
|
|
87
|
+
options: {
|
|
88
|
+
lineBroadening: number;
|
|
89
|
+
};
|
|
90
|
+
} | undefined;
|
|
91
|
+
gaussian?: {
|
|
92
|
+
apply: boolean;
|
|
93
|
+
options: {
|
|
94
|
+
lineBroadening: number;
|
|
95
|
+
lineBroadeningCenter: number;
|
|
96
|
+
};
|
|
97
|
+
} | undefined;
|
|
98
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
99
|
+
exponential?: {
|
|
100
|
+
apply: boolean;
|
|
101
|
+
options: {
|
|
102
|
+
lineBroadening: number;
|
|
103
|
+
};
|
|
104
|
+
} | undefined;
|
|
105
|
+
sineBell?: {
|
|
106
|
+
apply: boolean;
|
|
107
|
+
options: {
|
|
108
|
+
offset: number;
|
|
109
|
+
};
|
|
110
|
+
} | undefined;
|
|
111
|
+
sineSquare?: {
|
|
112
|
+
apply: boolean;
|
|
113
|
+
options: {
|
|
114
|
+
offset: number;
|
|
115
|
+
};
|
|
116
|
+
} | undefined;
|
|
117
|
+
traf?: {
|
|
118
|
+
apply: boolean;
|
|
119
|
+
options: {
|
|
120
|
+
lineBroadening: number;
|
|
121
|
+
};
|
|
122
|
+
} | undefined;
|
|
123
|
+
gaussian?: {
|
|
124
|
+
apply: boolean;
|
|
125
|
+
options: {
|
|
126
|
+
lineBroadening: number;
|
|
127
|
+
lineBroadeningCenter: number;
|
|
128
|
+
};
|
|
129
|
+
} | undefined;
|
|
130
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
131
|
+
exponential?: {
|
|
132
|
+
apply: boolean;
|
|
133
|
+
options: {
|
|
134
|
+
lineBroadening: number;
|
|
135
|
+
};
|
|
136
|
+
} | undefined;
|
|
137
|
+
sineBell?: {
|
|
138
|
+
apply: boolean;
|
|
139
|
+
options: {
|
|
140
|
+
offset: number;
|
|
141
|
+
};
|
|
142
|
+
} | undefined;
|
|
143
|
+
sineSquare?: {
|
|
144
|
+
apply: boolean;
|
|
145
|
+
options: {
|
|
146
|
+
offset: number;
|
|
147
|
+
};
|
|
148
|
+
} | undefined;
|
|
149
|
+
traf?: {
|
|
150
|
+
apply: boolean;
|
|
151
|
+
options: {
|
|
152
|
+
lineBroadening: number;
|
|
153
|
+
};
|
|
154
|
+
} | undefined;
|
|
155
|
+
gaussian?: {
|
|
156
|
+
apply: boolean;
|
|
157
|
+
options: {
|
|
158
|
+
lineBroadening: number;
|
|
159
|
+
lineBroadeningCenter: number;
|
|
160
|
+
};
|
|
161
|
+
} | undefined;
|
|
162
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
163
|
+
exponential?: {
|
|
164
|
+
apply: boolean;
|
|
165
|
+
options: {
|
|
166
|
+
lineBroadening: number;
|
|
167
|
+
};
|
|
168
|
+
} | undefined;
|
|
169
|
+
sineBell?: {
|
|
170
|
+
apply: boolean;
|
|
171
|
+
options: {
|
|
172
|
+
offset: number;
|
|
173
|
+
};
|
|
174
|
+
} | undefined;
|
|
175
|
+
sineSquare?: {
|
|
176
|
+
apply: boolean;
|
|
177
|
+
options: {
|
|
178
|
+
offset: number;
|
|
179
|
+
};
|
|
180
|
+
} | undefined;
|
|
181
|
+
traf?: {
|
|
182
|
+
apply: boolean;
|
|
183
|
+
options: {
|
|
184
|
+
lineBroadening: number;
|
|
185
|
+
};
|
|
186
|
+
} | undefined;
|
|
187
|
+
gaussian?: {
|
|
188
|
+
apply: boolean;
|
|
189
|
+
options: {
|
|
190
|
+
lineBroadening: number;
|
|
191
|
+
lineBroadeningCenter: number;
|
|
192
|
+
};
|
|
193
|
+
} | undefined;
|
|
194
|
+
}> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
|
|
195
|
+
exponential?: {
|
|
196
|
+
apply: boolean;
|
|
197
|
+
options: {
|
|
198
|
+
lineBroadening: number;
|
|
199
|
+
};
|
|
200
|
+
} | undefined;
|
|
201
|
+
sineBell?: {
|
|
202
|
+
apply: boolean;
|
|
203
|
+
options: {
|
|
204
|
+
offset: number;
|
|
205
|
+
};
|
|
206
|
+
} | undefined;
|
|
207
|
+
sineSquare?: {
|
|
208
|
+
apply: boolean;
|
|
209
|
+
options: {
|
|
210
|
+
offset: number;
|
|
211
|
+
};
|
|
212
|
+
} | undefined;
|
|
213
|
+
traf?: {
|
|
214
|
+
apply: boolean;
|
|
215
|
+
options: {
|
|
216
|
+
lineBroadening: number;
|
|
217
|
+
};
|
|
218
|
+
} | undefined;
|
|
219
|
+
gaussian?: {
|
|
220
|
+
apply: boolean;
|
|
221
|
+
options: {
|
|
222
|
+
lineBroadening: number;
|
|
223
|
+
lineBroadeningCenter: number;
|
|
224
|
+
};
|
|
225
|
+
} | undefined;
|
|
226
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
227
|
+
exponential?: {
|
|
228
|
+
apply: boolean;
|
|
229
|
+
options: {
|
|
230
|
+
lineBroadening: number;
|
|
231
|
+
};
|
|
232
|
+
} | undefined;
|
|
233
|
+
sineBell?: {
|
|
234
|
+
apply: boolean;
|
|
235
|
+
options: {
|
|
236
|
+
offset: number;
|
|
237
|
+
};
|
|
238
|
+
} | undefined;
|
|
239
|
+
sineSquare?: {
|
|
240
|
+
apply: boolean;
|
|
241
|
+
options: {
|
|
242
|
+
offset: number;
|
|
243
|
+
};
|
|
244
|
+
} | undefined;
|
|
245
|
+
traf?: {
|
|
246
|
+
apply: boolean;
|
|
247
|
+
options: {
|
|
248
|
+
lineBroadening: number;
|
|
249
|
+
};
|
|
250
|
+
} | undefined;
|
|
251
|
+
gaussian?: {
|
|
252
|
+
apply: boolean;
|
|
253
|
+
options: {
|
|
254
|
+
lineBroadening: number;
|
|
255
|
+
lineBroadeningCenter: number;
|
|
256
|
+
};
|
|
257
|
+
} | undefined;
|
|
258
|
+
}> | undefined, import("zod").ZodType<{
|
|
259
|
+
exponential?: {
|
|
260
|
+
apply: boolean;
|
|
261
|
+
options: {
|
|
262
|
+
lineBroadening: number;
|
|
263
|
+
};
|
|
264
|
+
} | undefined;
|
|
265
|
+
sineBell?: {
|
|
266
|
+
apply: boolean;
|
|
267
|
+
options: {
|
|
268
|
+
offset: number;
|
|
269
|
+
};
|
|
270
|
+
} | undefined;
|
|
271
|
+
sineSquare?: {
|
|
272
|
+
apply: boolean;
|
|
273
|
+
options: {
|
|
274
|
+
offset: number;
|
|
275
|
+
};
|
|
276
|
+
} | undefined;
|
|
277
|
+
traf?: {
|
|
278
|
+
apply: boolean;
|
|
279
|
+
options: {
|
|
280
|
+
lineBroadening: number;
|
|
281
|
+
};
|
|
282
|
+
} | undefined;
|
|
283
|
+
gaussian?: {
|
|
284
|
+
apply: boolean;
|
|
285
|
+
options: {
|
|
286
|
+
lineBroadening: number;
|
|
287
|
+
lineBroadeningCenter: number;
|
|
288
|
+
};
|
|
289
|
+
} | undefined;
|
|
290
|
+
}, any, import("zod/v4/core").$ZodTypeInternals<{
|
|
291
|
+
exponential?: {
|
|
292
|
+
apply: boolean;
|
|
293
|
+
options: {
|
|
294
|
+
lineBroadening: number;
|
|
295
|
+
};
|
|
296
|
+
} | undefined;
|
|
297
|
+
sineBell?: {
|
|
298
|
+
apply: boolean;
|
|
299
|
+
options: {
|
|
300
|
+
offset: number;
|
|
301
|
+
};
|
|
302
|
+
} | undefined;
|
|
303
|
+
sineSquare?: {
|
|
304
|
+
apply: boolean;
|
|
305
|
+
options: {
|
|
306
|
+
offset: number;
|
|
307
|
+
};
|
|
308
|
+
} | undefined;
|
|
309
|
+
traf?: {
|
|
310
|
+
apply: boolean;
|
|
311
|
+
options: {
|
|
312
|
+
lineBroadening: number;
|
|
313
|
+
};
|
|
314
|
+
} | undefined;
|
|
315
|
+
gaussian?: {
|
|
316
|
+
apply: boolean;
|
|
317
|
+
options: {
|
|
318
|
+
lineBroadening: number;
|
|
319
|
+
lineBroadeningCenter: number;
|
|
320
|
+
};
|
|
321
|
+
} | undefined;
|
|
322
|
+
}, any>>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
323
|
+
exponential?: {
|
|
324
|
+
apply: boolean;
|
|
325
|
+
options: {
|
|
326
|
+
lineBroadening: number;
|
|
327
|
+
};
|
|
328
|
+
} | undefined;
|
|
329
|
+
sineBell?: {
|
|
330
|
+
apply: boolean;
|
|
331
|
+
options: {
|
|
332
|
+
offset: number;
|
|
333
|
+
};
|
|
334
|
+
} | undefined;
|
|
335
|
+
sineSquare?: {
|
|
336
|
+
apply: boolean;
|
|
337
|
+
options: {
|
|
338
|
+
offset: number;
|
|
339
|
+
};
|
|
340
|
+
} | undefined;
|
|
341
|
+
traf?: {
|
|
342
|
+
apply: boolean;
|
|
343
|
+
options: {
|
|
344
|
+
lineBroadening: number;
|
|
345
|
+
};
|
|
346
|
+
} | undefined;
|
|
347
|
+
gaussian?: {
|
|
348
|
+
apply: boolean;
|
|
349
|
+
options: {
|
|
350
|
+
lineBroadening: number;
|
|
351
|
+
lineBroadeningCenter: number;
|
|
352
|
+
};
|
|
353
|
+
} | undefined;
|
|
354
|
+
}> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
|
|
355
|
+
exponential?: {
|
|
356
|
+
apply: boolean;
|
|
357
|
+
options: {
|
|
358
|
+
lineBroadening: number;
|
|
359
|
+
};
|
|
360
|
+
} | undefined;
|
|
361
|
+
sineBell?: {
|
|
362
|
+
apply: boolean;
|
|
363
|
+
options: {
|
|
364
|
+
offset: number;
|
|
365
|
+
};
|
|
366
|
+
} | undefined;
|
|
367
|
+
sineSquare?: {
|
|
368
|
+
apply: boolean;
|
|
369
|
+
options: {
|
|
370
|
+
offset: number;
|
|
371
|
+
};
|
|
372
|
+
} | undefined;
|
|
373
|
+
traf?: {
|
|
374
|
+
apply: boolean;
|
|
375
|
+
options: {
|
|
376
|
+
lineBroadening: number;
|
|
377
|
+
};
|
|
378
|
+
} | undefined;
|
|
379
|
+
gaussian?: {
|
|
380
|
+
apply: boolean;
|
|
381
|
+
options: {
|
|
382
|
+
lineBroadening: number;
|
|
383
|
+
lineBroadeningCenter: number;
|
|
384
|
+
};
|
|
385
|
+
} | undefined;
|
|
386
|
+
}> | undefined, unknown, {
|
|
387
|
+
readonly Input: typeof import("react-science/ui")._Input;
|
|
388
|
+
readonly NumericInput: typeof import("react-science/ui")._NumericInput;
|
|
389
|
+
readonly Checkbox: typeof import("react-science/ui")._Checkbox;
|
|
390
|
+
readonly Select: typeof import("react-science/ui")._Select;
|
|
391
|
+
readonly Switch: typeof import("react-science/ui")._Switch;
|
|
392
|
+
readonly ColorPicker: typeof import("react-science/ui")._ColorPicker;
|
|
393
|
+
readonly RadioGroup: typeof import("react-science/ui")._RadioGroup;
|
|
394
|
+
readonly DraggableNumericInput: typeof import("react-science/ui")._DraggableNumericInput;
|
|
395
|
+
}, {
|
|
396
|
+
readonly SubmitButton: typeof import("react-science/ui")._SubmitButton;
|
|
397
|
+
readonly ResetButton: typeof import("react-science/ui")._ResetButton;
|
|
398
|
+
readonly Section: typeof import("react-science/ui")._Section;
|
|
399
|
+
}>;
|
|
400
|
+
//# sourceMappingURL=apodization.hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apodization.hook.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization.hook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,uBAAuB,CAAC;AAInF,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,qCAAqC,CAAC,6CAA6C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoC5F"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { revalidateLogic } from '@tanstack/react-form';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import { useForm } from 'react-science/ui';
|
|
4
|
+
export function useApodizationForm(props) {
|
|
5
|
+
const { operation, onSubmit, onChange, core } = props;
|
|
6
|
+
const operator = core.getOperationOperator('@zakodium/nmrium-core-plugins#apodization1D', operation);
|
|
7
|
+
const validator = operator.schemaSettings;
|
|
8
|
+
const defaultValues = operation.settings;
|
|
9
|
+
const form = useForm({
|
|
10
|
+
defaultValues,
|
|
11
|
+
validators: { onDynamic: validator },
|
|
12
|
+
validationLogic: revalidateLogic(),
|
|
13
|
+
onSubmit: ({ value }) => {
|
|
14
|
+
if (!onSubmit)
|
|
15
|
+
return;
|
|
16
|
+
const newOperation = { ...operation, settings: validator.parse(value) };
|
|
17
|
+
onSubmit(newOperation);
|
|
18
|
+
},
|
|
19
|
+
listeners: {
|
|
20
|
+
onChange: ({ formApi }) => {
|
|
21
|
+
const result = validator.safeParse(formApi.state.values);
|
|
22
|
+
if (!result.success)
|
|
23
|
+
return;
|
|
24
|
+
const liveOperation = { ...operation, settings: result.data };
|
|
25
|
+
onChange(liveOperation);
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
form.reset(defaultValues, { keepDefaultValues: true });
|
|
31
|
+
}, [form, defaultValues]);
|
|
32
|
+
return form;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=apodization.hook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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AC,IAAI,EAAE,CAAC;gBAC9D,QAAQ,CAAC,aAAa,CAAC,CAAC;YAC1B,CAAC;SACF;KACF,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;IACzD,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC;IAE1B,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineProcessingOperatorUI } from '@zakodium/nmrium-core';
|
|
2
2
|
import { ApodizationExpanded } from "./apodization_expanded.js";
|
|
3
3
|
import { ApodizationTool } from "./apodization_tool.js";
|
|
4
|
+
import { ApodizationTopBar } from "./apodization_topbar.js";
|
|
4
5
|
export const apodization1D = defineProcessingOperatorUI({
|
|
5
6
|
id: '@zakodium/nmrium-core-plugins#apodization1D',
|
|
6
7
|
name: 'Apodization / Window',
|
|
@@ -9,5 +10,6 @@ export const apodization1D = defineProcessingOperatorUI({
|
|
|
9
10
|
defaultShouldProcessAll: false,
|
|
10
11
|
Expanded: ApodizationExpanded,
|
|
11
12
|
Tool: ApodizationTool,
|
|
13
|
+
TopBar: ApodizationTopBar,
|
|
12
14
|
});
|
|
13
15
|
//# sourceMappingURL=apodization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apodization.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA4B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"apodization.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA4B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAwB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,aAAa,GAAG,0BAA0B,CAAC;IACtD,EAAE,EAAE,6CAA6C;IACjD,IAAI,EAAE,sBAAsB;IAC5B,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;IACpB,uBAAuB,EAAE,KAAK;IAC9B,QAAQ,EAAE,mBAAmB;IAC7B,IAAI,EAAE,eAAe;IACrB,MAAM,EAAE,iBAAiB;CAC1B,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function ApodizationExpanded(props:
|
|
1
|
+
import type { ProcessingOperatorUISettingsFormProps } from '@zakodium/nmrium-core';
|
|
2
|
+
export declare function ApodizationExpanded(props: ProcessingOperatorUISettingsFormProps<'@zakodium/nmrium-core-plugins#apodization1D'>): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=apodization_expanded.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apodization_expanded.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apodization_expanded.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,uBAAuB,CAAC;AAKnF,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,qCAAqC,CAAC,6CAA6C,CAAC,+BA0M5F"}
|
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AppForm } from 'react-science/ui';
|
|
3
|
+
import { useApodizationForm } from "./apodization.hook.js";
|
|
4
4
|
export function ApodizationExpanded(props) {
|
|
5
|
-
const {
|
|
6
|
-
const
|
|
7
|
-
const validator = operator.schemaSettings;
|
|
8
|
-
const form = useForm({
|
|
9
|
-
defaultValues: operation.settings,
|
|
10
|
-
validators: { onDynamic: validator },
|
|
11
|
-
validationLogic: revalidateLogic(),
|
|
12
|
-
onSubmit: ({ value }) => {
|
|
13
|
-
if (!onChange)
|
|
14
|
-
return;
|
|
15
|
-
const newOperation = { ...operation, settings: validator.parse(value) };
|
|
16
|
-
onChange(newOperation);
|
|
17
|
-
},
|
|
18
|
-
listeners: {
|
|
19
|
-
onMount: () => onMount(),
|
|
20
|
-
onChange: ({ formApi }) => {
|
|
21
|
-
const result = validator.safeParse(formApi.state.values);
|
|
22
|
-
if (!result.success)
|
|
23
|
-
return;
|
|
24
|
-
const liveOperation = { ...operation, settings: result.data };
|
|
25
|
-
onLiveChange(liveOperation);
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
});
|
|
5
|
+
const { children } = props;
|
|
6
|
+
const form = useApodizationForm(props);
|
|
29
7
|
const { AppField, SubmitButton } = form;
|
|
30
8
|
return (_jsxs(AppForm, { form: form, layout: "inline", children: [children(_jsx(SubmitButton, { variant: "outlined", size: "small", intent: "success", children: "Apply" })), _jsx(AppField, { name: "exponential.apply", listeners: {
|
|
31
9
|
onChange: ({ value, fieldApi }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apodization_expanded.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"apodization_expanded.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_expanded.tsx"],"names":[],"m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AC,aAAa,CAAC,6BAA6B,EAAE,GAAG,EAAE;4BAC9D,gBAAgB,EAAE,IAAI;yBACvB,CAAC,CAAC;oBACL,CAAC;iBACF,YAEA,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACxB,8BACE,KAAC,QAAQ,IAAC,KAAK,EAAC,MAAM,GAAG,EACxB,KAAK,CAAC,KAAK,IAAI,CACd,KAAC,QAAQ,IAAC,IAAI,EAAC,6BAA6B,YACzC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CACrB,KAAC,YAAY,IACX,KAAK,EAAC,iBAAiB,EACvB,aAAa,EAAE,IAAI,EACnB,IAAI,EAAE,GAAG,EACT,aAAa,EAAE,CAAC,GAChB,CACH,GACQ,CACZ,IACA,CACJ,GACQ,IACH,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apodization_tool.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_tool.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,6BAA6B,EAE9B,MAAM,uBAAuB,CAAC;AAqB/B,wBAAgB,eAAe,CAC7B,KAAK,EAAE,6BAA6B,CAAC,6CAA6C,CAAC,
|
|
1
|
+
{"version":3,"file":"apodization_tool.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_tool.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,6BAA6B,EAE9B,MAAM,uBAAuB,CAAC;AAqB/B,wBAAgB,eAAe,CAC7B,KAAK,EAAE,6BAA6B,CAAC,6CAA6C,CAAC,sCAoDpF"}
|
|
@@ -17,9 +17,8 @@ function defaultApodization1DOperation() {
|
|
|
17
17
|
}
|
|
18
18
|
const NO_SHORTCUTS = [];
|
|
19
19
|
export function ApodizationTool(props) {
|
|
20
|
-
const { spectrum,
|
|
21
|
-
const
|
|
22
|
-
const isActive = firstLiveProcessing === '@zakodium/nmrium-core-plugins#apodization1D';
|
|
20
|
+
const { spectrum, activeOperatorId, onTriggerOperation } = props;
|
|
21
|
+
const isActive = activeOperatorId === '@zakodium/nmrium-core-plugins#apodization1D';
|
|
23
22
|
const isVisible = isSpectrum1DFid(spectrum) && spectrum.info.isComplex;
|
|
24
23
|
const triggerOperation = useEventCallback((event) => {
|
|
25
24
|
if ('stopImmediatePropagation' in event) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apodization_tool.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_tool.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,SAAS,6BAA6B;IACpC,OAAO;QACL,UAAU,EAAE,6CAA6C;QACzD,QAAQ,EAAE,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,CAAC,EAAE,EAAE,EAAE;QAC1E,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,UAAU,EAAE;QACjB,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC;AAED,MAAM,YAAY,GAAmB,EAAE,CAAC;AAExC,MAAM,UAAU,eAAe,CAC7B,KAAmF;IAEnF,MAAM,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"apodization_tool.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_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,OAAO,GAAG,OAAO,CACrB,GAAG,EAAE,CAAC;QACJ;YACE,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,gBAAgB;SAC5B;KACF,EACD,CAAC,gBAAgB,CAAC,CACnB,CAAC;IACF,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAE/C,IAAI,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAE5B,OAAO,CACL,KAAC,OAAO,CAAC,IAAI,IACX,EAAE,EAAC,6CAA6C,EAChD,IAAI,EAAE,KAAC,iBAAiB,KAAG,EAC3B,OAAO,EACL,KAAC,kBAAkB,IACjB,KAAK,EAAC,sBAAsB,EAC5B,SAAS,EAAE,CAAC,GAAG,CAAC,EAChB,WAAW,EAAC,qFAAqF,EACjG,IAAI,EAAC,0CAA0C,GAC/C,EAEJ,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE,gBAAgB,GACzB,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ProcessingOperatorUISettingsFormProps } from '@zakodium/nmrium-core';
|
|
2
|
+
export declare function ApodizationTopBar(props: ProcessingOperatorUISettingsFormProps<'@zakodium/nmrium-core-plugins#apodization1D'>): import("react").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=apodization_topbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apodization_topbar.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_topbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,uBAAuB,CAAC;AAKnF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,qCAAqC,CAAC,6CAA6C,CAAC,+BAiC5F"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Classes } from '@blueprintjs/core';
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
|
+
import { AppForm } from 'react-science/ui';
|
|
5
|
+
import { useApodizationForm } from "./apodization.hook.js";
|
|
6
|
+
export function ApodizationTopBar(props) {
|
|
7
|
+
const { children } = props;
|
|
8
|
+
const form = useApodizationForm(props);
|
|
9
|
+
const { AppField, SubmitButton, Subscribe } = form;
|
|
10
|
+
return (_jsxs(HorizontalAppForm, { form: form, layout: "inline", children: [_jsx(Subscribe, { selector: (state) => state.values.exponential?.apply ?? false, children: (apply) => (_jsx(AppField, { name: "exponential.options.lineBroadening", children: ({ NumericInput }) => (_jsx(NumericInput, { readOnly: !apply, disabled: !apply, label: "Line broadening", minorStepSize: 0.01, step: 0.1, majorStepSize: 1 })) })) }), children(_jsx(SubmitButton, { variant: "outlined", size: "small", intent: "success", children: "Apply" }))] }));
|
|
11
|
+
}
|
|
12
|
+
const HorizontalAppForm = styled(AppForm) `
|
|
13
|
+
display: contents;
|
|
14
|
+
|
|
15
|
+
.${Classes.FORM_GROUP} {
|
|
16
|
+
min-height: unset;
|
|
17
|
+
width: unset;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 5px;
|
|
22
|
+
|
|
23
|
+
> :not(.${Classes.LABEL}) {
|
|
24
|
+
min-width: unset;
|
|
25
|
+
width: unset;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.${Classes.INPUT} {
|
|
29
|
+
width: 5em;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
//# sourceMappingURL=apodization_topbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apodization_topbar.js","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/apodization_topbar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OA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;CAInB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function PhaseCorrectionExpanded(props:
|
|
1
|
+
import type { ProcessingOperatorUISettingsFormProps } from '@zakodium/nmrium-core';
|
|
2
|
+
export declare function PhaseCorrectionExpanded(props: ProcessingOperatorUISettingsFormProps<'@zakodium/nmrium-core-plugins#phaseCorrection1D'>): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=phase_correction_expanded.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phase_correction_expanded.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"phase_correction_expanded.d.ts","sourceRoot":"","sources":["../../../../src/plugins/spectrum_1d_processings_ui/operators/phase_correction_expanded.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,uBAAuB,CAAC;AAKnF,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,qCAAqC,CAAC,iDAAiD,CAAC,+BAmGhG"}
|