imagej.js icon indicating copy to clipboard operation
imagej.js copied to clipboard

blockly integration?

Open mutterer opened this issue 4 years ago • 2 comments

This has been discussed already in other contexts, but now that ImageJ has a javascript version, integration of blockly (or similar) seems more possible than ever before.

https://developers.google.com/blockly/guides/get-started/web

mutterer avatar Nov 26 '20 09:11 mutterer

Hi @mutterer I think that's a great idea! We can basically automatically wrap the imagej macro/commands/plugins into modules.

I had this demo plugin for blockly you might have seen before: https://imjoy.io/lite?plugin=imjoy-team%2Fimjoy-demo-plugins%3AFixed-Blockly

It also works in ImageJ.JS: https://ij.imjoy.io/?plugin=imjoy-team%2Fimjoy-demo-plugins%3AFixed-Blockly# Screenshot 2020-11-26 at 12 22 26

We can generate js code directly, for each module we can call ij.runMacro(...). We need to find a way to generate modules for different commands/plugins (we might need to do it manually, @rasband may provide suggestion here).

I guess it will be much easier with the scijava modular framework in ImageJ2, there we can get a list of modules easily (@ctrueden ).

It would be also interesting to make blockly work with https://github.com/imagej/imagej-server .

The only problem is I have limited bandwidth recently, so please go ahead if you have sometime to look into it.

oeway avatar Nov 26 '20 11:11 oeway

Hi,

This is great! It would also be great if we could run JavaScript code from within ImageJ.JS, including the 29 examples in the Help>Examples>JavaScript menu.

-wayne

On Nov 26, 2020, at 6:34 AM, Wei Ouyang [email protected] wrote:

Hi @mutterer I think that's a great idea! We can basically automatically wrap the imagej macro/commands/plugins into modules.

I had this demo plugin for blockly you might seen before: https://imjoy.io/lite?plugin=imjoy-team%2Fimjoy-demo-plugins%3AFixed-Blockly

It also works in ImageJ.JS: https://ij.imjoy.io/?plugin=imjoy-team%2Fimjoy-demo-plugins%3AFixed-Blockly#

We can generate js code directly, for each module we can call ij.runMacro(...). We need to find a way to generate modules for different commands/plugins (we might need to do it manually, @rasband may provide suggestion here).

I guess it will be much easier with the scijava modular framework in ImageJ2, there we can get a list of modules easily (@ctrueden ).

It would be also interesting to make blockly work with https://github.com/imagej/imagej-server .

The only problem is I have limited bandwidth recently, so please go ahead if you have sometime to look into it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

rasband avatar Nov 26 '20 17:11 rasband