add type annotations
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/pr/lint-foundkey-js Pipeline was successful
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed

This commit is contained in:
Johann150 2022-10-08 20:59:21 +02:00
parent 3f59b7f705
commit 60e49a4196
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -23,9 +23,9 @@ const props = withDefaults(defineProps<{
reverse: false,
});
let contentEl = $ref();
let contentEl: HTMLElement = $ref();
function calc() {
function calc(): void {
const eachLength = contentEl.offsetWidth / props.repeat;
const factor = 3000;
const duration = props.duration / ((1 / eachLength) * factor);