File tree Expand file tree Collapse file tree 3 files changed +686
-722
lines changed Expand file tree Collapse file tree 3 files changed +686
-722
lines changed Original file line number Diff line number Diff line change 22
22
* @fileoverview Note block.
23
23
* @author [email protected] (Eric Rosenbaum)
24
24
*/
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' ;
34
28
35
29
Blockly . Blocks [ 'note' ] = {
36
30
/**
@@ -47,12 +41,12 @@ Blockly.Blocks['note'] = {
47
41
"value" : 60
48
42
}
49
43
] ,
50
- "outputShape" : Blockly . OUTPUT_SHAPE_ROUND ,
44
+ "outputShape" : Constants . OUTPUT_SHAPE_ROUND ,
51
45
"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
56
50
} ) ;
57
51
}
58
52
} ;
You can’t perform that action at this time.
0 commit comments