mlochbaum / CrinGraph

Bringing Crinacle's squiggly lines to your browser.
BSD Zero Clause License
100 stars 42 forks source link

Added shareable URLs functionality #7

Closed MRSallee closed 3 years ago

MRSallee commented 3 years ago

Two core aspects of changes:

  1. A function that uses init_phones() to initialize the tool with a specified phone (or set of phones) based on URL query param.

  2. Automatically update the URL with appropriate query params as the user changes selected phones.

mlochbaum commented 3 years ago

Thanks! I've moved this into graphtool.js and added the share_url option to enable it. Initialization options are now documented at the bottom of this section.