Angular d3 overlap

Job ID: 32821706

Budget: ₹600 – ₹1,500 INR

I have an angular project to draw the shapes using D3 on an image, I need a functionality that detects the overlap while drawing or moving the shapes
in the same project, I need to button to end the drawing of polygon shape
i have attached a screen recording
Related categories: JavaScript HTML5 jQuery / Prototype Dthreejs Angular