Skip to content

Commit

Permalink
bump version; log analysis, modifer, selection
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Sep 21, 2023
1 parent 12fccc2 commit f2be457
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <zincwarecode@gmail.com>"]
license = "Apache-2.0"
Expand Down
4 changes: 3 additions & 1 deletion zndraw/static/UI/json_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion zndraw/static/World/systems/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down Expand Up @@ -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: {},
Expand Down

0 comments on commit f2be457

Please sign in to comment.