mirror of https://github.com/sveltejs/svelte
parent
6ba2f72251
commit
ff3404442c
@ -1,8 +1,10 @@
|
|||||||
<script>
|
<script>
|
||||||
export let width;
|
export let width;
|
||||||
export let height;
|
export let height;
|
||||||
|
export let devicePixelRatio;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:window bind:innerWidth={width} bind:innerHeight={height}/>
|
<svelte:window bind:innerWidth={width} bind:innerHeight={height} bind:devicePixelRatio={devicePixelRatio}/>
|
||||||
|
|
||||||
<div>{width}x{height}</div>
|
<div>{width}x{height}</div>
|
||||||
|
<div>{devicePixelRatio}</div>
|
||||||
|
|||||||
Loading…
Reference in new issue