Skip to content

EmbedRegistryEmbedByExtensionRecord.[FileExtension.canvas] method

EmbedRegistryEmbedByExtensionRecord › [FileExtension.canvas]

Unofficial

Creates an embed component for a canvas file.

Signature:

[FileExtension.canvas](context: EmbedContext, file: TFile, subpath?: string | undefined): EmbedCanvasComponent

Parameters:

Parameter Type Description
context EmbedContext
file TFile
subpath? string | undefined *(Optional)*

Returns: EmbedCanvasComponent