GeezerVison is showing github.com — fix: reenable the note block and picker field (#48) · SnoopyMod/scratch-blocks@de62d77
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: blocks_common/note.js +8-14Lines changed: 8 additions & 14 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
22 | 22 | * @fileoverview Note block. |
23 | 23 | |
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 | }; |