From 37ba03ab2b41ab41b5a54b383a207cdadc903e5d Mon Sep 17 00:00:00 2001 From: Jordi Sala Morales Date: Wed, 10 Apr 2024 11:32:10 +0000 Subject: [PATCH] add selrect --- src/ui/lib/types/shape.d.ts | 5 +++-- src/ui/lib/types/utils/selrect.d.ts | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/ui/lib/types/utils/selrect.d.ts diff --git a/src/ui/lib/types/shape.d.ts b/src/ui/lib/types/shape.d.ts index 27547a3..d8626be 100644 --- a/src/ui/lib/types/shape.d.ts +++ b/src/ui/lib/types/shape.d.ts @@ -1,11 +1,12 @@ +import { Selrect } from './utils/selrect'; + export type Shape = { name?: string; componentId?: string; componentFile?: string; componentRoot?: boolean; shapeRef?: string; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - selrect?: any; + selrect?: Selrect; // eslint-disable-next-line @typescript-eslint/no-explicit-any points?: any; blocked?: boolean; diff --git a/src/ui/lib/types/utils/selrect.d.ts b/src/ui/lib/types/utils/selrect.d.ts new file mode 100644 index 0000000..5852f11 --- /dev/null +++ b/src/ui/lib/types/utils/selrect.d.ts @@ -0,0 +1,10 @@ +export type Selrect = { + x: number; + y: number; + x1: number; + x2: number; + y1: number; + y2: number; + width: number; + height: number; +};