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:
parent
5114e78c94
commit
f36fa23c08
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue