fixes history loading slowly due to context switches

This commit is contained in:
2025-01-04 19:13:32 -05:00
parent c69022448f
commit 4dd7cea97d
12 changed files with 278 additions and 122 deletions

View File

@@ -6,6 +6,7 @@ defineProps<{
x: number;
y: number;
value: number;
class?: string;
}>();
const background_offset = computed(() => 5);
@@ -33,12 +34,13 @@ function update_value_text(text: string) {
<template>
<rect
:class="$props.class"
:x="x - background_offset"
:y="y - y_offset - background_offset"
:width="label_width + background_offset * 2"
:height="16 + background_offset * 2"
></rect>
<text ref="label-ref" :x="x" :y="y">
<text :class="$props.class" ref="label-ref" :x="x" :y="y">
<NumericText
:value="value"
:max_width="6"