Home > @uniformdev/canvas > PreviewClient > getPreviewViewport
PreviewClient.getPreviewViewport() method
Fetches a preview viewport by ID
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
{ id } | { id: string; } |
Returns:
Promise<{ id: string; name: string; icon: string; width: number; }>