mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 13:43:03 -05:00
bool shape
This commit is contained in:
parent
4b438e3c9b
commit
1fb18167f0
3 changed files with 22 additions and 0 deletions
10
src/ui/lib/types/bool/boolAttributes.d.ts
vendored
Normal file
10
src/ui/lib/types/bool/boolAttributes.d.ts
vendored
Normal 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[];
|
||||
};
|
8
src/ui/lib/types/bool/boolContent.d.ts
vendored
Normal file
8
src/ui/lib/types/bool/boolContent.d.ts
vendored
Normal 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
4
src/ui/lib/types/bool/boolShape.d.ts
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { Shape } from '../shape';
|
||||
import { BoolAttributes } from './boolAttributes';
|
||||
|
||||
export type BoolShape = Shape & BoolAttributes;
|
Loading…
Reference in a new issue