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

prevent returning all graphics for layer on hitTest. #296

Merged
merged 1 commit into from
Feb 3, 2024

Conversation

TimPurdum
Copy link
Collaborator

Closes #294

@TimPurdum TimPurdum requested a review from seahro February 1, 2024 19:29
@TimPurdum TimPurdum self-assigned this Feb 1, 2024
@@ -564,10 +567,9 @@ function buildDotNetViewHit(viewHit: ViewHit): DotNetViewHit | null {
return {
type: "graphic",
graphic: buildDotNetGraphic(viewHit.graphic),
layer: buildDotNetLayer(viewHit.layer ?? viewHit.graphic.layer),
layer: buildDotNetLayer(viewHit.layer ?? viewHit.graphic.layer, false),
Copy link
Collaborator

Choose a reason for hiding this comment

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

setting false on buildDotNetLayer will limit the return to just the graphic layer. true would enable the complete layer and all graphics to be returned

@seahro seahro self-requested a review February 2, 2024 20:40
Copy link
Collaborator

@seahro seahro left a comment

Choose a reason for hiding this comment

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

looks good, adding the boolean makes sense to just return the layer, vs everything

@TimPurdum TimPurdum merged commit 05a532a into develop Feb 3, 2024
1 check passed
@TimPurdum TimPurdum deleted the bug/294-hit-test-returns-all-graphics branch February 3, 2024 14:58
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.

Hit Test returning all graphics in layer
2 participants