mUp(e){
        //console.log("mouse up event");
         
        // create the drag and drop rectangle if mouseDown is true
        if (this.mouseDown == true){
            if (Button.Shape == "Rectangle"){
                var temp= new Rectangle(this.xMouseStart, this.yMouseStart, this.w, this.h, Swatch.Colour );
                this.ObjectSet.push(temp);
            }else if(Button.Shape == "Ellipse"){
                var temp = new Ellipse(this.xMouseStart, this.yMouseStart, this.w, this.h, Swatch.Colour );
                //console.log(temp)
                this.ObjectSet.push(temp); 
            }
        }

        //console.log(temp)
        this.mouseDown = false;
        

    }
// this function is called when the user has released their click
this function is called when the user has released their click
this function is called when the user has released their click
mUp(e){
        if (this.mouseDown == true){
            if (Button.Shape == "Rectangle"){
                var temp= new Rectangle(this.xMouseStart, this.yMouseStart, this.w, this.h, Swatch.Colour );
                this.ObjectSet.push(temp);
            }else if(Button.Shape == "Ellipse"){
                var temp = new Ellipse(this.xMouseStart, this.yMouseStart, this.w, this.h, Swatch.Colour );
                this.ObjectSet.push(temp); 
            }
        }
        this.mouseDown = false;
    }
mUp ( e ) { if ( this . mouseDown == true ) { if ( Button . Shape == "Rectangle" ) { var temp = new Rectangle ( this . xMouseStart , this . yMouseStart , this . w , this . h , Swatch . Colour ) ; this . ObjectSet . push ( temp ) ; } else if ( Button . Shape == "Ellipse" ) { var temp = new Ellipse ( this . xMouseStart , this . yMouseStart , this . w , this . h , Swatch . Colour ) ; this . ObjectSet . push ( temp ) ; } } this . mouseDown = false ; }
this function is called when the user has released their click
this function is called when the user has released their click
//console.log("mouse up event"); // create the drag and drop rectangle if mouseDown is true //console.log(temp) //console.log(temp)