nus-cs2103-AY2223S1 / forum

14 stars 1 forks source link

How do we hide the attributes' box in a PlantUML object diagram? #370

Open ekweirui opened 2 years ago

ekweirui commented 2 years ago

Currently, I am having difficulty with hiding the attributes box in a PlantUML object diagram.

image

I have tried several methods such as

Could I ask if this is a PlantUML limitation, if not, could I have a tip going forward?

kxrt commented 2 years ago

Been trying to do that myself to no avail. It looks like the PlantUML spec for object diagrams doesn't have that ability. hide members will hide any attributes but still leave a bounding box for the attributes field.

nus-se-bot commented 2 years ago

Tagging a few other students (randomly selected) who have completed related increments, in case they can help: @XenonShawn @nseah21 @darrtzj @shwene @PeiYee88 @ssyap98 @Shawn532 @DarrenCsAcc @JustinS00 @chngchngchng @ketamethane @dr-arrgghh @emptygx @leirdas @kavantan Others are welcome to pitch in too.

damithc commented 2 years ago

@ekweirui did you try hide empty members ?

ekweirui commented 2 years ago

@damithc Hi prof, I have tried hide empty members but to no avail as well. It's either the case of me doing something wrong or that the bug was not fixed properly.

I also tried hide empty methods and hide empty attributes which were specified in the website but to no avail.

damithc commented 2 years ago

I also tried hide empty methods and hide empty attributes which were specified in the website but to no avail.

I see. It works for me but I'm using an older version of PlantUml. Possibly the feature broke in later versions.