Skip to content

Commit

Permalink
i have a solution
Browse files Browse the repository at this point in the history
  • Loading branch information
jwklong authored Nov 16, 2024
1 parent 15d8ffa commit eaff6df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
11 changes: 1 addition & 10 deletions src/engine/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,6 @@ const ArgumentTypeMap = (() => {
fieldType: 'field_vertical_separator'
};

map[ArgumentType.LEAF] = {
shape: BlockShape.LEAF
};
map[ArgumentType.PLUS] = {
shape: BlockShape.PLUS
};

return map;
})();

Expand Down Expand Up @@ -1897,12 +1890,10 @@ class Runtime extends EventEmitter {
// shaped like a hexagon
argJSON.check = argTypeInfo.check;
}
if (argTypeInfo.shape) {
if (argInfo.shape) {
argJSON.shape = argTypeInfo.shape;
}

console.debug(argJSON, argTypeInfo)

let valueName;
let shadowType;
let blockType;
Expand Down
8 changes: 1 addition & 7 deletions src/extension-support/argument-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,7 @@ const ArgumentType = {
/**
* pm: Vertical seperator
*/
SEPERATOR: 'seperator',

//custom block shape argument thingy till i work it all out

LEAF: 'leaf',

PLUS: 'plus',
SEPERATOR: 'seperator'
};

module.exports = ArgumentType;

0 comments on commit eaff6df

Please sign in to comment.