fitFrameToContent
Fit a frame to its content.
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