@cosmol-studio/cosmolkit-core-reaction 0.6.0-rc.3 → 0.6.0

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # COSMolKit for JavaScript and TypeScript
1
+ # COSMolKit 0.6 for JavaScript and TypeScript
2
2
 
3
3
  WebAssembly bindings to the public Rust API, with generated TypeScript declarations.
4
4
 
@@ -62,7 +62,8 @@ export interface BatchQueryParamsOptions {
62
62
  */
63
63
  progressBar?: BatchQueryParams["progressBar"];
64
64
  /**
65
- * One notification after every completed input row, including invalid rows.
65
+ * One notification after every completed query row. Retained input errors
66
+ * reject the query before any notification.
66
67
  */
67
68
  progressCallback?: BatchQueryParams["progressCallback"];
68
69
  }
@@ -1564,7 +1565,8 @@ export class BatchParams {
1564
1565
  }
1565
1566
 
1566
1567
  /**
1567
- * Runtime overrides for ordered read results; newly failed queries always raise.
1568
+ * Runtime overrides for ordered read results; retained failures reject a query
1569
+ * before computation. New query failures also raise.
1568
1570
  */
1569
1571
  export class BatchQueryParams {
1570
1572
  free(): void;
@@ -1582,7 +1584,8 @@ export class BatchQueryParams {
1582
1584
  get progressBar(): boolean | undefined;
1583
1585
  set progressBar(value: BoolInput | null | undefined);
1584
1586
  /**
1585
- * One notification after every completed input row, including invalid rows.
1587
+ * One notification after every completed query row. Retained input errors
1588
+ * reject the query before any notification.
1586
1589
  */
1587
1590
  get progressCallback(): (() => void) | undefined;
1588
1591
  set progressCallback(value: (() => void) | null | undefined);
@@ -2401,8 +2404,8 @@ export class CxSmilesFields {
2401
2404
  [Symbol.dispose](): void;
2402
2405
  contains(other: CxSmilesFields): boolean;
2403
2406
  union(other: CxSmilesFields): CxSmilesFields;
2404
- static readonly ALL: CxSmilesFields;
2405
2407
  static readonly ALL_BUT_COORDS: CxSmilesFields;
2408
+ static readonly ALL: CxSmilesFields;
2406
2409
  static readonly ATOM_LABELS: CxSmilesFields;
2407
2410
  static readonly ATOM_PROPS: CxSmilesFields;
2408
2411
  static readonly BOND_ATROPISOMER: CxSmilesFields;
@@ -3835,10 +3838,10 @@ export class Molecule {
3835
3838
  add3dConformer_(coordinates: Coordinates3D, params?: Coordinate3DInputParams | Coordinate3DInputParamsOptions | null): number;
3836
3839
  addHydrogensWithParams_(params: AddHsParams | AddHsParamsOptions): void;
3837
3840
  addHydrogens_(params?: AddHsParams | AddHsParamsOptions | null): void;
3838
- applyReactionWithParams(reaction: Reaction, params: ReactionApplyParams | ReactionApplyParamsOptions): ReactionApplyResult;
3839
3841
  applyReactionWithParams_(reaction: Reaction, params: ReactionApplyParams | ReactionApplyParamsOptions): boolean;
3840
- applyReaction(reaction: Reaction, params?: ReactionApplyParams | ReactionApplyParamsOptions | null): ReactionApplyResult;
3842
+ applyReactionWithParams(reaction: Reaction, params: ReactionApplyParams | ReactionApplyParamsOptions): ReactionApplyResult;
3841
3843
  applyReaction_(reaction: Reaction, params?: ReactionApplyParams | ReactionApplyParamsOptions | null): boolean;
3844
+ applyReaction(reaction: Reaction, params?: ReactionApplyParams | ReactionApplyParamsOptions | null): ReactionApplyResult;
3842
3845
  assignAromaticityWithParams_(params: AromaticityParams | AromaticityParamsOptions): void;
3843
3846
  assignAromaticity_(params?: AromaticityParams | AromaticityParamsOptions | null): void;
3844
3847
  assignChiralTagsFromStructureWithParams_(params: StructureTagParams | StructureTagParamsOptions): void;
@@ -3860,6 +3863,11 @@ export class Molecule {
3860
3863
  atomPropertyString(atom: IndexInput, key: TextInput): string | undefined;
3861
3864
  atomPropertyUint(atom: IndexInput, key: TextInput): number | undefined;
3862
3865
  atom(index: IndexInput): MoleculeAtom | undefined;
3866
+ /**
3867
+ * Return an independent Uint8Array of atomic numbers in atom-index order.
3868
+ * No atom handles are created; dummy atoms are zero. No free() is needed.
3869
+ */
3870
+ atomicNumbers(): Uint8Array;
3863
3871
  bondPropertyString(bond: IndexInput, key: TextInput): string | undefined;
3864
3872
  bond(index: IndexInput): Bond | undefined;
3865
3873
  clear3dConformers_(): void;
@@ -3899,10 +3907,10 @@ export class Molecule {
3899
3907
  reactionProducts(reaction: Reaction, reactant_template: IndexInput, params?: ReactionSingleRunParams | ReactionSingleRunParamsOptions | null): ReadonlyArray<ReadonlyArray<Molecule>>;
3900
3908
  removeHydrogensWithParams_(params: RemoveHsParams | RemoveHsParamsOptions): void;
3901
3909
  removeHydrogens_(params?: RemoveHsParams | RemoveHsParamsOptions | null): void;
3902
- sanitizeWithParams(params: SanitizeParams | SanitizeParamsOptions): Molecule;
3903
3910
  sanitizeWithParams_(params: SanitizeParams | SanitizeParamsOptions): void;
3904
- sanitize(params?: SanitizeParams | SanitizeParamsOptions | null): Molecule;
3911
+ sanitizeWithParams(params: SanitizeParams | SanitizeParamsOptions): Molecule;
3905
3912
  sanitize_(params?: SanitizeParams | SanitizeParamsOptions | null): void;
3913
+ sanitize(params?: SanitizeParams | SanitizeParamsOptions | null): Molecule;
3906
3914
  set2dCoordinatesWithParams_(coordinates: CoordinateRows, params: Coordinate2DInputParams | Coordinate2DInputParamsOptions): void;
3907
3915
  set2dCoordinates_(coordinates: CoordinateRows, params?: Coordinate2DInputParams | Coordinate2DInputParamsOptions | null): void;
3908
3916
  set3dCoordinatesWithParams_(coordinates: Coordinates3D, params: Replace3DCoordinatesParams | Replace3DCoordinatesParamsOptions): void;
@@ -6143,10 +6151,10 @@ export class SanitizeOperations {
6143
6151
  union(other: SanitizeOperations): SanitizeOperations;
6144
6152
  static readonly ADJUST_HS: SanitizeOperations;
6145
6153
  static readonly ALL: SanitizeOperations;
6146
- static readonly CLEANUP: SanitizeOperations;
6147
6154
  static readonly CLEANUP_ATROPISOMERS: SanitizeOperations;
6148
6155
  static readonly CLEANUP_CHIRALITY: SanitizeOperations;
6149
6156
  static readonly CLEANUP_ORGANOMETALLICS: SanitizeOperations;
6157
+ static readonly CLEANUP: SanitizeOperations;
6150
6158
  static readonly FIND_RADICALS: SanitizeOperations;
6151
6159
  static readonly KEKULIZE: SanitizeOperations;
6152
6160
  static readonly NONE: SanitizeOperations;
@@ -9406,6 +9414,7 @@ export interface InitOutput {
9406
9414
  readonly molecule_atomPropertyString: (a: number, b: number, c: number, d: number) => void;
9407
9415
  readonly molecule_atomPropertyStringVector: (a: number, b: number, c: number, d: number) => void;
9408
9416
  readonly molecule_atomPropertyUint: (a: number, b: number, c: number, d: number) => void;
9417
+ readonly molecule_atomicNumbers: (a: number, b: number) => void;
9409
9418
  readonly molecule_atoms: (a: number, b: number) => void;
9410
9419
  readonly molecule_bond: (a: number, b: number, c: number) => void;
9411
9420
  readonly molecule_bondPropertyString: (a: number, b: number, c: number, d: number) => void;
@@ -11158,46 +11167,46 @@ export interface InitOutput {
11158
11167
  readonly xyzwriteparams_set_conformerId: (a: number, b: number, c: number) => void;
11159
11168
  readonly xyzwriteparams_set_precision: (a: number, b: number, c: number) => void;
11160
11169
  readonly __wasm_bindgen_func_elem_580: (a: number, b: number, c: number) => void;
11161
- readonly __wasm_bindgen_func_elem_580_2737: (a: number, b: number, c: number) => void;
11162
- readonly __wasm_bindgen_func_elem_580_2740: (a: number, b: number, c: number) => void;
11170
+ readonly __wasm_bindgen_func_elem_580_2738: (a: number, b: number, c: number) => void;
11163
11171
  readonly __wasm_bindgen_func_elem_580_2741: (a: number, b: number, c: number) => void;
11164
11172
  readonly __wasm_bindgen_func_elem_580_2742: (a: number, b: number, c: number) => void;
11165
11173
  readonly __wasm_bindgen_func_elem_580_2743: (a: number, b: number, c: number) => void;
11166
11174
  readonly __wasm_bindgen_func_elem_580_2744: (a: number, b: number, c: number) => void;
11167
11175
  readonly __wasm_bindgen_func_elem_580_2745: (a: number, b: number, c: number) => void;
11168
- readonly __wasm_bindgen_func_elem_580_2750: (a: number, b: number, c: number) => void;
11176
+ readonly __wasm_bindgen_func_elem_580_2746: (a: number, b: number, c: number) => void;
11169
11177
  readonly __wasm_bindgen_func_elem_580_2751: (a: number, b: number, c: number) => void;
11170
11178
  readonly __wasm_bindgen_func_elem_580_2752: (a: number, b: number, c: number) => void;
11171
11179
  readonly __wasm_bindgen_func_elem_580_2753: (a: number, b: number, c: number) => void;
11172
- readonly __wasm_bindgen_func_elem_580_2755: (a: number, b: number, c: number) => void;
11173
- readonly __wasm_bindgen_func_elem_580_2759: (a: number, b: number, c: number) => void;
11174
- readonly __wasm_bindgen_func_elem_580_2761: (a: number, b: number, c: number) => void;
11180
+ readonly __wasm_bindgen_func_elem_580_2754: (a: number, b: number, c: number) => void;
11181
+ readonly __wasm_bindgen_func_elem_580_2756: (a: number, b: number, c: number) => void;
11182
+ readonly __wasm_bindgen_func_elem_580_2760: (a: number, b: number, c: number) => void;
11175
11183
  readonly __wasm_bindgen_func_elem_580_2762: (a: number, b: number, c: number) => void;
11176
11184
  readonly __wasm_bindgen_func_elem_580_2763: (a: number, b: number, c: number) => void;
11177
- readonly __wasm_bindgen_func_elem_580_2765: (a: number, b: number, c: number) => void;
11185
+ readonly __wasm_bindgen_func_elem_580_2764: (a: number, b: number, c: number) => void;
11178
11186
  readonly __wasm_bindgen_func_elem_580_2766: (a: number, b: number, c: number) => void;
11179
11187
  readonly __wasm_bindgen_func_elem_580_2767: (a: number, b: number, c: number) => void;
11180
- readonly __wasm_bindgen_func_elem_580_2769: (a: number, b: number, c: number) => void;
11188
+ readonly __wasm_bindgen_func_elem_580_2768: (a: number, b: number, c: number) => void;
11181
11189
  readonly __wasm_bindgen_func_elem_580_2770: (a: number, b: number, c: number) => void;
11182
11190
  readonly __wasm_bindgen_func_elem_580_2771: (a: number, b: number, c: number) => void;
11183
11191
  readonly __wasm_bindgen_func_elem_580_2772: (a: number, b: number, c: number) => void;
11184
- readonly __wasm_bindgen_func_elem_580_2775: (a: number, b: number, c: number) => void;
11192
+ readonly __wasm_bindgen_func_elem_580_2773: (a: number, b: number, c: number) => void;
11185
11193
  readonly __wasm_bindgen_func_elem_580_2776: (a: number, b: number, c: number) => void;
11186
11194
  readonly __wasm_bindgen_func_elem_580_2777: (a: number, b: number, c: number) => void;
11187
11195
  readonly __wasm_bindgen_func_elem_580_2778: (a: number, b: number, c: number) => void;
11188
11196
  readonly __wasm_bindgen_func_elem_580_2779: (a: number, b: number, c: number) => void;
11189
- readonly __wasm_bindgen_func_elem_580_2788: (a: number, b: number, c: number) => void;
11197
+ readonly __wasm_bindgen_func_elem_580_2780: (a: number, b: number, c: number) => void;
11190
11198
  readonly __wasm_bindgen_func_elem_580_2789: (a: number, b: number, c: number) => void;
11191
11199
  readonly __wasm_bindgen_func_elem_580_2790: (a: number, b: number, c: number) => void;
11192
- readonly __wasm_bindgen_func_elem_580_2792: (a: number, b: number, c: number) => void;
11193
- readonly __wasm_bindgen_func_elem_580_2794: (a: number, b: number, c: number) => void;
11200
+ readonly __wasm_bindgen_func_elem_580_2791: (a: number, b: number, c: number) => void;
11201
+ readonly __wasm_bindgen_func_elem_580_2793: (a: number, b: number, c: number) => void;
11194
11202
  readonly __wasm_bindgen_func_elem_580_2795: (a: number, b: number, c: number) => void;
11195
11203
  readonly __wasm_bindgen_func_elem_580_2796: (a: number, b: number, c: number) => void;
11196
- readonly __wasm_bindgen_func_elem_580_2798: (a: number, b: number, c: number) => void;
11204
+ readonly __wasm_bindgen_func_elem_580_2797: (a: number, b: number, c: number) => void;
11197
11205
  readonly __wasm_bindgen_func_elem_580_2799: (a: number, b: number, c: number) => void;
11198
11206
  readonly __wasm_bindgen_func_elem_580_2800: (a: number, b: number, c: number) => void;
11199
11207
  readonly __wasm_bindgen_func_elem_580_2801: (a: number, b: number, c: number) => void;
11200
11208
  readonly __wasm_bindgen_func_elem_580_2802: (a: number, b: number, c: number) => void;
11209
+ readonly __wasm_bindgen_func_elem_580_2803: (a: number, b: number, c: number) => void;
11201
11210
  readonly __wasm_bindgen_func_elem_580_32: (a: number, b: number, c: number) => void;
11202
11211
  readonly __wasm_bindgen_func_elem_580_34: (a: number, b: number, c: number) => void;
11203
11212
  readonly __wasm_bindgen_func_elem_580_35: (a: number, b: number, c: number) => void;
@@ -11206,19 +11215,19 @@ export interface InitOutput {
11206
11215
  readonly __wasm_bindgen_func_elem_587: (a: number, b: number, c: number) => void;
11207
11216
  readonly __wasm_bindgen_func_elem_589: (a: number, b: number, c: number) => void;
11208
11217
  readonly __wasm_bindgen_func_elem_591: (a: number, b: number, c: number) => void;
11209
- readonly __wasm_bindgen_func_elem_591_2027: (a: number, b: number, c: number) => void;
11218
+ readonly __wasm_bindgen_func_elem_591_2028: (a: number, b: number, c: number) => void;
11210
11219
  readonly __wasm_bindgen_func_elem_597: (a: number, b: number, c: number) => void;
11211
11220
  readonly __wasm_bindgen_func_elem_601: (a: number, b: number, c: number) => void;
11212
11221
  readonly __wasm_bindgen_func_elem_603: (a: number, b: number, c: number) => void;
11213
- readonly __wasm_bindgen_func_elem_603_2774: (a: number, b: number, c: number) => void;
11214
- readonly __wasm_bindgen_func_elem_603_2793: (a: number, b: number, c: number) => void;
11215
- readonly __wasm_bindgen_func_elem_603_2797: (a: number, b: number, c: number) => void;
11216
- readonly __wasm_bindgen_func_elem_603_2803: (a: number, b: number, c: number) => void;
11222
+ readonly __wasm_bindgen_func_elem_603_2775: (a: number, b: number, c: number) => void;
11223
+ readonly __wasm_bindgen_func_elem_603_2794: (a: number, b: number, c: number) => void;
11224
+ readonly __wasm_bindgen_func_elem_603_2798: (a: number, b: number, c: number) => void;
11225
+ readonly __wasm_bindgen_func_elem_603_2804: (a: number, b: number, c: number) => void;
11217
11226
  readonly __wasm_bindgen_func_elem_605: (a: number, b: number, c: number) => void;
11218
11227
  readonly __wasm_bindgen_func_elem_610: (a: number, b: number, c: number) => void;
11219
- readonly __wasm_bindgen_func_elem_610_2764: (a: number, b: number, c: number) => void;
11220
- readonly __wasm_bindgen_func_elem_610_2773: (a: number, b: number, c: number) => void;
11221
- readonly __wasm_bindgen_func_elem_610_2784: (a: number, b: number, c: number) => void;
11228
+ readonly __wasm_bindgen_func_elem_610_2765: (a: number, b: number, c: number) => void;
11229
+ readonly __wasm_bindgen_func_elem_610_2774: (a: number, b: number, c: number) => void;
11230
+ readonly __wasm_bindgen_func_elem_610_2785: (a: number, b: number, c: number) => void;
11222
11231
  readonly __wasm_bindgen_func_elem_614: (a: number, b: number, c: number) => void;
11223
11232
  readonly __wasm_bindgen_func_elem_618: (a: number, b: number, c: number) => void;
11224
11233
  readonly __wasm_bindgen_func_elem_620: (a: number, b: number, c: number) => void;