Path
Properties
The spatial positions of every sample in a freehand stroke, in order. Use this when the caller only cares about geometry (bounds, hit testing, path tessellation); reach for Element.Path.samples directly when widths are also needed.
Ordered samples along the stroke. Each sample carries both its world-space position and its width, so pressure-modulated strokes are represented natively without a parallel widths list. Uniform strokes simply set every sample's width to strokeWidth.
Stroke pattern for the freehand path. SOLID keeps the natural pencil feel.
Default width applied to new samples appended during the active stroke. Existing samples carry their own width; setters that mutate width across the whole stroke (SetSelectedStrokeWidth) overwrite every sample's width to keep the stroke uniform.
Functions
Scale points so the bounding box matches newBounds. For two-point shapes this snaps start/end to the new bbox corners (preserving orientation of the original drag direction). For freedraw paths every point is scaled linearly. Rotation unchanged.
Absolute rotation in degrees.