-
Notifications
You must be signed in to change notification settings - Fork 525
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
d2renderer: #384 The arrowhead crow feet variants #578
d2renderer: #384 The arrowhead crow feet variants #578
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! these look great!
can you an e2e test to https://github.com/terrastruct/d2/blob/master/e2etests/stable_test.go?
i wonder if we can just remove the "crows-foot" to these names. and also the omission of "required" to signify optional.
many
many-required
one
one-required
any thoughts? i need to do some research to see if this is ambiguous, like if there's other symbols that people would expect with these keywords.
or maybe |
|
let's go with that then |
@martinjirku could you sign your commits please? we have this requirement turned on in our org: #557 (comment) . i'll make sure to document this (#580) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a line to changelog? (https://github.com/terrastruct/d2/blob/master/ci/release/changelogs/next.md)
you can follow the format of previous changelogs: https://github.com/terrastruct/d2/blob/master/ci/release/changelogs/v0.1.4.md?plain=1
0009469
to
516580d
Compare
Introduce new styles for arrowhead: - crows-feet-many-required - crows-feet-many-optional - crows-feet-one-required - crows-feet-one-optional
b8db08f
to
2bff170
Compare
Finally, I've successfully signed my previous commits. Can you re-check? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
g <--> h: {
source-arrowhead: {
shape: cf-one
}
target-arrowhead: {
shape: cf-one
}
}
h -> e -> a: {
target-arrowhead: {
shape:cf-many
}
}
g -> e -> a: {
target-arrowhead: {
shape:cf-many-required
}
}
- The
cf-many
looks slightly off (black circle). - Also when the arrows approach at an angle, the crows feet don't match up to the border (red).
(1) should be fixed here, but i'm not sure what to do about (2). To extend these at an angle would also look weird. I'd say it's acceptable for now.
hmm actually i just noticed it's also off for other shapes too. this might be tricky to solve, you'd have to basically curve the crows foot too. i'll just put an issue to track. this PR doesn't need to address that |
|
nice, yeah that's a good solution for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! is this ready to merge?
Yes, ready to go 🚀 |
Introduce new styles for arrowheads #384:
Open questions
I do not like
crows-foot-*
repeated 4 times, but it seems the simplest way to implement this, though d2 DSL for crows-foot is not the best DX.Screenshots
This SVG:

is generated by this d2: