Importers: adjust block coordinate calculation so blocks overlap less. #326

This change imports the scratch blocks much closer to the Scratch 2
spacing.
This commit is contained in:
griffpatch 2017-01-27 10:16:19 +00:00
parent bdabe2efa3
commit 2ac4b73a1f

View file

@ -166,8 +166,8 @@ var parseScripts = function (scripts, blocks) {
// Adjust script coordinates to account for
// larger block size in scratch-blocks.
// @todo: Determine more precisely the right formulas here.
parsedBlockList[0].x = scriptX * 1.1;
parsedBlockList[0].y = scriptY * 1.1;
parsedBlockList[0].x = scriptX * 1.5;
parsedBlockList[0].y = scriptY * 2.2;
parsedBlockList[0].topLevel = true;
parsedBlockList[0].parent = null;
}