Skip to content

Commit de62d77

Browse files
authored
fix: reenable the note block and picker field (#48)
* fix: reenable the note block and picker field * refactor: clean up the field_note implementation
1 parent 48e931f commit de62d77

File tree

3 files changed

+686
-722
lines changed

3 files changed

+686
-722
lines changed

blocks_common/note.js

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,9 @@
2222
* @fileoverview Note block.
2323
* @author [email protected] (Eric Rosenbaum)
2424
*/
25-
'use strict';
26-
27-
goog.provide('Blockly.Blocks.note');
28-
29-
goog.require('Blockly.Blocks');
30-
31-
goog.require('Blockly.Colours');
32-
33-
goog.require('Blockly.constants');
25+
import * as Blockly from 'blockly/core';
26+
import {Colours} from '../core/colours.js';
27+
import * as Constants from '../src/constants.js';
3428

3529
Blockly.Blocks['note'] = {
3630
/**
@@ -47,12 +41,12 @@ Blockly.Blocks['note'] = {
4741
"value": 60
4842
}
4943
],
50-
"outputShape": Blockly.OUTPUT_SHAPE_ROUND,
44+
"outputShape": Constants.OUTPUT_SHAPE_ROUND,
5145
"output": "Number",
52-
"colour": Blockly.Colours.textField,
53-
"colourSecondary": Blockly.Colours.textField,
54-
"colourTertiary": Blockly.Colours.textField,
55-
"colourQuaternary": Blockly.Colours.textField
46+
"colour": Colours.textField,
47+
"colourSecondary": Colours.textField,
48+
"colourTertiary": Colours.textField,
49+
"colourQuaternary": Colours.textField
5650
});
5751
}
5852
};

0 commit comments

Comments
 (0)