function dragStartMouse(event){
  dragging = true;
  startLocation = getpositionmouse(event);

  if( attribute['style'] == bezier){
    points.push({ x: startLocation.x, y: startLocation.y });
  }
  else{
    attribute.style(startLocation);
  }
}
//stores the location of mouseclick in the start location variable
stores the location of mouseclick in the start location variable
stores the location of mouseclick in the start location variable
function dragStartMouse(event){
  dragging = true;
  startLocation = getpositionmouse(event);
  if( attribute['style'] == bezier){
    points.push({ x: startLocation.x, y: startLocation.y });
  }
  else{
    attribute.style(startLocation);
  }
}
function dragStartMouse ( event ) { dragging = true ; startLocation = getpositionmouse ( event ) ; if ( attribute [ 'style' ] == bezier ) { points . push ( { x : startLocation . x , y : startLocation . y } ) ; } else { attribute . style ( startLocation ) ; } }
stores the location of mouseclick in the start location variable
stores the location of mouseclick in the start location variable