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

Add more shapes (like Rounded Rectangle) #868

Open
DeflateAwning opened this issue Feb 22, 2023 · 7 comments
Open

Add more shapes (like Rounded Rectangle) #868

DeflateAwning opened this issue Feb 22, 2023 · 7 comments

Comments

@DeflateAwning
Copy link

A few more shapes would be great!

Ideas:

  • Rounded Rectangle (rrect)
  • Octagon
  • 3d hexagon (sideways and vertical)
  • Diamond (esp. for logical flow charts)

Shapes that render well stretched wide horizontally are very valuable. Hexagons don't look great when stretched horizontally, but rounded rectangles and the existing package do.

@cyborg-ts cyborg-ts added this to D2 Feb 22, 2023
@alixander
Copy link
Collaborator

@DeflateAwning ty!

oh interesting, 3d hexagon could look cool.

Screen Shot 2023-02-22 at 2 02 02 PM

rounded rect and diamond you can do:
https://play.d2lang.com/?script=qrBSqOZSUACbpIcSKVYKply1XGk5-eVQJSBfWSmkZCbm5uelcNVyAQIAAP__&

what's the case for octagon that hexagon doesn't cover?

@DeflateAwning
Copy link
Author

I'd love to see rounded rect and diamond added to the Cheat Sheet.

I like that 3D hexagon implemented!

Octagon is just another option for a symbol. It could be used to represent the end of things, as somewhat of a stop sign potentially.

@alixander
Copy link
Collaborator

oh, sorry for the confusion, that's just a screenshot from google images. i never considered 3d hexagons before, and that's the first time i've seen it done well.

@alixander
Copy link
Collaborator

#869

@MariusAlbrecht
Copy link

just gonna leave this one here too
image
I'd like to see a subroutine/predefined process symbol for flowcharts. I believe constructing one
(with styles, icons, whatever) shouldn't be possible right now

@amb007
Copy link

amb007 commented Jul 2, 2024

How about an X-Y plot (chart)?

@alixander
Copy link
Collaborator

D2 will only focus on aspects of software architecture diagrams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

4 participants