Migrate to svelte 5

This commit is contained in:
kwaroran
2024-10-23 02:31:37 +09:00
parent e434c7ab96
commit c7330719ad
120 changed files with 2398 additions and 2033 deletions

View File

@@ -1,10 +1,10 @@
<script>
import { onDestroy, onMount } from 'svelte';
export let width = 800;
export let height = 600;
/** @type {{width?: number, height?: number}} */
let { width = 800, height = 600 } = $props();
let canvas;
let canvas = $state();
let animationFrameId;
onMount(async () => {