ls1intum / Apollon

UML Modeling Editor written in React
https://apollon-library.readthedocs.io
MIT License
65 stars 22 forks source link

`Development`: Fix alignment of elements to grid issue #273

Closed minrows closed 1 year ago

minrows commented 1 year ago

Checklist

Motivation and Context

This PR fixes the issue of elements not aligning perfectly on the grid.

Changes include:

Description

Apollon only supports scaling factors with numbers having one decimal place (0.7, 0.8, 1,...)

Steps for Testing

  1. Clone the repo
  2. Checkout to branch enhancement/scaling-fix
  3. Execute commands: yarn install, followed by yarn start
  4. Observe all the elements (especially the one mentioned above) are aligned perfectly with the grid.

Screenshots

Before

image

After

image