mirror of
https://github.com/google/blockly.git
synced 2026-01-22 00:07:12 +01:00
20 lines
410 B
JavaScript
20 lines
410 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Pitch field demo blocks.
|
|
* @author samelh@gmail.com (Sam El-Husseini)
|
|
*/
|
|
|
|
Blockly.Blocks['test_pitch_field'] = {
|
|
init: function() {
|
|
this.appendDummyInput()
|
|
.appendField('pitch')
|
|
.appendField(new CustomFields.FieldPitch('7'), 'PITCH');
|
|
this.setStyle('loop_blocks');
|
|
}
|
|
};
|