can't we download individual blocks (method, property) from extension?
function downloadPNGIgnoreOrphan(){
var topblocks=Blockly.getMainWorkspace().getTopBlocks();
var blocks=topblocks.filter((block)=>{
return types.indexOf(block.type)>=0
});
if(confirm("Are you sure to download all " + blocks.length + " blocks?")){
var i=0;
var timer=setTimeout(function(){
if(i<blocks.length){
exportBlockAsPng(blocks[i]);
i++;
timer=setTimeout(arguments.callee,1000)
}
},1000);
}
}
change
return types.indexOf(block.type)>=0
to
return types.indexOf(block.type)>=-1
this should be working, not tested.
2 Likes
today i start ai2helper with this problem
try donwgrade script, other proyects, nothing works.
the list of methods/var/etc stills displays in one line.
if i copy paste that line to notepad, is all there, also if i click every letter of the line point to a block.
try from another computer, same issue
mayby it's because of this new updates of AI2 server. Will check tomorrow.
1 Like
App Inventor 2 block helper-0.7.7 (1).user.txt (11.6 KB)
checkout this modifications, it fix the problem and add some features.
2 Likes
i become too much addicted to your script. Thanks!
nono, only one.
Thanks for fixing the problem.
1 Like
updated v 0.7.8
- fixe the bug for showing outline as 'iiiiii';
- remove the function of "palletes scroll seperately", since it's buggy and this is a native function in Neo interface.