From 9716b26a6c4d6a3927c0c2d59c021f96559b668c Mon Sep 17 00:00:00 2001 From: tpoisseau <22891227+tpoisseau@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:51:14 +0200 Subject: [PATCH] feat: sync webcomponent props with attributes (#234) Refs: https://github.com/cheminfo/openchemlib-js/issues/229 feat: add options to `ReactionEncoder.decode` and `ReactionEncoder.decode` --- .run/Build java.run.xml | 2 +- __tests__/ReactionEncoder.test.js | 8 + __tests__/__snapshots__/library.js.snap | 12 + examples/generic_editor/demo.html | 72 +++++- examples/generic_editor/demo/demo.ts | 55 ++++- examples/generic_editor/web_component.html | 12 + lib/canvas_editor/events.js | 11 +- .../init/canvas_editor_element.js | 210 ++++++++++++++++-- .../research/gwt/core/JSReactionEncoder.java | 83 ++++++- types.d.ts | 95 +++++++- 10 files changed, 523 insertions(+), 37 deletions(-) diff --git a/.run/Build java.run.xml b/.run/Build java.run.xml index a5d0699c..d0e8654f 100644 --- a/.run/Build java.run.xml +++ b/.run/Build java.run.xml @@ -1,6 +1,6 @@ -