OffsetOptions Class

Options for offsetting a curve, used in offset construction methods such as constructOffsetXY, constructPolygonWireXYOffset and Region.Ops.constructCurveXYOffset.

Methods

Name Description
constructor(offsetDistanceOrOptions: number | JointOptions, strokeOptions?: StrokeOptions): OffsetOptions Options that are provided are captured.  
clone(): OffsetOptions Return a deep clone.  
create(offsetDistanceOrOptions: number | JointOptions | OffsetOptions): OffsetOptions Static Convert variant input into OffsetOptions.  
getOffsetDistance(offsetDistanceOrOptions: number | JointOptions | OffsetOptions): number Static Convert variant input into offset distance  

Properties

Name Type Description
allowSharpestCorners Accessor boolean    
jointOptions JointOptions Options for offsetting and joining CurvePrimitives  
leftOffsetDistance Accessor number    
maxChamferTurnDegrees Accessor number    
minArcDegrees Accessor number    
preserveEllipticalArcs Accessor boolean    
strokeOptions StrokeOptions Options for generating a B-spline curve offset  

Defined in

Last Updated: 17 December, 2024