TLDrawShapeProps
See source codeTable of contents
Properties for the draw shape, which represents freehand drawing and sketching.
interface TLDrawShapeProps {}Properties
color
Color style for the drawing stroke
color: TLDefaultColorStyledash
Dash pattern style for the stroke
dash: TLDefaultDashStylefill
Fill style for closed drawing shapes
fill: TLDefaultFillStyleisClosed
Whether the drawing path forms a closed shape
isClosed: booleanisComplete
Whether the drawing is complete (user finished drawing)
isComplete: booleanisPen
Whether this drawing was created with a pen/stylus device
isPen: booleanscale
Scale factor applied to the drawing
scale: numbersegments
Array of segments that make up the complete drawing path
segments: TLDrawShapeSegment[]size
Size/thickness of the drawing stroke
size: TLDefaultSizeStylePrev
TLDocumentNext
TLDrawShapeSegment