Closed AtiyahElsheikh closed 3 years ago
- Is there any need to keep the old annotations,
- the preserveAspectRatio attribute of Icon? its value is true in BioChem and false in TypeReal
- the Diagram annotation?
It's just a default empty diagram, right? No need to keep it.
- The Icon will appear with the string "R". Can annotations in subclasses get modified? so that the attribute textString in TypeReal get overwritten by the unit attribute of type Real?
No. You can extend and choose not to inherit graphical primitives. But then you would lose the text and it's basically going to be the same as defining your own icon annotation. Maybe a little shorter since you don't need to define the extents again.
This is also somehow closely related to the following [issue] in MSL (https://github.com/modelica/ModelicaStandardLibrary/issues/3582)
Physical units in BioChem are currently declared with annotations, e.g.
It resembles somehow Modelica.Icons.TypeReal:
I would rather prefer to get rid of the annotations and make use of TypeReal, something like that:
Questions: