diff --git a/libs/plugins-runtime/src/lib/api/index.ts b/libs/plugins-runtime/src/lib/api/index.ts index 000454a..cf9afc6 100644 --- a/libs/plugins-runtime/src/lib/api/index.ts +++ b/libs/plugins-runtime/src/lib/api/index.ts @@ -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; },