Systems-Modeling / SysML-v2-Pilot-Implementation

Proof-of-concept pilot implementation of the SysML v2 textual notation and visualization
GNU Lesser General Public License v3.0
131 stars 24 forks source link

ST6RI-781: Show multiplicities in nodes (PlantUML) #584

Closed himi closed 4 months ago

himi commented 4 months ago

This PR supports rendering multiplicities in nodes. So far the visualizer renders multiplicities in edges only. I added three new styles:

If you do not specify any styles, view choose proper multiplicity rendering. For example, Tree view shows multiplicities in nodes by default.

himi commented 4 months ago

This is just an example with Tree view:

package Vehicle {
    part def Vehicle {
        part tire[*];
    }

    part car : Vehicle {
        part :>> tire [4];
    }
    part bicycle: Vehicle {
        part :>> tire[2];
    }
    part unicycle: Vehicle {
        part :>> tire[1];
    }
}

This is rendered as below: image