0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 05:33:02 -05:00

bool shape

This commit is contained in:
Alex Sánchez 2024-04-11 09:26:16 +02:00
parent 4b438e3c9b
commit 1fb18167f0
No known key found for this signature in database
GPG key ID: 68A95170EEB87E16
3 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,10 @@
import { Uuid } from '../utils/uuid';
import { BoolContent } from './boolContent';
export type BoolAttributes = {
id?: Uuid;
type: symbol; // bool
shapes?: Uuid[];
boolType: string; // @TODO: in Penpot this is of type :keyword. check if it makes sense
boolContent: BoolContent[];
};

View file

@ -0,0 +1,8 @@
import { Point } from '../utils/point';
export type BoolContent = {
command: string; // @TODO: in Penpot this is of type :keyword. check if it makes sense
relative?: boolean;
prevPos?: Point;
params?: { [keyword: string]: number }; // @TODO: in Penpot this is of type :keyword. check if it makes sense
};

4
src/ui/lib/types/bool/boolShape.d.ts vendored Normal file
View file

@ -0,0 +1,4 @@
import { Shape } from '../shape';
import { BoolAttributes } from './boolAttributes';
export type BoolShape = Shape & BoolAttributes;