Public function

Tests whether an URL supports embedding and returns the result. If we encounter an error, we return undefined.

Signature
function getEmbedInfo(inputUrl: string): TLEmbedResult
Parameters
NameDescription

inputUrl

string

The URL to match

Returns
TLEmbedResult
Source

packages/tldraw/src/lib/utils/embeds/embeds.ts

GeoStylePickerSetgetOccludedChildren