Text alignment for components in component diagram

+1 vote
asked May 4, 2020 in Question / help by lp-lima (140 points)
edited May 5, 2020 by lp-lima

Is there a way to set the text alignment for a specific stereotype in component diagrams? Right now, I can only either get everything changed by a global skinparameter, or anything at all. Isn't there a middle ground?

EDIT: inclusion of an example. In the diagram below, I don't know how to centralize / align the text to the left on those components individually.

skinparam {
    defaultTextAlignment left

skinparam component {
    defaultTextAlignment<<centered>> center

component left [
    I wanted this long long long text
    aligned to the left

component center<<centered>> [
    I wanted this long long long text


1 Answer

0 votes
answered May 5, 2020 by plantuml (244,880 points)
Not sure...

Could you post a simple and short example we could talk about ?

Thanks !
commented May 5, 2020 by lp-lima (140 points)
Added an example to the OP. Thanks!