-
Notifications
You must be signed in to change notification settings - Fork 293
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
[FEATURE] Touch measurements #1440
Conversation
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>xeokit Example</title> | ||
<link href="../css/pageStyle.css" rel="stylesheet"/> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>xeokit Example</title> | ||
<link href="../css/pageStyle.css" rel="stylesheet"/> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>xeokit Example</title> | ||
<link href="../css/pageStyle.css" rel="stylesheet"/> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script> |
Check warning
Code scanning / CodeQL
Inclusion of functionality from an untrusted source Medium
This PR adds touch support for creating distance and angle measurements, with optional snapping to the nearest vertex or edge.
Creating DistanceMeasurements with Touch Input
In the following example, we'll create distance measurements with touch input, with snapping
to the nearest vertex or edge. While creating the measurements, a long-touch when setting the
start or end point will cause the point to snap to the nearest vertex or edge. A quick
touch-release will immediately set the point at the tapped position on the object surface.
[Run example]
Creating AngleMeasurements with Touch Input
In the following example, we'll create angle measurements with touch input, with snapping
to the nearest vertex or edge. While creating the measurements, a long-touch when setting the
start, corner or end point will cause the point to snap to the nearest vertex or edge. A quick
touch-release will immediately set the point at the tapped position on the object surface.
[Run example]