Skip to content
Snippets Groups Projects
  1. Dec 12, 2021
    • 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. Nov 24, 2021
  6. Nov 17, 2021
  7. Nov 16, 2021
  8. Oct 25, 2021
  9. Oct 21, 2021
  10. Sep 21, 2021
  11. Sep 10, 2021
  12. Sep 06, 2021
  13. Apr 19, 2021
  14. Apr 16, 2021
  15. Apr 01, 2021
  16. Mar 22, 2021
  17. Mar 12, 2021
  18. Feb 19, 2021
  19. Jan 25, 2021
  20. Jan 23, 2021
  21. Oct 26, 2020
  22. Oct 20, 2020
  23. Oct 19, 2020
  24. Oct 16, 2020
  25. Oct 13, 2020
Loading