@@ -35,7 +35,7 @@ export const setup = function () {
3535const INPUT_STACK = 'STACK' ;
3636
3737export type StepContainerBlock = StepContainerMixin & Blockly . BlockSvg ;
38- interface StepContainerMixin extends StepContainerMixinType { }
38+ interface StepContainerMixin extends StepContainerMixinType { }
3939type StepContainerMixinType = typeof STEP_CONTAINER ;
4040
4141const STEP_CONTAINER = {
@@ -50,7 +50,7 @@ const STEP_CONTAINER = {
5050 let block = this . getInputTargetBlock ( INPUT_STACK ) ;
5151 while ( block && ! block . isInsertionMarker ( ) ) {
5252 if ( block . type !== STEP_ITEM_BLOCK_NAME ) {
53- throw new Error ( 'getItemNames: block.type should be ' + STEP_ITEM_BLOCK_NAME ) ;
53+ throw new Error ( 'getItemNames: block.type should be ' + STEP_ITEM_BLOCK_NAME ) ;
5454 }
5555 stepItemBlocks . push ( block as StepItemBlock ) ;
5656 block = block . nextConnection && block . nextConnection . targetBlock ( ) ;
@@ -73,7 +73,7 @@ type StepItemMixinType = typeof STEP_ITEM;
7373const STEP_ITEM = {
7474 init : function ( this : StepItemBlock ) {
7575 this . appendDummyInput ( )
76- . appendField ( new Blockly . FieldTextInput ( '' ) , FIELD_NAME ) ;
76+ . appendField ( new Blockly . FieldTextInput ( '' ) , FIELD_NAME ) ;
7777 this . setPreviousStatement ( true ) ;
7878 this . setNextStatement ( true ) ;
7979 this . setStyle ( MRC_STYLE_CLASS_BLOCKS ) ;
@@ -129,15 +129,15 @@ function updateMutatorFlyout(workspace: Blockly.WorkspaceSvg) {
129129 workspace . getBlocksByType ( STEP_ITEM_BLOCK_NAME , false ) . forEach ( block => {
130130 usedNames . push ( block . getFieldValue ( FIELD_NAME ) ) ;
131131 } ) ;
132-
132+
133133 // Find the first unused number starting from 0
134134 let counter = 0 ;
135135 let uniqueName = counter . toString ( ) ;
136136 while ( usedNames . includes ( uniqueName ) ) {
137137 counter ++ ;
138138 uniqueName = counter . toString ( ) ;
139139 }
140-
140+
141141 const jsonBlock = {
142142 kind : 'block' ,
143143 type : STEP_ITEM_BLOCK_NAME ,
0 commit comments