Skip to content

Commit

Permalink
fix: reenable the note block and picker field (#48)
Browse files Browse the repository at this point in the history
* fix: reenable the note block and picker field

* refactor: clean up the field_note implementation
  • Loading branch information
gonfunko authored Apr 29, 2024
1 parent 48e931f commit de62d77
Show file tree
Hide file tree
Showing 3 changed files with 686 additions and 722 deletions.
22 changes: 8 additions & 14 deletions blocks_common/note.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@
* @fileoverview Note block.
* @author ericr@media.mit.edu (Eric Rosenbaum)
*/
'use strict';

goog.provide('Blockly.Blocks.note');

goog.require('Blockly.Blocks');

goog.require('Blockly.Colours');

goog.require('Blockly.constants');
import * as Blockly from 'blockly/core';
import {Colours} from '../core/colours.js';
import * as Constants from '../src/constants.js';

Blockly.Blocks['note'] = {
/**
Expand All @@ -47,12 +41,12 @@ Blockly.Blocks['note'] = {
"value": 60
}
],
"outputShape": Blockly.OUTPUT_SHAPE_ROUND,
"outputShape": Constants.OUTPUT_SHAPE_ROUND,
"output": "Number",
"colour": Blockly.Colours.textField,
"colourSecondary": Blockly.Colours.textField,
"colourTertiary": Blockly.Colours.textField,
"colourQuaternary": Blockly.Colours.textField
"colour": Colours.textField,
"colourSecondary": Colours.textField,
"colourTertiary": Colours.textField,
"colourQuaternary": Colours.textField
});
}
};
Loading

0 comments on commit de62d77

Please # to comment.