openchemlib 8.8.0 → 8.9.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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * openchemlib - Manipulate molecules
3
- * @version v8.8.0
4
- * @date 2024-01-31T14:23:50.946Z
3
+ * @version v8.9.0
4
+ * @date 2024-02-23T06:25:33.412Z
5
5
  * @link https://github.com/cheminfo/openchemlib-js
6
6
  * @license BSD-3-Clause
7
7
  */
@@ -25662,8 +25662,9 @@ _.getTextSize = function getTextSize(){
25662
25662
  }
25663
25663
  ;
25664
25664
  _.onDrawAtom = function onDrawAtom_0(atom, symbol, x_0, y_0){
25665
- var s;
25666
- s = '<circle id="' + this.getId() + ':Atom:' + atom + '" ' + 'class="event" ' + 'data-atom-map-no="' + this.getMolecule_0().getAtomMapNo_0(atom) + '" ' + 'cx="' + carc2.round_0(x_0) + '" ' + 'cy="' + carc2.round_0(y_0) + '" ' + 'r="' + 8 + '" ' + 'opacity="0" />';
25665
+ var atomMapNo, s;
25666
+ atomMapNo = this.getMolecule_0().getAtomMapNo_0(atom);
25667
+ s = '<circle id="' + this.getId() + ':Atom:' + atom + '" ' + 'class="event" ' + (atomMapNo == 0?'':'data-atom-map-no="' + atomMapNo + '" ') + 'cx="' + carc2.round_0(x_0) + '" ' + 'cy="' + carc2.round_0(y_0) + '" ' + 'r="' + 8 + '" ' + 'opacity="0" />';
25667
25668
  this.atoms.add(s);
25668
25669
  }
25669
25670
  ;
@@ -53367,6 +53368,9 @@ _.onChangeBond = function onChangeBond(bond){
53367
53368
  ;
53368
53369
  _.onMouseUp_0 = function onMouseUp_7(evt){
53369
53370
  var bond, bondType, dx, dy, endAtom, mol, ok, p, pt, selectedAtom, sourceAtom, startAtom, stopAtom, t, targetAtom, targetPoint, tm;
53371
+ if (isNull(this.origin_0)) {
53372
+ return false;
53373
+ }
53370
53374
  ok = true;
53371
53375
  pt = new cargg.GenericPoint_0(evt.getX_0(), evt.getY_0());
53372
53376
  this.model_0.pushUndo();
@@ -89522,7 +89526,7 @@ $gwt && $gwt.permProps && __gwtModuleFunction.__moduleStartupDone($gwt.permProps
89522
89526
 
89523
89527
  var toReturn = $wnd["OCL"];
89524
89528
 
89525
- toReturn.version = '8.8.0';
89529
+ toReturn.version = '8.9.0';
89526
89530
 
89527
89531
  return toReturn;
89528
89532
  }