TLDrawShapeSegment
Table of contents
A segment of a draw shape representing either freehand drawing or straight line segments.
interface TLDrawShapeSegment {}Properties
dim
optional
Encoding dimension of path. 2 means (x, y) only — the constant 0.5 pressure was omitted, for input from devices that don't report pressure. 3 or absent (the legacy default) means (x, y, z). Added in the OmitNonPressureZ migration.
dim?: 2 | 3;path
Delta-encoded base64 path data. First point stored as Float32 (12 bytes) for precision, subsequent points as Float16 deltas (6 bytes each).
path: string;type
Type of drawing segment - 'free' for freehand curves, 'straight' for line segments
type: "free" | "straight";Prev
TLDrawShapePropsNext
TLEmbedShapeProps