@@ -275,7 +275,7 @@ export class MPLCanvasModel extends DOMWidgetModel {
275275 } catch ( e ) {
276276 console . log (
277277 "No handler for the '" + msg_type + "' message type: " ,
278- msg
278+ msg ,
279279 ) ;
280280 return ;
281281 }
@@ -328,7 +328,7 @@ export class MPLCanvasModel extends DOMWidgetModel {
328328 0 ,
329329 0 ,
330330 this . offscreen_canvas . width ,
331- this . offscreen_canvas . height
331+ this . offscreen_canvas . height ,
332332 ) ;
333333 }
334334
@@ -410,23 +410,23 @@ export class MPLCanvasView extends DOMWidgetView {
410410 model_events ( ) {
411411 this . model . on (
412412 'change:header_visible' ,
413- this . _update_header_visible . bind ( this )
413+ this . _update_header_visible . bind ( this ) ,
414414 ) ;
415415 this . model . on (
416416 'change:footer_visible' ,
417- this . _update_footer_visible . bind ( this )
417+ this . _update_footer_visible . bind ( this ) ,
418418 ) ;
419419 this . model . on (
420420 'change:toolbar_visible' ,
421- this . _update_toolbar_visible . bind ( this )
421+ this . _update_toolbar_visible . bind ( this ) ,
422422 ) ;
423423 this . model . on (
424424 'change:toolbar_position' ,
425- this . _update_toolbar_position . bind ( this )
425+ this . _update_toolbar_position . bind ( this ) ,
426426 ) ;
427427 this . model . on (
428428 'change:_figure_label' ,
429- this . _update_figure_label . bind ( this )
429+ this . _update_figure_label . bind ( this ) ,
430430 ) ;
431431 this . model . on ( 'change:_message' , this . _update_message . bind ( this ) ) ;
432432 this . model . on ( 'change:_cursor' , this . _update_cursor . bind ( this ) ) ;
@@ -459,7 +459,7 @@ export class MPLCanvasView extends DOMWidgetView {
459459 this . header . classList . add (
460460 'jupyter-widgets' ,
461461 'widget-label' ,
462- 'jupyter-matplotlib-header'
462+ 'jupyter-matplotlib-header' ,
463463 ) ;
464464 this . _update_header_visible ( ) ;
465465 this . _update_figure_label ( ) ;
@@ -474,7 +474,7 @@ export class MPLCanvasView extends DOMWidgetView {
474474 const canvas_container = document . createElement ( 'div' ) ;
475475 canvas_container . classList . add (
476476 'jupyter-widgets' ,
477- 'jupyter-matplotlib-canvas-container'
477+ 'jupyter-matplotlib-canvas-container' ,
478478 ) ;
479479 this . figure . appendChild ( canvas_container ) ;
480480
@@ -483,7 +483,7 @@ export class MPLCanvasView extends DOMWidgetView {
483483 canvas_div . style . clear = 'both' ;
484484 canvas_div . classList . add (
485485 'jupyter-widgets' ,
486- 'jupyter-matplotlib-canvas-div'
486+ 'jupyter-matplotlib-canvas-div' ,
487487 ) ;
488488
489489 canvas_div . addEventListener ( 'keydown' , this . key_event ( 'key_press' ) ) ;
@@ -512,35 +512,35 @@ export class MPLCanvasView extends DOMWidgetView {
512512 top_canvas . addEventListener ( 'dblclick' , this . mouse_event ( 'dblclick' ) ) ;
513513 top_canvas . addEventListener (
514514 'mousedown' ,
515- this . mouse_event ( 'button_press' )
515+ this . mouse_event ( 'button_press' ) ,
516516 ) ;
517517 top_canvas . addEventListener (
518518 'mouseup' ,
519- this . mouse_event ( 'button_release' )
519+ this . mouse_event ( 'button_release' ) ,
520520 ) ;
521521 top_canvas . addEventListener (
522522 'mousemove' ,
523523 throttle (
524524 this . mouse_event ( 'motion_notify' ) ,
525- this . model . get ( 'pan_zoom_throttle' )
526- )
525+ this . model . get ( 'pan_zoom_throttle' ) ,
526+ ) ,
527527 ) ;
528528
529529 top_canvas . addEventListener (
530530 'mouseenter' ,
531- this . mouse_event ( 'figure_enter' )
531+ this . mouse_event ( 'figure_enter' ) ,
532532 ) ;
533533 top_canvas . addEventListener (
534534 'mouseleave' ,
535- this . mouse_event ( 'figure_leave' )
535+ this . mouse_event ( 'figure_leave' ) ,
536536 ) ;
537537
538538 top_canvas . addEventListener (
539539 'wheel' ,
540540 throttle (
541541 this . mouse_event ( 'scroll' ) ,
542- this . model . get ( 'pan_zoom_throttle' )
543- )
542+ this . model . get ( 'pan_zoom_throttle' ) ,
543+ ) ,
544544 ) ;
545545
546546 canvas_div . appendChild ( canvas ) ;
@@ -561,7 +561,7 @@ export class MPLCanvasView extends DOMWidgetView {
561561
562562 async _init_toolbar ( ) {
563563 this . toolbar_view = ( await this . create_child_view (
564- this . model . get ( 'toolbar' )
564+ this . model . get ( 'toolbar' ) ,
565565 ) ) as ToolbarView ;
566566
567567 this . figure . appendChild ( this . toolbar_view . el ) ;
@@ -588,7 +588,7 @@ export class MPLCanvasView extends DOMWidgetView {
588588 0 ,
589589 0 ,
590590 this . canvas . width ,
591- this . canvas . height
591+ this . canvas . height ,
592592 ) ;
593593 } else {
594594 this . context . drawImage ( this . model . offscreen_canvas , 0 , 0 ) ;
@@ -598,7 +598,7 @@ export class MPLCanvasView extends DOMWidgetView {
598598 0 ,
599599 0 ,
600600 this . top_canvas . width ,
601- this . top_canvas . height
601+ this . top_canvas . height ,
602602 ) ;
603603
604604 // Draw rubberband
@@ -617,7 +617,7 @@ export class MPLCanvasView extends DOMWidgetView {
617617 this . model . get ( '_rubberband_x' ) ,
618618 this . model . get ( '_rubberband_y' ) ,
619619 this . model . get ( '_rubberband_width' ) ,
620- this . model . get ( '_rubberband_height' )
620+ this . model . get ( '_rubberband_height' ) ,
621621 ) ;
622622 }
623623
@@ -629,7 +629,7 @@ export class MPLCanvasView extends DOMWidgetView {
629629 this . top_canvas . height - this . resize_handle_size ,
630630 // Stop
631631 this . top_canvas . width ,
632- this . top_canvas . height
632+ this . top_canvas . height ,
633633 ) ;
634634 gradient . addColorStop ( 0 , 'white' ) ;
635635 gradient . addColorStop ( 1 , 'black' ) ;
@@ -641,15 +641,15 @@ export class MPLCanvasView extends DOMWidgetView {
641641 this . top_context . beginPath ( ) ;
642642 this . top_context . moveTo (
643643 this . top_canvas . width ,
644- this . top_canvas . height
644+ this . top_canvas . height ,
645645 ) ;
646646 this . top_context . lineTo (
647647 this . top_canvas . width ,
648- this . top_canvas . height - this . resize_handle_size
648+ this . top_canvas . height - this . resize_handle_size ,
649649 ) ;
650650 this . top_context . lineTo (
651651 this . top_canvas . width - this . resize_handle_size ,
652- this . top_canvas . height
652+ this . top_canvas . height ,
653653 ) ;
654654 this . top_context . closePath ( ) ;
655655 this . top_context . fill ( ) ;
@@ -668,7 +668,7 @@ export class MPLCanvasView extends DOMWidgetView {
668668 this . footer . classList . add (
669669 'jupyter-widgets' ,
670670 'widget-label' ,
671- 'jupyter-matplotlib-footer'
671+ 'jupyter-matplotlib-footer' ,
672672 ) ;
673673 this . _update_footer_visible ( ) ;
674674 this . _update_message ( ) ;
0 commit comments