openchemlib 9.16.0 → 9.16.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.debug.js +19 -19
- package/dist/openchemlib.js +4 -4
- package/package.json +1 -1
|
@@ -15643,15 +15643,21 @@ function getExports($wnd) {
|
|
|
15643
15643
|
return -$wnd.Math.atan2(v2.getLength() * v1.dot(n2), n1.dot(n2));
|
|
15644
15644
|
};
|
|
15645
15645
|
_.changeAtom_0 = function changeAtom(atom, atomicNo, mass, abnormalValence, radical) {
|
|
15646
|
+
var changed;
|
|
15646
15647
|
if ((atomicNo == 1 || atomicNo == 151 || atomicNo == 152) && this.getOccupiedValence_0(atom) > 1)
|
|
15647
15648
|
return false;
|
|
15649
|
+
changed = this.mIsFragment && neq(and_0(this.mAtomQueryFeatures[atom], not_0(1)), 0);
|
|
15648
15650
|
this.mAtomQueryFeatures[atom] = and_0(this.mAtomQueryFeatures[atom], not_0(1));
|
|
15649
|
-
if (jsNotEquals(this.mAtomList, null))
|
|
15651
|
+
if (jsNotEquals(this.mAtomList, null) && jsNotEquals(this.mAtomList[atom], null)) {
|
|
15650
15652
|
this.mAtomList[atom] = null;
|
|
15651
|
-
|
|
15653
|
+
changed = true;
|
|
15654
|
+
}
|
|
15655
|
+
if (jsNotEquals(this.mAtomCustomLabel, null) && jsNotEquals(this.mAtomCustomLabel[atom], null)) {
|
|
15652
15656
|
this.mAtomCustomLabel[atom] = null;
|
|
15657
|
+
changed = true;
|
|
15658
|
+
}
|
|
15653
15659
|
if (atomicNo == this.mAtomicNo[atom] && mass == this.mAtomMass[atom] && abnormalValence == this.getAtomAbnormalValence_0(atom) && radical == this.getAtomRadical_0(atom))
|
|
15654
|
-
return
|
|
15660
|
+
return changed;
|
|
15655
15661
|
if (atomicNo == 151 || atomicNo == 152) {
|
|
15656
15662
|
mass = atomicNo - 149;
|
|
15657
15663
|
atomicNo = 1;
|
|
@@ -40053,6 +40059,8 @@ function getExports($wnd) {
|
|
|
40053
40059
|
return null;
|
|
40054
40060
|
}
|
|
40055
40061
|
productIndex = jl.indexOf_I_I__devirtual$(rxnCode, 33);
|
|
40062
|
+
if (productIndex == -1)
|
|
40063
|
+
return null;
|
|
40056
40064
|
isProduct = false;
|
|
40057
40065
|
idcodeIndex = productIndex == 0 ? 1 : 0;
|
|
40058
40066
|
mappingIndex = 0;
|
|
@@ -40062,21 +40070,13 @@ function getExports($wnd) {
|
|
|
40062
40070
|
else
|
|
40063
40071
|
rxn.clear_0();
|
|
40064
40072
|
while (idcodeIndex != -1) {
|
|
40065
|
-
if (
|
|
40073
|
+
if (idcodeIndex > productIndex)
|
|
40066
40074
|
isProduct = true;
|
|
40067
|
-
}
|
|
40068
40075
|
delimiterIndex = jl.indexOf_II_I__devirtual$(rxnCode, 32, idcodeIndex);
|
|
40069
|
-
if (
|
|
40076
|
+
if (productIndex > idcodeIndex && (delimiterIndex > productIndex || delimiterIndex == -1))
|
|
40070
40077
|
delimiterIndex = productIndex;
|
|
40071
|
-
|
|
40072
|
-
|
|
40073
|
-
if (delimiterIndex == -1) {
|
|
40074
|
-
idcode = jl.substring_I_Ljava_lang_String___devirtual$(rxnCode, idcodeIndex);
|
|
40075
|
-
idcodeIndex = -1;
|
|
40076
|
-
} else {
|
|
40077
|
-
idcode = jl.substring_II_Ljava_lang_String___devirtual$(rxnCode, idcodeIndex, delimiterIndex);
|
|
40078
|
-
idcodeIndex = delimiterIndex + 1;
|
|
40079
|
-
}
|
|
40078
|
+
idcode = delimiterIndex == -1 ? jl.substring_I_Ljava_lang_String___devirtual$(rxnCode, idcodeIndex) : jl.substring_II_Ljava_lang_String___devirtual$(rxnCode, idcodeIndex, delimiterIndex);
|
|
40079
|
+
idcodeIndex = delimiterIndex == -1 || delimiterIndex == jl.length__I__devirtual$_0(rxnCode) - 1 ? -1 : delimiterIndex + 1;
|
|
40080
40080
|
mapping = null;
|
|
40081
40081
|
if (jsNotEquals(rxnMapping, null) && !jl.isEmpty__Z__devirtual$(rxnMapping)) {
|
|
40082
40082
|
delimiterIndex = jl.indexOf_II_I__devirtual$(rxnMapping, 32, mappingIndex);
|
|
@@ -40246,8 +40246,8 @@ function getExports($wnd) {
|
|
|
40246
40246
|
coordsSequence.append_9(coords[index_0]);
|
|
40247
40247
|
idcode[index_0] = "";
|
|
40248
40248
|
}
|
|
40249
|
+
idcodeSequence.append_4(33);
|
|
40249
40250
|
if (reaction.getProducts_0() != 0) {
|
|
40250
|
-
idcodeSequence.append_4(33);
|
|
40251
40251
|
if (reaction.getReactants_0() != 0) {
|
|
40252
40252
|
mappingSequence.append_4(32);
|
|
40253
40253
|
coordsSequence.append_4(32);
|
|
@@ -71393,7 +71393,7 @@ function getExports($wnd) {
|
|
|
71393
71393
|
$sendStats("moduleStartup", "end");
|
|
71394
71394
|
$gwt && $gwt.permProps && __gwtModuleFunction.__moduleStartupDone($gwt.permProps);
|
|
71395
71395
|
const toReturn = $wnd["OCL"];
|
|
71396
|
-
toReturn.version = "9.16.
|
|
71396
|
+
toReturn.version = "9.16.1";
|
|
71397
71397
|
return toReturn;
|
|
71398
71398
|
}
|
|
71399
71399
|
var isBrowserWindow = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
@@ -71537,8 +71537,8 @@ export {
|
|
|
71537
71537
|
};
|
|
71538
71538
|
/**
|
|
71539
71539
|
* openchemlib - Manipulate molecules
|
|
71540
|
-
* @version v9.16.
|
|
71541
|
-
* @date 2025-
|
|
71540
|
+
* @version v9.16.1
|
|
71541
|
+
* @date 2025-11-05T07:35:22.900Z
|
|
71542
71542
|
* @link https://github.com/cheminfo/openchemlib-js
|
|
71543
71543
|
* @license BSD-3-Clause
|
|
71544
71544
|
*/
|