@@ -238,7 +238,7 @@ export class MPLCanvasModel extends DOMWidgetModel {
238238        const  url_creator  =  window . URL  ||  window . webkitURL ; 
239239
240240        const  buffer  =  new  Uint8Array ( 
241-             ArrayBuffer . isView ( buffers [ 0 ] )  ? buffers [ 0 ] . buffer  : buffers [ 0 ] 
241+             ArrayBuffer . isView ( buffers [ 0 ] )  ? buffers [ 0 ] . buffer  : buffers [ 0 ] , 
242242        ) ; 
243243        const  blob  =  new  Blob ( [ buffer ] ,  {  type : 'image/png'  } ) ; 
244244        const  image_url  =  url_creator . createObjectURL ( blob ) ; 
@@ -277,7 +277,7 @@ export class MPLCanvasModel extends DOMWidgetModel {
277277        }  catch  ( e )  { 
278278            console . log ( 
279279                "No handler for the '"  +  msg_type  +  "' message type: " , 
280-                 msg 
280+                 msg , 
281281            ) ; 
282282            return ; 
283283        } 
@@ -330,7 +330,7 @@ export class MPLCanvasModel extends DOMWidgetModel {
330330                    0 , 
331331                    0 , 
332332                    this . offscreen_canvas . width , 
333-                     this . offscreen_canvas . height 
333+                     this . offscreen_canvas . height , 
334334                ) ; 
335335            } 
336336
@@ -412,23 +412,23 @@ export class MPLCanvasView extends DOMWidgetView {
412412    model_events ( )  { 
413413        this . model . on ( 
414414            'change:header_visible' , 
415-             this . _update_header_visible . bind ( this ) 
415+             this . _update_header_visible . bind ( this ) , 
416416        ) ; 
417417        this . model . on ( 
418418            'change:footer_visible' , 
419-             this . _update_footer_visible . bind ( this ) 
419+             this . _update_footer_visible . bind ( this ) , 
420420        ) ; 
421421        this . model . on ( 
422422            'change:toolbar_visible' , 
423-             this . _update_toolbar_visible . bind ( this ) 
423+             this . _update_toolbar_visible . bind ( this ) , 
424424        ) ; 
425425        this . model . on ( 
426426            'change:toolbar_position' , 
427-             this . _update_toolbar_position . bind ( this ) 
427+             this . _update_toolbar_position . bind ( this ) , 
428428        ) ; 
429429        this . model . on ( 
430430            'change:_figure_label' , 
431-             this . _update_figure_label . bind ( this ) 
431+             this . _update_figure_label . bind ( this ) , 
432432        ) ; 
433433        this . model . on ( 'change:_message' ,  this . _update_message . bind ( this ) ) ; 
434434        this . model . on ( 'change:_cursor' ,  this . _update_cursor . bind ( this ) ) ; 
@@ -461,7 +461,7 @@ export class MPLCanvasView extends DOMWidgetView {
461461        this . header . classList . add ( 
462462            'jupyter-widgets' , 
463463            'widget-label' , 
464-             'jupyter-matplotlib-header' 
464+             'jupyter-matplotlib-header' , 
465465        ) ; 
466466        this . _update_header_visible ( ) ; 
467467        this . _update_figure_label ( ) ; 
@@ -476,7 +476,7 @@ export class MPLCanvasView extends DOMWidgetView {
476476        const  canvas_container  =  document . createElement ( 'div' ) ; 
477477        canvas_container . classList . add ( 
478478            'jupyter-widgets' , 
479-             'jupyter-matplotlib-canvas-container' 
479+             'jupyter-matplotlib-canvas-container' , 
480480        ) ; 
481481        this . figure . appendChild ( canvas_container ) ; 
482482
@@ -485,7 +485,7 @@ export class MPLCanvasView extends DOMWidgetView {
485485        canvas_div . style . clear  =  'both' ; 
486486        canvas_div . classList . add ( 
487487            'jupyter-widgets' , 
488-             'jupyter-matplotlib-canvas-div' 
488+             'jupyter-matplotlib-canvas-div' , 
489489        ) ; 
490490
491491        canvas_div . addEventListener ( 'keydown' ,  this . key_event ( 'key_press' ) ) ; 
@@ -514,35 +514,35 @@ export class MPLCanvasView extends DOMWidgetView {
514514        top_canvas . addEventListener ( 'dblclick' ,  this . mouse_event ( 'dblclick' ) ) ; 
515515        top_canvas . addEventListener ( 
516516            'mousedown' , 
517-             this . mouse_event ( 'button_press' ) 
517+             this . mouse_event ( 'button_press' ) , 
518518        ) ; 
519519        top_canvas . addEventListener ( 
520520            'mouseup' , 
521-             this . mouse_event ( 'button_release' ) 
521+             this . mouse_event ( 'button_release' ) , 
522522        ) ; 
523523        top_canvas . addEventListener ( 
524524            'mousemove' , 
525525            throttle ( 
526526                this . mouse_event ( 'motion_notify' ) , 
527-                 this . model . get ( 'pan_zoom_throttle' ) 
528-             ) 
527+                 this . model . get ( 'pan_zoom_throttle' ) , 
528+             ) , 
529529        ) ; 
530530
531531        top_canvas . addEventListener ( 
532532            'mouseenter' , 
533-             this . mouse_event ( 'figure_enter' ) 
533+             this . mouse_event ( 'figure_enter' ) , 
534534        ) ; 
535535        top_canvas . addEventListener ( 
536536            'mouseleave' , 
537-             this . mouse_event ( 'figure_leave' ) 
537+             this . mouse_event ( 'figure_leave' ) , 
538538        ) ; 
539539
540540        top_canvas . addEventListener ( 
541541            'wheel' , 
542542            throttle ( 
543543                this . mouse_event ( 'scroll' ) , 
544-                 this . model . get ( 'pan_zoom_throttle' ) 
545-             ) 
544+                 this . model . get ( 'pan_zoom_throttle' ) , 
545+             ) , 
546546        ) ; 
547547        top_canvas . addEventListener ( 'wheel' ,  ( event : any )  =>  { 
548548            if  ( this . model . get ( 'capture_scroll' ) )  { 
@@ -568,7 +568,7 @@ export class MPLCanvasView extends DOMWidgetView {
568568
569569    async  _init_toolbar ( )  { 
570570        this . toolbar_view  =  ( await  this . create_child_view ( 
571-             this . model . get ( 'toolbar' ) 
571+             this . model . get ( 'toolbar' ) , 
572572        ) )  as  ToolbarView ; 
573573
574574        this . figure . appendChild ( this . toolbar_view . el ) ; 
@@ -595,7 +595,7 @@ export class MPLCanvasView extends DOMWidgetView {
595595                0 , 
596596                0 , 
597597                this . canvas . width , 
598-                 this . canvas . height 
598+                 this . canvas . height , 
599599            ) ; 
600600        }  else  { 
601601            this . context . drawImage ( this . model . offscreen_canvas ,  0 ,  0 ) ; 
@@ -605,7 +605,7 @@ export class MPLCanvasView extends DOMWidgetView {
605605            0 , 
606606            0 , 
607607            this . top_canvas . width , 
608-             this . top_canvas . height 
608+             this . top_canvas . height , 
609609        ) ; 
610610
611611        // Draw rubberband 
@@ -624,7 +624,7 @@ export class MPLCanvasView extends DOMWidgetView {
624624                this . model . get ( '_rubberband_x' ) , 
625625                this . model . get ( '_rubberband_y' ) , 
626626                this . model . get ( '_rubberband_width' ) , 
627-                 this . model . get ( '_rubberband_height' ) 
627+                 this . model . get ( '_rubberband_height' ) , 
628628            ) ; 
629629        } 
630630
@@ -636,7 +636,7 @@ export class MPLCanvasView extends DOMWidgetView {
636636                this . top_canvas . height  -  this . resize_handle_size , 
637637                // Stop 
638638                this . top_canvas . width , 
639-                 this . top_canvas . height 
639+                 this . top_canvas . height , 
640640            ) ; 
641641            gradient . addColorStop ( 0 ,  'white' ) ; 
642642            gradient . addColorStop ( 1 ,  'black' ) ; 
@@ -648,15 +648,15 @@ export class MPLCanvasView extends DOMWidgetView {
648648            this . top_context . beginPath ( ) ; 
649649            this . top_context . moveTo ( 
650650                this . top_canvas . width , 
651-                 this . top_canvas . height 
651+                 this . top_canvas . height , 
652652            ) ; 
653653            this . top_context . lineTo ( 
654654                this . top_canvas . width , 
655-                 this . top_canvas . height  -  this . resize_handle_size 
655+                 this . top_canvas . height  -  this . resize_handle_size , 
656656            ) ; 
657657            this . top_context . lineTo ( 
658658                this . top_canvas . width  -  this . resize_handle_size , 
659-                 this . top_canvas . height 
659+                 this . top_canvas . height , 
660660            ) ; 
661661            this . top_context . closePath ( ) ; 
662662            this . top_context . fill ( ) ; 
@@ -675,7 +675,7 @@ export class MPLCanvasView extends DOMWidgetView {
675675        this . footer . classList . add ( 
676676            'jupyter-widgets' , 
677677            'widget-label' , 
678-             'jupyter-matplotlib-footer' 
678+             'jupyter-matplotlib-footer' , 
679679        ) ; 
680680        this . _update_footer_visible ( ) ; 
681681        this . _update_message ( ) ; 
0 commit comments