openchemlib 8.18.1 → 8.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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * openchemlib - Manipulate molecules
3
- * @version v8.18.1
4
- * @date 2025-02-06T15:28:40.554Z
3
+ * @version v8.19.0
4
+ * @date 2025-03-14T08:06:29.834Z
5
5
  * @link https://github.com/cheminfo/openchemlib-js
6
6
  * @license BSD-3-Clause
7
7
  */
@@ -173,7 +173,7 @@ nsb.grb=function grb(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,A,B,C,D,
173
173
 
174
174
  var toReturn = $wnd["OCL"];
175
175
 
176
- toReturn.version = '8.18.1';
176
+ toReturn.version = '8.19.0';
177
177
 
178
178
  return toReturn;
179
179
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * openchemlib - Manipulate molecules
3
- * @version v8.18.1
4
- * @date 2025-02-06T15:28:40.575Z
3
+ * @version v8.19.0
4
+ * @date 2025-03-14T08:06:29.855Z
5
5
  * @link https://github.com/cheminfo/openchemlib-js
6
6
  * @license BSD-3-Clause
7
7
  */
@@ -195,7 +195,7 @@ _.cAtomParityUnknown=yfc.n3;_.cAtomQFAny=yfc.o3;_.cAtomQFAromState=yfc.p3;_.cAto
195
195
 
196
196
  var toReturn = $wnd["OCL"];
197
197
 
198
- toReturn.version = '8.18.1';
198
+ toReturn.version = '8.19.0';
199
199
 
200
200
  return toReturn;
201
201
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * openchemlib - Manipulate molecules
3
- * @version v8.18.1
4
- * @date 2025-02-06T15:28:48.995Z
3
+ * @version v8.19.0
4
+ * @date 2025-03-14T08:06:38.354Z
5
5
  * @link https://github.com/cheminfo/openchemlib-js
6
6
  * @license BSD-3-Clause
7
7
  */
@@ -101829,7 +101829,7 @@ $gwt && $gwt.permProps && __gwtModuleFunction.__moduleStartupDone($gwt.permProps
101829
101829
 
101830
101830
  var toReturn = $wnd["OCL"];
101831
101831
 
101832
- toReturn.version = '8.18.1';
101832
+ toReturn.version = '8.19.0';
101833
101833
 
101834
101834
  return toReturn;
101835
101835
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * openchemlib - Manipulate molecules
3
- * @version v8.18.1
4
- * @date 2025-02-06T15:28:40.536Z
3
+ * @version v8.19.0
4
+ * @date 2025-03-14T08:06:29.814Z
5
5
  * @link https://github.com/cheminfo/openchemlib-js
6
6
  * @license BSD-3-Clause
7
7
  */
@@ -142,7 +142,7 @@ e9.w8=function w8(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.18.1';
145
+ toReturn.version = '8.19.0';
146
146
 
147
147
  return toReturn;
148
148
  }
@@ -105,6 +105,12 @@ function initCanvasEditor(
105
105
  this.#destroy = null;
106
106
  }
107
107
 
108
+ moleculeChanged() {
109
+ this.#checkNotDestroyed();
110
+
111
+ this.#editorArea.getGenericEditorArea().moleculeChanged();
112
+ }
113
+
108
114
  #checkNotDestroyed() {
109
115
  if (!this.#editorArea) {
110
116
  throw new Error('CanvasEditor has been destroyed');
@@ -118,6 +118,13 @@ function initCanvasEditorElement(CanvasEditor, Molecule, ReactionEncoder) {
118
118
  this.idcode = '';
119
119
  }
120
120
 
121
+ /**
122
+ * @this {CanvasEditorElement}
123
+ */
124
+ moleculeChanged() {
125
+ this.#editor.moleculeChanged();
126
+ }
127
+
121
128
  /* --- internals --- */
122
129
  /** @type {CanvasEditor} */ #editor;
123
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openchemlib",
3
- "version": "8.18.1",
3
+ "version": "8.19.0",
4
4
  "description": "Manipulate molecules",
5
5
  "keywords": [
6
6
  "chemistry",