openchemlib 9.18.2 → 9.19.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/dist/openchemlib.d.ts +17 -6
- package/dist/openchemlib.debug.js +506 -333
- package/dist/openchemlib.js +11 -11
- package/package.json +15 -15
package/dist/openchemlib.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export interface MoleculeFromSmilesOptions {
|
|
|
36
36
|
noStereo?: boolean;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
type CustomLabelPosition = 'normal' | 'superscript' | 'auto' | undefined;
|
|
40
|
+
|
|
39
41
|
interface FromMolfileOptions {
|
|
40
42
|
/**
|
|
41
43
|
* If set to 'superscript', it will add a ']' at the beginning of the custom label to be
|
|
@@ -46,7 +48,7 @@ interface FromMolfileOptions {
|
|
|
46
48
|
* Default: undefined (keep as is)
|
|
47
49
|
* @default undefined
|
|
48
50
|
*/
|
|
49
|
-
customLabelPosition?:
|
|
51
|
+
customLabelPosition?: CustomLabelPosition;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
interface ToMolfileOptions {
|
|
@@ -62,11 +64,12 @@ interface ToMolfileOptions {
|
|
|
62
64
|
* If set to 'superscript', it will add a ']' at the beginning of the custom label to be
|
|
63
65
|
* compatible with the way to represent superscript in OCL
|
|
64
66
|
* If set to 'normal', it will remove the ']' at the beginning of the custom label if present
|
|
67
|
+
* If set to 'auto', it will set normal for 'C' and superscript for everything else
|
|
65
68
|
* If not set, it will keep the label as is
|
|
66
69
|
* Default: undefined (keep as is)
|
|
67
70
|
* @default undefined
|
|
68
71
|
*/
|
|
69
|
-
customLabelPosition?:
|
|
72
|
+
customLabelPosition?: CustomLabelPosition;
|
|
70
73
|
/**
|
|
71
74
|
* Remove custom atom labels
|
|
72
75
|
* @default false
|
|
@@ -292,6 +295,7 @@ export declare class Molecule {
|
|
|
292
295
|
static cAtomQFStereoStateShift: number;
|
|
293
296
|
static cAtomQFSimpleFeatures: number;
|
|
294
297
|
static cAtomQFNarrowing: number;
|
|
298
|
+
static cAtomQFDepictedFeatures: number;
|
|
295
299
|
static cAtomQFAny: number;
|
|
296
300
|
static cAtomQFAromState: number;
|
|
297
301
|
static cAtomQFAromatic: number;
|
|
@@ -399,6 +403,7 @@ export declare class Molecule {
|
|
|
399
403
|
static cBondQFAromStateShift: number;
|
|
400
404
|
static cBondQFAllFeatures: number;
|
|
401
405
|
static cBondQFSimpleFeatures: number;
|
|
406
|
+
static cBondQFDepictedFeatures: number;
|
|
402
407
|
static cBondQFNarrowing: number;
|
|
403
408
|
static cBondQFBondTypes: number;
|
|
404
409
|
static cBondQFRareBondTypes: number;
|
|
@@ -768,6 +773,14 @@ export declare class Molecule {
|
|
|
768
773
|
*/
|
|
769
774
|
addSubstituent(substituent: Molecule, connectionAtom: number): number[];
|
|
770
775
|
|
|
776
|
+
/**
|
|
777
|
+
* Change the position of custom labels according to the provided option
|
|
778
|
+
* - 'superscript' will add a ] at the beginning of the custom label
|
|
779
|
+
* - 'normal' will remove a leading ] if present
|
|
780
|
+
* - 'auto' will set the label as superscript for non-carbon atoms and normal for carbon atoms
|
|
781
|
+
*/
|
|
782
|
+
changeCustomLabelPosition(position?: CustomLabelPosition): string;
|
|
783
|
+
|
|
771
784
|
/**
|
|
772
785
|
* Copies this molecule including parity settings, if valid. The original
|
|
773
786
|
* content of destMol is replaced. Helper arrays are not copied and need to be
|
|
@@ -3285,8 +3298,7 @@ interface ReactionEncoderEncodeOptionsBase {
|
|
|
3285
3298
|
* Bound to Java ReactionEncoder `String[] encode(Reaction reaction, boolean keepAbsoluteCoordinates, boolean sortByIDCode)`
|
|
3286
3299
|
* result will be joined with Java `ReactionEncoder.OBJECT_DELIMITER`
|
|
3287
3300
|
*/
|
|
3288
|
-
export interface ReactionEncoderEncodeOptionsSort
|
|
3289
|
-
extends ReactionEncoderEncodeOptionsBase {
|
|
3301
|
+
export interface ReactionEncoderEncodeOptionsSort extends ReactionEncoderEncodeOptionsBase {
|
|
3290
3302
|
/**
|
|
3291
3303
|
* @default false
|
|
3292
3304
|
*/
|
|
@@ -3296,8 +3308,7 @@ export interface ReactionEncoderEncodeOptionsSort
|
|
|
3296
3308
|
/**
|
|
3297
3309
|
* Bound to Java ReactionEncoder `String encode(Reaction reaction, boolean keepAbsoluteCoordinates, int mode)`
|
|
3298
3310
|
*/
|
|
3299
|
-
export interface ReactionEncoderEncodeOptionsMode
|
|
3300
|
-
extends ReactionEncoderEncodeOptionsBase {
|
|
3311
|
+
export interface ReactionEncoderEncodeOptionsMode extends ReactionEncoderEncodeOptionsBase {
|
|
3301
3312
|
/**
|
|
3302
3313
|
* @default ReactionEncoder.INCLUDE_DEFAULT
|
|
3303
3314
|
* @see ReactionEncoder.INCLUDE_DEFAULT
|