Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

splinetoy + wasm #13

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open

splinetoy + wasm #13

wants to merge 39 commits into from

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Jan 4, 2021

Here's a dump of all the code used in the hyperbezier demos. If you want to add me on crates.io I can do a release.

cmyr added 30 commits January 4, 2021 13:13
- supress click when handled by toolbar
- fix swapped placeholder auto point position
- treat trailing point as auto
This is common UX in tools like this; shift+click with the pen tool
aligns the point with the previous point. Similar behaviour is added
for dragging and adjusting handles.
This doesn't combine the first/last points when a path is closed,
but otherwise seems to work okay.
This does the trick where a single point represents both the
first 'moveto' and the final lineto/splineto point.
- fix crash when deleting first point
- remove empty paths after removing last point
- this also fixes a crash when adding a point to an open path
This will let us easily deploy the toy on the web.
shift+s will now cause us to attempt to save the current data as
a base64 encoded query string. This should work okay for small
numbers of points, but will fail at some point.
- our data format is now versioned
- data on web is saved to the anchor
- selected tool is part of save data
The debug menu will let us making links that lock the app in
select mode, and hide the menubar.
The previous logic would let us get into an invalid state
and crash on the next `move_to`, as the solver had existing
elements
(this is based on eli's recent runebender patch)

- linebender/runebender#191
This also makes sure that we move control points when we move
on-curve points.
@cmyr cmyr mentioned this pull request Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant