BaseSketcher2d
Hierarchy
BaseSketcher2d
Constructors
constructor
• new BaseSketcher2d(origin?
)
Parameters
Name | Type |
---|---|
origin | Point2D |
Defined in
Methods
bezierCurveTo
▸ bezierCurveTo(end
, controlPoints
): BaseSketcher2d
Parameters
Name | Type |
---|---|
end | Point2D |
controlPoints | Point2D | Point2D [] |
Returns
Defined in
bulgeArc
▸ bulgeArc(xDist
, yDist
, bulge
): BaseSketcher2d
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |
bulge | number |
Returns
Defined in
bulgeArcTo
▸ bulgeArcTo(end
, bulge
): BaseSketcher2d
Parameters
Name | Type |
---|---|
end | Point2D |
bulge | number |
Returns
Defined in
cubicBezierCurveTo
▸ cubicBezierCurveTo(end
, startControlPoint
, endControlPoint
): BaseSketcher2d
Parameters
Name | Type |
---|---|
end | Point2D |
startControlPoint | Point2D |
endControlPoint | Point2D |
Returns
Defined in
customCorner
▸ customCorner(radius
, mode?
): BaseSketcher2d
Changes the corner between the previous and next segments.
Parameters
Name | Type | Default value |
---|---|---|
radius | number | undefined |
mode | "fillet" | "chamfer" | "fillet" |
Returns
Defined in
ellipse
▸ ellipse(xDist
, yDist
, horizontalRadius
, verticalRadius
, rotation?
, longAxis?
, sweep?
): BaseSketcher2d
Parameters
Name | Type | Default value |
---|---|---|
xDist | number | undefined |
yDist | number | undefined |
horizontalRadius | number | undefined |
verticalRadius | number | undefined |
rotation | number | 0 |
longAxis | boolean | false |
sweep | boolean | false |
Returns
Defined in
ellipseTo
▸ ellipseTo(end
, horizontalRadius
, verticalRadius
, rotation?
, longAxis?
, sweep?
): BaseSketcher2d
Parameters
Name | Type | Default value |
---|---|---|
end | Point2D | undefined |
horizontalRadius | number | undefined |
verticalRadius | number | undefined |
rotation | number | 0 |
longAxis | boolean | false |
sweep | boolean | false |
Returns
Defined in
hBulgeArc
▸ hBulgeArc(distance
, bulge
): BaseSketcher2d
Parameters
Name | Type |
---|---|
distance | number |
bulge | number |
Returns
Defined in
hLine
▸ hLine(distance
): BaseSketcher2d
Parameters
Name | Type |
---|---|
distance | number |
Returns
Defined in
hLineTo
▸ hLineTo(xPos
): BaseSketcher2d
Parameters
Name | Type |
---|---|
xPos | number |
Returns
Defined in
hSagittaArc
▸ hSagittaArc(distance
, sagitta
): BaseSketcher2d
Parameters
Name | Type |
---|---|
distance | number |
sagitta | number |
Returns
Defined in
halfEllipse
▸ halfEllipse(xDist
, yDist
, minorRadius
, sweep?
): BaseSketcher2d
Parameters
Name | Type | Default value |
---|---|---|
xDist | number | undefined |
yDist | number | undefined |
minorRadius | number | undefined |
sweep | boolean | false |
Returns
Defined in
halfEllipseTo
▸ halfEllipseTo(end
, minorRadius
, sweep?
): BaseSketcher2d
Parameters
Name | Type | Default value |
---|---|---|
end | Point2D | undefined |
minorRadius | number | undefined |
sweep | boolean | false |
Returns
Defined in
line
▸ line(xDist
, yDist
): BaseSketcher2d
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |
Returns
Defined in
lineTo
▸ lineTo(point
): BaseSketcher2d
Parameters
Name | Type |
---|---|
point | Point2D |
Returns
Defined in
movePointerTo
▸ movePointerTo(point
): BaseSketcher2d
Parameters
Name | Type |
---|---|
point | Point2D |
Returns
Defined in
polarLine
▸ polarLine(distance
, angle
): BaseSketcher2d
Parameters
Name | Type |
---|---|
distance | number |
angle | number |
Returns
Defined in
polarLineTo
▸ polarLineTo(«destructured»
): BaseSketcher2d
Parameters
Name | Type |
---|---|
«destructured» | Point2D |
Returns
Defined in
quadraticBezierCurveTo
▸ quadraticBezierCurveTo(end
, controlPoint
): BaseSketcher2d
Parameters
Name | Type |
---|---|
end | Point2D |
controlPoint | Point2D |
Returns
Defined in
sagittaArc
▸ sagittaArc(xDist
, yDist
, sagitta
): BaseSketcher2d
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |
sagitta | number |
Returns
Defined in
sagittaArcTo
▸ sagittaArcTo(end
, sagitta
): BaseSketcher2d
Parameters
Name | Type |
---|---|
end | Point2D |
sagitta | number |
Returns
Defined in
smoothSpline
▸ smoothSpline(xDist
, yDist
, splineConfig?
): BaseSketcher2d
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |
splineConfig? | SplineConfig |
Returns
Defined in
smoothSplineTo
▸ smoothSplineTo(end
, config?
): BaseSketcher2d
Parameters
Name | Type |
---|---|
end | Point2D |
config? | SplineConfig |
Returns
Defined in
tangentArc
▸ tangentArc(xDist
, yDist
): BaseSketcher2d
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |
Returns
Defined in
tangentArcTo
▸ tangentArcTo(end
): BaseSketcher2d
Parameters
Name | Type |
---|---|
end | Point2D |
Returns
Defined in
tangentLine
▸ tangentLine(distance
): BaseSketcher2d
Parameters
Name | Type |
---|---|
distance | number |
Returns
Defined in
threePointsArc
▸ threePointsArc(xDist
, yDist
, viaXDist
, viaYDist
): BaseSketcher2d
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |
viaXDist | number |
viaYDist | number |
Returns
Defined in
threePointsArcTo
▸ threePointsArcTo(end
, midPoint
): BaseSketcher2d
Parameters
Name | Type |
---|---|
end | Point2D |
midPoint | Point2D |
Returns
Defined in
vBulgeArc
▸ vBulgeArc(distance
, bulge
): BaseSketcher2d
Parameters
Name | Type |
---|---|
distance | number |
bulge | number |
Returns
Defined in
vLine
▸ vLine(distance
): BaseSketcher2d
Parameters
Name | Type |
---|---|
distance | number |
Returns
Defined in
vLineTo
▸ vLineTo(yPos
): BaseSketcher2d
Parameters
Name | Type |
---|---|
yPos | number |
Returns
Defined in
vSagittaArc
▸ vSagittaArc(distance
, sagitta
): BaseSketcher2d
Parameters
Name | Type |
---|---|
distance | number |
sagitta | number |