Learn
Reference
Examples
Learn
Reference
Examples
API Reference
@tldraw/editor
Class
Function
Variable
Interface
TypeAlias
@tldraw/store
Class
Function
Enum
Interface
TypeAlias
@tldraw/sync-core
Class
Interface
TypeAlias
@tldraw/sync
Function
Interface
TypeAlias
tldraw
Class
Function
Variable
Enum
Interface
TypeAlias
Component
@tldraw/tlschema
Class
Function
Variable
Interface
BoxModel
EmbedDefinition
SchemaPropsInfo
TLArrowBindingProps
TLArrowShapeProps
TLAssetContext
TLAssetStore
TLBaseAsset
TLBaseBinding
TLBaseShape
TLBookmarkShapeProps
TLCamera
TLCursor
TLDefaultColorThemeColor
TLDocument
TLDrawShapeProps
TLDrawShapeSegment
TLEmbedShapeProps
TLFrameShapeProps
TLGeoShapeProps
TLGroupShapeProps
TLHandle
TLHighlightShapeProps
TLImageShapeCrop
TLImageShapeProps
TLInstance
TLInstancePageState
TLInstancePresence
TLLineShapePoint
TLLineShapeProps
TLNoteShapeProps
TLPage
TLPointer
TLPropsMigration
TLPropsMigrations
TLScribble
TLStoreProps
TLTextShapeProps
TLVideoShapeProps
VecModel
TypeAlias
@tldraw/validate
Class
TypeAlias
Namespace
Close
API Reference
/
@tldraw/tlschema
VecModel
interface
Table of contents
x
y
z
Properties
A serializable model for 2D vectors.
interface
VecModel
{}
Properties
x
x
:
number
y
y
:
number
z
optional
z
?:
number
TLVideoShapeProps