ModelicaSpecification icon indicating copy to clipboard operation
ModelicaSpecification copied to clipboard

Keep connector icons untouched when resizing an icon

Open modelica-trac-importer opened this issue 7 years ago • 4 comments

Modified by beutlich on 3 May 2018 09:01 UTC As reported by https://stackoverflow.com/q/50134445/8520615 (and known from Simulink), it should be possible to not resize a connector icon when resizing the component icon. This could be solved by introduction of a Boolean flag CoordinateSystem.fixedScale in section 18.6.1.1.


Reported by beutlich on 3 May 2018 08:59 UTC As reported by https://stackoverflow.com/q/50134445/8520615, it should be possible to not resize a connector icon when resizing the component icon. This could be solved by introduction of a Boolean flag CoordinateSystem.fixedScale in section 18.6.1.1.


Migrated-From: https://trac.modelica.org/Modelica/ticket/2247

modelica-trac-importer avatar Nov 04 '18 22:11 modelica-trac-importer

Modified by beutlich on 3 May 2018 09:01 UTC

modelica-trac-importer avatar Nov 04 '18 22:11 modelica-trac-importer

Comment by hansolsson on 3 May 2018 09:09 UTC

This could be solved by introduction of a Boolean flag CoordinateSystem.fixedScale in section 18.6.1.1.

Another possibility would be to re-interpret the preserveAspectRatio=true of the connector to include this as well. To me that sort of makes sense as I don't see a major reason to forbid stretching of a connector in a model - but allow stretching as part of the model.

However, we will also have to be careful about the details - in particular where the actual connector is in the stretched bounding box.

modelica-trac-importer avatar Nov 04 '18 22:11 modelica-trac-importer

Comment by stefanv on 28 Sep 2018 19:03 UTC I'm not sure what you mean by "include this as well". As far as I can see, preserveAspectRatio=true (which is the default anyway) is not honoured by some tools when connectors are drawn on icons. See #2268.

modelica-trac-importer avatar Nov 04 '18 22:11 modelica-trac-importer

This is related to https://github.com/modelica/ModelicaStandardLibrary/issues/671.

beutlich avatar Oct 23 '19 11:10 beutlich