Ng-mousemove directive call the mouseDown($event) function which calculates X and Y cordinate that is assign to the ng-style of div element and size of square increase or decrease when we move mouse on it.
Ng-mousemove
ng-style