fitFrameToContent
Public function
Fit a frame to its content.
Signature
function fitFrameToContent(
editor: Editor,
id: TLShapeId,
opts?: {
padding: number
}
): void
Parameters
| Name | Description |
|---|---|
| tlraw editor instance. |
| Id of the frame you wish to fit to content. |
| Options for fitting the frame. |
Returns
void
References
Source

