Learn
Reference
Examples
Learn
Reference
Examples
API Reference
@tldraw/editor
Class
Function
angleDistance
approximately
areAnglesCompatible
average
canonicalizeRotation
centerOfCircleFromThreePoints
clamp
clampRadians
clockwiseAngleDist
counterClockwiseAngleDist
createSessionStateSnapshotSignal
createTLSchemaFromUtils
createTLStore
createTLUser
dataUrlToFile
debugEnableLicensing
DefaultBackground
DefaultBrush
DefaultCanvas
DefaultCollaboratorHint
DefaultGrid
DefaultHandle
DefaultHandles
DefaultScribble
DefaultSelectionBackground
DefaultSelectionForeground
DefaultSnapIndicator
DefaultSpinner
DefaultSvgDefs
degreesToRadians
ErrorScreen
getArcMeasure
getCursor
getDefaultCdnBaseUrl
getFreshUserPreferences
getIncrementedName
getPointerInfo
getPointInArcT
getPointOnCircle
getPointsOnArc
getPolygonVertices
getSnapshot
getSvgPathFromPoints
getUserPreferences
hardReset
hardResetEditor
HTMLContainer
intersectCircleCircle
intersectCirclePolygon
intersectCirclePolyline
intersectLineSegmentCircle
intersectLineSegmentLineSegment
intersectLineSegmentPolygon
intersectLineSegmentPolyline
intersectPolygonBounds
intersectPolygonPolygon
isSafeFloat
linesIntersect
LoadingScreen
loadSessionStateSnapshotIntoStore
loadSnapshot
loopToHtmlElement
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
useTldrawUser
useTLSchemaFromUtils
useTLStore
useTransform
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
TypeAlias
@tldraw/validate
Class
TypeAlias
Namespace
Close
API Reference
/
@tldraw/editor
useIsCropping
function
function
useIsCropping
(
shapeId
:
TLShapeId
):
boolean
Parameters
Name
Description
shapeId
TLShapeId
Returns
boolean
useEditorComponents
useIsDarkMode