Exit Full View

Fizzy / docs / ref / StandardControlPoint.md

StandardControlPoint

A ControlPoint, which is free to be positioned anywhere.

Internally the position is stored as a distance Delta from a given position RelativeTo.

The advantage of having a delta from a relative position, is so that RelativeTo can be repositioned and Point will follow appropriately.

For example, imagine you have a control point which determines the position of some text within a box. If RelativeTo = Size/2, and Delta is initially (0mm,0mm), the the text will appear in the middle of the box, even if the box's size changes.

Consider WithinControlPoint as an alternative, which is useful when you want the control point to adjust in proportion when the shape is scaled.

Fields

NameTypeComments
PointDimension2RelativeTo + Delta.
RelativeToDimension2Often (0mm,0mm)
DeltaDimension2The offset away from RelativeTo. Changed when the control handle is dragged.
MinDimension2The minimum value for Delta. Often MIN_DIMENSION2 or (0mm, 0mm)
MaxDimension2The maximum value for Delta. Often MAX_DIMENSION2 or Size