From aa70c1bc3b9598df8f443523f2ffb283a5b369a4 Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Wed, 31 Aug 2016 11:32:59 -0400 Subject: [PATCH] Add shadow, x, y properties to block adapter --- src/engine/adapter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/adapter.js b/src/engine/adapter.js index 388659fe8..57c413f3e 100644 --- a/src/engine/adapter.js +++ b/src/engine/adapter.js @@ -57,7 +57,10 @@ function domToBlock (blockDOM, blocks, isTopBlock) { inputs: {}, // Inputs to this block and the blocks they point to. fields: {}, // Fields on this block and their values. next: null, // Next block in the stack, if one exists. - topLevel: isTopBlock // If this block starts a stack. + topLevel: isTopBlock, // If this block starts a stack. + shadow: blockDOM.name == 'shadow', // If this represents a shadow/slot. + x: blockDOM.attribs.x, // X position of script, if top-level. + y: blockDOM.attribs.y // Y position of script, if top-level. }; // Add the block to the representation tree.