TLDrawShapeProps
Table of contents
Properties for the draw shape, which represents freehand drawing and sketching.
interface TLDrawShapeProps {}Properties
color
Color style for the drawing stroke
color: TLDefaultColorStyle;dash
Dash pattern style for the stroke
dash: TLDefaultDashStyle;fill
Fill style for closed drawing shapes
fill: TLDefaultFillStyle;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;scaleX
Horizontal scale factor for lazy resize
scaleX: number;scaleY
Vertical scale factor for lazy resize
scaleY: number;segments
Array of segments that make up the complete drawing path
segments: TLDrawShapeSegment[];size
Size/thickness of the drawing stroke
size: TLDefaultSizeStyle;Prev
TLDocumentNext
TLDrawShapeSegment