createShapesForAssets
See source codeA helper function for an external content handler. It creates bookmarks, images or video shapes corresponding to the type of assets provided.
function createShapesForAssets(
editor: Editor,
assets: TLAsset[],
position: VecLike
): Promise<TLShapeId[]>Parameters
| Name | Description |
|---|---|
| The editor instance |
| An array of asset Ids |
| the position at which to create the shapes |
Returns
Promise<TLShapeId[]>Prev
createEmptyBookmarkShapeNext
defaultAddFontsFromNode