Values
Custom Coordinates
A custom point with x and y values between 0 and 1, where:
x: 0is the leading edge,x: 1is the trailing edgey: 0is the top edge,y: 1is the bottom edge
{ x: 0.5, y: 0.5 } represents the center pointPredefined Points
The top-leading corner. Equivalent to
{ x: 0, y: 0 }.The center point. Equivalent to
{ x: 0.5, y: 0.5 }.Edge Centers
The center of the top edge. Equivalent to
{ x: 0.5, y: 0 }.The center of the bottom edge. Equivalent to
{ x: 0.5, y: 1 }.The center of the leading edge. Equivalent to
{ x: 0, y: 0.5 }.The center of the trailing edge. Equivalent to
{ x: 1, y: 0.5 }.Corners
The top-leading corner. Equivalent to
{ x: 0, y: 0 }.The top-trailing corner. Equivalent to
{ x: 1, y: 0 }.The bottom-leading corner. Equivalent to
{ x: 0, y: 1 }.The bottom-trailing corner. Equivalent to
{ x: 1, y: 1 }.Usage
Notes
UnitPoint uses a normalized coordinate system (0 to 1) that is independent of the actual view size. This makes it ideal for:- Gradient start and end points
- Scale and rotation anchors
- Alignment references
