PistoiaHELM / HELMWebEditor

Web browser based editor for drawing HELM macromolecules.
MIT License
17 stars 10 forks source link

Browser crashes and rendered sequence dissapeares #242

Closed Aleksashka11 closed 2 years ago

Aleksashka11 commented 2 years ago

When I am using the code presented below, after scrolling through the web page browser crashes and rendered before sequences dissapear. setTimeout(function() { // @ts-ignore new JSDraw(host, { width: w, height: h, skin: "w8", viewonly: true }); }, 200);

TianhongZhang commented 2 years ago

@Aleksashka11 , how did you use the HWE? I am not sure where did that code snippet come from.

Aleksashka11 commented 2 years ago

I'm using the provided JSDraw functionality in order to draw canvas for the stored HELM string. Here host is a div where I actually store mentioned above HELM string as an attribute.

Aleksashka11 commented 2 years ago

The problem is solved, it wasn't your fault. Thank you for the attention and responses. I am closing the issue.