TextShapeOptions

See source code
Table of contents

Extends ShapeOptionsWithDisplayValues<TLTextShape, TextShapeUtilDisplayValues>.

interface TextShapeOptions extends ShapeOptionsWithDisplayValues<
  TLTextShape,
  TextShapeUtilDisplayValues
> {}

Properties

extraArrowHorizontalPadding

How much addition padding should be added to the horizontal geometry of the shape when binding to an arrow?

extraArrowHorizontalPadding: number;

showTextOutline

Whether to show the outline of the text shape (using the same color as the canvas). This helps with overlapping shapes. It does not show up on Safari, where text outline is a performance issues.

showTextOutline: boolean;

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
TextAreaProps
Next
TextShapeUtilDisplayValues