I\'m developing a application where users have to draw polygons with a lot of data points. The application is a Angular 9 web app and I\'ve implemented a custom implementation