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

d2target: add support for box arrowheads #2256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamratson
Copy link

@adamratson adamratson commented Dec 18, 2024

Add support for box arrowheads in d2target and d2sketch

Fixes #2227

I've updated tests where I've seen I should do so - please let me know if I've missed any!!

Pic:
image

Please let me know if I've missed anything - first time contributor so good chance I have!

I'll try and act on feedback over the week :)

0., 0.,
0., height,
width, height,
width, 0.,
Copy link
Author

Choose a reason for hiding this comment

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

I wasn't sure how to calculate the values here - I'm guessing because they're different for every other arrowhead and mine aren't I've missed something

Copy link
Author

Choose a reason for hiding this comment

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

(Similarly for the unfilled box below)

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is probably where stroke-width comes in -- see main review comment

Copy link
Author

Choose a reason for hiding this comment

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

I wasn't sure if these files were meant to be included but as they weren't gitignored I decided to - will remove if that's what I should do!

Copy link
Collaborator

Choose a reason for hiding this comment

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

nah sorry i should do something about this testing noise. Please exclude the pptx and pdfs from PR.

Copy link
Collaborator

@alixander alixander left a comment

Choose a reason for hiding this comment

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

Thanks @adamratson ! Sorry for the late review, hope you had a good holiday season.

The math doesn't seem to account for stroke width values. e.g. see circle here vs the boxes that overlap

Screenshot 2024-12-28 at 11 04 13 PM Screenshot 2024-12-28 at 11 04 25 PM

0., 0.,
0., height,
width, height,
width, 0.,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is probably where stroke-width comes in -- see main review comment

Copy link
Collaborator

Choose a reason for hiding this comment

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

nah sorry i should do something about this testing noise. Please exclude the pptx and pdfs from PR.

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.

[feature request] box arrowhead
2 participants