@cosmol-studio/cosmolkit-core 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
  }
@@ -1233,7 +1234,8 @@ export class BatchParams {
1233
1234
  }
1234
1235
 
1235
1236
  /**
1236
- * Runtime overrides for ordered read results; newly failed queries always raise.
1237
+ * Runtime overrides for ordered read results; retained failures reject a query
1238
+ * before computation. New query failures also raise.
1237
1239
  */
1238
1240
  export class BatchQueryParams {
1239
1241
  free(): void;
@@ -1251,7 +1253,8 @@ export class BatchQueryParams {
1251
1253
  get progressBar(): boolean | undefined;
1252
1254
  set progressBar(value: BoolInput | null | undefined);
1253
1255
  /**
1254
- * One notification after every completed input row, including invalid rows.
1256
+ * One notification after every completed query row. Retained input errors
1257
+ * reject the query before any notification.
1255
1258
  */
1256
1259
  get progressCallback(): (() => void) | undefined;
1257
1260
  set progressCallback(value: (() => void) | null | undefined);
@@ -1999,8 +2002,8 @@ export class CxSmilesFields {
1999
2002
  [Symbol.dispose](): void;
2000
2003
  contains(other: CxSmilesFields): boolean;
2001
2004
  union(other: CxSmilesFields): CxSmilesFields;
2002
- static readonly ALL: CxSmilesFields;
2003
2005
  static readonly ALL_BUT_COORDS: CxSmilesFields;
2006
+ static readonly ALL: CxSmilesFields;
2004
2007
  static readonly ATOM_LABELS: CxSmilesFields;
2005
2008
  static readonly ATOM_PROPS: CxSmilesFields;
2006
2009
  static readonly BOND_ATROPISOMER: CxSmilesFields;
@@ -3149,6 +3152,11 @@ export class Molecule {
3149
3152
  atomPropertyString(atom: IndexInput, key: TextInput): string | undefined;
3150
3153
  atomPropertyUint(atom: IndexInput, key: TextInput): number | undefined;
3151
3154
  atom(index: IndexInput): MoleculeAtom | undefined;
3155
+ /**
3156
+ * Return an independent Uint8Array of atomic numbers in atom-index order.
3157
+ * No atom handles are created; dummy atoms are zero. No free() is needed.
3158
+ */
3159
+ atomicNumbers(): Uint8Array;
3152
3160
  bondPropertyString(bond: IndexInput, key: TextInput): string | undefined;
3153
3161
  bond(index: IndexInput): Bond | undefined;
3154
3162
  clear3dConformers_(): void;
@@ -3183,10 +3191,10 @@ export class Molecule {
3183
3191
  property(key: TextInput): PropertyValue | undefined;
3184
3192
  removeHydrogensWithParams_(params: RemoveHsParams | RemoveHsParamsOptions): void;
3185
3193
  removeHydrogens_(params?: RemoveHsParams | RemoveHsParamsOptions | null): void;
3186
- sanitizeWithParams(params: SanitizeParams | SanitizeParamsOptions): Molecule;
3187
3194
  sanitizeWithParams_(params: SanitizeParams | SanitizeParamsOptions): void;
3188
- sanitize(params?: SanitizeParams | SanitizeParamsOptions | null): Molecule;
3195
+ sanitizeWithParams(params: SanitizeParams | SanitizeParamsOptions): Molecule;
3189
3196
  sanitize_(params?: SanitizeParams | SanitizeParamsOptions | null): void;
3197
+ sanitize(params?: SanitizeParams | SanitizeParamsOptions | null): Molecule;
3190
3198
  set2dCoordinatesWithParams_(coordinates: CoordinateRows, params: Coordinate2DInputParams | Coordinate2DInputParamsOptions): void;
3191
3199
  set2dCoordinates_(coordinates: CoordinateRows, params?: Coordinate2DInputParams | Coordinate2DInputParamsOptions | null): void;
3192
3200
  set3dCoordinatesWithParams_(coordinates: Coordinates3D, params: Replace3DCoordinatesParams | Replace3DCoordinatesParamsOptions): void;
@@ -4751,10 +4759,10 @@ export class SanitizeOperations {
4751
4759
  union(other: SanitizeOperations): SanitizeOperations;
4752
4760
  static readonly ADJUST_HS: SanitizeOperations;
4753
4761
  static readonly ALL: SanitizeOperations;
4754
- static readonly CLEANUP: SanitizeOperations;
4755
4762
  static readonly CLEANUP_ATROPISOMERS: SanitizeOperations;
4756
4763
  static readonly CLEANUP_CHIRALITY: SanitizeOperations;
4757
4764
  static readonly CLEANUP_ORGANOMETALLICS: SanitizeOperations;
4765
+ static readonly CLEANUP: SanitizeOperations;
4758
4766
  static readonly FIND_RADICALS: SanitizeOperations;
4759
4767
  static readonly KEKULIZE: SanitizeOperations;
4760
4768
  static readonly NONE: SanitizeOperations;
@@ -7326,6 +7334,7 @@ export interface InitOutput {
7326
7334
  readonly molecule_atomPropertyString: (a: number, b: number, c: number, d: number) => void;
7327
7335
  readonly molecule_atomPropertyStringVector: (a: number, b: number, c: number, d: number) => void;
7328
7336
  readonly molecule_atomPropertyUint: (a: number, b: number, c: number, d: number) => void;
7337
+ readonly molecule_atomicNumbers: (a: number, b: number) => void;
7329
7338
  readonly molecule_atoms: (a: number, b: number) => void;
7330
7339
  readonly molecule_bond: (a: number, b: number, c: number) => void;
7331
7340
  readonly molecule_bondPropertyString: (a: number, b: number, c: number, d: number) => void;
@@ -8641,64 +8650,64 @@ export interface InitOutput {
8641
8650
  readonly xyzwriteparams_precision: (a: number, b: number) => void;
8642
8651
  readonly xyzwriteparams_set_conformerId: (a: number, b: number, c: number) => void;
8643
8652
  readonly xyzwriteparams_set_precision: (a: number, b: number, c: number) => void;
8644
- readonly __wasm_bindgen_func_elem_468: (a: number, b: number, c: number) => void;
8645
- readonly __wasm_bindgen_func_elem_468_2162: (a: number, b: number, c: number) => void;
8646
- readonly __wasm_bindgen_func_elem_468_2165: (a: number, b: number, c: number) => void;
8647
- readonly __wasm_bindgen_func_elem_468_2166: (a: number, b: number, c: number) => void;
8648
- readonly __wasm_bindgen_func_elem_468_2167: (a: number, b: number, c: number) => void;
8649
- readonly __wasm_bindgen_func_elem_468_2172: (a: number, b: number, c: number) => void;
8650
- readonly __wasm_bindgen_func_elem_468_2173: (a: number, b: number, c: number) => void;
8651
- readonly __wasm_bindgen_func_elem_468_2174: (a: number, b: number, c: number) => void;
8652
- readonly __wasm_bindgen_func_elem_468_2175: (a: number, b: number, c: number) => void;
8653
- readonly __wasm_bindgen_func_elem_468_2177: (a: number, b: number, c: number) => void;
8654
- readonly __wasm_bindgen_func_elem_468_2182: (a: number, b: number, c: number) => void;
8655
- readonly __wasm_bindgen_func_elem_468_2183: (a: number, b: number, c: number) => void;
8656
- readonly __wasm_bindgen_func_elem_468_2184: (a: number, b: number, c: number) => void;
8657
- readonly __wasm_bindgen_func_elem_468_2185: (a: number, b: number, c: number) => void;
8658
- readonly __wasm_bindgen_func_elem_468_2188: (a: number, b: number, c: number) => void;
8659
- readonly __wasm_bindgen_func_elem_468_2189: (a: number, b: number, c: number) => void;
8660
- readonly __wasm_bindgen_func_elem_468_2190: (a: number, b: number, c: number) => void;
8661
- readonly __wasm_bindgen_func_elem_468_2191: (a: number, b: number, c: number) => void;
8662
- readonly __wasm_bindgen_func_elem_468_22: (a: number, b: number, c: number) => void;
8663
- readonly __wasm_bindgen_func_elem_468_2201: (a: number, b: number, c: number) => void;
8664
- readonly __wasm_bindgen_func_elem_468_2203: (a: number, b: number, c: number) => void;
8665
- readonly __wasm_bindgen_func_elem_468_2204: (a: number, b: number, c: number) => void;
8666
- readonly __wasm_bindgen_func_elem_468_2206: (a: number, b: number, c: number) => void;
8667
- readonly __wasm_bindgen_func_elem_468_2207: (a: number, b: number, c: number) => void;
8668
- readonly __wasm_bindgen_func_elem_468_2208: (a: number, b: number, c: number) => void;
8669
- readonly __wasm_bindgen_func_elem_468_2209: (a: number, b: number, c: number) => void;
8670
- readonly __wasm_bindgen_func_elem_468_2210: (a: number, b: number, c: number) => void;
8671
- readonly __wasm_bindgen_func_elem_468_24: (a: number, b: number, c: number) => void;
8672
- readonly __wasm_bindgen_func_elem_468_25: (a: number, b: number, c: number) => void;
8673
- readonly __wasm_bindgen_func_elem_468_26: (a: number, b: number, c: number) => void;
8674
- readonly __wasm_bindgen_func_elem_473: (a: number, b: number, c: number) => void;
8675
- readonly __wasm_bindgen_func_elem_475: (a: number, b: number, c: number) => void;
8676
- readonly __wasm_bindgen_func_elem_477: (a: number, b: number, c: number) => void;
8677
- readonly __wasm_bindgen_func_elem_479: (a: number, b: number, c: number) => void;
8678
- readonly __wasm_bindgen_func_elem_479_1581: (a: number, b: number, c: number) => void;
8679
- readonly __wasm_bindgen_func_elem_483: (a: number, b: number, c: number) => void;
8680
- readonly __wasm_bindgen_func_elem_487: (a: number, b: number, c: number) => void;
8681
- readonly __wasm_bindgen_func_elem_489: (a: number, b: number, c: number) => void;
8682
- readonly __wasm_bindgen_func_elem_489_2187: (a: number, b: number, c: number) => void;
8683
- readonly __wasm_bindgen_func_elem_489_2202: (a: number, b: number, c: number) => void;
8684
- readonly __wasm_bindgen_func_elem_489_2205: (a: number, b: number, c: number) => void;
8685
- readonly __wasm_bindgen_func_elem_489_2211: (a: number, b: number, c: number) => void;
8686
- readonly __wasm_bindgen_func_elem_491: (a: number, b: number, c: number) => void;
8687
- readonly __wasm_bindgen_func_elem_494: (a: number, b: number, c: number) => void;
8688
- readonly __wasm_bindgen_func_elem_494_2186: (a: number, b: number, c: number) => void;
8689
- readonly __wasm_bindgen_func_elem_494_2196: (a: number, b: number, c: number) => void;
8690
- readonly __wasm_bindgen_func_elem_496: (a: number, b: number, c: number) => void;
8691
- readonly __wasm_bindgen_func_elem_500: (a: number, b: number, c: number) => void;
8692
- readonly __wasm_bindgen_func_elem_502: (a: number, b: number, c: number) => void;
8693
- readonly __wasm_bindgen_func_elem_504: (a: number, b: number, c: number) => void;
8694
- readonly __wasm_bindgen_func_elem_506: (a: number, b: number, c: number) => void;
8695
- readonly __wasm_bindgen_func_elem_510: (a: number, b: number, c: number) => void;
8696
- readonly __wasm_bindgen_func_elem_512: (a: number, b: number, c: number) => void;
8697
- readonly __wasm_bindgen_func_elem_514: (a: number, b: number, c: number) => void;
8698
- readonly __wasm_bindgen_func_elem_516: (a: number, b: number, c: number) => void;
8699
- readonly __wasm_bindgen_func_elem_518: (a: number, b: number, c: number) => void;
8700
- readonly __wasm_bindgen_func_elem_520: (a: number, b: number, c: number) => void;
8701
- readonly __wasm_bindgen_func_elem_524: (a: number, b: number, c: number) => void;
8653
+ readonly __wasm_bindgen_func_elem_469: (a: number, b: number, c: number) => void;
8654
+ readonly __wasm_bindgen_func_elem_469_2163: (a: number, b: number, c: number) => void;
8655
+ readonly __wasm_bindgen_func_elem_469_2166: (a: number, b: number, c: number) => void;
8656
+ readonly __wasm_bindgen_func_elem_469_2167: (a: number, b: number, c: number) => void;
8657
+ readonly __wasm_bindgen_func_elem_469_2168: (a: number, b: number, c: number) => void;
8658
+ readonly __wasm_bindgen_func_elem_469_2173: (a: number, b: number, c: number) => void;
8659
+ readonly __wasm_bindgen_func_elem_469_2174: (a: number, b: number, c: number) => void;
8660
+ readonly __wasm_bindgen_func_elem_469_2175: (a: number, b: number, c: number) => void;
8661
+ readonly __wasm_bindgen_func_elem_469_2176: (a: number, b: number, c: number) => void;
8662
+ readonly __wasm_bindgen_func_elem_469_2178: (a: number, b: number, c: number) => void;
8663
+ readonly __wasm_bindgen_func_elem_469_2183: (a: number, b: number, c: number) => void;
8664
+ readonly __wasm_bindgen_func_elem_469_2184: (a: number, b: number, c: number) => void;
8665
+ readonly __wasm_bindgen_func_elem_469_2185: (a: number, b: number, c: number) => void;
8666
+ readonly __wasm_bindgen_func_elem_469_2186: (a: number, b: number, c: number) => void;
8667
+ readonly __wasm_bindgen_func_elem_469_2189: (a: number, b: number, c: number) => void;
8668
+ readonly __wasm_bindgen_func_elem_469_2190: (a: number, b: number, c: number) => void;
8669
+ readonly __wasm_bindgen_func_elem_469_2191: (a: number, b: number, c: number) => void;
8670
+ readonly __wasm_bindgen_func_elem_469_2192: (a: number, b: number, c: number) => void;
8671
+ readonly __wasm_bindgen_func_elem_469_22: (a: number, b: number, c: number) => void;
8672
+ readonly __wasm_bindgen_func_elem_469_2202: (a: number, b: number, c: number) => void;
8673
+ readonly __wasm_bindgen_func_elem_469_2204: (a: number, b: number, c: number) => void;
8674
+ readonly __wasm_bindgen_func_elem_469_2205: (a: number, b: number, c: number) => void;
8675
+ readonly __wasm_bindgen_func_elem_469_2207: (a: number, b: number, c: number) => void;
8676
+ readonly __wasm_bindgen_func_elem_469_2208: (a: number, b: number, c: number) => void;
8677
+ readonly __wasm_bindgen_func_elem_469_2209: (a: number, b: number, c: number) => void;
8678
+ readonly __wasm_bindgen_func_elem_469_2210: (a: number, b: number, c: number) => void;
8679
+ readonly __wasm_bindgen_func_elem_469_2211: (a: number, b: number, c: number) => void;
8680
+ readonly __wasm_bindgen_func_elem_469_24: (a: number, b: number, c: number) => void;
8681
+ readonly __wasm_bindgen_func_elem_469_25: (a: number, b: number, c: number) => void;
8682
+ readonly __wasm_bindgen_func_elem_469_26: (a: number, b: number, c: number) => void;
8683
+ readonly __wasm_bindgen_func_elem_474: (a: number, b: number, c: number) => void;
8684
+ readonly __wasm_bindgen_func_elem_476: (a: number, b: number, c: number) => void;
8685
+ readonly __wasm_bindgen_func_elem_478: (a: number, b: number, c: number) => void;
8686
+ readonly __wasm_bindgen_func_elem_480: (a: number, b: number, c: number) => void;
8687
+ readonly __wasm_bindgen_func_elem_480_1582: (a: number, b: number, c: number) => void;
8688
+ readonly __wasm_bindgen_func_elem_484: (a: number, b: number, c: number) => void;
8689
+ readonly __wasm_bindgen_func_elem_488: (a: number, b: number, c: number) => void;
8690
+ readonly __wasm_bindgen_func_elem_490: (a: number, b: number, c: number) => void;
8691
+ readonly __wasm_bindgen_func_elem_490_2188: (a: number, b: number, c: number) => void;
8692
+ readonly __wasm_bindgen_func_elem_490_2203: (a: number, b: number, c: number) => void;
8693
+ readonly __wasm_bindgen_func_elem_490_2206: (a: number, b: number, c: number) => void;
8694
+ readonly __wasm_bindgen_func_elem_490_2212: (a: number, b: number, c: number) => void;
8695
+ readonly __wasm_bindgen_func_elem_492: (a: number, b: number, c: number) => void;
8696
+ readonly __wasm_bindgen_func_elem_495: (a: number, b: number, c: number) => void;
8697
+ readonly __wasm_bindgen_func_elem_495_2187: (a: number, b: number, c: number) => void;
8698
+ readonly __wasm_bindgen_func_elem_495_2197: (a: number, b: number, c: number) => void;
8699
+ readonly __wasm_bindgen_func_elem_497: (a: number, b: number, c: number) => void;
8700
+ readonly __wasm_bindgen_func_elem_501: (a: number, b: number, c: number) => void;
8701
+ readonly __wasm_bindgen_func_elem_503: (a: number, b: number, c: number) => void;
8702
+ readonly __wasm_bindgen_func_elem_505: (a: number, b: number, c: number) => void;
8703
+ readonly __wasm_bindgen_func_elem_507: (a: number, b: number, c: number) => void;
8704
+ readonly __wasm_bindgen_func_elem_511: (a: number, b: number, c: number) => void;
8705
+ readonly __wasm_bindgen_func_elem_513: (a: number, b: number, c: number) => void;
8706
+ readonly __wasm_bindgen_func_elem_515: (a: number, b: number, c: number) => void;
8707
+ readonly __wasm_bindgen_func_elem_517: (a: number, b: number, c: number) => void;
8708
+ readonly __wasm_bindgen_func_elem_519: (a: number, b: number, c: number) => void;
8709
+ readonly __wasm_bindgen_func_elem_521: (a: number, b: number, c: number) => void;
8710
+ readonly __wasm_bindgen_func_elem_525: (a: number, b: number, c: number) => void;
8702
8711
  readonly __wbindgen_export: (a: number, b: number) => number;
8703
8712
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
8704
8713
  readonly __wbindgen_export3: (a: number) => void;