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

Add Draw Square From Center mode #531

Merged
merged 1 commit into from Mar 20, 2021

Conversation

StijnAmeloot
Copy link
Contributor

Adds new edit mode which allows the user to draw a square from the center.
It's possible to draw a square by clicking twice or by dragging (dragToDraw set to true).

Demo
draw-square-from-center-mode

@StijnAmeloot StijnAmeloot changed the title Add 'Draw Square From Center' mode Add Draw Square From Center mode Feb 21, 2021
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2302

  • 0 of 25 (0.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 22.048%

Changes Missing Coverage Covered Lines Changed/Added Lines %
modules/edit-modes/src/index.ts 0 1 0.0%
modules/main/src/index.ts 0 1 0.0%
modules/edit-modes/src/lib/draw-square-from-center-mode.ts 0 23 0.0%
Totals Coverage Status
Change from base Build 2294: -0.1%
Covered Lines: 1218
Relevant Lines: 5224

💛 - Coveralls

@kargeor kargeor merged commit 6bfc647 into uber:master Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants