diff --git a/pyproject.toml b/pyproject.toml index d656a558f..1f8a202f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "zndraw" -version = "0.2.2a1" +version = "0.2.2a2" description = "Display and Edit Molecular Structures and Trajectories in the Browser." authors = ["zincwarecode "] license = "Apache-2.0" diff --git a/zndraw/static/UI/json_editor.js b/zndraw/static/UI/json_editor.js index 5fb723f18..2f378c54d 100644 --- a/zndraw/static/UI/json_editor.js +++ b/zndraw/static/UI/json_editor.js @@ -43,6 +43,7 @@ function selection_editor(socket, cache, world) { document .getElementById("selection-json-editor-submit") .addEventListener("click", () => { + console.log(new Date().toISOString(), "running selection"); // Get the value from the editor const value = editor.getValue(); console.log(value); @@ -111,6 +112,7 @@ function analysis_editor(socket, cache, world) { .getElementById("analysis-json-editor-submit") .addEventListener("click", () => { // Get the value from the editor + console.log(new Date().toISOString(), "running analysis"); const value = editor.getValue(); socket.emit( @@ -191,7 +193,7 @@ function modifier_editor(socket, cache, world) { const value = editor.getValue(); const { points, segments } = world.getLineData(); - + console.log(new Date().toISOString(), "running modifier"); socket.emit("modifier:run", { name: selection.options[selection.selectedIndex].text, params: value, diff --git a/zndraw/static/World/systems/select.js b/zndraw/static/World/systems/select.js index 6f50677f7..29b54c15b 100644 --- a/zndraw/static/World/systems/select.js +++ b/zndraw/static/World/systems/select.js @@ -104,7 +104,7 @@ class Selection { const params = document.getElementById( "selection-json-editor", ).parameters; - + console.log(new Date().toISOString(), "running selection"); this.socket.emit("selection:run", { params: params, atoms: this.cache.get(this.world.getStep()), @@ -304,6 +304,7 @@ class Selection { } } else if (particlesGroup.selection.length > 0) { const { points, segments } = this.world.getLineData(); + console.log(new Date().toISOString(), "running modifier"); this.socket.emit("modifier:run", { name: "zndraw.modify.Delete", params: {},