Skip to content
Snippets Groups Projects
  1. Dec 12, 2021
    • Ulrich Schöpp's avatar
      Improve text position when port has connection · 37506f6a
      Ulrich Schöpp authored and Ulrich Schöpp's avatar Ulrich Schöpp committed
      
      Signed-off-by: default avatarUlrich Schöpp <schoepp@fortiss.org>
      Issue-Ref: 4184
      37506f6a
    • Ulrich Schöpp's avatar
      Update text size estimation in automatic layout · 79264dec
      Ulrich Schöpp authored and Ulrich Schöpp's avatar Ulrich Schöpp committed
      
      Uses a simple estimation of the extent of the name of a model
      element based on the default JavaFX style. It does not use
      refer to DiagramViewer, because the viewer delegates the
      creation of content visuals to users and does not know the
      font used in visuals. The visuals themselves are given bounds
      and never compute the preferred size. A general solution would
      be something like adding getPreferredSize to IVisual.
      
      Signed-off-by: default avatarUlrich Schöpp <schoepp@fortiss.org>
      Issue-Ref: 4184
      79264dec
    • Ulrich Schöpp's avatar
      Fix off-by one error in automatic layout · 3770a4a7
      Ulrich Schöpp authored
      
      The coordinates of diagram ports were rounded to the next grid position,
      while all other positions (bend points, component ports) were rounded
      down. As a result, the position of diagram ports can sometimes be off
      by one grid position. This probably was not noticed because the size
      of diagram ports in the diagram tape measure was multiplied by 2, so
      that the issue happend less often.
      
      Example:
      File > Open AF3 Example > Load ACC Example, open component
      AdaptiveCruiseControl and do automatic layout. Some arrows that
      should be horizontal are not quite.
      
      Signed-off-by: default avatarUlrich Schöpp <info@ulrichschoepp.de>
      Issue-Ref: 4184
      3770a4a7
  2. Dec 11, 2021
    • Ulrich Schöpp's avatar
      Factor out text alignment · ca396aa0
      Ulrich Schöpp authored and Ulrich Schöpp's avatar Ulrich Schöpp committed
      
      The position of aligned text depends on the width of the text,
      which may change. This happens when a CSS stylesheet redefines
      the default font. The diagram editor will open with slightly
      misplaced text (e.g. on channels), which is only updated when one
      moves the mouse. The class AlignedText updates the text
      translation automatically when the text size changes.
      
      Signed-off-by: default avatarUlrich Schöpp <schoepp@fortiss.org>
      Issue-Ref: 4184
      ca396aa0
  3. Dec 10, 2021
  4. Dec 09, 2021
  5. Dec 03, 2021
  6. Nov 26, 2021
  7. Nov 24, 2021
  8. Nov 22, 2021
  9. Nov 19, 2021
  10. Nov 18, 2021
  11. Nov 17, 2021
  12. Nov 16, 2021
  13. Nov 15, 2021
  14. Nov 11, 2021
  15. Oct 25, 2021
  16. Oct 22, 2021
Loading