EmbedShapeOptions

See source code
Table of contents

Extends ShapeOptionsWithDisplayValues<TLEmbedShape, EmbedShapeUtilDisplayValues>.

interface EmbedShapeOptions extends ShapeOptionsWithDisplayValues<
  TLEmbedShape,
  EmbedShapeUtilDisplayValues
> {}

Properties

embedDefinitions

readonly

The embed definitions to use for this shape util.

readonly embedDefinitions: readonly TLEmbedDefinition[];

Methods

getCustomDisplayValues

Parameters

NameDescription

editor

Editor;

shape

Shape;

theme

TLTheme;

colorMode

"dark" | "light";

Returns

Partial<DisplayValues>;

getDefaultDisplayValues

Parameters

NameDescription

editor

Editor;

shape

Shape;

theme

TLTheme;

colorMode

"dark" | "light";

Returns

DisplayValues;

Prev
EmbedDefinition
Next
EmbedShapeUtilDisplayValues