forked from MapComplete/MapComplete
Improve 'slopes' input, add compass indicator
This commit is contained in:
parent
b7175384f9
commit
7a3cb9fbdd
17 changed files with 268 additions and 108 deletions
22
src/UI/Debug/OrientationDebugPanel.svelte
Normal file
22
src/UI/Debug/OrientationDebugPanel.svelte
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<script lang="ts">
|
||||
import { Orientation } from "../../Logic/Web/Orientation"
|
||||
|
||||
const o = Orientation.singleton
|
||||
let alpha = o.alpha
|
||||
let beta = o.beta
|
||||
let gamma = o.gamma
|
||||
let absolute = o.absolute
|
||||
let gotMeasurement = o.gotMeasurement
|
||||
o.startMeasurements()
|
||||
</script>
|
||||
{#if !$gotMeasurement}
|
||||
No device orientation data available
|
||||
{:else}
|
||||
Device orientation data:
|
||||
<ol>
|
||||
<li>Alpha: {$alpha}</li>
|
||||
<li>Beta: {$beta}</li>
|
||||
<li>Gamma: {$gamma}</li>
|
||||
<li>Absolute?: {$absolute}</li>
|
||||
</ol>
|
||||
{/if}
|
||||
Loading…
Add table
Add a link
Reference in a new issue