-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from sdl60660/control-features
Control features
- Loading branch information
Showing
8 changed files
with
252 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<script> | ||
export let vizState; | ||
export let activeFeatureIndex; | ||
export let paused; | ||
export let togglePause; | ||
export let altitudeMultiplier; | ||
export let setAltitudeMultipier; | ||
</script> | ||
|
||
<style> | ||
.wrapper { | ||
background-color: rgba(221, 221, 221, 0.89); | ||
padding: 0.5rem 0.8rem; | ||
border-radius: 4px; | ||
/* position: absolute; */ | ||
/* right: 3rem; */ | ||
/* top: 40%; */ | ||
/* z-index: 20; */ | ||
/* display: grid; */ | ||
grid-gap: 0.8rem; | ||
grid-template-columns: 2rem 1fr; | ||
justify-items: center; | ||
align-items: center; | ||
} | ||
.detail-speed-slider { | ||
display: grid; | ||
grid-template-columns: 2fr 1fr 2fr; | ||
font-size: 0.8rem; | ||
width: 100%; | ||
} | ||
.pause-button { | ||
padding: 0.5rem; | ||
border-radius: 8rem; | ||
/* border: 1px solid black; */ | ||
width: 2.5rem; | ||
height: 2.5rem; | ||
font-weight: bold; | ||
cursor: pointer; | ||
} | ||
#altitude { | ||
padding: 0; | ||
width: 100%; | ||
grid-column: 1 / 4; | ||
} | ||
.slider-label-left { | ||
grid-column: 1 / 2; | ||
justify-self: left; | ||
} | ||
.slider-label-right { | ||
grid-column: 3 / 4; | ||
justify-self: right; | ||
} | ||
</style> | ||
|
||
<div class="wrapper" style="display: {activeFeatureIndex >= 0 ? "grid" : "none"};"> | ||
|
||
<div class="pause-button-wrapper"> | ||
<button class="pause-button" on:click={togglePause}>{paused ? "▶" : "| |"}</button> | ||
</div> | ||
|
||
<div class="detail-speed-slider"> | ||
<!-- <label for="altitude">Camera Altitude</label> --> | ||
<input type="range" id="altitude" name="altitude" min="0.6" max="5" step="0.01" value={altitudeMultiplier} on:input={(e) => setAltitudeMultipier(e)}> | ||
<div class="slider-label slider-label-left">More Detail</div> | ||
<div class="slider-label slider-label-right">Faster</div> | ||
</div> | ||
|
||
</div> |
Oops, something went wrong.
f71ff95
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: