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

176
Views
How to automatically generate and draw a smooth curve between two surfaces in JS?

I would like to be able to automatically generate smooth curves between two (flat) surfaces of DOM elements in JS, similar to the Curved Connector in Google Slides:

enter image description here

In GS, you can add a Curved Connector and then plug each end into any other anchor point. If the target anchor point belongs to a surface, the connector line will be perpendicular to it. Intermediate points are automatically generated and interpolated to make for a smooth curve. Here are four examples:

enter image description here

→ Not sure if there is a library out there? Thus far, I have sadly not found anything

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

d3-graphviz does all the magic:

  • The edges are rendered straight by default, but are automatically bent to avoid other nodes.
  • It also has an auto layouting algorithm for layered/hierarchical graphs.
  • It uses graphviz (with the help of wasm) under the hood.

Here is an example:

enter image description here

about 4 years ago · Juan Pablo Isaza Report
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!