How can i normalize x,y coordinates from a drawn rectangle in Angular?

Can you provide some ideas to normalize x,y coordinates from a drawn rectangle in Angular ?