Skip to content
Document Authoring DA  API Docs v1.18.0
npmGitHub

ShapeCustomGeometryPath

ShapeCustomGeometryPath:

One outline path of a ShapeCustomGeometry.

Segment coordinates are unitless: they live in the path’s own local coordinate space, whose size is declared by extent, and the shape’s box (Shape.extent) maps that space onto the page — so the path scales with the shape. Coordinates may fall outside the extent; the extent defines the mapping, not a clamp. A path whose segments end without a close is an open curve.

extent: Extent

The size of the path’s local coordinate space, which Shape.extent maps onto the page. Unitless, and both dimensions must be positive.


segments: ShapeCustomGeometrySegment[]

The drawing commands, in order. The first segment must be a move.