static/src/whiteboard.js
/**
     * Initialize the event listeners of the whiteboard
     * This method should only be used in the initialization
     * process of the whiteboard and should not be called outside
     * the class constructor.
     */
Initialize the event listeners of the whiteboard
This method should only be used in the initialization
process of the whiteboard and should not be called outside
the class constructor.
Initialize the event listeners of the whiteboard This method should only be used in the initialization process of the whiteboard and should not be called outside the class constructor .
initializeListeners(){
        this.canvas.addEventListener('mousemove', this.handleMouseMove);
        this.canvas.addEventListener('mousedown', this.handleMouseDown);
        this.canvas.addEventListener('mouseup', this.handleMouseUp);
        this.canvas.addEventListener('mouseenter', this.setPosition);
        window.addEventListener('resize', this.fillScreen);
    }
initializeListeners ( ) { this . canvas . addEventListener ( 'mousemove' , this . handleMouseMove ) ; this . canvas . addEventListener ( 'mousedown' , this . handleMouseDown ) ; this . canvas . addEventListener ( 'mouseup' , this . handleMouseUp ) ; this . canvas . addEventListener ( 'mouseenter' , this . setPosition ) ; window . addEventListener ( 'resize' , this . fillScreen ) ; }
Initialize the event listeners of the whiteboard
 This method should only be used in the initialization
 process of the whiteboard and should not be called outside
 the class constructor.
Initialize the event listeners of the whiteboard This method should only be used in the initialization process of the whiteboard and should not be called outside the class constructor .
// this.canvas.addEventListener('wheel', this.zoom);