mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-18 05:22:28 -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 = {
|
export type Shape = {
|
||||||
name?: string;
|
name?: string;
|
||||||
componentId?: string;
|
componentId?: string;
|
||||||
componentFile?: string;
|
componentFile?: string;
|
||||||
componentRoot?: boolean;
|
componentRoot?: boolean;
|
||||||
shapeRef?: string;
|
shapeRef?: string;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
selrect?: Selrect;
|
||||||
selrect?: any;
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
points?: any;
|
points?: any;
|
||||||
blocked?: boolean;
|
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…
Add table
Reference in a new issue