Skip to main content

BaseSketcher2d

Hierarchy

Constructors

constructor

new BaseSketcher2d(origin?)

Parameters

NameType
originPoint2D

Defined in

Sketcher2d.ts:50

Methods

bezierCurveTo

bezierCurveTo(end, controlPoints): BaseSketcher2d

Parameters

NameType
endPoint2D
controlPointsPoint2D | Point2D[]

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:378


bulgeArc

bulgeArc(xDist, yDist, bulge): BaseSketcher2d

Parameters

NameType
xDistnumber
yDistnumber
bulgenumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:226


bulgeArcTo

bulgeArcTo(end, bulge): BaseSketcher2d

Parameters

NameType
endPoint2D
bulgenumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:218


cubicBezierCurveTo

cubicBezierCurveTo(end, startControlPoint, endControlPoint): BaseSketcher2d

Parameters

NameType
endPoint2D
startControlPointPoint2D
endControlPointPoint2D

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:402


customCorner

customCorner(radius, mode?): BaseSketcher2d

Changes the corner between the previous and next segments.

Parameters

NameTypeDefault value
radiusnumberundefined
mode"fillet" | "chamfer""fillet"

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:465


ellipse

ellipse(xDist, yDist, horizontalRadius, verticalRadius, rotation?, longAxis?, sweep?): BaseSketcher2d

Parameters

NameTypeDefault value
xDistnumberundefined
yDistnumberundefined
horizontalRadiusnumberundefined
verticalRadiusnumberundefined
rotationnumber0
longAxisbooleanfalse
sweepbooleanfalse

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:334


ellipseTo

ellipseTo(end, horizontalRadius, verticalRadius, rotation?, longAxis?, sweep?): BaseSketcher2d

Parameters

NameTypeDefault value
endPoint2Dundefined
horizontalRadiusnumberundefined
verticalRadiusnumberundefined
rotationnumber0
longAxisbooleanfalse
sweepbooleanfalse

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:266


hBulgeArc

hBulgeArc(distance, bulge): BaseSketcher2d

Parameters

NameType
distancenumber
bulgenumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:237


hLine

hLine(distance): BaseSketcher2d

Parameters

NameType
distancenumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:113


hLineTo

hLineTo(xPos): BaseSketcher2d

Parameters

NameType
xPosnumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:121


hSagittaArc

hSagittaArc(distance, sagitta): BaseSketcher2d

Parameters

NameType
distancenumber
sagittanumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:214


halfEllipse

halfEllipse(xDist, yDist, minorRadius, sweep?): BaseSketcher2d

Parameters

NameTypeDefault value
xDistnumberundefined
yDistnumberundefined
minorRadiusnumberundefined
sweepbooleanfalse

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:368


halfEllipseTo

halfEllipseTo(end, minorRadius, sweep?): BaseSketcher2d

Parameters

NameTypeDefault value
endPoint2Dundefined
minorRadiusnumberundefined
sweepbooleanfalse

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:354


line

line(xDist, yDist): BaseSketcher2d

Parameters

NameType
xDistnumber
yDistnumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:105


lineTo

lineTo(point): BaseSketcher2d

Parameters

NameType
pointPoint2D

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:95


movePointerTo

movePointerTo(point): BaseSketcher2d

Parameters

NameType
pointPoint2D

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:66


polarLine

polarLine(distance, angle): BaseSketcher2d

Parameters

NameType
distancenumber
anglenumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:131


polarLineTo

polarLineTo(«destructured»): BaseSketcher2d

Parameters

NameType
«destructured»Point2D

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:125


quadraticBezierCurveTo

quadraticBezierCurveTo(end, controlPoint): BaseSketcher2d

Parameters

NameType
endPoint2D
controlPointPoint2D

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:398


sagittaArc

sagittaArc(xDist, yDist, sagitta): BaseSketcher2d

Parameters

NameType
xDistnumber
yDistnumber
sagittanumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:203


sagittaArcTo

sagittaArcTo(end, sagitta): BaseSketcher2d

Parameters

NameType
endPoint2D
sagittanumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:176


smoothSpline

smoothSpline(xDist, yDist, splineConfig?): BaseSketcher2d

Parameters

NameType
xDistnumber
yDistnumber
splineConfig?SplineConfig

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:451


smoothSplineTo

smoothSplineTo(end, config?): BaseSketcher2d

Parameters

NameType
endPoint2D
config?SplineConfig

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:410


tangentArc

tangentArc(xDist, yDist): BaseSketcher2d

Parameters

NameType
xDistnumber
yDistnumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:261


tangentArcTo

tangentArcTo(end): BaseSketcher2d

Parameters

NameType
endPoint2D

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:241


tangentLine

tangentLine(distance): BaseSketcher2d

Parameters

NameType
distancenumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:137


threePointsArc

threePointsArc(xDist, yDist, viaXDist, viaYDist): BaseSketcher2d

Parameters

NameType
xDistnumber
yDistnumber
viaXDistnumber
viaYDistnumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:163


threePointsArcTo

threePointsArcTo(end, midPoint): BaseSketcher2d

Parameters

NameType
endPoint2D
midPointPoint2D

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:151


vBulgeArc

vBulgeArc(distance, bulge): BaseSketcher2d

Parameters

NameType
distancenumber
bulgenumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:233


vLine

vLine(distance): BaseSketcher2d

Parameters

NameType
distancenumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:109


vLineTo

vLineTo(yPos): BaseSketcher2d

Parameters

NameType
yPosnumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:117


vSagittaArc

vSagittaArc(distance, sagitta): BaseSketcher2d

Parameters

NameType
distancenumber
sagittanumber

Returns

BaseSketcher2d

Defined in

Sketcher2d.ts:210