From 5a003416bfe4c15e8cf4ac3624b35983ce0c39c3 Mon Sep 17 00:00:00 2001 From: Jordi Sala Morales Date: Wed, 10 Apr 2024 11:39:19 +0000 Subject: [PATCH] add point --- src/ui/lib/types/shape.d.ts | 4 ++-- src/ui/lib/types/utils/point.d.ts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 src/ui/lib/types/utils/point.d.ts diff --git a/src/ui/lib/types/shape.d.ts b/src/ui/lib/types/shape.d.ts index d8626be..77ace6d 100644 --- a/src/ui/lib/types/shape.d.ts +++ b/src/ui/lib/types/shape.d.ts @@ -1,3 +1,4 @@ +import { Point } from './utils/point'; import { Selrect } from './utils/selrect'; export type Shape = { @@ -7,8 +8,7 @@ export type Shape = { componentRoot?: boolean; shapeRef?: string; selrect?: Selrect; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - points?: any; + points?: Point[]; blocked?: boolean; collapsed?: boolean; locked?: boolean; diff --git a/src/ui/lib/types/utils/point.d.ts b/src/ui/lib/types/utils/point.d.ts new file mode 100644 index 0000000..6522523 --- /dev/null +++ b/src/ui/lib/types/utils/point.d.ts @@ -0,0 +1,4 @@ +export type Point = { + x: number; + y: number; +};