@@ -275,7 +275,7 @@ export class MPLCanvasModel extends DOMWidgetModel {
275
275
} catch ( e ) {
276
276
console . log (
277
277
"No handler for the '" + msg_type + "' message type: " ,
278
- msg
278
+ msg ,
279
279
) ;
280
280
return ;
281
281
}
@@ -328,7 +328,7 @@ export class MPLCanvasModel extends DOMWidgetModel {
328
328
0 ,
329
329
0 ,
330
330
this . offscreen_canvas . width ,
331
- this . offscreen_canvas . height
331
+ this . offscreen_canvas . height ,
332
332
) ;
333
333
}
334
334
@@ -410,23 +410,23 @@ export class MPLCanvasView extends DOMWidgetView {
410
410
model_events ( ) {
411
411
this . model . on (
412
412
'change:header_visible' ,
413
- this . _update_header_visible . bind ( this )
413
+ this . _update_header_visible . bind ( this ) ,
414
414
) ;
415
415
this . model . on (
416
416
'change:footer_visible' ,
417
- this . _update_footer_visible . bind ( this )
417
+ this . _update_footer_visible . bind ( this ) ,
418
418
) ;
419
419
this . model . on (
420
420
'change:toolbar_visible' ,
421
- this . _update_toolbar_visible . bind ( this )
421
+ this . _update_toolbar_visible . bind ( this ) ,
422
422
) ;
423
423
this . model . on (
424
424
'change:toolbar_position' ,
425
- this . _update_toolbar_position . bind ( this )
425
+ this . _update_toolbar_position . bind ( this ) ,
426
426
) ;
427
427
this . model . on (
428
428
'change:_figure_label' ,
429
- this . _update_figure_label . bind ( this )
429
+ this . _update_figure_label . bind ( this ) ,
430
430
) ;
431
431
this . model . on ( 'change:_message' , this . _update_message . bind ( this ) ) ;
432
432
this . model . on ( 'change:_cursor' , this . _update_cursor . bind ( this ) ) ;
@@ -459,7 +459,7 @@ export class MPLCanvasView extends DOMWidgetView {
459
459
this . header . classList . add (
460
460
'jupyter-widgets' ,
461
461
'widget-label' ,
462
- 'jupyter-matplotlib-header'
462
+ 'jupyter-matplotlib-header' ,
463
463
) ;
464
464
this . _update_header_visible ( ) ;
465
465
this . _update_figure_label ( ) ;
@@ -474,7 +474,7 @@ export class MPLCanvasView extends DOMWidgetView {
474
474
const canvas_container = document . createElement ( 'div' ) ;
475
475
canvas_container . classList . add (
476
476
'jupyter-widgets' ,
477
- 'jupyter-matplotlib-canvas-container'
477
+ 'jupyter-matplotlib-canvas-container' ,
478
478
) ;
479
479
this . figure . appendChild ( canvas_container ) ;
480
480
@@ -483,7 +483,7 @@ export class MPLCanvasView extends DOMWidgetView {
483
483
canvas_div . style . clear = 'both' ;
484
484
canvas_div . classList . add (
485
485
'jupyter-widgets' ,
486
- 'jupyter-matplotlib-canvas-div'
486
+ 'jupyter-matplotlib-canvas-div' ,
487
487
) ;
488
488
489
489
canvas_div . addEventListener ( 'keydown' , this . key_event ( 'key_press' ) ) ;
@@ -512,35 +512,35 @@ export class MPLCanvasView extends DOMWidgetView {
512
512
top_canvas . addEventListener ( 'dblclick' , this . mouse_event ( 'dblclick' ) ) ;
513
513
top_canvas . addEventListener (
514
514
'mousedown' ,
515
- this . mouse_event ( 'button_press' )
515
+ this . mouse_event ( 'button_press' ) ,
516
516
) ;
517
517
top_canvas . addEventListener (
518
518
'mouseup' ,
519
- this . mouse_event ( 'button_release' )
519
+ this . mouse_event ( 'button_release' ) ,
520
520
) ;
521
521
top_canvas . addEventListener (
522
522
'mousemove' ,
523
523
throttle (
524
524
this . mouse_event ( 'motion_notify' ) ,
525
- this . model . get ( 'pan_zoom_throttle' )
526
- )
525
+ this . model . get ( 'pan_zoom_throttle' ) ,
526
+ ) ,
527
527
) ;
528
528
529
529
top_canvas . addEventListener (
530
530
'mouseenter' ,
531
- this . mouse_event ( 'figure_enter' )
531
+ this . mouse_event ( 'figure_enter' ) ,
532
532
) ;
533
533
top_canvas . addEventListener (
534
534
'mouseleave' ,
535
- this . mouse_event ( 'figure_leave' )
535
+ this . mouse_event ( 'figure_leave' ) ,
536
536
) ;
537
537
538
538
top_canvas . addEventListener (
539
539
'wheel' ,
540
540
throttle (
541
541
this . mouse_event ( 'scroll' ) ,
542
- this . model . get ( 'pan_zoom_throttle' )
543
- )
542
+ this . model . get ( 'pan_zoom_throttle' ) ,
543
+ ) ,
544
544
) ;
545
545
546
546
canvas_div . appendChild ( canvas ) ;
@@ -561,7 +561,7 @@ export class MPLCanvasView extends DOMWidgetView {
561
561
562
562
async _init_toolbar ( ) {
563
563
this . toolbar_view = ( await this . create_child_view (
564
- this . model . get ( 'toolbar' )
564
+ this . model . get ( 'toolbar' ) ,
565
565
) ) as ToolbarView ;
566
566
567
567
this . figure . appendChild ( this . toolbar_view . el ) ;
@@ -588,7 +588,7 @@ export class MPLCanvasView extends DOMWidgetView {
588
588
0 ,
589
589
0 ,
590
590
this . canvas . width ,
591
- this . canvas . height
591
+ this . canvas . height ,
592
592
) ;
593
593
} else {
594
594
this . context . drawImage ( this . model . offscreen_canvas , 0 , 0 ) ;
@@ -598,7 +598,7 @@ export class MPLCanvasView extends DOMWidgetView {
598
598
0 ,
599
599
0 ,
600
600
this . top_canvas . width ,
601
- this . top_canvas . height
601
+ this . top_canvas . height ,
602
602
) ;
603
603
604
604
// Draw rubberband
@@ -617,7 +617,7 @@ export class MPLCanvasView extends DOMWidgetView {
617
617
this . model . get ( '_rubberband_x' ) ,
618
618
this . model . get ( '_rubberband_y' ) ,
619
619
this . model . get ( '_rubberband_width' ) ,
620
- this . model . get ( '_rubberband_height' )
620
+ this . model . get ( '_rubberband_height' ) ,
621
621
) ;
622
622
}
623
623
@@ -629,7 +629,7 @@ export class MPLCanvasView extends DOMWidgetView {
629
629
this . top_canvas . height - this . resize_handle_size ,
630
630
// Stop
631
631
this . top_canvas . width ,
632
- this . top_canvas . height
632
+ this . top_canvas . height ,
633
633
) ;
634
634
gradient . addColorStop ( 0 , 'white' ) ;
635
635
gradient . addColorStop ( 1 , 'black' ) ;
@@ -641,15 +641,15 @@ export class MPLCanvasView extends DOMWidgetView {
641
641
this . top_context . beginPath ( ) ;
642
642
this . top_context . moveTo (
643
643
this . top_canvas . width ,
644
- this . top_canvas . height
644
+ this . top_canvas . height ,
645
645
) ;
646
646
this . top_context . lineTo (
647
647
this . top_canvas . width ,
648
- this . top_canvas . height - this . resize_handle_size
648
+ this . top_canvas . height - this . resize_handle_size ,
649
649
) ;
650
650
this . top_context . lineTo (
651
651
this . top_canvas . width - this . resize_handle_size ,
652
- this . top_canvas . height
652
+ this . top_canvas . height ,
653
653
) ;
654
654
this . top_context . closePath ( ) ;
655
655
this . top_context . fill ( ) ;
@@ -668,7 +668,7 @@ export class MPLCanvasView extends DOMWidgetView {
668
668
this . footer . classList . add (
669
669
'jupyter-widgets' ,
670
670
'widget-label' ,
671
- 'jupyter-matplotlib-footer'
671
+ 'jupyter-matplotlib-footer' ,
672
672
) ;
673
673
this . _update_footer_visible ( ) ;
674
674
this . _update_message ( ) ;
0 commit comments