0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-03 05:10:13 -05:00

add selrect

This commit is contained in:
Jordi Sala Morales 2024-04-10 11:32:10 +00:00
parent 3646113b00
commit 37ba03ab2b
No known key found for this signature in database
GPG key ID: C5127140107F55FD
2 changed files with 13 additions and 2 deletions

View file

@ -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;

10
src/ui/lib/types/utils/selrect.d.ts vendored Normal file
View file

@ -0,0 +1,10 @@
export type Selrect = {
x: number;
y: number;
x1: number;
x2: number;
y1: number;
y2: number;
width: number;
height: number;
};