openchemlib 8.20.0 → 8.20.2

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.20.0
4
- * @date 2025-04-10T10:19:19.314Z
3
+ * @version v8.20.2
4
+ * @date 2025-04-11T11:53:12.143Z
5
5
  * @link https://github.com/cheminfo/openchemlib-js
6
6
  * @license BSD-3-Clause
7
7
  */
@@ -47192,7 +47192,7 @@ _.joinCloseFragments = function joinCloseFragments(fragmentNo, fragments){
47192
47192
  return fragments - mergeCount;
47193
47193
  }
47194
47194
  ;
47195
- _.moleculeChanged = function moleculeChanged(){
47195
+ _.moleculeChanged_0 = function moleculeChanged(){
47196
47196
  this.update(4);
47197
47197
  this.fireEventLater(new carge.EditorEvent(this, 1, false));
47198
47198
  }
@@ -48030,7 +48030,7 @@ _.setMolecule_0 = function setMolecule_3(theMolecule){
48030
48030
  this.mMol = theMolecule;
48031
48031
  this.mMode = 0;
48032
48032
  this.mDrawingObjectList = null;
48033
- this.moleculeChanged();
48033
+ this.moleculeChanged_0();
48034
48034
  }
48035
48035
  ;
48036
48036
  _.setReaction_0 = function setReaction(rxn){
@@ -59238,6 +59238,10 @@ _.getReaction = function getReaction_4(){
59238
59238
  return new cargm.JSReaction(this.mDrawArea.getReaction_0());
59239
59239
  }
59240
59240
  ;
59241
+ _.moleculeChanged = function moleculeChanged_0(){
59242
+ this.mDrawArea.moleculeChanged_0();
59243
+ }
59244
+ ;
59241
59245
  _.repaint = function repaint_2(){
59242
59246
  var that = this;
59243
59247
  function repaintEditorArea(){
@@ -101844,7 +101848,7 @@ $gwt && $gwt.permProps && __gwtModuleFunction.__moduleStartupDone($gwt.permProps
101844
101848
 
101845
101849
  var toReturn = $wnd["OCL"];
101846
101850
 
101847
- toReturn.version = '8.20.0';
101851
+ toReturn.version = '8.20.2';
101848
101852
 
101849
101853
  return toReturn;
101850
101854
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * openchemlib - Manipulate molecules
3
- * @version v8.20.0
4
- * @date 2025-04-10T10:19:10.651Z
3
+ * @version v8.20.2
4
+ * @date 2025-04-11T11:53:07.718Z
5
5
  * @link https://github.com/cheminfo/openchemlib-js
6
6
  * @license BSD-3-Clause
7
7
  */
@@ -142,7 +142,7 @@ h9.z8=function z8(a,b,c){var d,e,f,g,h,i,j,k,l;f=0;for(j=0;j<c;){++f;e=a[b+j];if
142
142
 
143
143
  var toReturn = $wnd["OCL"];
144
144
 
145
- toReturn.version = '8.20.0';
145
+ toReturn.version = '8.20.2';
146
146
 
147
147
  return toReturn;
148
148
  }
@@ -82,7 +82,7 @@ function initCanvasEditor(
82
82
  this.#onChange = onChange;
83
83
  }
84
84
 
85
- removeOnChangeListner() {
85
+ removeOnChangeListener() {
86
86
  this.#checkNotDestroyed();
87
87
 
88
88
  this.#onChange = null;
@@ -108,7 +108,7 @@ function initCanvasEditor(
108
108
  moleculeChanged() {
109
109
  this.#checkNotDestroyed();
110
110
 
111
- this.#editorArea.getGenericEditorArea().moleculeChanged();
111
+ this.#editorArea.moleculeChanged();
112
112
  }
113
113
 
114
114
  #checkNotDestroyed() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openchemlib",
3
- "version": "8.20.0",
3
+ "version": "8.20.2",
4
4
  "description": "Manipulate molecules",
5
5
  "keywords": [
6
6
  "chemistry",
package/types.d.ts CHANGED
@@ -3860,6 +3860,12 @@ export declare class CanvasEditor {
3860
3860
  */
3861
3861
  setOnChangeListener(callback: OnChangeListenerCallback): void;
3862
3862
 
3863
+ /**
3864
+ * Notify the editor that the molecule has changed (programmatically).
3865
+ * This will trigger a redraw and an onChange event with `isUserEvent=false`.
3866
+ */
3867
+ moleculeChanged(): void;
3868
+
3863
3869
  /**
3864
3870
  * Remove the change listener callback.
3865
3871
  */