Weird stereotype sprite alignment in rectangle and database containers

0 votes
asked Jul 24, 2018 in Bug by Rob Oxspring

I've been using <<sterotypes>> on containers to represent technology choices which invariable displays nicely in the center, typically along with the container's name:

Trying to add a little iconography to diagrams I've started using <<$sprite>> stereotypes instead but have found that the alignment is oddly right aligned for rectangles, and just plain broken for databases:

For reference, other containers behave as expected:

1 Answer

0 votes
answered Jul 24, 2018 by plantuml (295,000 points)

Many thanks for the feedback.

The "database" issue has been fixed in last beta http://beta.plantuml.net/plantuml.jar

The "rectangle" behaviour have been done upon request of some users, so changing this will be more difficult (we may provide a setting to choose alignment).

Regards,

BTW, cloudinsight has been integrated in last release ( http://plantuml.com/stdlib ), so you can write:

@startuml
!include <cloudinsight/java>

database MyApp <<$java>> {
  class ClassName
}
@enduml
commented Jul 25, 2018 by Rob Oxspring
Wow. The rectangle behaviour being intentionally inconsistent with the others is really surprising.

If you're willing to consider a new skinparam to configure the alignment could you give me some outline hints as to where changes would need to be made? I've had a brief look at https://github.com/plantuml/plantuml but it's not at all clear to me where to start working on such a pull request.
commented May 8, 2019 by plantuml (295,000 points)
Could you post a specific question about Nodes in Archimate ? I'm not sure to understand the issue. Thanks!
...