d2 icon indicating copy to clipboard operation
d2 copied to clipboard

`class` shape, add "stereotype"

Open alixander opened this issue 2 years ago • 3 comments
trafficstars

source: https://discord.com/channels/976899413542830181/976909197918756944/1088181820648079380

Screen Shot 2023-03-22 at 5 34 14 PM

that <<enumeration>> thing. UML calls it a "stereotype" but that's a dumb name. i don't really want to introduce another keyword for it though. The only appropriate existing keyword would be "desc", but that's not so fitting. i'll stew on it or wait until someone has a suggestion

alixander avatar Mar 23 '23 00:03 alixander

i imagine.

  • bullet journal (bullet memo) https://www.google.com/search?q=bullet+memo&tbm=isch

bo-ku-ra avatar Mar 23 '23 02:03 bo-ku-ra

I don't like either the word "stereotype", maybe you could adopt the word "supertitle" as oppose to "subtitle".

Just an idea.

diegomgarcia avatar Mar 24 '23 00:03 diegomgarcia

Hi @alixander I would like to take this up. Unfortunately, I don't have a clue how. Can you point me towards right direction to get this done ?

gourav avatar Jun 19 '24 14:06 gourav

i guess this is generalizable to not just class shapes

Screenshot 2024-10-16 at 10 23 28 AM

alixander avatar Oct 16 '24 16:10 alixander

actually you can emulate it sufficiently enough. There's no need for a specific keyword for this.

Image

https://play.d2lang.com/?script=rJDBavMwEITv-xSDfU74_56CCIFAH6CHHntR7U29IMlGu8Gkjd-9yHIL7blHfUgz38j3UZLDBwHBv3JwaI7HibOO6XRqCFC7Bd6L-SCdg-Urf8PLmGyn8s4O_w9fAfvEPjvYOO06TsaZgJpXWwAd_MRugyuZpbfB4fBvPW0e52ImatnbmOvD2iohOMyDWDFZaCHSmxrH3ysq_bsVNosZZ4d77Feftm3xXCEB92Ly-IAnn7XcKjLb1C541R9unK6Rszcp3_ySzkHeUuRkDRHQBL5Ysd6qF_oMAAD__w%3D%3D&

Basically the only thing missing is the separate font color for <<enumeration>>, but that seems minor

alixander avatar Feb 11 '25 23:02 alixander