Learn
Reference
Examples
Learn
Reference
Examples
API Reference
@tldraw/editor
Class
Function
angleDistance
approximately
areAnglesCompatible
average
canonicalizeRotation
clamp
clampRadians
clockwiseAngleDist
counterClockwiseAngleDist
createSessionStateSnapshotSignal
createTLStore
createTLUser
dataUrlToFile
DefaultBackground
DefaultBrush
DefaultCanvas
DefaultCollaboratorHint
DefaultGrid
DefaultHandle
DefaultHandles
DefaultScribble
DefaultSelectionBackground
DefaultSelectionForeground
DefaultSnapIndicator
DefaultSpinner
DefaultSvgDefs
degreesToRadians
ErrorScreen
getArcMeasure
getCursor
getFreshUserPreferences
getIncrementedName
getPointerInfo
getPointInArcT
getPointOnCircle
getPolygonVertices
getSvgPathFromPoints
getUserPreferences
hardReset
hardResetEditor
HTMLContainer
intersectCircleCircle
intersectCirclePolygon
intersectCirclePolyline
intersectLineSegmentCircle
intersectLineSegmentLineSegment
intersectLineSegmentPolygon
intersectLineSegmentPolyline
intersectPolygonBounds
intersectPolygonPolygon
isSafeFloat
linesIntersect
LoadingScreen
loadSessionStateSnapshotIntoStore
loopToHtmlElement
moveCameraWhenCloseToEdge
openWindow
perimeterOfEllipse
pointInPolygon
polygonIntersectsPolyline
polygonsIntersect
precise
preventDefault
radiansToDegrees
rangeIntersection
refreshPage
releasePointerCapture
resizeBox
rotateSelectionHandle
setPointerCapture
setRuntimeOverrides
setUserPreferences
shortAngleDist
SIN
snapAngle
stopEventPropagation
SVGContainer
toDomPrecision
toFixed
toPrecision
uniq
uniqueId
useContainer
useEditor
useEditorComponents
useIsCropping
useIsDarkMode
useIsEditing
useSelectionEvents
useSvgExportContext
useTLStore
useTransform
Variable
Interface
TypeAlias
@tldraw/store
Class
Function
Enum
Interface
TypeAlias
tldraw
Class
Function
Variable
Enum
Interface
TypeAlias
@tldraw/tlschema
Class
Function
Variable
Interface
TypeAlias
@tldraw/validate
Class
Namespace
Close
angleDistance
Edit this page
Last edited on 13 May 2024
approximately