Class: Blueprint
Implements
Constructors
constructor
• new Blueprint(curves
)
Parameters
Name | Type |
---|---|
curves | Curve2D [] |
Defined in
Properties
curves
• curves: Curve2D
[]
Defined in
Accessors
boundingBox
• get
boundingBox(): BoundingBox2d
Returns
Implementation of
Defined in
firstPoint
• get
firstPoint(): Point2D
Returns
Defined in
lastPoint
• get
lastPoint(): Point2D
Returns
Defined in
Methods
clone
▸ clone(): Blueprint
Returns
Implementation of
Defined in
delete
▸ delete(): void
Returns
void
Defined in
intersects
▸ intersects(other
): boolean
Parameters
Name | Type |
---|---|
other | Blueprint |
Returns
boolean
Defined in
isClosed
▸ isClosed(): boolean
Returns
boolean
Defined in
isInside
▸ isInside(point
): boolean
Parameters
Name | Type |
---|---|
point | Point2D |
Returns
boolean
Defined in
mirror
▸ mirror(centerOrDirection
, origin?
, mode?
): Blueprint
Parameters
Name | Type | Default value |
---|---|---|
centerOrDirection | Point2D | undefined |
origin | Point2D | undefined |
mode | "center" | "plane" | "center" |
Returns
Implementation of
Defined in
rotate
▸ rotate(angle
, center
): Blueprint
Parameters
Name | Type |
---|---|
angle | number |
center | Point2D |
Returns
Implementation of
Defined in
scale
▸ scale(scaleFactor
, center?
): Blueprint
Parameters
Name | Type |
---|---|
scaleFactor | number |
center? | Point2D |
Returns
Defined in
sketchOnFace
▸ sketchOnFace(face
, scaleMode?
): Sketch
Parameters
Name | Type |
---|---|
face | Face |
scaleMode? | ScaleMode |
Returns
Implementation of
Defined in
sketchOnPlane
▸ sketchOnPlane(inputPlane?
, origin?
): Sketch
Parameters
Name | Type |
---|---|
inputPlane? | Plane | PlaneName |
origin? | number | Point |
Returns
Implementation of
DrawingInterface.sketchOnPlane
Defined in
stretch
▸ stretch(ratio
, direction
, origin?
): Blueprint
Parameters
Name | Type |
---|---|
ratio | number |
direction | Point2D |
origin | Point2D |
Returns
Implementation of
Defined in
toSVG
▸ toSVG(margin?
): string
Parameters
Name | Type | Default value |
---|---|---|
margin | number | 1 |
Returns
string
Implementation of
Defined in
toSVGPath
▸ toSVGPath(): string
Returns
string
Defined in
toSVGPathD
▸ toSVGPathD(): string
Returns
string
Defined in
toSVGPaths
▸ toSVGPaths(): string
[]
Returns
string
[]
Implementation of
Defined in
toSVGViewBox
▸ toSVGViewBox(margin?
): string
Parameters
Name | Type | Default value |
---|---|---|
margin | number | 1 |
Returns
string
Implementation of
Defined in
translate
▸ translate(xDist
, yDist
): Blueprint
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |