@cosmol-studio/cosmolkit-core-depict 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
  }
@@ -1292,7 +1293,8 @@ export class BatchParams {
1292
1293
  }
1293
1294
 
1294
1295
  /**
1295
- * Runtime overrides for ordered read results; newly failed queries always raise.
1296
+ * Runtime overrides for ordered read results; retained failures reject a query
1297
+ * before computation. New query failures also raise.
1296
1298
  */
1297
1299
  export class BatchQueryParams {
1298
1300
  free(): void;
@@ -1310,7 +1312,8 @@ export class BatchQueryParams {
1310
1312
  get progressBar(): boolean | undefined;
1311
1313
  set progressBar(value: BoolInput | null | undefined);
1312
1314
  /**
1313
- * One notification after every completed input row, including invalid rows.
1315
+ * One notification after every completed query row. Retained input errors
1316
+ * reject the query before any notification.
1314
1317
  */
1315
1318
  get progressCallback(): (() => void) | undefined;
1316
1319
  set progressCallback(value: (() => void) | null | undefined);
@@ -2283,8 +2286,8 @@ export class CxSmilesFields {
2283
2286
  [Symbol.dispose](): void;
2284
2287
  contains(other: CxSmilesFields): boolean;
2285
2288
  union(other: CxSmilesFields): CxSmilesFields;
2286
- static readonly ALL: CxSmilesFields;
2287
2289
  static readonly ALL_BUT_COORDS: CxSmilesFields;
2290
+ static readonly ALL: CxSmilesFields;
2288
2291
  static readonly ATOM_LABELS: CxSmilesFields;
2289
2292
  static readonly ATOM_PROPS: CxSmilesFields;
2290
2293
  static readonly BOND_ATROPISOMER: CxSmilesFields;
@@ -3570,6 +3573,11 @@ export class Molecule {
3570
3573
  atomPropertyString(atom: IndexInput, key: TextInput): string | undefined;
3571
3574
  atomPropertyUint(atom: IndexInput, key: TextInput): number | undefined;
3572
3575
  atom(index: IndexInput): MoleculeAtom | undefined;
3576
+ /**
3577
+ * Return an independent Uint8Array of atomic numbers in atom-index order.
3578
+ * No atom handles are created; dummy atoms are zero. No free() is needed.
3579
+ */
3580
+ atomicNumbers(): Uint8Array;
3573
3581
  bondPropertyString(bond: IndexInput, key: TextInput): string | undefined;
3574
3582
  bond(index: IndexInput): Bond | undefined;
3575
3583
  clear3dConformers_(): void;
@@ -3604,10 +3612,10 @@ export class Molecule {
3604
3612
  property(key: TextInput): PropertyValue | undefined;
3605
3613
  removeHydrogensWithParams_(params: RemoveHsParams | RemoveHsParamsOptions): void;
3606
3614
  removeHydrogens_(params?: RemoveHsParams | RemoveHsParamsOptions | null): void;
3607
- sanitizeWithParams(params: SanitizeParams | SanitizeParamsOptions): Molecule;
3608
3615
  sanitizeWithParams_(params: SanitizeParams | SanitizeParamsOptions): void;
3609
- sanitize(params?: SanitizeParams | SanitizeParamsOptions | null): Molecule;
3616
+ sanitizeWithParams(params: SanitizeParams | SanitizeParamsOptions): Molecule;
3610
3617
  sanitize_(params?: SanitizeParams | SanitizeParamsOptions | null): void;
3618
+ sanitize(params?: SanitizeParams | SanitizeParamsOptions | null): Molecule;
3611
3619
  set2dCoordinatesWithParams_(coordinates: CoordinateRows, params: Coordinate2DInputParams | Coordinate2DInputParamsOptions): void;
3612
3620
  set2dCoordinates_(coordinates: CoordinateRows, params?: Coordinate2DInputParams | Coordinate2DInputParamsOptions | null): void;
3613
3621
  set3dCoordinatesWithParams_(coordinates: Coordinates3D, params: Replace3DCoordinatesParams | Replace3DCoordinatesParamsOptions): void;
@@ -5239,10 +5247,10 @@ export class SanitizeOperations {
5239
5247
  union(other: SanitizeOperations): SanitizeOperations;
5240
5248
  static readonly ADJUST_HS: SanitizeOperations;
5241
5249
  static readonly ALL: SanitizeOperations;
5242
- static readonly CLEANUP: SanitizeOperations;
5243
5250
  static readonly CLEANUP_ATROPISOMERS: SanitizeOperations;
5244
5251
  static readonly CLEANUP_CHIRALITY: SanitizeOperations;
5245
5252
  static readonly CLEANUP_ORGANOMETALLICS: SanitizeOperations;
5253
+ static readonly CLEANUP: SanitizeOperations;
5246
5254
  static readonly FIND_RADICALS: SanitizeOperations;
5247
5255
  static readonly KEKULIZE: SanitizeOperations;
5248
5256
  static readonly NONE: SanitizeOperations;
@@ -8200,6 +8208,7 @@ export interface InitOutput {
8200
8208
  readonly molecule_atomPropertyString: (a: number, b: number, c: number, d: number) => void;
8201
8209
  readonly molecule_atomPropertyStringVector: (a: number, b: number, c: number, d: number) => void;
8202
8210
  readonly molecule_atomPropertyUint: (a: number, b: number, c: number, d: number) => void;
8211
+ readonly molecule_atomicNumbers: (a: number, b: number) => void;
8203
8212
  readonly molecule_atoms: (a: number, b: number) => void;
8204
8213
  readonly molecule_bond: (a: number, b: number, c: number) => void;
8205
8214
  readonly molecule_bondPropertyString: (a: number, b: number, c: number, d: number) => void;
@@ -9619,51 +9628,51 @@ export interface InitOutput {
9619
9628
  readonly xyzwriteparams_set_precision: (a: number, b: number, c: number) => void;
9620
9629
  readonly __wasm_bindgen_func_elem_512: (a: number, b: number, c: number) => void;
9621
9630
  readonly __wasm_bindgen_func_elem_512_22: (a: number, b: number, c: number) => void;
9622
- readonly __wasm_bindgen_func_elem_512_2383: (a: number, b: number, c: number) => void;
9623
- readonly __wasm_bindgen_func_elem_512_2386: (a: number, b: number, c: number) => void;
9631
+ readonly __wasm_bindgen_func_elem_512_2384: (a: number, b: number, c: number) => void;
9624
9632
  readonly __wasm_bindgen_func_elem_512_2387: (a: number, b: number, c: number) => void;
9625
9633
  readonly __wasm_bindgen_func_elem_512_2388: (a: number, b: number, c: number) => void;
9626
9634
  readonly __wasm_bindgen_func_elem_512_2389: (a: number, b: number, c: number) => void;
9627
- readonly __wasm_bindgen_func_elem_512_2394: (a: number, b: number, c: number) => void;
9635
+ readonly __wasm_bindgen_func_elem_512_2390: (a: number, b: number, c: number) => void;
9628
9636
  readonly __wasm_bindgen_func_elem_512_2395: (a: number, b: number, c: number) => void;
9629
9637
  readonly __wasm_bindgen_func_elem_512_2396: (a: number, b: number, c: number) => void;
9630
9638
  readonly __wasm_bindgen_func_elem_512_2397: (a: number, b: number, c: number) => void;
9631
- readonly __wasm_bindgen_func_elem_512_2399: (a: number, b: number, c: number) => void;
9639
+ readonly __wasm_bindgen_func_elem_512_2398: (a: number, b: number, c: number) => void;
9632
9640
  readonly __wasm_bindgen_func_elem_512_24: (a: number, b: number, c: number) => void;
9633
- readonly __wasm_bindgen_func_elem_512_2404: (a: number, b: number, c: number) => void;
9641
+ readonly __wasm_bindgen_func_elem_512_2400: (a: number, b: number, c: number) => void;
9634
9642
  readonly __wasm_bindgen_func_elem_512_2405: (a: number, b: number, c: number) => void;
9635
9643
  readonly __wasm_bindgen_func_elem_512_2406: (a: number, b: number, c: number) => void;
9636
9644
  readonly __wasm_bindgen_func_elem_512_2407: (a: number, b: number, c: number) => void;
9637
- readonly __wasm_bindgen_func_elem_512_2410: (a: number, b: number, c: number) => void;
9645
+ readonly __wasm_bindgen_func_elem_512_2408: (a: number, b: number, c: number) => void;
9638
9646
  readonly __wasm_bindgen_func_elem_512_2411: (a: number, b: number, c: number) => void;
9639
9647
  readonly __wasm_bindgen_func_elem_512_2412: (a: number, b: number, c: number) => void;
9640
9648
  readonly __wasm_bindgen_func_elem_512_2413: (a: number, b: number, c: number) => void;
9641
- readonly __wasm_bindgen_func_elem_512_2423: (a: number, b: number, c: number) => void;
9642
- readonly __wasm_bindgen_func_elem_512_2425: (a: number, b: number, c: number) => void;
9649
+ readonly __wasm_bindgen_func_elem_512_2414: (a: number, b: number, c: number) => void;
9650
+ readonly __wasm_bindgen_func_elem_512_2424: (a: number, b: number, c: number) => void;
9643
9651
  readonly __wasm_bindgen_func_elem_512_2426: (a: number, b: number, c: number) => void;
9644
- readonly __wasm_bindgen_func_elem_512_2428: (a: number, b: number, c: number) => void;
9652
+ readonly __wasm_bindgen_func_elem_512_2427: (a: number, b: number, c: number) => void;
9645
9653
  readonly __wasm_bindgen_func_elem_512_2429: (a: number, b: number, c: number) => void;
9646
9654
  readonly __wasm_bindgen_func_elem_512_2430: (a: number, b: number, c: number) => void;
9647
9655
  readonly __wasm_bindgen_func_elem_512_2431: (a: number, b: number, c: number) => void;
9648
9656
  readonly __wasm_bindgen_func_elem_512_2432: (a: number, b: number, c: number) => void;
9657
+ readonly __wasm_bindgen_func_elem_512_2433: (a: number, b: number, c: number) => void;
9649
9658
  readonly __wasm_bindgen_func_elem_512_25: (a: number, b: number, c: number) => void;
9650
9659
  readonly __wasm_bindgen_func_elem_512_26: (a: number, b: number, c: number) => void;
9651
9660
  readonly __wasm_bindgen_func_elem_517: (a: number, b: number, c: number) => void;
9652
9661
  readonly __wasm_bindgen_func_elem_519: (a: number, b: number, c: number) => void;
9653
9662
  readonly __wasm_bindgen_func_elem_521: (a: number, b: number, c: number) => void;
9654
9663
  readonly __wasm_bindgen_func_elem_523: (a: number, b: number, c: number) => void;
9655
- readonly __wasm_bindgen_func_elem_523_1763: (a: number, b: number, c: number) => void;
9664
+ readonly __wasm_bindgen_func_elem_523_1764: (a: number, b: number, c: number) => void;
9656
9665
  readonly __wasm_bindgen_func_elem_527: (a: number, b: number, c: number) => void;
9657
9666
  readonly __wasm_bindgen_func_elem_531: (a: number, b: number, c: number) => void;
9658
9667
  readonly __wasm_bindgen_func_elem_533: (a: number, b: number, c: number) => void;
9659
- readonly __wasm_bindgen_func_elem_533_2409: (a: number, b: number, c: number) => void;
9660
- readonly __wasm_bindgen_func_elem_533_2424: (a: number, b: number, c: number) => void;
9661
- readonly __wasm_bindgen_func_elem_533_2427: (a: number, b: number, c: number) => void;
9662
- readonly __wasm_bindgen_func_elem_533_2433: (a: number, b: number, c: number) => void;
9668
+ readonly __wasm_bindgen_func_elem_533_2410: (a: number, b: number, c: number) => void;
9669
+ readonly __wasm_bindgen_func_elem_533_2425: (a: number, b: number, c: number) => void;
9670
+ readonly __wasm_bindgen_func_elem_533_2428: (a: number, b: number, c: number) => void;
9671
+ readonly __wasm_bindgen_func_elem_533_2434: (a: number, b: number, c: number) => void;
9663
9672
  readonly __wasm_bindgen_func_elem_535: (a: number, b: number, c: number) => void;
9664
9673
  readonly __wasm_bindgen_func_elem_538: (a: number, b: number, c: number) => void;
9665
- readonly __wasm_bindgen_func_elem_538_2408: (a: number, b: number, c: number) => void;
9666
- readonly __wasm_bindgen_func_elem_538_2418: (a: number, b: number, c: number) => void;
9674
+ readonly __wasm_bindgen_func_elem_538_2409: (a: number, b: number, c: number) => void;
9675
+ readonly __wasm_bindgen_func_elem_538_2419: (a: number, b: number, c: number) => void;
9667
9676
  readonly __wasm_bindgen_func_elem_540: (a: number, b: number, c: number) => void;
9668
9677
  readonly __wasm_bindgen_func_elem_544: (a: number, b: number, c: number) => void;
9669
9678
  readonly __wasm_bindgen_func_elem_546: (a: number, b: number, c: number) => void;