mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-23 07:08:47 -05:00
feat(plugin-types): add parent reference to the shape
This commit is contained in:
parent
b54edb3ede
commit
25887786a6
1 changed files with 6 additions and 0 deletions
6
libs/plugin-types/index.d.ts
vendored
6
libs/plugin-types/index.d.ts
vendored
|
@ -1199,6 +1199,12 @@ export interface PenpotShapeBase extends PenpotPluginData {
|
||||||
*/
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parent shape. If the shape is the first level the parent will be the root shape.
|
||||||
|
* For the root shape the parent is null
|
||||||
|
*/
|
||||||
|
readonly parent: PenpotShape | null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The x-coordinate of the shape's position.
|
* The x-coordinate of the shape's position.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue