ncbi / icn3d

web-based protein structure viewer and analysis tool interactively or in batch mode
https://www.ncbi.nlm.nih.gov/Structure/icn3d
Other
154 stars 42 forks source link

applyCommandCls.applyCommand() does not redraw #34

Closed bha008 closed 3 years ago

bha008 commented 3 years ago

applyCommandCls.applyCommand() does not redraw the 3d view until the window is resized.

Example) image

image Commands are run using applyCommand(), but nothing visually changes. The console shows the commands

After changing the window size, the colors are updated: image

jiywang3 commented 3 years ago

That's expected. applyCommand() is typically used to execute all the commands. The draw() function is only required to execute once after all commands are processed. So you need to specifically execute the draw function (e.g., ic.drawCls.draw()) if you want to update the view.

bha008 commented 3 years ago

Great, thanks!