From 2053a5ad2921b3c0ef6cf13cc5c7aae692534413 Mon Sep 17 00:00:00 2001 From: waltem01 Date: Fri, 16 Feb 2024 10:14:36 +0100 Subject: [PATCH] prepare scaling interface --- Webserver/src/lib/client/matrix.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Webserver/src/lib/client/matrix.ts b/Webserver/src/lib/client/matrix.ts index 1844b9c..8b5e98d 100644 --- a/Webserver/src/lib/client/matrix.ts +++ b/Webserver/src/lib/client/matrix.ts @@ -2,10 +2,16 @@ export interface Matrix { width: number; height: number; - scale?: number; + scale?: Scaling; grid?: MatrixCell[][]; } +// Interface to represent scaling data +export interface Scaling { + factor: number; + padding: number; +} + // Interface to represent a singualr matrix cell object export interface MatrixCell { x: number;