d2 icon indicating copy to clipboard operation
d2 copied to clipboard

`shape: cycle`

Open alixander opened this issue 2 years ago • 8 comments

see: https://github.com/terrastruct/d2/discussions/1330

Still undecided about name. I may want to reserve "radial" for 1 thing in center and N connected.

alixander avatar Sep 07 '23 18:09 alixander

Screen Shot 2023-09-12 at 11 08 41 AM

alixander avatar Sep 12 '23 18:09 alixander

how about "shape: cycle"

bo-ku-ra avatar Sep 13 '23 11:09 bo-ku-ra

i like that better, ty for the suggestion! @bo-ku-ra

alixander avatar Sep 14 '23 09:09 alixander

some sample code, mostly done with ai: https://github.com/terrastruct/d2/pull/2362

can't get the tracing to borders working with these arcs

alixander avatar Feb 19 '25 16:02 alixander

/bounty $50

task is to get the curves in that PR to start/stop at borders of objects while looking smooth

Run TA=1 ./ci/test.sh ./e2etests -run TestE2E/txtar/cycle-diagram -v to generate the test file

the path should be perfectly circular like in my PR (https://github.com/terrastruct/d2/pull/2362).

Screen Shot 2025-02-21 at 8 47 08 AM

But the paths should start/stop at the shape bounds

Image

alixander avatar Feb 19 '25 16:02 alixander

💎 $50 bounty • Terrastruct

Steps to solve:

  1. Start working: Comment /attempt #1578 with your implementation plan
  2. Submit work: Create a pull request including /claim #1578 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to terrastruct/d2!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @shailedrathakur300 Feb 19, 2025, 4:35:18 PM WIP
🔴 @loop-index Feb 19, 2025, 4:36:00 PM WIP
🟢 @Mayank77maruti #2369

algora-pbc[bot] avatar Feb 19 '25 16:02 algora-pbc[bot]

/attempt #1578

Options

loop-index avatar Feb 19 '25 16:02 loop-index

/attempt https://github.com/terrastruct/d2/issues/1578

Mayank77maruti avatar Feb 21 '25 16:02 Mayank77maruti