Commit ef0e7413 authored by carlosperate's avatar carlosperate

Enable workspace zoom in ardublockly front end.

parent 3583f895
......@@ -53,12 +53,24 @@ Ardublockly.injectBlockly = function(blocklyEl, toolboxPath, blocklyPath) {
Ardublockly.workspace = Blockly.inject(blocklyEl, {
collapse: true,
comments: true,
css: true,
disable: true,
grid: false,
media: blocklyPath + '/media/',
rtl: false,
scrollbars: true,
sounds: true,
toolbox: xmlTree,
trashcan: true });
trashcan: true,
zoom: {
enabled: true,
controls: true,
wheel: false,
startScale: 1.0,
maxScale: 3,
minScale: 0.3
}
});
Ardublockly.BLOCKLY_INJECTED_ = true;
Ardublockly.loadSessionStorageBlocks();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment