File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ class CanvasView extends DOMWidgetView {
360360 this . ctx . drawImage ( this . model . canvas , 0 , 0 ) ;
361361 }
362362
363- private resizeCanvas ( ) {
363+ protected resizeCanvas ( ) {
364364 this . canvas . setAttribute ( 'width' , this . model . get ( 'width' ) ) ;
365365 this . canvas . setAttribute ( 'height' , this . model . get ( 'height' ) ) ;
366366 }
@@ -401,7 +401,7 @@ class CanvasView extends DOMWidgetView {
401401 this . model . send ( { event : 'touch_cancel' , touches : touches . map ( this . getCoordinates . bind ( this ) ) } , { } ) ;
402402 }
403403
404- private getCoordinates ( event : MouseEvent | Touch ) {
404+ protected getCoordinates ( event : MouseEvent | Touch ) {
405405 const rect = this . canvas . getBoundingClientRect ( ) ;
406406 const x = event . clientX - rect . left ;
407407 const y = event . clientY - rect . top ;
You can’t perform that action at this time.
0 commit comments