PointerRecordType
See source codeThe RecordType definition for TLPointer records. Defines validation, scope, and default properties for pointer records in the tldraw store.
Pointer records are scoped to the session level, meaning they are specific to a browser tab and don't persist across sessions.
PointerRecordType: import('@tldraw/store').RecordType<TLPointer, never>
Example
const pointer = PointerRecordType.create({
id: 'pointer:pointer',
x: 0,
y: 0,
})
Prev
parentIdValidatorNext
richTextValidator