import { browser } from '$app/environment';
import { derived, writable } from 'svelte/store';
import { browser } from '$app/environment';
import { derived, writable } from 'svelte/store';
- if (browser) {
- return {
- x: $canvas.x - window.screen.width/2,
- y: $canvas.y - window.screen.height/2
- };
- }
- return {x: 0, y: 0}
+ if (browser) {
+ return {
+ x: $canvas.x - window.screen.width / 2,
+ y: $canvas.y - window.screen.height / 2
+ };
+ }
+ return { x: 0, y: 0 };
- if (browser) {
- return {
- x: $canvas.x + window.screen.width/2,
- y: $canvas.y + window.screen.height/2
- };
- }
- return {x: 0, y: 0}
+ if (browser) {
+ return {
+ x: $canvas.x + window.screen.width / 2,
+ y: $canvas.y + window.screen.height / 2
+ };
+ }
+ return { x: 0, y: 0 };