Skip to content

Add directional edge markers and control toggle#133

Merged
JackWilb merged 6 commits intomasterfrom
directional-edges
Dec 22, 2020
Merged

Add directional edge markers and control toggle#133
JackWilb merged 6 commits intomasterfrom
directional-edges

Conversation

@JackWilb
Copy link
Copy Markdown
Member

@JackWilb JackWilb commented Dec 9, 2020

Depends on #122 (since the type definition moved to types.ts from store/index.ts)

Closes #129
Is a first step towards #131

This adds a text path element onto the link by using an href and then moves the arrow along the path using an offset. I also added another switch for the control in the control panel. There was a type that needed to be updated, State, and I enabled a new getter and setter in the store for the directionalEdges variable. I also cleaned out some old CSS that was no longer needed.

Here's the relevant MDN docs for textPath and here is the documentation for startOffset

@JackWilb JackWilb requested a review from waxlamp December 9, 2020 23:26
waxlamp
waxlamp previously approved these changes Dec 16, 2020
Copy link
Copy Markdown
Contributor

@waxlamp waxlamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is certainly a good start, but there are better (but more complicated) ways to indicate edge directionality with less clutter when lots of edges intersect.

Let's get some design feedback from Jared and Alex/Miriah.

@JackWilb JackWilb requested a review from waxlamp December 21, 2020 21:55
@JackWilb
Copy link
Copy Markdown
Member Author

Force pushed because the branch this came from was interactive rebased. I had to remove some commits that were no longer in the base branch

@JackWilb JackWilb merged commit 1ffa442 into master Dec 22, 2020
@JackWilb JackWilb deleted the directional-edges branch December 22, 2020 17:22
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.

Implement directional edges toggle

2 participants