2024-04-26 13:10:05 +00:00
|
|
|
import './app.css'
|
|
|
|
import Viz from './Viz.svelte'
|
|
|
|
|
|
|
|
const width = 2160
|
|
|
|
const height = 3840
|
|
|
|
document.getElementById('canvas')!.style.width = `${width}px`;
|
|
|
|
document.getElementById('canvas')!.style.height = `${height}px`;
|
|
|
|
|
|
|
|
const app = new Viz({
|
2024-05-23 18:19:21 +00:00
|
|
|
// see https://svelte.dev/docs/client-side-component-api
|
2024-04-26 13:10:05 +00:00
|
|
|
target: document.getElementById('viz')!,
|
2024-05-23 18:19:21 +00:00
|
|
|
props: {
|
|
|
|
width: width,
|
|
|
|
height: height
|
|
|
|
},
|
|
|
|
// intro: true,
|
2024-04-26 13:10:05 +00:00
|
|
|
})
|
|
|
|
|
2024-05-23 18:19:21 +00:00
|
|
|
|
2024-04-26 13:10:05 +00:00
|
|
|
export default app
|