TLLineShapePoint
See source codeTable of contents
Represents a single point in a line shape. Line shapes are made up of multiple points that define the path of the line, with each point having coordinates and ordering information.
interface TLLineShapePoint {}Example
const linePoint: TLLineShapePoint = {
id: 'a1',
index: 'a1' as IndexKey,
x: 100,
y: 50,
}Properties
id
Unique identifier for this point, used for tracking and ordering
id: stringindex
Fractional index key used for ordering points along the line
index: IndexKeyx
X coordinate of the point relative to the line shape's origin
x: numbery
Y coordinate of the point relative to the line shape's origin
y: numberPrev
TLInstancePresenceNext
TLLineShapeProps