function draw() {
    if (onMapScreen == true) {
        fabCanvas.clear();
        let player = new fabric.Circle({
            left: curX, top: curY, fill: "blue", radius: 6, hoverCursor: "pointer", visible: true, selectable: false
        });
        fabCanvas.add(player);
    }
}
/**
 * Draws the player onto the map.
 */
Draws the player onto the map.
Draws the player onto the map .
function draw() {
    if (onMapScreen == true) {
        fabCanvas.clear();
        let player = new fabric.Circle({
            left: curX, top: curY, fill: "blue", radius: 6, hoverCursor: "pointer", visible: true, selectable: false
        });
        fabCanvas.add(player);
    }
}
function draw ( ) { if ( onMapScreen == true ) { fabCanvas . clear ( ) ; let player = new fabric . Circle ( { left : curX , top : curY , fill : "blue" , radius : 6 , hoverCursor : "pointer" , visible : true , selectable : false } ) ; fabCanvas . add ( player ) ; } }
Draws the player onto the map.
Draws the player onto the map .