@mocanvas/mocanvas · class

BookmarkAssetUtil

declare class BookmarkAssetUtil extends BuiltInAssetUtil<BookmarkAsset>

Bookmarks: a link with a title, description and preview image.

It claims no MIME types, because a bookmark never comes from a file — it comes from a URL. The util exists so a bookmark asset has the same default-props and shape-type answers as any other asset type, and so editor.getShapeUtilForAssetType("bookmark") resolves.


Methods · 4

getAssetFromFile(): Promise<BookmarkAsset | null>
getDefaultProps(): BookmarkAssetProps
getShapeType(): string
getSupportedMimeTypes(): readonly string[]

Properties · 1

static type: "bookmark"

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.