Task: TypeScript app for drawing figures on a canvas, such as a user enters the coordinates of points (or clicks) and it draws a figure for him and calculates its area and perimeter.
Figure total perimeter: 0
Figure total area: 0