openchemlib
Advanced tools
Comparing version 8.16.0 to 8.17.0
@@ -13,3 +13,2 @@ 'use strict'; | ||
class CanvasEditor { | ||
#isReadOnly; | ||
#editorArea; | ||
@@ -26,3 +25,2 @@ // Can be useful for debugging. | ||
constructor(parentElement, options = {}) { | ||
const { readOnly = false } = options; | ||
const { editorArea, toolbar, uiHelper, destroy } = createEditor( | ||
@@ -38,3 +36,2 @@ parentElement, | ||
); | ||
this.#isReadOnly = readOnly; | ||
this.#editorArea = editorArea; | ||
@@ -88,4 +85,2 @@ this.#toolbar = toolbar; | ||
if (this.#isReadOnly) return; | ||
this.#onChange = onChange; | ||
@@ -127,3 +122,2 @@ } | ||
#handleChange(event) { | ||
if (this.#isReadOnly) return; | ||
if (!this.#onChange) return; | ||
@@ -130,0 +124,0 @@ |
{ | ||
"name": "openchemlib", | ||
"version": "8.16.0", | ||
"version": "8.17.0", | ||
"description": "Manipulate molecules", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
13455280
33542