@tldraw/primitives
Classes
Functions
- angleDelta
- approximately
- areAnglesCompatible
- canolicalizeRotation
- clamp
- clamp
- clampRadians
- decomposeMatrix2d
- degreesToRadians
- flipSelectionHandleX
- flipSelectionHandleY
- getArcLength
- getDrawLinePathData
- getHeight
- getMaxX
- getMaxY
- getMidX
- getMidY
- getMinX
- getMinY
- getPointOnCircle
- getPolygonVertices
- getRoundedInkyPolygonPath
- getRoundedPolygonPoints
- getStroke
- getStrokeOutlinePoints
- getStrokePoints
- getSweep
- getWidth
- intersectCircleCircle
- intersectCirclePolygon
- intersectCirclePolyline
- intersectLineSegmentCircle
- intersectLineSegmentLineSegment
- intersectLineSegmentPolygon
- intersectLineSegmentPolyline
- intersectPolygonBounds
- intersectPolygonPolygon
- isAngleBetween
- isSelectionCorner
- lerpAngles
- linesIntersect
- longAngleDist
- perimeterOfEllipse
- pointInBounds
- pointInCircle
- pointInEllipse
- pointInPolygon
- pointInPolyline
- pointInRect
- pointNearToLineSegment
- pointNearToPolyline
- polygonsIntersect
- radiansToDegrees
- rangeIntersection
- rangesOverlap
- rotateSelectionHandle
- setStrokePointRadii
- shortAngleDist
- simplify
- simplify2
- snapAngle
- toDomPrecision
- toFixed
- toPrecision