2 import { browser } from '$app/env';
3 import { maxSize } from '$lib/config';
4 import { sensor } from '$lib/stores/widgets';
17 const fetchItems = function fetchItems( left, top, right, bottom ) {
19 timer = setTimeout(() => {
20 sensor.set({ left, top, right, bottom });
26 left = x - window.screen.width * kSensorSize;
27 top = y - window.screen.height * kSensorSize;
28 right = x + window.screen.width * kSensorSize;
29 bottom = y + window.screen.height * kSensorSize;
31 fetchItems(left, top, right, bottom);