d2 icon indicating copy to clipboard operation
d2 copied to clipboard

Add more shapes (like Rounded Rectangle)

Open DeflateAwning opened this issue 2 years ago • 7 comments

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.

DeflateAwning avatar Feb 22 '23 22:02 DeflateAwning

@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?

alixander avatar Feb 22 '23 22:02 alixander

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.

DeflateAwning avatar Feb 22 '23 22:02 DeflateAwning

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 avatar Feb 22 '23 22:02 alixander

https://github.com/terrastruct/d2/issues/869

alixander avatar Feb 22 '23 22:02 alixander

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

MariusAlbrecht avatar Feb 26 '23 12:02 MariusAlbrecht

How about an X-Y plot (chart)?

amb007 avatar Jul 02 '24 09:07 amb007

D2 will only focus on aspects of software architecture diagrams

alixander avatar Jul 02 '24 19:07 alixander