terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
16.37k stars 408 forks source link

Add more shapes (like Rounded Rectangle) #868

Open DeflateAwning opened 1 year ago

DeflateAwning commented 1 year ago

A few more shapes would be great!

Ideas:

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.

alixander commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

MariusAlbrecht commented 1 year ago

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 commented 1 month ago

How about an X-Y plot (chart)?

alixander commented 1 month ago

D2 will only focus on aspects of software architecture diagrams