@@ -41,7 +41,7 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
4141 private valToPaintWith ?: number ;
4242 buttonOptions : Buttons ;
4343 pixelSize : number ;
44- pixelColours : { empty : string ; filled : string } ;
44+ pixelColours : { empty : string ; filled : string } ;
4545 fieldHeight ?: number ;
4646
4747 /**
@@ -60,8 +60,8 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
6060
6161 this . SERIALIZABLE = true ;
6262 this . CURSOR = 'default' ;
63- this . buttonOptions = { ...DEFAULT_BUTTONS , ...config ?. buttons } ;
64- this . pixelColours = { ...DEFAULT_PIXEL_COLOURS , ...config ?. colours } ;
63+ this . buttonOptions = { ...DEFAULT_BUTTONS , ...config ?. buttons } ;
64+ this . pixelColours = { ...DEFAULT_PIXEL_COLOURS , ...config ?. colours } ;
6565
6666 // Configure value, height, and width
6767 const currentValue = this . getValue ( ) ;
@@ -299,10 +299,9 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
299299 this . bindEvent ( dropdownEditor , 'pointercancel' , this . onPointerEnd ) ;
300300 // Stop the browser from handling touch events and cancelling the event.
301301 this . bindEvent ( dropdownEditor , 'touchmove' , ( e : Event ) => {
302- e . preventDefault ( ) ;
302+ e . preventDefault ( ) ;
303303 } ) ;
304304
305-
306305 this . editorPixels = [ ] ;
307306 for ( let r = 0 ; r < this . imgHeight ; r ++ ) {
308307 this . editorPixels . push ( [ ] ) ;
@@ -473,7 +472,7 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
473472 /**
474473 * Checks if a down event is on a pixel in this editor and if it is starts an
475474 * edit gesture.
476- *
475+ *
477476 * @param e The down event.
478477 */
479478 private onPointerStart ( e : PointerEvent ) {
@@ -490,7 +489,7 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
490489 /**
491490 * Updates the editor if we're in an edit gesture and the pointer is over a
492491 * pixel.
493- *
492+ *
494493 * @param e The move event.
495494 */
496495 private onPointerMove ( e : PointerEvent ) {
0 commit comments