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:
parent
3646113b00
commit
37ba03ab2b
2 changed files with 13 additions and 2 deletions
5
src/ui/lib/types/shape.d.ts
vendored
5
src/ui/lib/types/shape.d.ts
vendored
|
@ -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
10
src/ui/lib/types/utils/selrect.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
export type Selrect = {
|
||||
x: number;
|
||||
y: number;
|
||||
x1: number;
|
||||
x2: number;
|
||||
y1: number;
|
||||
y2: number;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
Loading…
Reference in a new issue