applies formatting and linting

This commit is contained in:
2025-01-01 15:51:19 -05:00
parent 825b85ddad
commit 59431ebfff
13 changed files with 325 additions and 179 deletions

View File

@@ -2,7 +2,7 @@
import { computed, ref, useTemplateRef, watch } from 'vue';
import NumericText from '@/components/NumericText.vue';
const props = defineProps<{
defineProps<{
x: number;
y: number;
value: number;
@@ -13,7 +13,7 @@ const y_offset = computed(() => 9);
const labelRef = useTemplateRef<SVGTextElement>('label-ref');
const value_text = ref("");
const value_text = ref('');
const label_width = ref(0);
watch(
@@ -39,7 +39,11 @@ function update_value_text(text: string) {
:height="16 + background_offset * 2"
></rect>
<text ref="label-ref" :x="x" :y="y">
<NumericText :value="value" :max_width="6" @update="update_value_text"></NumericText>
<NumericText
:value="value"
:max_width="6"
@update="update_value_text"
></NumericText>
</text>
</template>