sdk.rotateobjectparams.origin
Home > @kittl/sdk > RotateObjectParams > origin
RotateObjectParams.origin property
Origin point for rotation transformation. Specifies the anchor point around which the object rotates.
**Default:** { x: 'center', y: 'center' } - object rotates around its center
**Origin Options:** - x: 'left' | 'center' | 'right' - horizontal anchor point - y: 'top' | 'center' | 'bottom' - vertical anchor point
**Examples:** - { x: 'center', y: 'center' } - rotates around the center (default) - { x: 'left', y: 'top' } - rotates around the top-left corner - { x: 'right', y: 'bottom' } - rotates around the bottom-right corner
Signature:
origin?: {
x: OriginX;
y: OriginY;
};