File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 22
22
* @fileoverview Text blocks for Blockly.
23
23
* @author [email protected] (Neil Fraser)
24
24
*/
25
- 'use strict' ;
26
-
27
- goog . provide ( 'Blockly.Blocks.texts' ) ;
28
-
29
- goog . require ( 'Blockly.Blocks' ) ;
30
-
31
- goog . require ( 'Blockly.Colours' ) ;
32
-
33
- goog . require ( 'Blockly.constants' ) ;
25
+ import * as Blockly from 'blockly' ;
26
+ import { Colours } from '../core/colours.js' ;
34
27
35
28
Blockly . Blocks [ 'text' ] = {
36
29
/**
@@ -47,11 +40,10 @@ Blockly.Blocks['text'] = {
47
40
}
48
41
] ,
49
42
"output" : "String" ,
50
- "outputShape" : Blockly . OUTPUT_SHAPE_ROUND ,
51
- "colour" : Blockly . Colours . textField ,
52
- "colourSecondary" : Blockly . Colours . textField ,
53
- "colourTertiary" : Blockly . Colours . textField ,
54
- "colourQuaternary" : Blockly . Colours . textField
43
+ "colour" : Colours . textField ,
44
+ "colourSecondary" : Colours . textField ,
45
+ "colourTertiary" : Colours . textField ,
46
+ "colourQuaternary" : Colours . textField
55
47
} ) ;
56
48
}
57
49
} ;
Original file line number Diff line number Diff line change 6
6
7
7
import * as Blockly from 'blockly/core' ;
8
8
import '../blocks_common/math.js' ;
9
+ import '../blocks_common/text.js' ;
9
10
import '../blocks_vertical/vertical_extensions.js' ;
10
11
import '../blocks_vertical/control.js' ;
11
12
import '../blocks_vertical/data.js' ;
You can’t perform that action at this time.
0 commit comments