Home > @uniformdev/canvas > PreviewClient > getPreviewViewport

PreviewClient.getPreviewViewport() method

Fetches a preview viewport by ID

Signature:

Parameters

ParameterTypeDescription
{ id }{ id: string; }

Returns:

Promise<{ id: string; name: string; icon: string; width: number; }>