Skip to content

LF-Machado/draw-polygon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Draw polygon app

To run this app

use npm start

Alternatively you can visit this link with the latest build deployed on vercel.

Requirements

1. When users open the app, an empty canvas should be presented

2. There should be 2 buttons, one button to complete a polygon, another to reset the canvas content.

3. When the user clicks on the canvas,

  • A vertex will be added in that location.
  • If there are any existing vertices, the new vertex should connect to the last added existing vertex with a polyline.
  • When the user clicks the complete button, the last added vertex should connect to the first vertex and to form a polygon.

4. When the user clicks the reset button, all vertices should be cleared from the canvas.

draw-polygon1

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors