plots.js 411 B

12345678910111213
  1. Blockly.Blocks['plot_legend'] = {
  2. init: function() {
  3. this.setHelpUrl('http://www.example.com/');
  4. this.setColour(Blockly.Blocks.plot.HUE);
  5. this.appendDummyInput()
  6. .appendField("make legend");
  7. this.setInputsInline(false);
  8. this.setPreviousStatement(true);
  9. this.setNextStatement(true);
  10. this.setOutput(false);
  11. this.setTooltip('Makes the legend appear');
  12. }
  13. };