Skip to content

Update Snap geometry edits readme to include default haptics information #250

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions snap-geometry-edits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Snapping can be used during interactive edits that move existing vertices using

Geometry guides are enabled by default when snapping is enabled. These allow for snapping to a point coinciding with, parallel to, perpendicular to, or extending an existing geometry.

On supported platforms haptic feedback on `SnapState.snappedToFeature` and `SnapState.snappedToGeometryGuide` is enabled by default when snapping is enabled. Custom haptic feedback can be configured by setting `SnapSettings.isHapticFeedbackEnabled` to false and listening to `GeometryEditor.snapChanged` events to provide specific feedback depending on the `SnapState`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
On supported platforms haptic feedback on `SnapState.snappedToFeature` and `SnapState.snappedToGeometryGuide` is enabled by default when snapping is enabled. Custom haptic feedback can be configured by setting `SnapSettings.isHapticFeedbackEnabled` to false and listening to `GeometryEditor.snapChanged` events to provide specific feedback depending on the `SnapState`.
On supported platforms, haptic feedback on `SnapState.snappedToFeature` and `SnapState.snappedToGeometryGuide` is enabled by default, when snapping is enabled. Custom haptic feedback can be configured by setting `SnapSettings.isHapticFeedbackEnabled` to false and listening to `GeometryEditor.snapChanged` events to provide specific feedback, depending on the `SnapState`.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should use the term SharedFlow or Flow at any point here to make it more kotlin specific

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure I agree with the inclusion of the commas here, it may be my poor grammatical ability but it feels like it puts unnatural pauses into the sentence structure.

I can break the sentences down if you think they're running a bit long. The crux of the first sentence is:

"On supported platforms haptic feedback is enabled by default when snapping is enabled."

I've included the snap sates under which haptics fire but I could word it differently or include them as an aside.

Similarly the second sentence:

"Custom haptic feedback can be configured by disabling the default haptics and listening to snap events to provide specific feedback for each snap state".

I've added the specific API calls which can make it feel a bit more verbose, happy to go with what you'd like though.

I'm not aware of SharedFlow or Flow but I'm happy to take suggestions.

Copy link
Collaborator

Choose a reason for hiding this comment

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


This sample uses the GeoViewCompose Toolkit module to be able to implement a Composable MapView.

## Tags
Expand Down
Loading