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
:
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:
→ Not sure if there is a library out there? Thus far, I have sadly not found anything
d3-graphviz
does all the magic: