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 2D coordinate comparison option to Modify interaction #15911

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andreasbaa
Copy link

Updated the equals function in coordinate.js to support a compare2D parameter, enabling comparison of 2D coordinates only. Exposed the compare2D option in the Modify interaction, allowing coordinate comparisons to be limited to the first two dimensions when needed.

This update allows users to perform purely planar modifications without considering the z-coordinate or other dimensions. The default behavior remains unchanged, ensuring backward compatibility.

Updated the `equals` function in `coordinate.js` to support a `compare2D` parameter, enabling comparison of 2D coordinates only. Exposed the `compare2D` option in the Modify interaction, allowing coordinate comparisons to be limited to the first two dimensions when needed.

This update allows users to perform purely planar modifications without considering the z-coordinate or other dimensions. The default behavior remains unchanged, ensuring backward compatibility.
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

1 participant