openchemlib 9.21.0 → 9.22.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/openchemlib.d.ts +33 -2
- package/dist/openchemlib.debug.js +330 -323
- package/dist/openchemlib.js +11 -11
- package/package.json +20 -16
package/dist/openchemlib.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const Resources: {
|
|
|
22
22
|
registerFromNodejs(path?: string): void;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
export interface MoleculeFromSmilesOptions {
|
|
25
|
+
export interface MoleculeFromSmilesOptions extends SmilesParserOptions {
|
|
26
26
|
/**
|
|
27
27
|
* Disable coordinate invention.
|
|
28
28
|
* @default false
|
|
@@ -159,6 +159,37 @@ export interface MoleculeToSVGOptions extends DepictorOptions {
|
|
|
159
159
|
autoCropMargin?: number;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
export interface MoleculeInventCoordinatesOptions {
|
|
163
|
+
/**
|
|
164
|
+
* Unless this is set to `true`, the CoordinateInventor uses templates of the InventorDefaultTemplateList
|
|
165
|
+
* to create 3D-projection derived coordinates for polycyclic structures from these templates (adamantanes, cubane, etc.).
|
|
166
|
+
*/
|
|
167
|
+
skipDefaultTemplates?: boolean;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Whether to keep implicit hydrogens in the molecule.
|
|
171
|
+
* By default, they are removed.
|
|
172
|
+
*/
|
|
173
|
+
keepHydrogens?: boolean;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Whether marked atoms keep their coordinates.
|
|
177
|
+
*/
|
|
178
|
+
keepMarkedAtomCoordinates?: boolean;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Whether coordinates of marked atoms are changed only if perfect coordinates are not possible without.
|
|
182
|
+
*/
|
|
183
|
+
preferMarkedAtomCoordinates?: boolean;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Seed used to initialize the random number generator.
|
|
187
|
+
* Pass -1 to use a non-deterministic seed.
|
|
188
|
+
* @default 0
|
|
189
|
+
*/
|
|
190
|
+
seed?: number;
|
|
191
|
+
}
|
|
192
|
+
|
|
162
193
|
export interface HoseCodesOptions {
|
|
163
194
|
/**
|
|
164
195
|
* Maximum number of atoms from the center.
|
|
@@ -654,7 +685,7 @@ export declare class Molecule {
|
|
|
654
685
|
/**
|
|
655
686
|
* Compute and set atom coordinates for this molecule.
|
|
656
687
|
*/
|
|
657
|
-
inventCoordinates(): void;
|
|
688
|
+
inventCoordinates(options?: MoleculeInventCoordinatesOptions): void;
|
|
658
689
|
|
|
659
690
|
/**
|
|
660
691
|
* Expand and find a position for all the hydrogens of the 2D molecule. If
|