From 6faeb65e05ee7db56bb11ee09cfbf982c4ba4092 Mon Sep 17 00:00:00 2001 From: James Smith Date: Fri, 10 May 2024 14:22:00 +0100 Subject: [PATCH] fix DOMRect type properties --- app/javascript/src/canvas_proxy.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/javascript/src/canvas_proxy.ts b/app/javascript/src/canvas_proxy.ts index f24c9cbe2..2a924f578 100644 --- a/app/javascript/src/canvas_proxy.ts +++ b/app/javascript/src/canvas_proxy.ts @@ -17,10 +17,13 @@ export class CanvasProxy extends EventDispatcher { return { left: 0, top: 0, + x: 0, + y: 0, width: this.clientWidth, height: this.clientHeight, right: this.clientWidth, - bottom: this.clientHeight + bottom: this.clientHeight, + toJSON: () => ('') } }