Class: Blueprints
Defined in: blueprints/Blueprints.ts:14
Implements
Constructors
Constructor
new Blueprints(blueprints): Blueprints;
Defined in: blueprints/Blueprints.ts:17
Parameters
blueprints
(CompoundBlueprint | Blueprint)[]
Returns
Blueprints
Properties
blueprints
blueprints: (CompoundBlueprint | Blueprint)[];
Defined in: blueprints/Blueprints.ts:15
Accessors
boundingBox
Get Signature
get boundingBox(): BoundingBox2d;
Defined in: blueprints/Blueprints.ts:30
Returns
Implementation of
repr
Get Signature
get repr(): string;
Defined in: blueprints/Blueprints.ts:22
Returns
string
Methods
clone()
clone(): Blueprints;
Defined in: blueprints/Blueprints.ts:26
Returns
Blueprints
Implementation of
mirror()
mirror(
   centerOrDirection, 
   origin?, 
   mode?): Blueprints;
Defined in: blueprints/Blueprints.ts:66
Returns the mirror image of this drawing made with a single point (in center mode, the default, or a plane, (plane mode, with both direction and origin of the plane).
Parameters
centerOrDirection
origin?
mode?
"center" | "plane"
Returns
Blueprints
Implementation of
rotate()
rotate(angle, center?): Blueprints;
Defined in: blueprints/Blueprints.ts:45
Parameters
angle
number
center?
Returns
Blueprints
Implementation of
scale()
scale(scaleFactor, center?): Blueprints;
Defined in: blueprints/Blueprints.ts:51
Parameters
scaleFactor
number
center?
Returns
Blueprints
sketchOnFace()
sketchOnFace(face, scaleMode?): Sketches;
Defined in: blueprints/Blueprints.ts:82
Returns the sketched version of the drawing, on a face.
The scale mode corresponds to the way the coordinates of the drawing are interpreted match with the face:
- originaluses global coordinates (1mm in the drawing is 1mm on the face). This is the default, but currently supported only for planar and circular faces
- boundsnormalises the UV parameters on the face to [0,1] intervals.
- nativeuses the default UV parameters of opencascade
Parameters
face
scaleMode?
Returns
Implementation of
sketchOnPlane()
sketchOnPlane(plane?, origin?): Sketches;
Defined in: blueprints/Blueprints.ts:76
Returns the sketched version of the drawing, on a plane
Parameters
plane?
origin?
number | Point
Returns
Implementation of
DrawingInterface.sketchOnPlane
stretch()
stretch(
   ratio, 
   direction, 
   origin): Blueprints;
Defined in: blueprints/Blueprints.ts:39
Parameters
ratio
number
direction
origin
Returns
Blueprints
Implementation of
toSVG()
toSVG(margin): string;
Defined in: blueprints/Blueprints.ts:96
Formats the drawing as an SVG image
Parameters
margin
number = 1
Returns
string
Implementation of
toSVGPaths()
toSVGPaths(): string[][];
Defined in: blueprints/Blueprints.ts:92
Formats the drawing as a list of SVG paths
Returns
string[][]
Implementation of
toSVGViewBox()
toSVGViewBox(margin): string;
Defined in: blueprints/Blueprints.ts:88
Returns the SVG viewbox that corresponds to this drawing
Parameters
margin
number = 1
Returns
string
Implementation of
translate()
Call Signature
translate(xDist, yDist): Blueprints;
Defined in: blueprints/Blueprints.ts:58
Parameters
xDist
number
yDist
number
Returns
Blueprints
Implementation of
Call Signature
translate(translationVector): Blueprints;
Defined in: blueprints/Blueprints.ts:59
Parameters
translationVector
Returns
Blueprints