Class: Blueprints
Implements
Constructors
constructor
• new Blueprints(blueprints
)
Parameters
Name | Type |
---|---|
blueprints | (Blueprint | CompoundBlueprint )[] |
Defined in
Properties
blueprints
• blueprints: (Blueprint
| CompoundBlueprint
)[]
Defined in
Accessors
boundingBox
• get
boundingBox(): BoundingBox2d
Returns
Implementation of
Defined in
Methods
clone
▸ clone(): Blueprints
Returns
Implementation of
Defined in
mirror
▸ mirror(centerOrDirection
, origin?
, mode?
): Blueprints
Parameters
Name | Type |
---|---|
centerOrDirection | Point2D |
origin? | Point2D |
mode? | "center" | "plane" |
Returns
Implementation of
Defined in
rotate
▸ rotate(angle
, center
): Blueprints
Parameters
Name | Type |
---|---|
angle | number |
center | Point2D |
Returns
Implementation of
Defined in
scale
▸ scale(scaleFactor
, center?
): Blueprints
Parameters
Name | Type |
---|---|
scaleFactor | number |
center? | Point2D |
Returns
Defined in
sketchOnFace
▸ sketchOnFace(face
, scaleMode?
): Sketches
Parameters
Name | Type |
---|---|
face | Face |
scaleMode? | ScaleMode |
Returns
Implementation of
Defined in
sketchOnPlane
▸ sketchOnPlane(plane?
, origin?
): Sketches
Parameters
Name | Type |
---|---|
plane? | Plane | PlaneName |
origin? | number | Point |
Returns
Implementation of
DrawingInterface.sketchOnPlane
Defined in
stretch
▸ stretch(ratio
, direction
, origin
): Blueprints
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
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
): Blueprints
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |
Returns
Implementation of
Defined in
▸ translate(translationVector
): Blueprints
Parameters
Name | Type |
---|---|
translationVector | Point2D |