diff --git a/Webserver/.env.example b/Webserver/.env.example index ee9cb4c..b6fc918 100644 --- a/Webserver/.env.example +++ b/Webserver/.env.example @@ -1,2 +1,9 @@ API_SERVER_IP= -API_SERVER_PORT= \ No newline at end of file +API_SERVER_PORT= + + +PUBLIC_LED_WIDTH= +PUBLIC_LED_HEIGHT= + +PUBLIC_LED_CHAIN= +PUBLIC_LED_PARALLEL= diff --git a/Webserver/src/lib/client/matrix.ts b/Webserver/src/lib/client/matrix.ts index 8914ce5..1844b9c 100644 --- a/Webserver/src/lib/client/matrix.ts +++ b/Webserver/src/lib/client/matrix.ts @@ -1,3 +1,11 @@ +// Interface to represent the entire matrix data +export interface Matrix { + width: number; + height: number; + scale?: number; + grid?: MatrixCell[][]; +} + // Interface to represent a singualr matrix cell object export interface MatrixCell { x: number; diff --git a/Webserver/src/routes/image/+page.svelte b/Webserver/src/routes/image/+page.svelte index 4343918..4b8d023 100644 --- a/Webserver/src/routes/image/+page.svelte +++ b/Webserver/src/routes/image/+page.svelte @@ -1,5 +1,13 @@ {#if imageURL} - {#await fileAsDataURL(lastImage, 192, 192)} + {#await fileAsDataURL(lastImage, matrix.width, matrix.height)}
Loading image data . . .
{uploadData.elapsed} seconds elapsed.
{:then dataUrl}