ReadonlyboundsThe axis-aligned bounding box of the path geometry, as a Rect. Curved segments contribute their flattened extent. An empty path reports a zero rectangle.
ReadonlyisTrue when the path has no drawable geometry (no segments).
ReadonlypointThe number of on-path anchor points — the endpoints passed to
moveTo/lineTo/cubicTo/quadTo. Control points are not counted. Equals
getPoints().length.
ReadonlysubpathThe number of contours (subpaths) in the path. Each moveTo on the builder
begins a new contour.
ReadonlytotalThe sum of the arc lengths of all contours. Curved segments are measured by flattening.
The on-path anchor points (the segment endpoints), in path order across all contours. Control points are not included.
StaticgetReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
An immutable 2D path: an ordered list of contours built from straight and curved segments. Produced by VectorPathBuilder#build and never mutated after. Exposes read-only geometry — the number of contours and on-path anchor points, the axis-aligned Rect bounds, and arc lengths. Coordinates are 2-component vectors
[x, y].Since
Lens Scripting Version 370
Snap OS
Example