@@ -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
548548 canvas_div . appendChild ( canvas ) ;
@@ -563,7 +563,7 @@ export class MPLCanvasView extends DOMWidgetView {
563563
564564 async _init_toolbar ( ) {
565565 this . toolbar_view = ( await this . create_child_view (
566- this . model . get ( 'toolbar' )
566+ this . model . get ( 'toolbar' ) ,
567567 ) ) as ToolbarView ;
568568
569569 this . figure . appendChild ( this . toolbar_view . el ) ;
@@ -590,7 +590,7 @@ export class MPLCanvasView extends DOMWidgetView {
590590 0 ,
591591 0 ,
592592 this . canvas . width ,
593- this . canvas . height
593+ this . canvas . height ,
594594 ) ;
595595 } else {
596596 this . context . drawImage ( this . model . offscreen_canvas , 0 , 0 ) ;
@@ -600,7 +600,7 @@ export class MPLCanvasView extends DOMWidgetView {
600600 0 ,
601601 0 ,
602602 this . top_canvas . width ,
603- this . top_canvas . height
603+ this . top_canvas . height ,
604604 ) ;
605605
606606 // Draw rubberband
@@ -619,7 +619,7 @@ export class MPLCanvasView extends DOMWidgetView {
619619 this . model . get ( '_rubberband_x' ) ,
620620 this . model . get ( '_rubberband_y' ) ,
621621 this . model . get ( '_rubberband_width' ) ,
622- this . model . get ( '_rubberband_height' )
622+ this . model . get ( '_rubberband_height' ) ,
623623 ) ;
624624 }
625625
@@ -631,7 +631,7 @@ export class MPLCanvasView extends DOMWidgetView {
631631 this . top_canvas . height - this . resize_handle_size ,
632632 // Stop
633633 this . top_canvas . width ,
634- this . top_canvas . height
634+ this . top_canvas . height ,
635635 ) ;
636636 gradient . addColorStop ( 0 , 'white' ) ;
637637 gradient . addColorStop ( 1 , 'black' ) ;
@@ -643,15 +643,15 @@ export class MPLCanvasView extends DOMWidgetView {
643643 this . top_context . beginPath ( ) ;
644644 this . top_context . moveTo (
645645 this . top_canvas . width ,
646- this . top_canvas . height
646+ this . top_canvas . height ,
647647 ) ;
648648 this . top_context . lineTo (
649649 this . top_canvas . width ,
650- this . top_canvas . height - this . resize_handle_size
650+ this . top_canvas . height - this . resize_handle_size ,
651651 ) ;
652652 this . top_context . lineTo (
653653 this . top_canvas . width - this . resize_handle_size ,
654- this . top_canvas . height
654+ this . top_canvas . height ,
655655 ) ;
656656 this . top_context . closePath ( ) ;
657657 this . top_context . fill ( ) ;
@@ -670,7 +670,7 @@ export class MPLCanvasView extends DOMWidgetView {
670670 this . footer . classList . add (
671671 'jupyter-widgets' ,
672672 'widget-label' ,
673- 'jupyter-matplotlib-footer'
673+ 'jupyter-matplotlib-footer' ,
674674 ) ;
675675 this . _update_footer_visible ( ) ;
676676 this . _update_message ( ) ;
0 commit comments