Files
blockly/demos/custom-fields/pitch/blocks.js
Neil Fraser 4e2f8e6e02 Use SPDX licences.
This is a followup to #3127.
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00

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');
}
};