d2
d2 copied to clipboard
`class` shape, add "stereotype"
source: https://discord.com/channels/976899413542830181/976909197918756944/1088181820648079380
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
i imagine.
- bullet journal (bullet memo) https://www.google.com/search?q=bullet+memo&tbm=isch
I don't like either the word "stereotype", maybe you could adopt the word "supertitle" as oppose to "subtitle".
Just an idea.
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 ?
i guess this is generalizable to not just class shapes
actually you can emulate it sufficiently enough. There's no need for a specific keyword for this.
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