Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Feature: Snap virtual walls to useful angles #796

Closed
Hypfer opened this issue Mar 29, 2021 · 0 comments
Closed

UI Feature: Snap virtual walls to useful angles #796

Hypfer opened this issue Mar 29, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Hypfer
Copy link
Owner

Hypfer commented Mar 29, 2021

As it is now, a virtual wall simply consists of two connected points which can be dragged manually.

Due to this imprecise movement, this results in them not being 100% aligned. For example if you intend to draw a horizontal line, you might end up with an angle of 178° or 181° which is mildly annoying.

Therefore, the idea would be to snap the lines to proper angles such as:

0°, 45°, 90° etc.

Whether or not more steps are required is tbd.
I'd assume that 95% of all use-cases only require these angles.

Maybe we could allow disabling the snapping altogether optionally.

The virtual wall class is defined here:

export class VirtualWall {

@Hypfer Hypfer added enhancement New feature or request good first issue Good for newcomers labels Mar 29, 2021
@Hypfer Hypfer closed this as completed Mar 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant