Skip to content

Path bending

Read as Markdown

Use arcBendTransform or pathBendTransform with transformPath. See the composable transforms reference for signatures and examples.

baseline is top, center (default), bottom, or an absolute source Y value. align is start (default), center, or end. fit is none (default) or stretch. offset moves along the guide; normalOffset moves along its normal. Both default to zero. Positive normal displacement is to the right of traversal.

overflow is error (default), extend (continue the endpoint tangent), or wrap (closed guides only). Circular arc angles use radians and a nonzero signed sweep of at most one revolution. Path guides must be one smooth directed contour; corners and cusps are rejected. Unlike envelope guides, closed bend guides support wrapping. Source-frame height may be zero for a baseline-only bend.

Circular guide geometry used when bending a path along an arc.

interface PathBendArc

Related API: PathBendArc.

ArcBendTransformOptions

View source — packages/core/src/lib/geometry/path-bending.ts:15

cx
readonly cx: number

Horizontal coordinate of the center. See PathBendArc.

View source — packages/core/src/lib/geometry/path-bending.ts:17

cy
readonly cy: number

Vertical coordinate of the center. See PathBendArc.

View source — packages/core/src/lib/geometry/path-bending.ts:19

radius
readonly radius: number

Radius in the coordinate system of this geometry or effect. See PathBendArc.

View source — packages/core/src/lib/geometry/path-bending.ts:21

startAngle
readonly startAngle: number

Angle at which the arc or slice begins. See PathBendArc.

View source — packages/core/src/lib/geometry/path-bending.ts:23

sweep
readonly sweep: number

Angular extent of the arc. See PathBendArc.

View source — packages/core/src/lib/geometry/path-bending.ts:25

Placement of the source along the beginning, center, or end of a bending guide.

type PathBendAlign = 'start' | 'center' | 'end'

Related API: PathBendAlign.

BendTransformOptions

View source — packages/core/src/lib/geometry/path-bending.ts:32

The source baseline used for bending: an edge, center, or explicit coordinate.

type PathBendBaseline = 'center' | 'top' | 'bottom' | number

Related API: PathBendBaseline.

BendTransformOptions

View source — packages/core/src/lib/geometry/path-bending.ts:38

Whether bending preserves source length or stretches it to the guide.

type PathBendFit = 'none' | 'stretch'

Related API: PathBendFit.

BendTransformOptions

View source — packages/core/src/lib/geometry/path-bending.ts:44

Policy for source geometry extending beyond a bending guide.

type PathBendOverflow = 'error' | 'extend' | 'wrap'

Related API: PathBendOverflow.

BendTransformOptions

View source — packages/core/src/lib/geometry/path-bending.ts:50

Read the Drawing, layout, and effects companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.

Documentation built with @pibbl/core 0.0.2, revision 2dccb19. ALPHA — NOT FOR PRODUCTION USE.