TLDrawShapeProps

See source code
Table of contents

Properties for the draw shape, which represents freehand drawing and sketching.

interface TLDrawShapeProps {}

Properties

color

Color style for the drawing stroke


dash

Dash pattern style for the stroke


fill

Fill style for closed drawing shapes


isClosed

Whether the drawing path forms a closed shape

isClosed: boolean

isComplete

Whether the drawing is complete (user finished drawing)

isComplete: boolean

isPen

Whether this drawing was created with a pen/stylus device

isPen: boolean

scale

Scale factor applied to the drawing

scale: number

segments

Array of segments that make up the complete drawing path

segments: TLDrawShapeSegment[]

size

Size/thickness of the drawing stroke


Prev
TLDocument
Next
TLDrawShapeSegment