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: string
index
Fractional index key used for ordering points along the line
index: IndexKey
x
X coordinate of the point relative to the line shape's origin
x: number
y
Y coordinate of the point relative to the line shape's origin
y: number
Prev
TLInstancePresenceNext
TLLineShapeProps