-
d3-interpolate-path
Interpolates path `d` attribute smoothly when A and B have different number of points.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
That's a good idea, I've thought of it while making it too. Right now all points in the lines are used as 'control points' for morphing (using d3-interpolate-path for those interested) . Some segments animate a little off because the number of points between the geographic and schematic vary too much. To only morph the segments between stations, I'd have to write a custom interpolation function, which is likely very hard! I might take a shot at it one day though. The other option is to add points to the schematic lines paths (using a tool like SVG path editor), which is very tedious and not very precise either.