Pregunta de entrevista de Agility Robotics

How would you approach creating and integrating shape drawing functionalities, such as rectangles, ellipses, and custom paths, into a web application resembling Adobe Illustrator? Please emphasize the front-end development and user experience aspects of your design and implementation process.