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

feat(plugins-runtime): update selection

This commit is contained in:
alonso.torres 2024-07-04 12:51:21 +02:00 committed by Alonso Torres
parent 5114e78c94
commit f36fa23c08

View file

@ -212,6 +212,11 @@ export function createApi(context: PenpotContext, manifest: Manifest): Penpot {
return context.selection;
},
set selection(value: PenpotShape[]) {
checkPermission('content:read');
context.selection = value;
},
get viewport(): PenpotViewport {
return context.viewport;
},