Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
inthar-raven authored Nov 27, 2023
1 parent 89abc03 commit cd067d0
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions src/views/AnalysisView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const props = defineProps<{
}>();
const cellFormat = ref<"best" | "cents" | "decimal">("best");
const indexing = ref<"zero" | "one">("zero");
const matrixStartIndex = computed(() => indexing.value === "one" ? 1 : 0);

Check warning on line 23 in src/views/AnalysisView.vue

View workflow job for this annotation

GitHub Actions / build (17.x)

Replace `indexing.value·===·"one"·?·1·:·0);·` with `(indexing.value·===·"one"·?·1·:·0));`
const trailLongevity = ref(70);
const maxOtonalRoot = ref(16);
const maxUtonalRoot = ref(23);
Expand Down Expand Up @@ -87,7 +89,8 @@ const matrix = computed(() => {
props.scale.head(MAX_SCALE_SIZE).mergeOptions({
centsFractionDigits: 1,
decimalFractionDigits: 3,
})
}),

Check warning on line 92 in src/views/AnalysisView.vue

View workflow job for this annotation

GitHub Actions / build (17.x)

Delete `·`
1 - (matrixStartIndex.value)

Check warning on line 93 in src/views/AnalysisView.vue

View workflow job for this annotation

GitHub Actions / build (17.x)

Replace `(matrixStartIndex.value)` with `matrixStartIndex.value`
).map((row) => row.map(formatMatrixCell));
});
</script>
Expand All @@ -99,10 +102,10 @@ const matrix = computed(() => {
<table>
<tr>
<th></th>
<th v-for="i of Math.min(scale.size, MAX_SCALE_SIZE)" :key="i">
<th v-for="i of Math.min(scale.size-1+matrixStartIndex, MAX_SCALE_SIZE-1)" :key="i">

Check warning on line 105 in src/views/AnalysisView.vue

View workflow job for this annotation

GitHub Actions / build (17.x)

Replace `·v-for="i·of·Math.min(scale.size-1+matrixStartIndex,·MAX_SCALE_SIZE-1)"·:key="i"` with `⏎············v-for="i·of·Math.min(⏎··············scale.size·-·1·+·matrixStartIndex,⏎··············MAX_SCALE_SIZE·-·1⏎············)"⏎············:key="i"⏎··········`
{{ i }}
</th>
<th>({{ scale.size + 1 }})</th>
<th>({{ scale.size + matrixStartIndex }})</th>
</tr>
<tr v-for="(row, i) of matrix" :key="i">
<th>{{ formatMatrixCell(scale.getInterval(i)) }}</th>
Expand Down Expand Up @@ -143,6 +146,29 @@ const matrix = computed(() => {
<label for="format-decimal"> Decimal ratio </label>
</span>
</div>
<div class="control radio-group">
<label>Interval indexing</label>
<span>
<input
type="radio"
class="radio"
id="indexing-zero"
value="zero"
v-model="indexing"
/>
<label for="indexing-zero"> 0-indexing (default) </label>
</span>

Check warning on line 161 in src/views/AnalysisView.vue

View workflow job for this annotation

GitHub Actions / build (17.x)

Delete `········`
<span>
<input
type="radio"
id="indexing-one"
value="one"
v-model="indexing"
/>
<label for="indexing-one"> 1-indexing </label>
</span>
</div>
</div>
<div class="columns-container">
<div class="column">
Expand Down

0 comments on commit cd067d0

Please sign in to comment.