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 lasso logic to draw #242

Merged
merged 25 commits into from
Feb 25, 2025
Merged

add lasso logic to draw #242

merged 25 commits into from
Feb 25, 2025

Conversation

warm-coolguy
Copy link
Member

@warm-coolguy warm-coolguy commented Feb 18, 2025

Summary

  • Added a lasso function to the draw tool
    • It allows free-hand drawing a polygon, and all geometries of configured layers completely within that polygon are copied up to the draw layer for further modification/processing

This is currently done without UI.

Instructions for local reproduction and review

Run diplan:dev to check whether the feature works. A button has been added there above the map to allow enabling the lasso function. When drawing that lasso zoomed in to a level that would suffice to display the configured parcel cells, all parcel cells completely covered by the drawn lasso will be copied up to the draw layer.

Pull Request Checklist (for Assignee)

  • Changelogs are maintained
  • Functionality has been tested in Firefox, Chrome, Safari
  • Functionality has been tested on a smartphone
  • Functionality has been tested with 200% screen zoom
  • Screenreader functionality has been manually tested with NVDA

UI has been tested in the following tools regarding accessibility (only regarding functionality affected in this PR)

  • Chrome Lighthouse
  • Firefox Accessibility

@warm-coolguy warm-coolguy added the enhancement New feature or request label Feb 18, 2025
@warm-coolguy warm-coolguy self-assigned this Feb 18, 2025
@warm-coolguy warm-coolguy marked this pull request as ready for review February 20, 2025 09:21
Copy link
Member

@dopenguin dopenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost finished with the review, but will tackle packages/plugins/Draw/src/store/createInteractions/createLassoInteractions.ts with a fresh head.

🏓 @warm-coolguy

apply suggestion "clarify a little"

Co-authored-by: Pascal Röhling <[email protected]>
@warm-coolguy
Copy link
Member Author

Almost finished with the review, but will tackle packages/plugins/Draw/src/store/createInteractions/createLassoInteractions.ts with a fresh head.

🏓 @warm-coolguy

🏓 @dopenguin

Copy link
Member

@dopenguin dopenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost finished with the review, but will tackle packages/plugins/Draw/src/store/createInteractions/createLassoInteractions.ts with a fresh head.
🏓 @warm-coolguy

🏓 @dopenguin

🏓 @warm-coolguy

Copy link
Member

@dopenguin dopenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last two comments don't seem to be as relevant to the PR, so I'll leave this here already.
:shipit: @warm-coolguy

@warm-coolguy
Copy link
Member Author

The last two comments don't seem to be as relevant to the PR, so I'll leave this here already. :shipit: @warm-coolguy

:shipit: @dopenguin If my responses seem sufficient, please feel free to merge yourself, since it opens up reviewability to the next PR.

@dopenguin dopenguin merged commit 9563506 into main Feb 25, 2025
4 checks passed
@dopenguin dopenguin deleted the feature/add-lasso-logic-to-draw branch February 25, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants