Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Sep 29, 2024
1 parent a5db640 commit 015cfb5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions components/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@ onMounted(async () => {
const context = canvasRef.value.getContext("2d");
const [j, i] = await props.sprites;
const data = j[props.name];
context.drawImage(i, data.x, data.y, data.width, data.height, 0,0, 38, 38)
context.drawImage(i, data.x, data.y, data.width, data.height, 0, 0, 38, 38);
});
</script>

<template>
<canvas ref="canvasRef" width="38" height="38"></canvas>
</template>

<style scoped>
canvas {
width: 19px;
height: 19px;
}
canvas {
width: 19px;
height: 19px;
}
</style>

0 comments on commit 015cfb5

Please sign in to comment.