TLRotationSnapshot
Public typealias
Info about a rotation that can be applied to the editor's selected shapes.
Signature
type TLRotationSnapshot = {
initialCursorAngle: number
initialSelectionRotation: number
selectionPageCenter: Vec
shapeSnapshots: {
initialPagePoint: Vec
shape: TLShape
}[]
}
Parameters
Name | Description |
---|---|
| The center of the selection in page coordinates |
| The angle of the cursor relative to the selection center when the rotation started |
| The rotation of the selection when the rotation started |
| Info about each shape that is being rotated |
References
Source