Skip to content
This repository was archived by the owner on May 5, 2019. It is now read-only.

Add option for curved links#100

Open
miktime148 wants to merge 13 commits intomasterfrom
feature/curved-links-v2
Open

Add option for curved links#100
miktime148 wants to merge 13 commits intomasterfrom
feature/curved-links-v2

Conversation

@miktime148
Copy link
Contributor

You can now specify whether you want straight links, links with vertical tangents or links with horizontal tangents

const existingLinks = this._gLinks.selectAll('.link')

existingLinks
// NOTE: Key-function provides D3 with information about which datum maps to which
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to put this comment back in

switch (this._linkMode) {
case LinkType.STRAIGHT:
existingLinks
// NOTE: Key-function provides D3 with information about which datum maps to which
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is meaningless there.

.attr('stroke-width', GraphComponent._LINK_STROKE)
.attr('fill', 'none')
.on('contextmenu', (l: ILinkTuple) => this._onLinkContextMenu(l))
.data(this._graphData!.linkData, (l: ILinkTuple) => l.id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move this up, it would make more sense a few lines above rather than at the very bottom. And the comment about the 'Key-function' is referring to this line, so move that comment to be next to this as well.

@KelvinKKLin
Copy link
Contributor

@miktime148 Out of curiosity, what is the status of this PR? Are we moving forward with this or is this just put on the back burner?

@miktime148
Copy link
Contributor Author

@KelvinKKLin This PR is pretty much finished, we just decided not to commit it to master because at the time we were dealing with other issues. I can ask @francium if i should fix the conflicts and commit it, however its not a big deal if we dont because it only adds curved links.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants