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

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

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

View file

@ -215,6 +215,12 @@ export interface PenpotPage extends PenpotPluginData {
* The `name` property is the name of the page.
*/
name: string;
/**
* The root shape of the current page. Will be the parent shape of all the shapes inside the document.
*/
root: PenpotShape;
/**
* Retrieves a shape by its unique identifier.
* @param id The unique identifier of the shape.