Skip to content

Commit

Permalink
remove displayRange from fft
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Aug 4, 2024
1 parent 842a44f commit 1be4527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
6 changes: 3 additions & 3 deletions src/components/SpectrumGraphComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ export default defineComponent({
path.moveTo(
this.paddingLeft,
height - height * data[0] * this.sp.displayRangeY
height - height * data[0]
);
for (let i = 0; i < data.length; i++) {
path.lineTo(
this.paddingLeft + i * tickWidth * this.sp.displayRangeX,
height - height * data[i] * this.sp.displayRangeY
this.paddingLeft + i * tickWidth,
height - height * data[i]
);
}
return path;
Expand Down
23 changes: 0 additions & 23 deletions src/views/SpectrumView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,6 @@
</div>

<div class="sidebar" :class="{ 'is-visible': render.sidebar }">
<div class="p-2">
displayRangeX
<input
type="range"
min="1"
max="100"
v-model="sp.displayRangeX"
step="0.001"
/>
{{ sp.displayRangeX }}
</div>
<div class="p-2">
displayRangeY
<input
type="range"
min="1"
max="1000"
v-model="sp.displayRangeY"
step="0.001"
/>
{{ sp.displayRangeY }}
</div>

<button class="button is-primary mt-4" @click="sp.addGraph()">
<font-awesome-icon icon="fa-solid fa-plus" size="lg" fixed-width />
Graph
Expand Down

0 comments on commit 1be4527

Please sign in to comment.