Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

78
Views
Custom React Component

I'm writing a react js app project will include a component that should look like the following pictures:

enter image description here enter image description here

The requirements are:

  1. User should be able to move the circles within the grid with the mouse
  2. Grid snap - circles can only be positioned on gird line crossings
  3. Circles can't be positioned on top of each other - it will automatically position it to the closest grid line crossing.
  4. The line is drawn automatically
  5. The line should start at a fixed position and should be crossing the cirles
  6. The line should be curved
  7. I will need to save X and Y coordinates of the cirles in a react state

Not sure whether to write something from scratch with plain javascript, or use some existing npm packages.

I tried searching for some existing libraries, so far I tried doing it with Konva js. Still not sure if it can meet all requirements.

This is the code sample I made on code sandbox, it creates circles, but not sure how to implement all the requirements above.

Any ideas?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!