0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00

feat(plugin-types): add parent reference to the shape

This commit is contained in:
alonso.torres 2024-07-11 13:38:41 +02:00 committed by Alonso Torres
parent b54edb3ede
commit 25887786a6

View file

@ -1199,6 +1199,12 @@ export interface PenpotShapeBase extends PenpotPluginData {
*/
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.
*/