Update bounding rects when fonts have loaded in

This fixes the issue with everything shifting slightly once they load,
invalidating all the bounding rects until they are next updated
This commit is contained in:
thepaperpilot 2022-03-31 22:56:33 -05:00
parent af9b2a8d19
commit 69468d88c0
2 changed files with 2 additions and 0 deletions

View file

@ -29,6 +29,7 @@ function updateTop() {
} }
nextTick(updateTop); nextTick(updateTop);
document.fonts.ready.then(updateTop);
onMounted(() => { onMounted(() => {
const el = element.value?.parentElement; const el = element.value?.parentElement;

View file

@ -50,6 +50,7 @@ function updateNodes() {
}); });
} }
} }
document.fonts.ready.then(updateNodes);
const validLinks = computed(() => { const validLinks = computed(() => {
const n = nodes.value; const n = nodes.value;