From e38f090dd36610e9dd8d2d6538f75fc0539f90e8 Mon Sep 17 00:00:00 2001 From: Austin Cory Bart Date: Thu, 31 Dec 2020 11:30:58 -0500 Subject: [PATCH] Add in empty toolbox category for error situations --- dist/block_mirror.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dist/block_mirror.js b/dist/block_mirror.js index 9d14368..9c178e2 100644 --- a/dist/block_mirror.js +++ b/dist/block_mirror.js @@ -2716,7 +2716,7 @@ TOOLBOX_CATEGORY.CALCULATIONS = { TOOLBOX_CATEGORY.OUTPUT_WITH_PLOTTING = { name: "Output", colour: "PLOTTING", - blocks: ["print(___)", "plt.plot(___)", "plt.scatter(___, ___)", "plt.hist(___)", "plt.show()", "plt.title(___)", "plt.xlabel(___)", "plt.ylabel(___)"] + blocks: ["print(___)", "plt.plot(___)", "plt.scatter(___, ___)", "plt.hist(___)", "plt.bar(___, ___)", "plt.show()", "plt.title(___)", "plt.xlabel(___)", "plt.ylabel(___)"] }; TOOLBOX_CATEGORY.TURTLES = { name: "Turtles", @@ -2745,6 +2745,12 @@ TOOLBOX_CATEGORY.DICTIONARIES = { blocks: ["{'1st key': ___, '2nd key': ___, '3rd key': ___}", "{}", "___['key']"] }; BlockMirrorBlockEditor.prototype.TOOLBOXES = { + //****************************************************** + 'empty': [{ + "name": "Empty Toolbox", + "colour": "PYTHON", + "blocks": [] + }], //****************************************************** 'minimal': [// TODO: What should live in here? TOOLBOX_CATEGORY.VARIABLES],