Skip to main content
These modifiers visually transform a component without changing its layout frame — surrounding components keep their original space. scaleEffect resizes uniformly or per-axis, rotationEffect rotates by a degree value around an anchor point, and transformEffect applies an arbitrary 2D affine matrix when you need scale, shear, and translate together. For simple position changes that don’t affect layout, see offset.

scaleEffect

Scales a component uniformly or along individual axes.
number
A uniform scale factor applied to both axes. 1 is the original size, 0.5 is half size, 2 is double size.
object
Scaling doesn’t affect the component’s layout frame. The component’s original space is preserved, and the scaled content may overlap neighboring components. Uniform scale
Per-axis scale
Scale from a corner
Interactive scale

rotationEffect

Rotates a component by the specified angle.
number
required
The rotation angle in degrees. Positive values rotate clockwise.
UnitPoint
The point to rotate around. Defaults to "center". See UnitPoint.
Simple rotation
45-degree rotation
Custom anchor point Rotate around the top-leading corner instead of the center.
Animated rotation

transformEffect

Applies a 2D affine transform matrix to a component.
object
required
A 2D affine transform matrix.
The transform matrix is applied as a standard 2D affine transformation: [a b tx; c d ty; 0 0 1]. For simple scale, rotation, or offset operations, prefer scaleEffect, rotationEffect, or offset for clarity. The transform doesn’t affect the component’s layout frame. Identity transform (no change)
Scale 2x
Skew (shear)
Translate

See also

  • offset — shift a component visually without affecting layout
  • UnitPoint — anchor values for scaleEffect and rotationEffect
  • animation — animate transform changes