NoteShapeOptions

See source code
Table of contents

Extends ShapeOptionsWithDisplayValues<TLNoteShape, NoteShapeUtilDisplayValues>.

interface NoteShapeOptions extends ShapeOptionsWithDisplayValues<
  TLNoteShape,
  NoteShapeUtilDisplayValues
> {}

Properties

resizeMode

How should the note shape resize? By default it does not resize (except automatically based on its text content), but you can set it to be user-resizable using scale.

resizeMode: "none" | "scale";

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
NonePathBuilderOpts
Next
NoteShapeUtilDisplayValues