Table of contents

Public interface

Info about a rotation that can be applied to the editor's selected shapes.

Signature
interface TLRotationSnapshot {}
Parameters
NameDescription

selectionPageCenter

The center of the selection in page coordinates

initialCursorAngle

The angle of the cursor relative to the selection center when the rotation started

initialSelectionRotation

The rotation of the selection when the rotation started

shapeSnapshots

Info about each shape that is being rotated

Source

packages/editor/src/lib/utils/rotation.ts


Properties

initialCursorAngle

Public propertysignature

Signature
initialCursorAngle: number

initialSelectionRotation

Public propertysignature

Signature
initialSelectionRotation: number

selectionPageCenter

Public propertysignature

Signature
selectionPageCenter: Vec
References

Vec


shapeSnapshots

Public propertysignature

Signature
shapeSnapshots: {
  initialPagePoint: Vec
  shape: TLShape
}[]
References

Vec, TLShape


TLResizeShapeOptionsTLScribbleProps