DrawShapeOptions

See source code
Table of contents

Extends ShapeOptionsWithDisplayValues<TLDrawShape, DrawShapeUtilDisplayValues>.

interface DrawShapeOptions extends ShapeOptionsWithDisplayValues<
  TLDrawShape,
  DrawShapeUtilDisplayValues
> {}

Properties

maxPointsPerShape

readonly

The maximum number of points in a line before the draw tool will begin a new shape. A higher number will lead to poor performance while drawing very long lines.

readonly maxPointsPerShape: number;

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
DrawPathBuilderOpts
Next
DrawShapeUtilDisplayValues